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
729 program_transform_name
741 enable_option_checking
749 ac_precious_vars='build_alias
763 # Initialize some variables set by options.
765 ac_init_version=false
766 ac_unrecognized_opts=
768 # The variables have the same names as the options, with
769 # dashes changed to underlines.
777 program_transform_name=s,x,x,
785 # Installation directory options.
786 # These are left unexpanded so users can "make install exec_prefix=/foo"
787 # and all the variables that are supposed to be based on exec_prefix
788 # by default will actually change.
789 # Use braces instead of parens because sh, perl, etc. also accept them.
790 # (The list follows the same order as the GNU Coding Standards.)
791 bindir='${exec_prefix}/bin'
792 sbindir='${exec_prefix}/sbin'
793 libexecdir='${exec_prefix}/libexec'
794 datarootdir='${prefix}/share'
795 datadir='${datarootdir}'
796 sysconfdir='${prefix}/etc'
797 sharedstatedir='${prefix}/com'
798 localstatedir='${prefix}/var'
799 includedir='${prefix}/include'
800 oldincludedir='/usr/include'
801 docdir='${datarootdir}/doc/${PACKAGE}'
802 infodir='${datarootdir}/info'
807 libdir='${exec_prefix}/lib'
808 localedir='${datarootdir}/locale'
809 mandir='${datarootdir}/man'
815 # If the previous option needs an argument, assign it.
816 if test -n "$ac_prev"; then
817 eval $ac_prev=\$ac_option
823 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
827 # Accept the important Cygnus configure options, so we can diagnose typos.
829 case $ac_dashdash$ac_option in
833 -bindir | --bindir | --bindi | --bind | --bin | --bi)
835 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
838 -build | --build | --buil | --bui | --bu)
839 ac_prev=build_alias ;;
840 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
841 build_alias=$ac_optarg ;;
843 -cache-file | --cache-file | --cache-fil | --cache-fi \
844 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
845 ac_prev=cache_file ;;
846 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
847 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
848 cache_file=$ac_optarg ;;
851 cache_file=config.cache ;;
853 -datadir | --datadir | --datadi | --datad)
855 -datadir=* | --datadir=* | --datadi=* | --datad=*)
856 datadir=$ac_optarg ;;
858 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
859 | --dataroo | --dataro | --datar)
860 ac_prev=datarootdir ;;
861 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
862 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
863 datarootdir=$ac_optarg ;;
865 -disable-* | --disable-*)
866 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
867 # Reject names that are not valid shell variable names.
868 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
869 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
870 { (exit 1); exit 1; }; }
871 ac_useropt_orig=$ac_useropt
872 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
873 case $ac_user_opts in
877 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
878 ac_unrecognized_sep=', ';;
880 eval enable_$ac_useropt=no ;;
882 -docdir | --docdir | --docdi | --doc | --do)
884 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
887 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
889 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
892 -enable-* | --enable-*)
893 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
894 # Reject names that are not valid shell variable names.
895 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
896 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
897 { (exit 1); exit 1; }; }
898 ac_useropt_orig=$ac_useropt
899 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
900 case $ac_user_opts in
904 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
905 ac_unrecognized_sep=', ';;
907 eval enable_$ac_useropt=\$ac_optarg ;;
909 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
910 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
911 | --exec | --exe | --ex)
912 ac_prev=exec_prefix ;;
913 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
914 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
915 | --exec=* | --exe=* | --ex=*)
916 exec_prefix=$ac_optarg ;;
918 -gas | --gas | --ga | --g)
919 # Obsolete; use --with-gas.
922 -help | --help | --hel | --he | -h)
924 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
925 ac_init_help=recursive ;;
926 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
927 ac_init_help=short ;;
929 -host | --host | --hos | --ho)
930 ac_prev=host_alias ;;
931 -host=* | --host=* | --hos=* | --ho=*)
932 host_alias=$ac_optarg ;;
934 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
936 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
938 htmldir=$ac_optarg ;;
940 -includedir | --includedir | --includedi | --included | --include \
941 | --includ | --inclu | --incl | --inc)
942 ac_prev=includedir ;;
943 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
944 | --includ=* | --inclu=* | --incl=* | --inc=*)
945 includedir=$ac_optarg ;;
947 -infodir | --infodir | --infodi | --infod | --info | --inf)
949 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
950 infodir=$ac_optarg ;;
952 -libdir | --libdir | --libdi | --libd)
954 -libdir=* | --libdir=* | --libdi=* | --libd=*)
957 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
958 | --libexe | --libex | --libe)
959 ac_prev=libexecdir ;;
960 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
961 | --libexe=* | --libex=* | --libe=*)
962 libexecdir=$ac_optarg ;;
964 -localedir | --localedir | --localedi | --localed | --locale)
966 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
967 localedir=$ac_optarg ;;
969 -localstatedir | --localstatedir | --localstatedi | --localstated \
970 | --localstate | --localstat | --localsta | --localst | --locals)
971 ac_prev=localstatedir ;;
972 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
973 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
974 localstatedir=$ac_optarg ;;
976 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
978 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
982 # Obsolete; use --without-fp.
985 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
986 | --no-cr | --no-c | -n)
989 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
990 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
993 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
994 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
995 | --oldin | --oldi | --old | --ol | --o)
996 ac_prev=oldincludedir ;;
997 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
998 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
999 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1000 oldincludedir=$ac_optarg ;;
1002 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1004 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1005 prefix=$ac_optarg ;;
1007 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1008 | --program-pre | --program-pr | --program-p)
1009 ac_prev=program_prefix ;;
1010 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1011 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1012 program_prefix=$ac_optarg ;;
1014 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1015 | --program-suf | --program-su | --program-s)
1016 ac_prev=program_suffix ;;
1017 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1018 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1019 program_suffix=$ac_optarg ;;
1021 -program-transform-name | --program-transform-name \
1022 | --program-transform-nam | --program-transform-na \
1023 | --program-transform-n | --program-transform- \
1024 | --program-transform | --program-transfor \
1025 | --program-transfo | --program-transf \
1026 | --program-trans | --program-tran \
1027 | --progr-tra | --program-tr | --program-t)
1028 ac_prev=program_transform_name ;;
1029 -program-transform-name=* | --program-transform-name=* \
1030 | --program-transform-nam=* | --program-transform-na=* \
1031 | --program-transform-n=* | --program-transform-=* \
1032 | --program-transform=* | --program-transfor=* \
1033 | --program-transfo=* | --program-transf=* \
1034 | --program-trans=* | --program-tran=* \
1035 | --progr-tra=* | --program-tr=* | --program-t=*)
1036 program_transform_name=$ac_optarg ;;
1038 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1040 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1041 pdfdir=$ac_optarg ;;
1043 -psdir | --psdir | --psdi | --psd | --ps)
1045 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1049 | -silent | --silent | --silen | --sile | --sil)
1052 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1054 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1056 sbindir=$ac_optarg ;;
1058 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1059 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1060 | --sharedst | --shareds | --shared | --share | --shar \
1062 ac_prev=sharedstatedir ;;
1063 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1064 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1065 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1067 sharedstatedir=$ac_optarg ;;
1069 -site | --site | --sit)
1071 -site=* | --site=* | --sit=*)
1074 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1076 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1077 srcdir=$ac_optarg ;;
1079 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1080 | --syscon | --sysco | --sysc | --sys | --sy)
1081 ac_prev=sysconfdir ;;
1082 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1083 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1084 sysconfdir=$ac_optarg ;;
1086 -target | --target | --targe | --targ | --tar | --ta | --t)
1087 ac_prev=target_alias ;;
1088 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1089 target_alias=$ac_optarg ;;
1091 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1094 -version | --version | --versio | --versi | --vers | -V)
1095 ac_init_version=: ;;
1098 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1099 # Reject names that are not valid shell variable names.
1100 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1101 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1102 { (exit 1); exit 1; }; }
1103 ac_useropt_orig=$ac_useropt
1104 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1105 case $ac_user_opts in
1109 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1110 ac_unrecognized_sep=', ';;
1112 eval with_$ac_useropt=\$ac_optarg ;;
1114 -without-* | --without-*)
1115 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1116 # Reject names that are not valid shell variable names.
1117 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1118 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1119 { (exit 1); exit 1; }; }
1120 ac_useropt_orig=$ac_useropt
1121 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1122 case $ac_user_opts in
1126 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1127 ac_unrecognized_sep=', ';;
1129 eval with_$ac_useropt=no ;;
1132 # Obsolete; use --with-x.
1135 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1136 | --x-incl | --x-inc | --x-in | --x-i)
1137 ac_prev=x_includes ;;
1138 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1139 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1140 x_includes=$ac_optarg ;;
1142 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1143 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1144 ac_prev=x_libraries ;;
1145 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1146 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1147 x_libraries=$ac_optarg ;;
1149 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1150 Try \`$0 --help' for more information." >&2
1151 { (exit 1); exit 1; }; }
1155 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1156 # Reject names that are not valid shell variable names.
1157 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1158 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1159 { (exit 1); exit 1; }; }
1160 eval $ac_envvar=\$ac_optarg
1161 export $ac_envvar ;;
1164 # FIXME: should be removed in autoconf 3.0.
1165 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1166 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1167 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1168 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1174 if test -n "$ac_prev"; then
1175 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1176 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1177 { (exit 1); exit 1; }; }
1180 if test -n "$ac_unrecognized_opts"; then
1181 case $enable_option_checking in
1183 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1184 { (exit 1); exit 1; }; } ;;
1185 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1189 # Check all directory arguments for consistency.
1190 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1191 datadir sysconfdir sharedstatedir localstatedir includedir \
1192 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1193 libdir localedir mandir
1195 eval ac_val=\$$ac_var
1196 # Remove trailing slashes.
1199 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1200 eval $ac_var=\$ac_val;;
1202 # Be sure to have absolute directory names.
1204 [\\/$]* | ?:[\\/]* ) continue;;
1205 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1207 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1208 { (exit 1); exit 1; }; }
1211 # There might be people who depend on the old broken behavior: `$host'
1212 # used to hold the argument of --host etc.
1213 # FIXME: To remove some day.
1216 target=$target_alias
1218 # FIXME: To remove some day.
1219 if test "x$host_alias" != x; then
1220 if test "x$build_alias" = x; then
1221 cross_compiling=maybe
1222 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1223 If a cross compiler is detected then cross compile mode will be used." >&2
1224 elif test "x$build_alias" != "x$host_alias"; then
1230 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1232 test "$silent" = yes && exec 6>/dev/null
1235 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1236 ac_ls_di=`ls -di .` &&
1237 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1238 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1239 { (exit 1); exit 1; }; }
1240 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1241 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1242 { (exit 1); exit 1; }; }
1245 # Find the source files, if location was not specified.
1246 if test -z "$srcdir"; then
1247 ac_srcdir_defaulted=yes
1248 # Try the directory containing this script, then the parent directory.
1249 ac_confdir=`$as_dirname -- "$as_myself" ||
1250 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1251 X"$as_myself" : 'X\(//\)[^/]' \| \
1252 X"$as_myself" : 'X\(//\)$' \| \
1253 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1254 $as_echo X"$as_myself" |
1255 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1273 if test ! -r "$srcdir/$ac_unique_file"; then
1277 ac_srcdir_defaulted=no
1279 if test ! -r "$srcdir/$ac_unique_file"; then
1280 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1281 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1282 { (exit 1); exit 1; }; }
1284 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1286 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1287 { (exit 1); exit 1; }; }
1289 # When building in place, set srcdir=.
1290 if test "$ac_abs_confdir" = "$ac_pwd"; then
1293 # Remove unnecessary trailing slashes from srcdir.
1294 # Double slashes in file names in object file debugging info
1295 # mess up M-x gdb in Emacs.
1297 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1299 for ac_var in $ac_precious_vars; do
1300 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1301 eval ac_env_${ac_var}_value=\$${ac_var}
1302 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1303 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1307 # Report the --help message.
1309 if test "$ac_init_help" = "long"; then
1310 # Omit some internal or obsolete options to make the list less imposing.
1311 # This message is too long to be a string in the A/UX 3.1 sh.
1313 \`configure' configures this package to adapt to many kinds of systems.
1315 Usage: $0 [OPTION]... [VAR=VALUE]...
1317 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1318 VAR=VALUE. See below for descriptions of some of the useful variables.
1320 Defaults for the options are specified in brackets.
1323 -h, --help display this help and exit
1324 --help=short display options specific to this package
1325 --help=recursive display the short help of all the included packages
1326 -V, --version display version information and exit
1327 -q, --quiet, --silent do not print \`checking...' messages
1328 --cache-file=FILE cache test results in FILE [disabled]
1329 -C, --config-cache alias for \`--cache-file=config.cache'
1330 -n, --no-create do not create output files
1331 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1333 Installation directories:
1334 --prefix=PREFIX install architecture-independent files in PREFIX
1335 [$ac_default_prefix]
1336 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1339 By default, \`make install' will install all the files in
1340 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1341 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1342 for instance \`--prefix=\$HOME'.
1344 For better control, use the options below.
1346 Fine tuning of the installation directories:
1347 --bindir=DIR user executables [EPREFIX/bin]
1348 --sbindir=DIR system admin executables [EPREFIX/sbin]
1349 --libexecdir=DIR program executables [EPREFIX/libexec]
1350 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1351 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1352 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1353 --libdir=DIR object code libraries [EPREFIX/lib]
1354 --includedir=DIR C header files [PREFIX/include]
1355 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1356 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1357 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1358 --infodir=DIR info documentation [DATAROOTDIR/info]
1359 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1360 --mandir=DIR man documentation [DATAROOTDIR/man]
1361 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1362 --htmldir=DIR html documentation [DOCDIR]
1363 --dvidir=DIR dvi documentation [DOCDIR]
1364 --pdfdir=DIR pdf documentation [DOCDIR]
1365 --psdir=DIR ps documentation [DOCDIR]
1371 --program-prefix=PREFIX prepend PREFIX to installed program names
1372 --program-suffix=SUFFIX append SUFFIX to installed program names
1373 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1376 --build=BUILD configure for building on BUILD [guessed]
1377 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1378 --target=TARGET configure for building compilers for TARGET [HOST]
1382 if test -n "$ac_init_help"; then
1387 --disable-option-checking ignore unrecognized --enable/--with options
1388 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1389 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1390 --enable-checkmem turn on ccmalloc debugging
1391 --enable-debug turn on debugging
1392 --enable-profiling turn on profiling
1393 --enable-warnings turn on compiler warnings
1394 --enable-optimizations turn on compiler optimizations (recommended for avi2swf)
1395 --disable-lame don't compile any L.A.M.E. mp3 encoding code in
1397 Some influential environment variables:
1398 CC C compiler command
1399 CFLAGS C compiler flags
1400 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1401 nonstandard directory <lib dir>
1402 LIBS libraries to pass to the linker, e.g. -l<library>
1403 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1404 you have headers in a nonstandard directory <include dir>
1405 CXX C++ compiler command
1406 CXXFLAGS C++ compiler flags
1409 Use these variables to override the choices made by `configure' or to help
1410 it to find libraries and programs with nonstandard names/locations.
1416 if test "$ac_init_help" = "recursive"; then
1417 # If there are subdirs, report their specific --help.
1418 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1419 test -d "$ac_dir" ||
1420 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1425 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1427 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1428 # A ".." for each directory in $ac_dir_suffix.
1429 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1430 case $ac_top_builddir_sub in
1431 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1432 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1435 ac_abs_top_builddir=$ac_pwd
1436 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1437 # for backward compatibility:
1438 ac_top_builddir=$ac_top_build_prefix
1441 .) # We are building in place.
1443 ac_top_srcdir=$ac_top_builddir_sub
1444 ac_abs_top_srcdir=$ac_pwd ;;
1445 [\\/]* | ?:[\\/]* ) # Absolute name.
1446 ac_srcdir=$srcdir$ac_dir_suffix;
1447 ac_top_srcdir=$srcdir
1448 ac_abs_top_srcdir=$srcdir ;;
1450 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1451 ac_top_srcdir=$ac_top_build_prefix$srcdir
1452 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1454 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1456 cd "$ac_dir" || { ac_status=$?; continue; }
1457 # Check for guested configure.
1458 if test -f "$ac_srcdir/configure.gnu"; then
1460 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1461 elif test -f "$ac_srcdir/configure"; then
1463 $SHELL "$ac_srcdir/configure" --help=recursive
1465 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1467 cd "$ac_pwd" || { ac_status=$?; break; }
1471 test -n "$ac_init_help" && exit $ac_status
1472 if $ac_init_version; then
1475 generated by GNU Autoconf 2.63
1477 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1478 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1479 This configure script is free software; the Free Software Foundation
1480 gives unlimited permission to copy, distribute and modify it.
1484 cat >config.log <<_ACEOF
1485 This file contains any messages produced by compilers while
1486 running configure, to aid debugging if configure makes a mistake.
1488 It was created by $as_me, which was
1489 generated by GNU Autoconf 2.63. Invocation command line was
1501 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1502 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1503 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1504 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1505 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1507 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1508 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1510 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1511 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1512 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1513 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1514 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1515 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1516 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1524 test -z "$as_dir" && as_dir=.
1525 $as_echo "PATH: $as_dir"
1541 # Keep a trace of the command line.
1542 # Strip out --no-create and --no-recursion so they do not pile up.
1543 # Strip out --silent because we don't want to record it for future runs.
1544 # Also quote any args containing shell meta-characters.
1545 # Make two passes to allow for proper duplicate-argument suppression.
1549 ac_must_keep_next=false
1555 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1556 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1557 | -silent | --silent | --silen | --sile | --sil)
1560 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1563 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1565 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1566 if test $ac_must_keep_next = true; then
1567 ac_must_keep_next=false # Got value, back to normal.
1570 *=* | --config-cache | -C | -disable-* | --disable-* \
1571 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1572 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1573 | -with-* | --with-* | -without-* | --without-* | --x)
1574 case "$ac_configure_args0 " in
1575 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1578 -* ) ac_must_keep_next=true ;;
1581 ac_configure_args="$ac_configure_args '$ac_arg'"
1586 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1587 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1589 # When interrupted or exit'd, cleanup temporary files, and complete
1590 # config.log. We remove comments because anyway the quotes in there
1591 # would cause problems or look ugly.
1592 # WARNING: Use '\'' to represent an apostrophe within the trap.
1593 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1594 trap 'exit_status=$?
1595 # Save into config.log some information that might help in debugging.
1600 ## ---------------- ##
1601 ## Cache variables. ##
1602 ## ---------------- ##
1605 # The following way of writing the cache mishandles newlines in values,
1607 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1608 eval ac_val=\$$ac_var
1612 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1613 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1616 _ | IFS | as_nl) ;; #(
1617 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1618 *) $as_unset $ac_var ;;
1623 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1624 *${as_nl}ac_space=\ *)
1626 "s/'\''/'\''\\\\'\'''\''/g;
1627 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1630 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1638 ## ----------------- ##
1639 ## Output variables. ##
1640 ## ----------------- ##
1643 for ac_var in $ac_subst_vars
1645 eval ac_val=\$$ac_var
1647 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1649 $as_echo "$ac_var='\''$ac_val'\''"
1653 if test -n "$ac_subst_files"; then
1655 ## ------------------- ##
1656 ## File substitutions. ##
1657 ## ------------------- ##
1660 for ac_var in $ac_subst_files
1662 eval ac_val=\$$ac_var
1664 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1666 $as_echo "$ac_var='\''$ac_val'\''"
1671 if test -s confdefs.h; then
1681 test "$ac_signal" != 0 &&
1682 $as_echo "$as_me: caught signal $ac_signal"
1683 $as_echo "$as_me: exit $exit_status"
1685 rm -f core *.core core.conftest.* &&
1686 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1689 for ac_signal in 1 2 13 15; do
1690 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1694 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1695 rm -f -r conftest* confdefs.h
1697 # Predefined preprocessor variables.
1699 cat >>confdefs.h <<_ACEOF
1700 #define PACKAGE_NAME "$PACKAGE_NAME"
1704 cat >>confdefs.h <<_ACEOF
1705 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1709 cat >>confdefs.h <<_ACEOF
1710 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1714 cat >>confdefs.h <<_ACEOF
1715 #define PACKAGE_STRING "$PACKAGE_STRING"
1719 cat >>confdefs.h <<_ACEOF
1720 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1724 # Let the site file select an alternate cache file if it wants to.
1725 # Prefer an explicitly selected file to automatically selected ones.
1728 if test -n "$CONFIG_SITE"; then
1729 ac_site_file1=$CONFIG_SITE
1730 elif test "x$prefix" != xNONE; then
1731 ac_site_file1=$prefix/share/config.site
1732 ac_site_file2=$prefix/etc/config.site
1734 ac_site_file1=$ac_default_prefix/share/config.site
1735 ac_site_file2=$ac_default_prefix/etc/config.site
1737 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1739 test "x$ac_site_file" = xNONE && continue
1740 if test -r "$ac_site_file"; then
1741 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1742 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1743 sed 's/^/| /' "$ac_site_file" >&5
1748 if test -r "$cache_file"; then
1749 # Some versions of bash will fail to source /dev/null (special
1750 # files actually), so we avoid doing that.
1751 if test -f "$cache_file"; then
1752 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1753 $as_echo "$as_me: loading cache $cache_file" >&6;}
1755 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1756 *) . "./$cache_file";;
1760 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1761 $as_echo "$as_me: creating cache $cache_file" >&6;}
1765 # Check that the precious variables saved in the cache have kept the same
1767 ac_cache_corrupted=false
1768 for ac_var in $ac_precious_vars; do
1769 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1770 eval ac_new_set=\$ac_env_${ac_var}_set
1771 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1772 eval ac_new_val=\$ac_env_${ac_var}_value
1773 case $ac_old_set,$ac_new_set in
1775 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1776 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1777 ac_cache_corrupted=: ;;
1779 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1780 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1781 ac_cache_corrupted=: ;;
1784 if test "x$ac_old_val" != "x$ac_new_val"; then
1785 # differences in whitespace do not lead to failure.
1786 ac_old_val_w=`echo x $ac_old_val`
1787 ac_new_val_w=`echo x $ac_new_val`
1788 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1789 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1790 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1791 ac_cache_corrupted=:
1793 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1794 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1795 eval $ac_var=\$ac_old_val
1797 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1798 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1799 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1800 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1803 # Pass precious variables to config.status.
1804 if test "$ac_new_set" = set; then
1806 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1807 *) ac_arg=$ac_var=$ac_new_val ;;
1809 case " $ac_configure_args " in
1810 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1811 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1815 if $ac_cache_corrupted; then
1816 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1817 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1818 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1819 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1820 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1821 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1822 { (exit 1); exit 1; }; }
1842 ac_cpp='$CPP $CPPFLAGS'
1843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1850 # ------------------- option parsing -------------------------------
1859 # Check whether --enable-checkmem was given.
1860 if test "${enable_checkmem+set}" = set; then
1861 enableval=$enable_checkmem; CHECKMEM=true
1864 # Check whether --enable-debug was given.
1865 if test "${enable_debug+set}" = set; then
1866 enableval=$enable_debug; DEBUG=true
1869 # Check whether --enable-profiling was given.
1870 if test "${enable_profiling+set}" = set; then
1871 enableval=$enable_profiling; PROFILING=true
1874 # Check whether --enable-warnings was given.
1875 if test "${enable_warnings+set}" = set; then
1876 enableval=$enable_warnings; ENABLE_WARNINGS=true
1879 # Check whether --enable-optimizations was given.
1880 if test "${enable_optimizations+set}" = set; then
1881 enableval=$enable_optimizations; OPTIMIZE=true
1884 # Check whether --enable-lame was given.
1885 if test "${enable_lame+set}" = set; then
1886 enableval=$enable_lame; if test "x$enable_lame" = "xno";then
1895 VERSION=2009-08-12-1514
1897 # ------------------------------------------------------------------
1899 if test "x${srcdir}" != "x."; then
1900 echo "--srcdir is not supported"
1904 WARNINGS="-Wimplicit -Wreturn-type -Wno-write-strings"
1905 if test "x$ENABLE_WARNINGS" '!=' "x";then
1906 WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls -Wno-write-strings -D_FORTIFY_SOURCE=2 "
1909 if test "x$CHECKMEM" '!=' "x";then
1912 if test "x$PROFILING" '!=' "x";then
1915 if test "x$DEBUG" '!=' "x";then
1916 if test "x$PROFILING" = "x";then
1917 CFLAGS="$WARNINGS -O2 -g $CFLAGS"
1918 CXXFLAGS="$WARNINGS -O2 -g $CXXFLAGS"
1919 LDFLAGS="-g $LDFLAGS"
1921 CFLAGS="$WARNINGS -O2 -g -pg $CFLAGS"
1922 CXXFLAGS="$WARNINGS -O2 -g -pg $CXXFLAGS"
1923 LDFLAGS="-g -pg $LDFLAGS"
1925 else if test "x$OPTIMIZE" '!=' "x"; then
1926 CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
1927 CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
1929 CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
1930 CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
1934 CFLAGS="-fPIC $CFLAGS"
1935 CXXFLAGS="-fPIC $CFLAGS"
1938 #if test "x$OLDGCC" '!=' "x";then
1939 # #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
1940 # #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
1941 # CFLAGS="$CFLAGS -ansi -pendantic"
1942 # CXXFLAGS="$CXXFLAGS -ansi -pendantic"
1945 export PACKAGE VERSION CFLAGS CXXFLAGS
1949 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1950 if test -f "$ac_dir/install-sh"; then
1952 ac_install_sh="$ac_aux_dir/install-sh -c"
1954 elif test -f "$ac_dir/install.sh"; then
1956 ac_install_sh="$ac_aux_dir/install.sh -c"
1958 elif test -f "$ac_dir/shtool"; then
1960 ac_install_sh="$ac_aux_dir/shtool install -c"
1964 if test -z "$ac_aux_dir"; then
1965 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1966 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1967 { (exit 1); exit 1; }; }
1970 # These three variables are undocumented and unsupported,
1971 # and are intended to be withdrawn in a future Autoconf release.
1972 # They can cause serious problems if a builder's source tree is in a directory
1973 # whose full name contains unusual characters.
1974 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1975 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1976 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1979 # Make sure we can run config.sub.
1980 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1981 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1982 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1983 { (exit 1); exit 1; }; }
1985 { $as_echo "$as_me:$LINENO: checking build system type" >&5
1986 $as_echo_n "checking build system type... " >&6; }
1987 if test "${ac_cv_build+set}" = set; then
1988 $as_echo_n "(cached) " >&6
1990 ac_build_alias=$build_alias
1991 test "x$ac_build_alias" = x &&
1992 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1993 test "x$ac_build_alias" = x &&
1994 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1995 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1996 { (exit 1); exit 1; }; }
1997 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1998 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1999 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2000 { (exit 1); exit 1; }; }
2003 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2004 $as_echo "$ac_cv_build" >&6; }
2005 case $ac_cv_build in
2007 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2008 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2009 { (exit 1); exit 1; }; };;
2012 ac_save_IFS=$IFS; IFS='-'
2018 # Remember, the first character of IFS is used to create $*,
2019 # except with old shells:
2022 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2025 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2026 $as_echo_n "checking host system type... " >&6; }
2027 if test "${ac_cv_host+set}" = set; then
2028 $as_echo_n "(cached) " >&6
2030 if test "x$host_alias" = x; then
2031 ac_cv_host=$ac_cv_build
2033 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2034 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2035 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2036 { (exit 1); exit 1; }; }
2040 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2041 $as_echo "$ac_cv_host" >&6; }
2044 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2045 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2046 { (exit 1); exit 1; }; };;
2049 ac_save_IFS=$IFS; IFS='-'
2055 # Remember, the first character of IFS is used to create $*,
2056 # except with old shells:
2059 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2069 CXXFLAGS="$CXXFLAGS -fno-rtti"
2071 if test -d /opt/local/include && test -d /opt/local/lib; then
2072 CPPFLAGS="${CPPFLAGS} -I/opt/local/include"
2073 LDFLAGS="${LDFLAGS} -L/opt/local/lib"
2075 # Use fink packages if available.
2076 #if test -d /sw/include && test -d /sw/lib; then
2077 # CPPFLAGS="${CPPFLAGS} -I/sw/include"
2078 # LDFLAGS="${LDFLAGS} -L/sw/lib"
2086 ac_cpp='$CPP $CPPFLAGS'
2087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2090 if test -n "$ac_tool_prefix"; then
2091 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2092 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2093 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2094 $as_echo_n "checking for $ac_word... " >&6; }
2095 if test "${ac_cv_prog_CC+set}" = set; then
2096 $as_echo_n "(cached) " >&6
2098 if test -n "$CC"; then
2099 ac_cv_prog_CC="$CC" # Let the user override the test.
2101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2105 test -z "$as_dir" && as_dir=.
2106 for ac_exec_ext in '' $ac_executable_extensions; do
2107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2108 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2109 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2119 if test -n "$CC"; then
2120 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2121 $as_echo "$CC" >&6; }
2123 { $as_echo "$as_me:$LINENO: result: no" >&5
2124 $as_echo "no" >&6; }
2129 if test -z "$ac_cv_prog_CC"; then
2131 # Extract the first word of "gcc", so it can be a program name with args.
2132 set dummy gcc; ac_word=$2
2133 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2134 $as_echo_n "checking for $ac_word... " >&6; }
2135 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2136 $as_echo_n "(cached) " >&6
2138 if test -n "$ac_ct_CC"; then
2139 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2145 test -z "$as_dir" && as_dir=.
2146 for ac_exec_ext in '' $ac_executable_extensions; do
2147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2148 ac_cv_prog_ac_ct_CC="gcc"
2149 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2158 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2159 if test -n "$ac_ct_CC"; then
2160 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2161 $as_echo "$ac_ct_CC" >&6; }
2163 { $as_echo "$as_me:$LINENO: result: no" >&5
2164 $as_echo "no" >&6; }
2167 if test "x$ac_ct_CC" = x; then
2170 case $cross_compiling:$ac_tool_warned in
2172 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2173 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2174 ac_tool_warned=yes ;;
2182 if test -z "$CC"; then
2183 if test -n "$ac_tool_prefix"; then
2184 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2185 set dummy ${ac_tool_prefix}cc; ac_word=$2
2186 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2187 $as_echo_n "checking for $ac_word... " >&6; }
2188 if test "${ac_cv_prog_CC+set}" = set; then
2189 $as_echo_n "(cached) " >&6
2191 if test -n "$CC"; then
2192 ac_cv_prog_CC="$CC" # Let the user override the test.
2194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2198 test -z "$as_dir" && as_dir=.
2199 for ac_exec_ext in '' $ac_executable_extensions; do
2200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2201 ac_cv_prog_CC="${ac_tool_prefix}cc"
2202 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2212 if test -n "$CC"; then
2213 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2214 $as_echo "$CC" >&6; }
2216 { $as_echo "$as_me:$LINENO: result: no" >&5
2217 $as_echo "no" >&6; }
2223 if test -z "$CC"; then
2224 # Extract the first word of "cc", so it can be a program name with args.
2225 set dummy cc; ac_word=$2
2226 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2227 $as_echo_n "checking for $ac_word... " >&6; }
2228 if test "${ac_cv_prog_CC+set}" = set; then
2229 $as_echo_n "(cached) " >&6
2231 if test -n "$CC"; then
2232 ac_cv_prog_CC="$CC" # Let the user override the test.
2235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2239 test -z "$as_dir" && as_dir=.
2240 for ac_exec_ext in '' $ac_executable_extensions; do
2241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2242 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2243 ac_prog_rejected=yes
2247 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2254 if test $ac_prog_rejected = yes; then
2255 # We found a bogon in the path, so make sure we never use it.
2256 set dummy $ac_cv_prog_CC
2258 if test $# != 0; then
2259 # We chose a different compiler from the bogus one.
2260 # However, it has the same basename, so the bogon will be chosen
2261 # first if we set CC to just the basename; use the full file name.
2263 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2269 if test -n "$CC"; then
2270 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2271 $as_echo "$CC" >&6; }
2273 { $as_echo "$as_me:$LINENO: result: no" >&5
2274 $as_echo "no" >&6; }
2279 if test -z "$CC"; then
2280 if test -n "$ac_tool_prefix"; then
2281 for ac_prog in cl.exe
2283 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2284 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2285 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2286 $as_echo_n "checking for $ac_word... " >&6; }
2287 if test "${ac_cv_prog_CC+set}" = set; then
2288 $as_echo_n "(cached) " >&6
2290 if test -n "$CC"; then
2291 ac_cv_prog_CC="$CC" # Let the user override the test.
2293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2297 test -z "$as_dir" && as_dir=.
2298 for ac_exec_ext in '' $ac_executable_extensions; do
2299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2300 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2301 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2311 if test -n "$CC"; then
2312 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2313 $as_echo "$CC" >&6; }
2315 { $as_echo "$as_me:$LINENO: result: no" >&5
2316 $as_echo "no" >&6; }
2320 test -n "$CC" && break
2323 if test -z "$CC"; then
2325 for ac_prog in cl.exe
2327 # Extract the first word of "$ac_prog", so it can be a program name with args.
2328 set dummy $ac_prog; ac_word=$2
2329 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2330 $as_echo_n "checking for $ac_word... " >&6; }
2331 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2332 $as_echo_n "(cached) " >&6
2334 if test -n "$ac_ct_CC"; then
2335 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2341 test -z "$as_dir" && as_dir=.
2342 for ac_exec_ext in '' $ac_executable_extensions; do
2343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2344 ac_cv_prog_ac_ct_CC="$ac_prog"
2345 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2354 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2355 if test -n "$ac_ct_CC"; then
2356 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2357 $as_echo "$ac_ct_CC" >&6; }
2359 { $as_echo "$as_me:$LINENO: result: no" >&5
2360 $as_echo "no" >&6; }
2364 test -n "$ac_ct_CC" && break
2367 if test "x$ac_ct_CC" = x; then
2370 case $cross_compiling:$ac_tool_warned in
2372 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2373 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2374 ac_tool_warned=yes ;;
2383 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2384 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2385 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2386 See \`config.log' for more details." >&5
2387 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2388 See \`config.log' for more details." >&2;}
2389 { (exit 1); exit 1; }; }; }
2391 # Provide some information about the compiler.
2392 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2395 { (ac_try="$ac_compiler --version >&5"
2397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2398 *) ac_try_echo=$ac_try;;
2400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2401 $as_echo "$ac_try_echo") >&5
2402 (eval "$ac_compiler --version >&5") 2>&5
2404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); }
2406 { (ac_try="$ac_compiler -v >&5"
2408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2409 *) ac_try_echo=$ac_try;;
2411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2412 $as_echo "$ac_try_echo") >&5
2413 (eval "$ac_compiler -v >&5") 2>&5
2415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); }
2417 { (ac_try="$ac_compiler -V >&5"
2419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2420 *) ac_try_echo=$ac_try;;
2422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2423 $as_echo "$ac_try_echo") >&5
2424 (eval "$ac_compiler -V >&5") 2>&5
2426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427 (exit $ac_status); }
2429 cat >conftest.$ac_ext <<_ACEOF
2432 cat confdefs.h >>conftest.$ac_ext
2433 cat >>conftest.$ac_ext <<_ACEOF
2434 /* end confdefs.h. */
2444 ac_clean_files_save=$ac_clean_files
2445 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2446 # Try to create an executable without -o first, disregard a.out.
2447 # It will help us diagnose broken compilers, and finding out an intuition
2449 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2450 $as_echo_n "checking for C compiler default output file name... " >&6; }
2451 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2453 # The possible output files:
2454 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2457 for ac_file in $ac_files
2460 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2461 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2466 if { (ac_try="$ac_link_default"
2468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2469 *) ac_try_echo=$ac_try;;
2471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2472 $as_echo "$ac_try_echo") >&5
2473 (eval "$ac_link_default") 2>&5
2475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); }; then
2477 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2478 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2479 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2480 # so that the user can short-circuit this test for compilers unknown to
2482 for ac_file in $ac_files ''
2484 test -f "$ac_file" || continue
2486 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2489 # We found the default executable, but exeext='' is most
2493 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2495 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2497 # We set ac_cv_exeext here because the later test for it is not
2498 # safe: cross compilers may not add the suffix if given an `-o'
2499 # argument, so we may need to know it at that point already.
2500 # Even if this section looks crufty: it has the advantage of
2507 test "$ac_cv_exeext" = no && ac_cv_exeext=
2513 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2514 $as_echo "$ac_file" >&6; }
2515 if test -z "$ac_file"; then
2516 $as_echo "$as_me: failed program was:" >&5
2517 sed 's/^/| /' conftest.$ac_ext >&5
2519 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2520 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2521 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2522 See \`config.log' for more details." >&5
2523 $as_echo "$as_me: error: C compiler cannot create executables
2524 See \`config.log' for more details." >&2;}
2525 { (exit 77); exit 77; }; }; }
2528 ac_exeext=$ac_cv_exeext
2530 # Check that the compiler produces executables we can run. If not, either
2531 # the compiler is broken, or we cross compile.
2532 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2533 $as_echo_n "checking whether the C compiler works... " >&6; }
2534 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2535 # If not cross compiling, check that we can run a simple program.
2536 if test "$cross_compiling" != yes; then
2537 if { ac_try='./$ac_file'
2538 { (case "(($ac_try" in
2539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2540 *) ac_try_echo=$ac_try;;
2542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2543 $as_echo "$ac_try_echo") >&5
2544 (eval "$ac_try") 2>&5
2546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); }; }; then
2550 if test "$cross_compiling" = maybe; then
2553 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2554 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2555 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2556 If you meant to cross compile, use \`--host'.
2557 See \`config.log' for more details." >&5
2558 $as_echo "$as_me: error: cannot run C compiled programs.
2559 If you meant to cross compile, use \`--host'.
2560 See \`config.log' for more details." >&2;}
2561 { (exit 1); exit 1; }; }; }
2565 { $as_echo "$as_me:$LINENO: result: yes" >&5
2566 $as_echo "yes" >&6; }
2568 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2569 ac_clean_files=$ac_clean_files_save
2570 # Check that the compiler produces executables we can run. If not, either
2571 # the compiler is broken, or we cross compile.
2572 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2573 $as_echo_n "checking whether we are cross compiling... " >&6; }
2574 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2575 $as_echo "$cross_compiling" >&6; }
2577 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2578 $as_echo_n "checking for suffix of executables... " >&6; }
2579 if { (ac_try="$ac_link"
2581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2582 *) ac_try_echo=$ac_try;;
2584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2585 $as_echo "$ac_try_echo") >&5
2586 (eval "$ac_link") 2>&5
2588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589 (exit $ac_status); }; then
2590 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2591 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2592 # work properly (i.e., refer to `conftest.exe'), while it won't with
2594 for ac_file in conftest.exe conftest conftest.*; do
2595 test -f "$ac_file" || continue
2597 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2598 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2604 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2606 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2607 See \`config.log' for more details." >&5
2608 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2609 See \`config.log' for more details." >&2;}
2610 { (exit 1); exit 1; }; }; }
2613 rm -f conftest$ac_cv_exeext
2614 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2615 $as_echo "$ac_cv_exeext" >&6; }
2617 rm -f conftest.$ac_ext
2618 EXEEXT=$ac_cv_exeext
2620 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2621 $as_echo_n "checking for suffix of object files... " >&6; }
2622 if test "${ac_cv_objext+set}" = set; then
2623 $as_echo_n "(cached) " >&6
2625 cat >conftest.$ac_ext <<_ACEOF
2628 cat confdefs.h >>conftest.$ac_ext
2629 cat >>conftest.$ac_ext <<_ACEOF
2630 /* end confdefs.h. */
2640 rm -f conftest.o conftest.obj
2641 if { (ac_try="$ac_compile"
2643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2644 *) ac_try_echo=$ac_try;;
2646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2647 $as_echo "$ac_try_echo") >&5
2648 (eval "$ac_compile") 2>&5
2650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); }; then
2652 for ac_file in conftest.o conftest.obj conftest.*; do
2653 test -f "$ac_file" || continue;
2655 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2656 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2661 $as_echo "$as_me: failed program was:" >&5
2662 sed 's/^/| /' conftest.$ac_ext >&5
2664 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2665 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2666 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2667 See \`config.log' for more details." >&5
2668 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2669 See \`config.log' for more details." >&2;}
2670 { (exit 1); exit 1; }; }; }
2673 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2675 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2676 $as_echo "$ac_cv_objext" >&6; }
2677 OBJEXT=$ac_cv_objext
2679 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2680 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2681 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2682 $as_echo_n "(cached) " >&6
2684 cat >conftest.$ac_ext <<_ACEOF
2687 cat confdefs.h >>conftest.$ac_ext
2688 cat >>conftest.$ac_ext <<_ACEOF
2689 /* end confdefs.h. */
2702 rm -f conftest.$ac_objext
2703 if { (ac_try="$ac_compile"
2705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2706 *) ac_try_echo=$ac_try;;
2708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2709 $as_echo "$ac_try_echo") >&5
2710 (eval "$ac_compile") 2>conftest.er1
2712 grep -v '^ *+' conftest.er1 >conftest.err
2714 cat conftest.err >&5
2715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); } && {
2717 test -z "$ac_c_werror_flag" ||
2718 test ! -s conftest.err
2719 } && test -s conftest.$ac_objext; then
2722 $as_echo "$as_me: failed program was:" >&5
2723 sed 's/^/| /' conftest.$ac_ext >&5
2728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2729 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2732 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2733 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2734 if test $ac_compiler_gnu = yes; then
2739 ac_test_CFLAGS=${CFLAGS+set}
2740 ac_save_CFLAGS=$CFLAGS
2741 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2742 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2743 if test "${ac_cv_prog_cc_g+set}" = set; then
2744 $as_echo_n "(cached) " >&6
2746 ac_save_c_werror_flag=$ac_c_werror_flag
2747 ac_c_werror_flag=yes
2750 cat >conftest.$ac_ext <<_ACEOF
2753 cat confdefs.h >>conftest.$ac_ext
2754 cat >>conftest.$ac_ext <<_ACEOF
2755 /* end confdefs.h. */
2765 rm -f conftest.$ac_objext
2766 if { (ac_try="$ac_compile"
2768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2769 *) ac_try_echo=$ac_try;;
2771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2772 $as_echo "$ac_try_echo") >&5
2773 (eval "$ac_compile") 2>conftest.er1
2775 grep -v '^ *+' conftest.er1 >conftest.err
2777 cat conftest.err >&5
2778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); } && {
2780 test -z "$ac_c_werror_flag" ||
2781 test ! -s conftest.err
2782 } && test -s conftest.$ac_objext; then
2785 $as_echo "$as_me: failed program was:" >&5
2786 sed 's/^/| /' conftest.$ac_ext >&5
2789 cat >conftest.$ac_ext <<_ACEOF
2792 cat confdefs.h >>conftest.$ac_ext
2793 cat >>conftest.$ac_ext <<_ACEOF
2794 /* end confdefs.h. */
2804 rm -f conftest.$ac_objext
2805 if { (ac_try="$ac_compile"
2807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2808 *) ac_try_echo=$ac_try;;
2810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2811 $as_echo "$ac_try_echo") >&5
2812 (eval "$ac_compile") 2>conftest.er1
2814 grep -v '^ *+' conftest.er1 >conftest.err
2816 cat conftest.err >&5
2817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); } && {
2819 test -z "$ac_c_werror_flag" ||
2820 test ! -s conftest.err
2821 } && test -s conftest.$ac_objext; then
2824 $as_echo "$as_me: failed program was:" >&5
2825 sed 's/^/| /' conftest.$ac_ext >&5
2827 ac_c_werror_flag=$ac_save_c_werror_flag
2829 cat >conftest.$ac_ext <<_ACEOF
2832 cat confdefs.h >>conftest.$ac_ext
2833 cat >>conftest.$ac_ext <<_ACEOF
2834 /* end confdefs.h. */
2844 rm -f conftest.$ac_objext
2845 if { (ac_try="$ac_compile"
2847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2848 *) ac_try_echo=$ac_try;;
2850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2851 $as_echo "$ac_try_echo") >&5
2852 (eval "$ac_compile") 2>conftest.er1
2854 grep -v '^ *+' conftest.er1 >conftest.err
2856 cat conftest.err >&5
2857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); } && {
2859 test -z "$ac_c_werror_flag" ||
2860 test ! -s conftest.err
2861 } && test -s conftest.$ac_objext; then
2864 $as_echo "$as_me: failed program was:" >&5
2865 sed 's/^/| /' conftest.$ac_ext >&5
2870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2877 ac_c_werror_flag=$ac_save_c_werror_flag
2879 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2880 $as_echo "$ac_cv_prog_cc_g" >&6; }
2881 if test "$ac_test_CFLAGS" = set; then
2882 CFLAGS=$ac_save_CFLAGS
2883 elif test $ac_cv_prog_cc_g = yes; then
2884 if test "$GCC" = yes; then
2890 if test "$GCC" = yes; then
2896 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2897 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2898 if test "${ac_cv_prog_cc_c89+set}" = set; then
2899 $as_echo_n "(cached) " >&6
2901 ac_cv_prog_cc_c89=no
2903 cat >conftest.$ac_ext <<_ACEOF
2906 cat confdefs.h >>conftest.$ac_ext
2907 cat >>conftest.$ac_ext <<_ACEOF
2908 /* end confdefs.h. */
2911 #include <sys/types.h>
2912 #include <sys/stat.h>
2913 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2914 struct buf { int x; };
2915 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2916 static char *e (p, i)
2922 static char *f (char * (*g) (char **, int), char **p, ...)
2927 s = g (p, va_arg (v,int));
2932 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2933 function prototypes and stuff, but not '\xHH' hex character constants.
2934 These don't provoke an error unfortunately, instead are silently treated
2935 as 'x'. The following induces an error, until -std is added to get
2936 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2937 array size at least. It's necessary to write '\x00'==0 to get something
2938 that's true only with -std. */
2939 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2941 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2942 inside strings and character constants. */
2944 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2946 int test (int i, double x);
2947 struct s1 {int (*f) (int a);};
2948 struct s2 {int (*f) (double a);};
2949 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2955 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2960 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2961 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2963 CC="$ac_save_CC $ac_arg"
2964 rm -f conftest.$ac_objext
2965 if { (ac_try="$ac_compile"
2967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2968 *) ac_try_echo=$ac_try;;
2970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2971 $as_echo "$ac_try_echo") >&5
2972 (eval "$ac_compile") 2>conftest.er1
2974 grep -v '^ *+' conftest.er1 >conftest.err
2976 cat conftest.err >&5
2977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); } && {
2979 test -z "$ac_c_werror_flag" ||
2980 test ! -s conftest.err
2981 } && test -s conftest.$ac_objext; then
2982 ac_cv_prog_cc_c89=$ac_arg
2984 $as_echo "$as_me: failed program was:" >&5
2985 sed 's/^/| /' conftest.$ac_ext >&5
2990 rm -f core conftest.err conftest.$ac_objext
2991 test "x$ac_cv_prog_cc_c89" != "xno" && break
2993 rm -f conftest.$ac_ext
2998 case "x$ac_cv_prog_cc_c89" in
3000 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3001 $as_echo "none needed" >&6; } ;;
3003 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3004 $as_echo "unsupported" >&6; } ;;
3006 CC="$CC $ac_cv_prog_cc_c89"
3007 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3008 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3013 ac_cpp='$CPP $CPPFLAGS'
3014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3019 ac_cpp='$CXXCPP $CPPFLAGS'
3020 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3021 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3022 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3023 if test -z "$CXX"; then
3024 if test -n "$CCC"; then
3027 if test -n "$ac_tool_prefix"; then
3028 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3030 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3031 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3032 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3033 $as_echo_n "checking for $ac_word... " >&6; }
3034 if test "${ac_cv_prog_CXX+set}" = set; then
3035 $as_echo_n "(cached) " >&6
3037 if test -n "$CXX"; then
3038 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3044 test -z "$as_dir" && as_dir=.
3045 for ac_exec_ext in '' $ac_executable_extensions; do
3046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3047 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3048 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3058 if test -n "$CXX"; then
3059 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
3060 $as_echo "$CXX" >&6; }
3062 { $as_echo "$as_me:$LINENO: result: no" >&5
3063 $as_echo "no" >&6; }
3067 test -n "$CXX" && break
3070 if test -z "$CXX"; then
3072 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3074 # Extract the first word of "$ac_prog", so it can be a program name with args.
3075 set dummy $ac_prog; ac_word=$2
3076 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3077 $as_echo_n "checking for $ac_word... " >&6; }
3078 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3079 $as_echo_n "(cached) " >&6
3081 if test -n "$ac_ct_CXX"; then
3082 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3088 test -z "$as_dir" && as_dir=.
3089 for ac_exec_ext in '' $ac_executable_extensions; do
3090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3091 ac_cv_prog_ac_ct_CXX="$ac_prog"
3092 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3101 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3102 if test -n "$ac_ct_CXX"; then
3103 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3104 $as_echo "$ac_ct_CXX" >&6; }
3106 { $as_echo "$as_me:$LINENO: result: no" >&5
3107 $as_echo "no" >&6; }
3111 test -n "$ac_ct_CXX" && break
3114 if test "x$ac_ct_CXX" = x; then
3117 case $cross_compiling:$ac_tool_warned in
3119 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3120 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3121 ac_tool_warned=yes ;;
3129 # Provide some information about the compiler.
3130 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3133 { (ac_try="$ac_compiler --version >&5"
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3139 $as_echo "$ac_try_echo") >&5
3140 (eval "$ac_compiler --version >&5") 2>&5
3142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); }
3144 { (ac_try="$ac_compiler -v >&5"
3146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147 *) ac_try_echo=$ac_try;;
3149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3150 $as_echo "$ac_try_echo") >&5
3151 (eval "$ac_compiler -v >&5") 2>&5
3153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); }
3155 { (ac_try="$ac_compiler -V >&5"
3157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158 *) ac_try_echo=$ac_try;;
3160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3161 $as_echo "$ac_try_echo") >&5
3162 (eval "$ac_compiler -V >&5") 2>&5
3164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); }
3167 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3168 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3169 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3170 $as_echo_n "(cached) " >&6
3172 cat >conftest.$ac_ext <<_ACEOF
3175 cat confdefs.h >>conftest.$ac_ext
3176 cat >>conftest.$ac_ext <<_ACEOF
3177 /* end confdefs.h. */
3190 rm -f conftest.$ac_objext
3191 if { (ac_try="$ac_compile"
3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194 *) ac_try_echo=$ac_try;;
3196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3197 $as_echo "$ac_try_echo") >&5
3198 (eval "$ac_compile") 2>conftest.er1
3200 grep -v '^ *+' conftest.er1 >conftest.err
3202 cat conftest.err >&5
3203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); } && {
3205 test -z "$ac_cxx_werror_flag" ||
3206 test ! -s conftest.err
3207 } && test -s conftest.$ac_objext; then
3210 $as_echo "$as_me: failed program was:" >&5
3211 sed 's/^/| /' conftest.$ac_ext >&5
3216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3217 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3220 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3221 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3222 if test $ac_compiler_gnu = yes; then
3227 ac_test_CXXFLAGS=${CXXFLAGS+set}
3228 ac_save_CXXFLAGS=$CXXFLAGS
3229 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3230 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3231 if test "${ac_cv_prog_cxx_g+set}" = set; then
3232 $as_echo_n "(cached) " >&6
3234 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3235 ac_cxx_werror_flag=yes
3238 cat >conftest.$ac_ext <<_ACEOF
3241 cat confdefs.h >>conftest.$ac_ext
3242 cat >>conftest.$ac_ext <<_ACEOF
3243 /* end confdefs.h. */
3253 rm -f conftest.$ac_objext
3254 if { (ac_try="$ac_compile"
3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257 *) ac_try_echo=$ac_try;;
3259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3260 $as_echo "$ac_try_echo") >&5
3261 (eval "$ac_compile") 2>conftest.er1
3263 grep -v '^ *+' conftest.er1 >conftest.err
3265 cat conftest.err >&5
3266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267 (exit $ac_status); } && {
3268 test -z "$ac_cxx_werror_flag" ||
3269 test ! -s conftest.err
3270 } && test -s conftest.$ac_objext; then
3271 ac_cv_prog_cxx_g=yes
3273 $as_echo "$as_me: failed program was:" >&5
3274 sed 's/^/| /' conftest.$ac_ext >&5
3277 cat >conftest.$ac_ext <<_ACEOF
3280 cat confdefs.h >>conftest.$ac_ext
3281 cat >>conftest.$ac_ext <<_ACEOF
3282 /* end confdefs.h. */
3292 rm -f conftest.$ac_objext
3293 if { (ac_try="$ac_compile"
3295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3296 *) ac_try_echo=$ac_try;;
3298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3299 $as_echo "$ac_try_echo") >&5
3300 (eval "$ac_compile") 2>conftest.er1
3302 grep -v '^ *+' conftest.er1 >conftest.err
3304 cat conftest.err >&5
3305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306 (exit $ac_status); } && {
3307 test -z "$ac_cxx_werror_flag" ||
3308 test ! -s conftest.err
3309 } && test -s conftest.$ac_objext; then
3312 $as_echo "$as_me: failed program was:" >&5
3313 sed 's/^/| /' conftest.$ac_ext >&5
3315 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3317 cat >conftest.$ac_ext <<_ACEOF
3320 cat confdefs.h >>conftest.$ac_ext
3321 cat >>conftest.$ac_ext <<_ACEOF
3322 /* end confdefs.h. */
3332 rm -f conftest.$ac_objext
3333 if { (ac_try="$ac_compile"
3335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3336 *) ac_try_echo=$ac_try;;
3338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3339 $as_echo "$ac_try_echo") >&5
3340 (eval "$ac_compile") 2>conftest.er1
3342 grep -v '^ *+' conftest.er1 >conftest.err
3344 cat conftest.err >&5
3345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); } && {
3347 test -z "$ac_cxx_werror_flag" ||
3348 test ! -s conftest.err
3349 } && test -s conftest.$ac_objext; then
3350 ac_cv_prog_cxx_g=yes
3352 $as_echo "$as_me: failed program was:" >&5
3353 sed 's/^/| /' conftest.$ac_ext >&5
3358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3365 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3367 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3368 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3369 if test "$ac_test_CXXFLAGS" = set; then
3370 CXXFLAGS=$ac_save_CXXFLAGS
3371 elif test $ac_cv_prog_cxx_g = yes; then
3372 if test "$GXX" = yes; then
3378 if test "$GXX" = yes; then
3385 ac_cpp='$CPP $CPPFLAGS'
3386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3393 { $as_echo "$as_me:$LINENO: checking whether gcc supports lazy variable declaration" >&5
3394 $as_echo_n "checking whether gcc supports lazy variable declaration... " >&6; }
3396 cat > conftest.c << EOF
3400 int main (int argc, char*argv)
3410 testprog_link='$CC $CPPFLAGS $CFLAGS conftest.c -o conftest${ac_exeext}'
3411 if { (eval echo gcc.2.95.m4:19: \"$testprog_link\") 1>&5; (eval $testprog_link) 2>&5; } && test -s conftest${ac_exeext}; then
3412 { $as_echo "$as_me:$LINENO: result: yes" >&5
3413 $as_echo "yes" >&6; }
3417 echo "configure: failed program was:" >&5
3419 { $as_echo "$as_me:$LINENO: result: no" >&5
3420 $as_echo "no" >&6; }
3425 if test "x$GCC_IS_OK" '=' "x";then
3426 echo "***************************************************"
3427 echo "* Your gcc is too old to compile this!"
3429 echo "* The last version compileable by this compiler is "
3430 echo "* swftools 0.7.0, which you can download from "
3431 echo "* http://www.swftools.org/swftools-0.7.0.tar.gz "
3433 echo "* Newer versions require at least gcc 3.0.0 "
3434 echo "***************************************************"
3438 if test "x$CHECKMEM" '!=' "x";then
3442 #unset ac_cv_prog_CC
3443 #unset ac_cv_prog_CXX
3448 ac_cpp='$CPP $CPPFLAGS'
3449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3452 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3453 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3454 # On Suns, sometimes $CPP names a directory.
3455 if test -n "$CPP" && test -d "$CPP"; then
3458 if test -z "$CPP"; then
3459 if test "${ac_cv_prog_CPP+set}" = set; then
3460 $as_echo_n "(cached) " >&6
3462 # Double quotes because CPP needs to be expanded
3463 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3466 for ac_c_preproc_warn_flag in '' yes
3468 # Use a header file that comes with gcc, so configuring glibc
3469 # with a fresh cross-compiler works.
3470 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3471 # <limits.h> exists even on freestanding compilers.
3472 # On the NeXT, cc -E runs the code through the compiler's parser,
3473 # not just through cpp. "Syntax error" is here to catch this case.
3474 cat >conftest.$ac_ext <<_ACEOF
3477 cat confdefs.h >>conftest.$ac_ext
3478 cat >>conftest.$ac_ext <<_ACEOF
3479 /* end confdefs.h. */
3481 # include <limits.h>
3483 # include <assert.h>
3487 if { (ac_try="$ac_cpp conftest.$ac_ext"
3489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3490 *) ac_try_echo=$ac_try;;
3492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3493 $as_echo "$ac_try_echo") >&5
3494 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3496 grep -v '^ *+' conftest.er1 >conftest.err
3498 cat conftest.err >&5
3499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); } >/dev/null && {
3501 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3502 test ! -s conftest.err
3506 $as_echo "$as_me: failed program was:" >&5
3507 sed 's/^/| /' conftest.$ac_ext >&5
3509 # Broken: fails on valid input.
3513 rm -f conftest.err conftest.$ac_ext
3515 # OK, works on sane cases. Now check whether nonexistent headers
3516 # can be detected and how.
3517 cat >conftest.$ac_ext <<_ACEOF
3520 cat confdefs.h >>conftest.$ac_ext
3521 cat >>conftest.$ac_ext <<_ACEOF
3522 /* end confdefs.h. */
3523 #include <ac_nonexistent.h>
3525 if { (ac_try="$ac_cpp conftest.$ac_ext"
3527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3528 *) ac_try_echo=$ac_try;;
3530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3531 $as_echo "$ac_try_echo") >&5
3532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3534 grep -v '^ *+' conftest.er1 >conftest.err
3536 cat conftest.err >&5
3537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); } >/dev/null && {
3539 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3540 test ! -s conftest.err
3542 # Broken: success on invalid input.
3545 $as_echo "$as_me: failed program was:" >&5
3546 sed 's/^/| /' conftest.$ac_ext >&5
3548 # Passes both tests.
3553 rm -f conftest.err conftest.$ac_ext
3556 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3557 rm -f conftest.err conftest.$ac_ext
3558 if $ac_preproc_ok; then
3570 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3571 $as_echo "$CPP" >&6; }
3573 for ac_c_preproc_warn_flag in '' yes
3575 # Use a header file that comes with gcc, so configuring glibc
3576 # with a fresh cross-compiler works.
3577 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3578 # <limits.h> exists even on freestanding compilers.
3579 # On the NeXT, cc -E runs the code through the compiler's parser,
3580 # not just through cpp. "Syntax error" is here to catch this case.
3581 cat >conftest.$ac_ext <<_ACEOF
3584 cat confdefs.h >>conftest.$ac_ext
3585 cat >>conftest.$ac_ext <<_ACEOF
3586 /* end confdefs.h. */
3588 # include <limits.h>
3590 # include <assert.h>
3594 if { (ac_try="$ac_cpp conftest.$ac_ext"
3596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3597 *) ac_try_echo=$ac_try;;
3599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3600 $as_echo "$ac_try_echo") >&5
3601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3603 grep -v '^ *+' conftest.er1 >conftest.err
3605 cat conftest.err >&5
3606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); } >/dev/null && {
3608 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3609 test ! -s conftest.err
3613 $as_echo "$as_me: failed program was:" >&5
3614 sed 's/^/| /' conftest.$ac_ext >&5
3616 # Broken: fails on valid input.
3620 rm -f conftest.err conftest.$ac_ext
3622 # OK, works on sane cases. Now check whether nonexistent headers
3623 # can be detected and how.
3624 cat >conftest.$ac_ext <<_ACEOF
3627 cat confdefs.h >>conftest.$ac_ext
3628 cat >>conftest.$ac_ext <<_ACEOF
3629 /* end confdefs.h. */
3630 #include <ac_nonexistent.h>
3632 if { (ac_try="$ac_cpp conftest.$ac_ext"
3634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3635 *) ac_try_echo=$ac_try;;
3637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3638 $as_echo "$ac_try_echo") >&5
3639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3641 grep -v '^ *+' conftest.er1 >conftest.err
3643 cat conftest.err >&5
3644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); } >/dev/null && {
3646 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3647 test ! -s conftest.err
3649 # Broken: success on invalid input.
3652 $as_echo "$as_me: failed program was:" >&5
3653 sed 's/^/| /' conftest.$ac_ext >&5
3655 # Passes both tests.
3660 rm -f conftest.err conftest.$ac_ext
3663 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3664 rm -f conftest.err conftest.$ac_ext
3665 if $ac_preproc_ok; then
3668 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3669 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3670 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3671 See \`config.log' for more details." >&5
3672 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3673 See \`config.log' for more details." >&2;}
3674 { (exit 1); exit 1; }; }; }
3678 ac_cpp='$CPP $CPPFLAGS'
3679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3684 if test -n "$ac_tool_prefix"; then
3685 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3686 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3687 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3688 $as_echo_n "checking for $ac_word... " >&6; }
3689 if test "${ac_cv_prog_RANLIB+set}" = set; then
3690 $as_echo_n "(cached) " >&6
3692 if test -n "$RANLIB"; then
3693 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3699 test -z "$as_dir" && as_dir=.
3700 for ac_exec_ext in '' $ac_executable_extensions; do
3701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3702 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3703 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3712 RANLIB=$ac_cv_prog_RANLIB
3713 if test -n "$RANLIB"; then
3714 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3715 $as_echo "$RANLIB" >&6; }
3717 { $as_echo "$as_me:$LINENO: result: no" >&5
3718 $as_echo "no" >&6; }
3723 if test -z "$ac_cv_prog_RANLIB"; then
3724 ac_ct_RANLIB=$RANLIB
3725 # Extract the first word of "ranlib", so it can be a program name with args.
3726 set dummy ranlib; ac_word=$2
3727 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3728 $as_echo_n "checking for $ac_word... " >&6; }
3729 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3730 $as_echo_n "(cached) " >&6
3732 if test -n "$ac_ct_RANLIB"; then
3733 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3739 test -z "$as_dir" && as_dir=.
3740 for ac_exec_ext in '' $ac_executable_extensions; do
3741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3742 ac_cv_prog_ac_ct_RANLIB="ranlib"
3743 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3752 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3753 if test -n "$ac_ct_RANLIB"; then
3754 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3755 $as_echo "$ac_ct_RANLIB" >&6; }
3757 { $as_echo "$as_me:$LINENO: result: no" >&5
3758 $as_echo "no" >&6; }
3761 if test "x$ac_ct_RANLIB" = x; then
3764 case $cross_compiling:$ac_tool_warned in
3766 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3767 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3768 ac_tool_warned=yes ;;
3770 RANLIB=$ac_ct_RANLIB
3773 RANLIB="$ac_cv_prog_RANLIB"
3776 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3777 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3779 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3780 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3781 $as_echo_n "(cached) " >&6
3783 cat >conftest.make <<\_ACEOF
3786 @echo '@@@%%%=$(MAKE)=@@@%%%'
3788 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3789 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3791 eval ac_cv_prog_make_${ac_make}_set=yes;;
3793 eval ac_cv_prog_make_${ac_make}_set=no;;
3797 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3798 { $as_echo "$as_me:$LINENO: result: yes" >&5
3799 $as_echo "yes" >&6; }
3802 { $as_echo "$as_me:$LINENO: result: no" >&5
3803 $as_echo "no" >&6; }
3804 SET_MAKE="MAKE=${MAKE-make}"
3807 # Find a good install program. We prefer a C program (faster),
3808 # so one script is as good as another. But avoid the broken or
3809 # incompatible versions:
3810 # SysV /etc/install, /usr/sbin/install
3811 # SunOS /usr/etc/install
3812 # IRIX /sbin/install
3814 # AmigaOS /C/install, which installs bootblocks on floppy discs
3815 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3816 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3817 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3818 # OS/2's system install, which has a completely different semantic
3819 # ./install, which can be erroneously created by make from ./install.sh.
3820 # Reject install programs that cannot install multiple files.
3821 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3822 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3823 if test -z "$INSTALL"; then
3824 if test "${ac_cv_path_install+set}" = set; then
3825 $as_echo_n "(cached) " >&6
3827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3831 test -z "$as_dir" && as_dir=.
3832 # Account for people who put trailing slashes in PATH elements.
3834 ./ | .// | /cC/* | \
3835 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3836 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3839 # OSF1 and SCO ODT 3.0 have their own names for install.
3840 # Don't use installbsd from OSF since it installs stuff as root
3842 for ac_prog in ginstall scoinst install; do
3843 for ac_exec_ext in '' $ac_executable_extensions; do
3844 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3845 if test $ac_prog = install &&
3846 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3847 # AIX install. It has an incompatible calling convention.
3849 elif test $ac_prog = install &&
3850 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3851 # program-specific install script used by HP pwplus--don't use.
3854 rm -rf conftest.one conftest.two conftest.dir
3855 echo one > conftest.one
3856 echo two > conftest.two
3858 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3859 test -s conftest.one && test -s conftest.two &&
3860 test -s conftest.dir/conftest.one &&
3861 test -s conftest.dir/conftest.two
3863 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3876 rm -rf conftest.one conftest.two conftest.dir
3879 if test "${ac_cv_path_install+set}" = set; then
3880 INSTALL=$ac_cv_path_install
3882 # As a last resort, use the slow shell script. Don't cache a
3883 # value for INSTALL within a source directory, because that will
3884 # break other packages using the cache if that directory is
3885 # removed, or if the value is a relative name.
3886 INSTALL=$ac_install_sh
3889 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3890 $as_echo "$INSTALL" >&6; }
3892 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3893 # It thinks the first close brace ends the variable substitution.
3894 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3896 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3898 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3900 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3901 $as_echo_n "checking whether ln -s works... " >&6; }
3903 if test "$LN_S" = "ln -s"; then
3904 { $as_echo "$as_me:$LINENO: result: yes" >&5
3905 $as_echo "yes" >&6; }
3907 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3908 $as_echo "no, using $LN_S" >&6; }
3911 for ac_prog in gzip uncompress compress
3913 # Extract the first word of "$ac_prog", so it can be a program name with args.
3914 set dummy $ac_prog; ac_word=$2
3915 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3916 $as_echo_n "checking for $ac_word... " >&6; }
3917 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then
3918 $as_echo_n "(cached) " >&6
3920 if test -n "$UNCOMPRESS"; then
3921 ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
3923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3927 test -z "$as_dir" && as_dir=.
3928 for ac_exec_ext in '' $ac_executable_extensions; do
3929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3930 ac_cv_prog_UNCOMPRESS="$ac_prog"
3931 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3940 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
3941 if test -n "$UNCOMPRESS"; then
3942 { $as_echo "$as_me:$LINENO: result: $UNCOMPRESS" >&5
3943 $as_echo "$UNCOMPRESS" >&6; }
3945 { $as_echo "$as_me:$LINENO: result: no" >&5
3946 $as_echo "no" >&6; }
3950 test -n "$UNCOMPRESS" && break
3961 if test "x$EXEEXT" = "x.exe";then
3970 { $as_echo "$as_me:$LINENO: checking host system type" >&5
3971 $as_echo_n "checking host system type... " >&6; }
3972 if test "${ac_cv_host+set}" = set; then
3973 $as_echo_n "(cached) " >&6
3975 if test "x$host_alias" = x; then
3976 ac_cv_host=$ac_cv_build
3978 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3979 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3980 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3981 { (exit 1); exit 1; }; }
3985 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3986 $as_echo "$ac_cv_host" >&6; }
3989 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3990 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
3991 { (exit 1); exit 1; }; };;
3994 ac_save_IFS=$IFS; IFS='-'
4000 # Remember, the first character of IFS is used to create $*,
4001 # except with old shells:
4004 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4009 { $as_echo "$as_me:$LINENO: checking for target system" >&5
4010 $as_echo_n "checking for target system... " >&6; }
4014 *cygwin* ) CYGWIN=yes;;
4015 *mingw* ) MINGW=yes;;
4019 if test "x$MINGW" = "xyes"; then
4020 #fix for the debian distribution of mingw
4021 if test -x "/usr/i586-mingw32msvc/bin/ar";then
4022 AR="/usr/i586-mingw32msvc/bin/ar"
4024 if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
4025 RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
4027 #fix for the gentoo distribution of mingw
4028 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
4029 AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
4031 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
4032 RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
4034 if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
4035 STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
4041 if test "x${CYGWIN}" = "xyes"; then
4043 cat >>confdefs.h <<\_ACEOF
4047 { $as_echo "$as_me:$LINENO: result: cygwin" >&5
4048 $as_echo "cygwin" >&6; }
4050 if test "x${MINGW}" = "xyes"; then
4052 cat >>confdefs.h <<\_ACEOF
4058 cat >>confdefs.h <<\_ACEOF
4062 LIBS="$LIBS -lws2_32 -lgdi32"
4063 { $as_echo "$as_me:$LINENO: result: mingw" >&5
4064 $as_echo "mingw" >&6; }
4069 cat >>confdefs.h <<\_ACEOF
4073 { $as_echo "$as_me:$LINENO: result: " >&5
4080 if test "x${MINGW}" != "xyes"; then
4083 cat >>confdefs.h <<\_ACEOF
4096 # The following tries to make use of includes and libraries in
4097 # /usr/local, too. Notice: A -I/usr/local/include might break
4098 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
4099 # especially on systems which link /usr/local to /usr, so it has yet
4100 # to be seen how useful this is.
4101 if test -d /usr/local/lib; then
4102 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4104 if test -d /usr/local/include; then
4105 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
4106 # CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4109 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
4110 # if the user has a special prefix (like /opt), there might also be $prefix/lib
4111 # and $prefix/include, which should be included in our search paths for libraries
4113 LDFLAGS="$LDFLAGS -L${libdir}"
4114 CPPFLAGS="$CPPFLAGS -I${includedir}"
4115 # TODO- test whether gcc still works after this
4119 #LDFLAGS "-L/sw/lib" ; CPPFLAGS "-I/sw/include -I/sw/include/lame"
4122 # this must be done after (I believe) AC_PROG_MAKE_SET
4123 if test "x$DEBUG" '!=' "x" -o "x$STRIP" = "x";then
4124 if test "$MACOSX";then
4127 STRIP="@echo debug enabled, not stripping "
4135 { $as_echo "$as_me:$LINENO: checking for sin in -lm" >&5
4136 $as_echo_n "checking for sin in -lm... " >&6; }
4137 if test "${ac_cv_lib_m_sin+set}" = set; then
4138 $as_echo_n "(cached) " >&6
4140 ac_check_lib_save_LIBS=$LIBS
4142 cat >conftest.$ac_ext <<_ACEOF
4145 cat confdefs.h >>conftest.$ac_ext
4146 cat >>conftest.$ac_ext <<_ACEOF
4147 /* end confdefs.h. */
4149 /* Override any GCC internal prototype to avoid an error.
4150 Use char because int might match the return type of a GCC
4151 builtin and then its argument prototype would still apply. */
4164 rm -f conftest.$ac_objext conftest$ac_exeext
4165 if { (ac_try="$ac_link"
4167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4168 *) ac_try_echo=$ac_try;;
4170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4171 $as_echo "$ac_try_echo") >&5
4172 (eval "$ac_link") 2>conftest.er1
4174 grep -v '^ *+' conftest.er1 >conftest.err
4176 cat conftest.err >&5
4177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); } && {
4179 test -z "$ac_c_werror_flag" ||
4180 test ! -s conftest.err
4181 } && test -s conftest$ac_exeext && {
4182 test "$cross_compiling" = yes ||
4183 $as_test_x conftest$ac_exeext
4187 $as_echo "$as_me: failed program was:" >&5
4188 sed 's/^/| /' conftest.$ac_ext >&5
4193 rm -rf conftest.dSYM
4194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4195 conftest$ac_exeext conftest.$ac_ext
4196 LIBS=$ac_check_lib_save_LIBS
4198 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
4199 $as_echo "$ac_cv_lib_m_sin" >&6; }
4200 if test "x$ac_cv_lib_m_sin" = x""yes; then
4201 cat >>confdefs.h <<_ACEOF
4208 echo "Error: Math library not found.";
4214 { $as_echo "$as_me:$LINENO: checking for deflate in -lz" >&5
4215 $as_echo_n "checking for deflate in -lz... " >&6; }
4216 if test "${ac_cv_lib_z_deflate+set}" = set; then
4217 $as_echo_n "(cached) " >&6
4219 ac_check_lib_save_LIBS=$LIBS
4221 cat >conftest.$ac_ext <<_ACEOF
4224 cat confdefs.h >>conftest.$ac_ext
4225 cat >>conftest.$ac_ext <<_ACEOF
4226 /* end confdefs.h. */
4228 /* Override any GCC internal prototype to avoid an error.
4229 Use char because int might match the return type of a GCC
4230 builtin and then its argument prototype would still apply. */
4243 rm -f conftest.$ac_objext conftest$ac_exeext
4244 if { (ac_try="$ac_link"
4246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4247 *) ac_try_echo=$ac_try;;
4249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4250 $as_echo "$ac_try_echo") >&5
4251 (eval "$ac_link") 2>conftest.er1
4253 grep -v '^ *+' conftest.er1 >conftest.err
4255 cat conftest.err >&5
4256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257 (exit $ac_status); } && {
4258 test -z "$ac_c_werror_flag" ||
4259 test ! -s conftest.err
4260 } && test -s conftest$ac_exeext && {
4261 test "$cross_compiling" = yes ||
4262 $as_test_x conftest$ac_exeext
4264 ac_cv_lib_z_deflate=yes
4266 $as_echo "$as_me: failed program was:" >&5
4267 sed 's/^/| /' conftest.$ac_ext >&5
4269 ac_cv_lib_z_deflate=no
4272 rm -rf conftest.dSYM
4273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4274 conftest$ac_exeext conftest.$ac_ext
4275 LIBS=$ac_check_lib_save_LIBS
4277 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
4278 $as_echo "$ac_cv_lib_z_deflate" >&6; }
4279 if test "x$ac_cv_lib_z_deflate" = x""yes; then
4280 cat >>confdefs.h <<_ACEOF
4291 if test "x$ZLIBMISSING" = "xtrue";then
4294 echo "You need zlib to compile swftools"
4300 { $as_echo "$as_me:$LINENO: checking for PDF_open_file in -lpdf" >&5
4301 $as_echo_n "checking for PDF_open_file in -lpdf... " >&6; }
4302 if test "${ac_cv_lib_pdf_PDF_open_file+set}" = set; then
4303 $as_echo_n "(cached) " >&6
4305 ac_check_lib_save_LIBS=$LIBS
4307 cat >conftest.$ac_ext <<_ACEOF
4310 cat confdefs.h >>conftest.$ac_ext
4311 cat >>conftest.$ac_ext <<_ACEOF
4312 /* end confdefs.h. */
4314 /* Override any GCC internal prototype to avoid an error.
4315 Use char because int might match the return type of a GCC
4316 builtin and then its argument prototype would still apply. */
4320 char PDF_open_file ();
4324 return PDF_open_file ();
4329 rm -f conftest.$ac_objext conftest$ac_exeext
4330 if { (ac_try="$ac_link"
4332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4333 *) ac_try_echo=$ac_try;;
4335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4336 $as_echo "$ac_try_echo") >&5
4337 (eval "$ac_link") 2>conftest.er1
4339 grep -v '^ *+' conftest.er1 >conftest.err
4341 cat conftest.err >&5
4342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); } && {
4344 test -z "$ac_c_werror_flag" ||
4345 test ! -s conftest.err
4346 } && test -s conftest$ac_exeext && {
4347 test "$cross_compiling" = yes ||
4348 $as_test_x conftest$ac_exeext
4350 ac_cv_lib_pdf_PDF_open_file=yes
4352 $as_echo "$as_me: failed program was:" >&5
4353 sed 's/^/| /' conftest.$ac_ext >&5
4355 ac_cv_lib_pdf_PDF_open_file=no
4358 rm -rf conftest.dSYM
4359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4360 conftest$ac_exeext conftest.$ac_ext
4361 LIBS=$ac_check_lib_save_LIBS
4363 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pdf_PDF_open_file" >&5
4364 $as_echo "$ac_cv_lib_pdf_PDF_open_file" >&6; }
4365 if test "x$ac_cv_lib_pdf_PDF_open_file" = x""yes; then
4366 cat >>confdefs.h <<_ACEOF
4367 #define HAVE_LIBPDF 1
4377 { $as_echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -ljpeg" >&5
4378 $as_echo_n "checking for jpeg_write_raw_data in -ljpeg... " >&6; }
4379 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then
4380 $as_echo_n "(cached) " >&6
4382 ac_check_lib_save_LIBS=$LIBS
4384 cat >conftest.$ac_ext <<_ACEOF
4387 cat confdefs.h >>conftest.$ac_ext
4388 cat >>conftest.$ac_ext <<_ACEOF
4389 /* end confdefs.h. */
4391 /* Override any GCC internal prototype to avoid an error.
4392 Use char because int might match the return type of a GCC
4393 builtin and then its argument prototype would still apply. */
4397 char jpeg_write_raw_data ();
4401 return jpeg_write_raw_data ();
4406 rm -f conftest.$ac_objext conftest$ac_exeext
4407 if { (ac_try="$ac_link"
4409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4410 *) ac_try_echo=$ac_try;;
4412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4413 $as_echo "$ac_try_echo") >&5
4414 (eval "$ac_link") 2>conftest.er1
4416 grep -v '^ *+' conftest.er1 >conftest.err
4418 cat conftest.err >&5
4419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420 (exit $ac_status); } && {
4421 test -z "$ac_c_werror_flag" ||
4422 test ! -s conftest.err
4423 } && test -s conftest$ac_exeext && {
4424 test "$cross_compiling" = yes ||
4425 $as_test_x conftest$ac_exeext
4427 ac_cv_lib_jpeg_jpeg_write_raw_data=yes
4429 $as_echo "$as_me: failed program was:" >&5
4430 sed 's/^/| /' conftest.$ac_ext >&5
4432 ac_cv_lib_jpeg_jpeg_write_raw_data=no
4435 rm -rf conftest.dSYM
4436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4437 conftest$ac_exeext conftest.$ac_ext
4438 LIBS=$ac_check_lib_save_LIBS
4440 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
4441 $as_echo "$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6; }
4442 if test "x$ac_cv_lib_jpeg_jpeg_write_raw_data" = x""yes; then
4443 cat >>confdefs.h <<_ACEOF
4444 #define HAVE_LIBJPEG 1
4454 { $as_echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
4455 $as_echo_n "checking for DGifOpen in -lungif... " >&6; }
4456 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
4457 $as_echo_n "(cached) " >&6
4459 ac_check_lib_save_LIBS=$LIBS
4460 LIBS="-lungif $LIBS"
4461 cat >conftest.$ac_ext <<_ACEOF
4464 cat confdefs.h >>conftest.$ac_ext
4465 cat >>conftest.$ac_ext <<_ACEOF
4466 /* end confdefs.h. */
4468 /* Override any GCC internal prototype to avoid an error.
4469 Use char because int might match the return type of a GCC
4470 builtin and then its argument prototype would still apply. */
4483 rm -f conftest.$ac_objext conftest$ac_exeext
4484 if { (ac_try="$ac_link"
4486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4487 *) ac_try_echo=$ac_try;;
4489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4490 $as_echo "$ac_try_echo") >&5
4491 (eval "$ac_link") 2>conftest.er1
4493 grep -v '^ *+' conftest.er1 >conftest.err
4495 cat conftest.err >&5
4496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); } && {
4498 test -z "$ac_c_werror_flag" ||
4499 test ! -s conftest.err
4500 } && test -s conftest$ac_exeext && {
4501 test "$cross_compiling" = yes ||
4502 $as_test_x conftest$ac_exeext
4504 ac_cv_lib_ungif_DGifOpen=yes
4506 $as_echo "$as_me: failed program was:" >&5
4507 sed 's/^/| /' conftest.$ac_ext >&5
4509 ac_cv_lib_ungif_DGifOpen=no
4512 rm -rf conftest.dSYM
4513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4514 conftest$ac_exeext conftest.$ac_ext
4515 LIBS=$ac_check_lib_save_LIBS
4517 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
4518 $as_echo "$ac_cv_lib_ungif_DGifOpen" >&6; }
4519 if test "x$ac_cv_lib_ungif_DGifOpen" = x""yes; then
4520 cat >>confdefs.h <<_ACEOF
4521 #define HAVE_LIBUNGIF 1
4524 LIBS="-lungif $LIBS"
4530 if test "$UNGIFMISSING";then
4533 { $as_echo "$as_me:$LINENO: checking for DGifOpen in -lgif" >&5
4534 $as_echo_n "checking for DGifOpen in -lgif... " >&6; }
4535 if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then
4536 $as_echo_n "(cached) " >&6
4538 ac_check_lib_save_LIBS=$LIBS
4540 cat >conftest.$ac_ext <<_ACEOF
4543 cat confdefs.h >>conftest.$ac_ext
4544 cat >>conftest.$ac_ext <<_ACEOF
4545 /* end confdefs.h. */
4547 /* Override any GCC internal prototype to avoid an error.
4548 Use char because int might match the return type of a GCC
4549 builtin and then its argument prototype would still apply. */
4562 rm -f conftest.$ac_objext conftest$ac_exeext
4563 if { (ac_try="$ac_link"
4565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4566 *) ac_try_echo=$ac_try;;
4568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4569 $as_echo "$ac_try_echo") >&5
4570 (eval "$ac_link") 2>conftest.er1
4572 grep -v '^ *+' conftest.er1 >conftest.err
4574 cat conftest.err >&5
4575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); } && {
4577 test -z "$ac_c_werror_flag" ||
4578 test ! -s conftest.err
4579 } && test -s conftest$ac_exeext && {
4580 test "$cross_compiling" = yes ||
4581 $as_test_x conftest$ac_exeext
4583 ac_cv_lib_gif_DGifOpen=yes
4585 $as_echo "$as_me: failed program was:" >&5
4586 sed 's/^/| /' conftest.$ac_ext >&5
4588 ac_cv_lib_gif_DGifOpen=no
4591 rm -rf conftest.dSYM
4592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4593 conftest$ac_exeext conftest.$ac_ext
4594 LIBS=$ac_check_lib_save_LIBS
4596 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpen" >&5
4597 $as_echo "$ac_cv_lib_gif_DGifOpen" >&6; }
4598 if test "x$ac_cv_lib_gif_DGifOpen" = x""yes; then
4599 cat >>confdefs.h <<_ACEOF
4600 #define HAVE_LIBGIF 1
4612 { $as_echo "$as_me:$LINENO: checking for byte order" >&5
4613 $as_echo_n "checking for byte order... " >&6; }
4614 if test "$cross_compiling" = yes; then
4617 cat >conftest.$ac_ext <<_ACEOF
4620 cat confdefs.h >>conftest.$ac_ext
4621 cat >>conftest.$ac_ext <<_ACEOF
4622 /* end confdefs.h. */
4624 int main (int argc, char *argv[])
4631 rm -f conftest$ac_exeext
4632 if { (ac_try="$ac_link"
4634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4635 *) ac_try_echo=$ac_try;;
4637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4638 $as_echo "$ac_try_echo") >&5
4639 (eval "$ac_link") 2>&5
4641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4643 { (case "(($ac_try" in
4644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4645 *) ac_try_echo=$ac_try;;
4647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4648 $as_echo "$ac_try_echo") >&5
4649 (eval "$ac_try") 2>&5
4651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); }; }; then
4655 $as_echo "$as_me: program exited with status $ac_status" >&5
4656 $as_echo "$as_me: failed program was:" >&5
4657 sed 's/^/| /' conftest.$ac_ext >&5
4662 rm -rf conftest.dSYM
4663 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4669 if test "x${CROSSCOMPILE}" = "x1"; then
4670 { $as_echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
4671 $as_echo "we are cross compiling- trying to guess from system type" >&6; }
4672 { $as_echo "$as_me:$LINENO: checking target system type" >&5
4673 $as_echo_n "checking target system type... " >&6; }
4674 if test "${ac_cv_target+set}" = set; then
4675 $as_echo_n "(cached) " >&6
4677 if test "x$target_alias" = x; then
4678 ac_cv_target=$ac_cv_host
4680 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4681 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
4682 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
4683 { (exit 1); exit 1; }; }
4687 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
4688 $as_echo "$ac_cv_target" >&6; }
4689 case $ac_cv_target in
4691 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
4692 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
4693 { (exit 1); exit 1; }; };;
4695 target=$ac_cv_target
4696 ac_save_IFS=$IFS; IFS='-'
4702 # Remember, the first character of IFS is used to create $*,
4703 # except with old shells:
4706 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4709 # The aliases save the names the user supplied, while $host etc.
4710 # will get canonicalized.
4711 test -n "$target_alias" &&
4712 test "$program_prefix$program_suffix$program_transform_name" = \
4714 program_prefix=${target_alias}-
4715 { $as_echo "$as_me:$LINENO: checking for byte order, try 2" >&5
4716 $as_echo_n "checking for byte order, try 2... " >&6; }
4721 *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
4728 if test "x${LITTLEENDIAN}" = "x1"; then
4729 { $as_echo "$as_me:$LINENO: result: little endian" >&5
4730 $as_echo "little endian" >&6; }
4734 if test "x${BIGENDIAN}" = "x1"; then
4735 { $as_echo "$as_me:$LINENO: result: big endian" >&5
4736 $as_echo "big endian" >&6; }
4739 export WORDS_BIGENDIAN
4741 cat >>confdefs.h <<\_ACEOF
4742 #define WORDS_BIGENDIAN 1
4746 if test "x${BYTEORDERCHECKOK}" != "x1"; then
4747 { $as_echo "$as_me:$LINENO: result: unknown" >&5
4748 $as_echo "unknown" >&6; }
4749 echo Byte order could not determined.
4755 { $as_echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
4756 $as_echo_n "checking whether system() can handle command substitution... " >&6; }
4757 if test "$cross_compiling" = yes; then
4760 cat >conftest.$ac_ext <<_ACEOF
4763 cat confdefs.h >>conftest.$ac_ext
4764 cat >>conftest.$ac_ext <<_ACEOF
4765 /* end confdefs.h. */
4768 int main (int argc, char*argv[])
4770 return system("test `touch config.tmp2`");
4774 rm -f conftest$ac_exeext
4775 if { (ac_try="$ac_link"
4777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4778 *) ac_try_echo=$ac_try;;
4780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4781 $as_echo "$ac_try_echo") >&5
4782 (eval "$ac_link") 2>&5
4784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4786 { (case "(($ac_try" in
4787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4788 *) ac_try_echo=$ac_try;;
4790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4791 $as_echo "$ac_try_echo") >&5
4792 (eval "$ac_try") 2>&5
4794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); }; }; then
4798 $as_echo "$as_me: program exited with status $ac_status" >&5
4799 $as_echo "$as_me: failed program was:" >&5
4800 sed 's/^/| /' conftest.$ac_ext >&5
4803 rm -rf conftest.dSYM
4804 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4809 if test "x${OK}" = "xOK";then
4810 test -f config.tmp2 || OK=
4813 if test "x${CROSSCOMPILE}" = "x1";then
4816 if test "x${OK}" = "xOK";then
4818 { $as_echo "$as_me:$LINENO: result: yes" >&5
4819 $as_echo "yes" >&6; }
4821 export SYSTEM_BACKTICKS
4823 cat >>confdefs.h <<\_ACEOF
4824 #define SYSTEM_BACKTICKS 1
4828 { $as_echo "$as_me:$LINENO: result: no" >&5
4829 $as_echo "no" >&6; }
4834 test "$program_prefix" != NONE &&
4835 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4836 # Use a double $ so make ignores it.
4837 test "$program_suffix" != NONE &&
4838 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4839 # Double any \ or $.
4840 # By default was `s,x,x', remove it if useless.
4841 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4842 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4845 ac_config_headers="$ac_config_headers config.h"
4853 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4854 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4855 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4856 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4857 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4858 $as_echo_n "(cached) " >&6
4860 cat >conftest.$ac_ext <<_ACEOF
4863 cat confdefs.h >>conftest.$ac_ext
4864 cat >>conftest.$ac_ext <<_ACEOF
4865 /* end confdefs.h. */
4866 #include <sys/types.h>
4878 rm -f conftest.$ac_objext
4879 if { (ac_try="$ac_compile"
4881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4882 *) ac_try_echo=$ac_try;;
4884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4885 $as_echo "$ac_try_echo") >&5
4886 (eval "$ac_compile") 2>conftest.er1
4888 grep -v '^ *+' conftest.er1 >conftest.err
4890 cat conftest.err >&5
4891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); } && {
4893 test -z "$ac_c_werror_flag" ||
4894 test ! -s conftest.err
4895 } && test -s conftest.$ac_objext; then
4896 eval "$as_ac_Header=yes"
4898 $as_echo "$as_me: failed program was:" >&5
4899 sed 's/^/| /' conftest.$ac_ext >&5
4901 eval "$as_ac_Header=no"
4904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4906 ac_res=`eval 'as_val=${'$as_ac_Header'}
4907 $as_echo "$as_val"'`
4908 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4909 $as_echo "$ac_res" >&6; }
4910 as_val=`eval 'as_val=${'$as_ac_Header'}
4911 $as_echo "$as_val"'`
4912 if test "x$as_val" = x""yes; then
4913 cat >>confdefs.h <<_ACEOF
4914 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4917 ac_header_dirent=$ac_hdr; break
4921 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4922 if test $ac_header_dirent = dirent.h; then
4923 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4924 $as_echo_n "checking for library containing opendir... " >&6; }
4925 if test "${ac_cv_search_opendir+set}" = set; then
4926 $as_echo_n "(cached) " >&6
4928 ac_func_search_save_LIBS=$LIBS
4929 cat >conftest.$ac_ext <<_ACEOF
4932 cat confdefs.h >>conftest.$ac_ext
4933 cat >>conftest.$ac_ext <<_ACEOF
4934 /* end confdefs.h. */
4936 /* Override any GCC internal prototype to avoid an error.
4937 Use char because int might match the return type of a GCC
4938 builtin and then its argument prototype would still apply. */
4951 for ac_lib in '' dir; do
4952 if test -z "$ac_lib"; then
4953 ac_res="none required"
4956 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4958 rm -f conftest.$ac_objext conftest$ac_exeext
4959 if { (ac_try="$ac_link"
4961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4962 *) ac_try_echo=$ac_try;;
4964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4965 $as_echo "$ac_try_echo") >&5
4966 (eval "$ac_link") 2>conftest.er1
4968 grep -v '^ *+' conftest.er1 >conftest.err
4970 cat conftest.err >&5
4971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972 (exit $ac_status); } && {
4973 test -z "$ac_c_werror_flag" ||
4974 test ! -s conftest.err
4975 } && test -s conftest$ac_exeext && {
4976 test "$cross_compiling" = yes ||
4977 $as_test_x conftest$ac_exeext
4979 ac_cv_search_opendir=$ac_res
4981 $as_echo "$as_me: failed program was:" >&5
4982 sed 's/^/| /' conftest.$ac_ext >&5
4987 rm -rf conftest.dSYM
4988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4990 if test "${ac_cv_search_opendir+set}" = set; then
4994 if test "${ac_cv_search_opendir+set}" = set; then
4997 ac_cv_search_opendir=no
5000 LIBS=$ac_func_search_save_LIBS
5002 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5003 $as_echo "$ac_cv_search_opendir" >&6; }
5004 ac_res=$ac_cv_search_opendir
5005 if test "$ac_res" != no; then
5006 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5011 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
5012 $as_echo_n "checking for library containing opendir... " >&6; }
5013 if test "${ac_cv_search_opendir+set}" = set; then
5014 $as_echo_n "(cached) " >&6
5016 ac_func_search_save_LIBS=$LIBS
5017 cat >conftest.$ac_ext <<_ACEOF
5020 cat confdefs.h >>conftest.$ac_ext
5021 cat >>conftest.$ac_ext <<_ACEOF
5022 /* end confdefs.h. */
5024 /* Override any GCC internal prototype to avoid an error.
5025 Use char because int might match the return type of a GCC
5026 builtin and then its argument prototype would still apply. */
5039 for ac_lib in '' x; do
5040 if test -z "$ac_lib"; then
5041 ac_res="none required"
5044 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5046 rm -f conftest.$ac_objext conftest$ac_exeext
5047 if { (ac_try="$ac_link"
5049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5050 *) ac_try_echo=$ac_try;;
5052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5053 $as_echo "$ac_try_echo") >&5
5054 (eval "$ac_link") 2>conftest.er1
5056 grep -v '^ *+' conftest.er1 >conftest.err
5058 cat conftest.err >&5
5059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060 (exit $ac_status); } && {
5061 test -z "$ac_c_werror_flag" ||
5062 test ! -s conftest.err
5063 } && test -s conftest$ac_exeext && {
5064 test "$cross_compiling" = yes ||
5065 $as_test_x conftest$ac_exeext
5067 ac_cv_search_opendir=$ac_res
5069 $as_echo "$as_me: failed program was:" >&5
5070 sed 's/^/| /' conftest.$ac_ext >&5
5075 rm -rf conftest.dSYM
5076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5078 if test "${ac_cv_search_opendir+set}" = set; then
5082 if test "${ac_cv_search_opendir+set}" = set; then
5085 ac_cv_search_opendir=no
5088 LIBS=$ac_func_search_save_LIBS
5090 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5091 $as_echo "$ac_cv_search_opendir" >&6; }
5092 ac_res=$ac_cv_search_opendir
5093 if test "$ac_res" != no; then
5094 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5101 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5102 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5103 if test "${ac_cv_path_GREP+set}" = set; then
5104 $as_echo_n "(cached) " >&6
5106 if test -z "$GREP"; then
5107 ac_path_GREP_found=false
5108 # Loop through the user's path and test for each of PROGNAME-LIST
5109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5110 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5113 test -z "$as_dir" && as_dir=.
5114 for ac_prog in grep ggrep; do
5115 for ac_exec_ext in '' $ac_executable_extensions; do
5116 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5117 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5118 # Check for GNU ac_path_GREP and select it if it is found.
5119 # Check for GNU $ac_path_GREP
5120 case `"$ac_path_GREP" --version 2>&1` in
5122 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5125 $as_echo_n 0123456789 >"conftest.in"
5128 cat "conftest.in" "conftest.in" >"conftest.tmp"
5129 mv "conftest.tmp" "conftest.in"
5130 cp "conftest.in" "conftest.nl"
5131 $as_echo 'GREP' >> "conftest.nl"
5132 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5133 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5134 ac_count=`expr $ac_count + 1`
5135 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5136 # Best one so far, save it but keep looking for a better one
5137 ac_cv_path_GREP="$ac_path_GREP"
5138 ac_path_GREP_max=$ac_count
5140 # 10*(2^10) chars as input seems more than enough
5141 test $ac_count -gt 10 && break
5143 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5146 $ac_path_GREP_found && break 3
5151 if test -z "$ac_cv_path_GREP"; then
5152 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5153 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5154 { (exit 1); exit 1; }; }
5157 ac_cv_path_GREP=$GREP
5161 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5162 $as_echo "$ac_cv_path_GREP" >&6; }
5163 GREP="$ac_cv_path_GREP"
5166 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5167 $as_echo_n "checking for egrep... " >&6; }
5168 if test "${ac_cv_path_EGREP+set}" = set; then
5169 $as_echo_n "(cached) " >&6
5171 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5172 then ac_cv_path_EGREP="$GREP -E"
5174 if test -z "$EGREP"; then
5175 ac_path_EGREP_found=false
5176 # Loop through the user's path and test for each of PROGNAME-LIST
5177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5181 test -z "$as_dir" && as_dir=.
5182 for ac_prog in egrep; do
5183 for ac_exec_ext in '' $ac_executable_extensions; do
5184 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5185 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5186 # Check for GNU ac_path_EGREP and select it if it is found.
5187 # Check for GNU $ac_path_EGREP
5188 case `"$ac_path_EGREP" --version 2>&1` in
5190 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5193 $as_echo_n 0123456789 >"conftest.in"
5196 cat "conftest.in" "conftest.in" >"conftest.tmp"
5197 mv "conftest.tmp" "conftest.in"
5198 cp "conftest.in" "conftest.nl"
5199 $as_echo 'EGREP' >> "conftest.nl"
5200 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5201 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5202 ac_count=`expr $ac_count + 1`
5203 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5204 # Best one so far, save it but keep looking for a better one
5205 ac_cv_path_EGREP="$ac_path_EGREP"
5206 ac_path_EGREP_max=$ac_count
5208 # 10*(2^10) chars as input seems more than enough
5209 test $ac_count -gt 10 && break
5211 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5214 $ac_path_EGREP_found && break 3
5219 if test -z "$ac_cv_path_EGREP"; then
5220 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5221 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5222 { (exit 1); exit 1; }; }
5225 ac_cv_path_EGREP=$EGREP
5230 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5231 $as_echo "$ac_cv_path_EGREP" >&6; }
5232 EGREP="$ac_cv_path_EGREP"
5235 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5236 $as_echo_n "checking for ANSI C header files... " >&6; }
5237 if test "${ac_cv_header_stdc+set}" = set; then
5238 $as_echo_n "(cached) " >&6
5240 cat >conftest.$ac_ext <<_ACEOF
5243 cat confdefs.h >>conftest.$ac_ext
5244 cat >>conftest.$ac_ext <<_ACEOF
5245 /* end confdefs.h. */
5259 rm -f conftest.$ac_objext
5260 if { (ac_try="$ac_compile"
5262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5263 *) ac_try_echo=$ac_try;;
5265 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5266 $as_echo "$ac_try_echo") >&5
5267 (eval "$ac_compile") 2>conftest.er1
5269 grep -v '^ *+' conftest.er1 >conftest.err
5271 cat conftest.err >&5
5272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273 (exit $ac_status); } && {
5274 test -z "$ac_c_werror_flag" ||
5275 test ! -s conftest.err
5276 } && test -s conftest.$ac_objext; then
5277 ac_cv_header_stdc=yes
5279 $as_echo "$as_me: failed program was:" >&5
5280 sed 's/^/| /' conftest.$ac_ext >&5
5282 ac_cv_header_stdc=no
5285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5287 if test $ac_cv_header_stdc = yes; then
5288 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5289 cat >conftest.$ac_ext <<_ACEOF
5292 cat confdefs.h >>conftest.$ac_ext
5293 cat >>conftest.$ac_ext <<_ACEOF
5294 /* end confdefs.h. */
5298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5299 $EGREP "memchr" >/dev/null 2>&1; then
5302 ac_cv_header_stdc=no
5308 if test $ac_cv_header_stdc = yes; then
5309 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5310 cat >conftest.$ac_ext <<_ACEOF
5313 cat confdefs.h >>conftest.$ac_ext
5314 cat >>conftest.$ac_ext <<_ACEOF
5315 /* end confdefs.h. */
5319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5320 $EGREP "free" >/dev/null 2>&1; then
5323 ac_cv_header_stdc=no
5329 if test $ac_cv_header_stdc = yes; then
5330 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5331 if test "$cross_compiling" = yes; then
5334 cat >conftest.$ac_ext <<_ACEOF
5337 cat confdefs.h >>conftest.$ac_ext
5338 cat >>conftest.$ac_ext <<_ACEOF
5339 /* end confdefs.h. */
5342 #if ((' ' & 0x0FF) == 0x020)
5343 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5344 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5346 # define ISLOWER(c) \
5347 (('a' <= (c) && (c) <= 'i') \
5348 || ('j' <= (c) && (c) <= 'r') \
5349 || ('s' <= (c) && (c) <= 'z'))
5350 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5353 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5358 for (i = 0; i < 256; i++)
5359 if (XOR (islower (i), ISLOWER (i))
5360 || toupper (i) != TOUPPER (i))
5365 rm -f conftest$ac_exeext
5366 if { (ac_try="$ac_link"
5368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5369 *) ac_try_echo=$ac_try;;
5371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5372 $as_echo "$ac_try_echo") >&5
5373 (eval "$ac_link") 2>&5
5375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5377 { (case "(($ac_try" in
5378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5379 *) ac_try_echo=$ac_try;;
5381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5382 $as_echo "$ac_try_echo") >&5
5383 (eval "$ac_try") 2>&5
5385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); }; }; then
5389 $as_echo "$as_me: program exited with status $ac_status" >&5
5390 $as_echo "$as_me: failed program was:" >&5
5391 sed 's/^/| /' conftest.$ac_ext >&5
5394 ac_cv_header_stdc=no
5396 rm -rf conftest.dSYM
5397 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5403 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5404 $as_echo "$ac_cv_header_stdc" >&6; }
5405 if test $ac_cv_header_stdc = yes; then
5407 cat >>confdefs.h <<\_ACEOF
5408 #define STDC_HEADERS 1
5414 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5424 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5425 inttypes.h stdint.h unistd.h
5427 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5428 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5429 $as_echo_n "checking for $ac_header... " >&6; }
5430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5431 $as_echo_n "(cached) " >&6
5433 cat >conftest.$ac_ext <<_ACEOF
5436 cat confdefs.h >>conftest.$ac_ext
5437 cat >>conftest.$ac_ext <<_ACEOF
5438 /* end confdefs.h. */
5439 $ac_includes_default
5441 #include <$ac_header>
5443 rm -f conftest.$ac_objext
5444 if { (ac_try="$ac_compile"
5446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5447 *) ac_try_echo=$ac_try;;
5449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5450 $as_echo "$ac_try_echo") >&5
5451 (eval "$ac_compile") 2>conftest.er1
5453 grep -v '^ *+' conftest.er1 >conftest.err
5455 cat conftest.err >&5
5456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); } && {
5458 test -z "$ac_c_werror_flag" ||
5459 test ! -s conftest.err
5460 } && test -s conftest.$ac_objext; then
5461 eval "$as_ac_Header=yes"
5463 $as_echo "$as_me: failed program was:" >&5
5464 sed 's/^/| /' conftest.$ac_ext >&5
5466 eval "$as_ac_Header=no"
5469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5471 ac_res=`eval 'as_val=${'$as_ac_Header'}
5472 $as_echo "$as_val"'`
5473 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5474 $as_echo "$ac_res" >&6; }
5475 as_val=`eval 'as_val=${'$as_ac_Header'}
5476 $as_echo "$as_val"'`
5477 if test "x$as_val" = x""yes; then
5478 cat >>confdefs.h <<_ACEOF
5479 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5507 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
5509 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5511 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5512 $as_echo_n "checking for $ac_header... " >&6; }
5513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5514 $as_echo_n "(cached) " >&6
5516 ac_res=`eval 'as_val=${'$as_ac_Header'}
5517 $as_echo "$as_val"'`
5518 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5519 $as_echo "$ac_res" >&6; }
5521 # Is the header compilable?
5522 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5523 $as_echo_n "checking $ac_header usability... " >&6; }
5524 cat >conftest.$ac_ext <<_ACEOF
5527 cat confdefs.h >>conftest.$ac_ext
5528 cat >>conftest.$ac_ext <<_ACEOF
5529 /* end confdefs.h. */
5530 $ac_includes_default
5531 #include <$ac_header>
5533 rm -f conftest.$ac_objext
5534 if { (ac_try="$ac_compile"
5536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5537 *) ac_try_echo=$ac_try;;
5539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5540 $as_echo "$ac_try_echo") >&5
5541 (eval "$ac_compile") 2>conftest.er1
5543 grep -v '^ *+' conftest.er1 >conftest.err
5545 cat conftest.err >&5
5546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547 (exit $ac_status); } && {
5548 test -z "$ac_c_werror_flag" ||
5549 test ! -s conftest.err
5550 } && test -s conftest.$ac_objext; then
5551 ac_header_compiler=yes
5553 $as_echo "$as_me: failed program was:" >&5
5554 sed 's/^/| /' conftest.$ac_ext >&5
5556 ac_header_compiler=no
5559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5560 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5561 $as_echo "$ac_header_compiler" >&6; }
5563 # Is the header present?
5564 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5565 $as_echo_n "checking $ac_header presence... " >&6; }
5566 cat >conftest.$ac_ext <<_ACEOF
5569 cat confdefs.h >>conftest.$ac_ext
5570 cat >>conftest.$ac_ext <<_ACEOF
5571 /* end confdefs.h. */
5572 #include <$ac_header>
5574 if { (ac_try="$ac_cpp conftest.$ac_ext"
5576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5577 *) ac_try_echo=$ac_try;;
5579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5580 $as_echo "$ac_try_echo") >&5
5581 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5583 grep -v '^ *+' conftest.er1 >conftest.err
5585 cat conftest.err >&5
5586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587 (exit $ac_status); } >/dev/null && {
5588 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5589 test ! -s conftest.err
5591 ac_header_preproc=yes
5593 $as_echo "$as_me: failed program was:" >&5
5594 sed 's/^/| /' conftest.$ac_ext >&5
5596 ac_header_preproc=no
5599 rm -f conftest.err conftest.$ac_ext
5600 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5601 $as_echo "$ac_header_preproc" >&6; }
5603 # So? What about this header?
5604 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5606 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5607 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5608 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5609 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5610 ac_header_preproc=yes
5613 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5614 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5615 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5616 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5617 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5618 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5619 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5620 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5621 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5622 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5623 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5624 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5628 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5629 $as_echo_n "checking for $ac_header... " >&6; }
5630 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5631 $as_echo_n "(cached) " >&6
5633 eval "$as_ac_Header=\$ac_header_preproc"
5635 ac_res=`eval 'as_val=${'$as_ac_Header'}
5636 $as_echo "$as_val"'`
5637 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5638 $as_echo "$ac_res" >&6; }
5641 as_val=`eval 'as_val=${'$as_ac_Header'}
5642 $as_echo "$as_val"'`
5643 if test "x$as_val" = x""yes; then
5644 cat >>confdefs.h <<_ACEOF
5645 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5654 cat >>confdefs.h <<_ACEOF
5655 #define PACKAGE "$PACKAGE"
5659 cat >>confdefs.h <<_ACEOF
5660 #define VERSION "$VERSION"
5669 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5670 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5671 if test "${ac_cv_c_const+set}" = set; then
5672 $as_echo_n "(cached) " >&6
5674 cat >conftest.$ac_ext <<_ACEOF
5677 cat confdefs.h >>conftest.$ac_ext
5678 cat >>conftest.$ac_ext <<_ACEOF
5679 /* end confdefs.h. */
5684 /* FIXME: Include the comments suggested by Paul. */
5686 /* Ultrix mips cc rejects this. */
5687 typedef int charset[2];
5689 /* SunOS 4.1.1 cc rejects this. */
5690 char const *const *pcpcc;
5692 /* NEC SVR4.0.2 mips cc rejects this. */
5693 struct point {int x, y;};
5694 static struct point const zero = {0,0};
5695 /* AIX XL C 1.02.0.0 rejects this.
5696 It does not let you subtract one const X* pointer from another in
5697 an arm of an if-expression whose if-part is not a constant
5699 const char *g = "string";
5700 pcpcc = &g + (g ? g-g : 0);
5701 /* HPUX 7.0 cc rejects these. */
5703 ppc = (char**) pcpcc;
5704 pcpcc = (char const *const *) ppc;
5705 { /* SCO 3.2v4 cc rejects this. */
5707 char const *s = 0 ? (char *) 0 : (char const *) 0;
5712 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5714 const int *foo = &x[0];
5717 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5718 typedef const int *iptr;
5722 { /* AIX XL C 1.02.0.0 rejects this saying
5723 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5724 struct s { int j; const int *ap[3]; };
5725 struct s *b; b->j = 5;
5727 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5731 return !cs[0] && !zero.x;
5738 rm -f conftest.$ac_objext
5739 if { (ac_try="$ac_compile"
5741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5742 *) ac_try_echo=$ac_try;;
5744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5745 $as_echo "$ac_try_echo") >&5
5746 (eval "$ac_compile") 2>conftest.er1
5748 grep -v '^ *+' conftest.er1 >conftest.err
5750 cat conftest.err >&5
5751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); } && {
5753 test -z "$ac_c_werror_flag" ||
5754 test ! -s conftest.err
5755 } && test -s conftest.$ac_objext; then
5758 $as_echo "$as_me: failed program was:" >&5
5759 sed 's/^/| /' conftest.$ac_ext >&5
5764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5766 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5767 $as_echo "$ac_cv_c_const" >&6; }
5768 if test $ac_cv_c_const = no; then
5770 cat >>confdefs.h <<\_ACEOF
5776 { $as_echo "$as_me:$LINENO: checking for inline" >&5
5777 $as_echo_n "checking for inline... " >&6; }
5778 if test "${ac_cv_c_inline+set}" = set; then
5779 $as_echo_n "(cached) " >&6
5782 for ac_kw in inline __inline__ __inline; do
5783 cat >conftest.$ac_ext <<_ACEOF
5786 cat confdefs.h >>conftest.$ac_ext
5787 cat >>conftest.$ac_ext <<_ACEOF
5788 /* end confdefs.h. */
5791 static $ac_kw foo_t static_foo () {return 0; }
5792 $ac_kw foo_t foo () {return 0; }
5796 rm -f conftest.$ac_objext
5797 if { (ac_try="$ac_compile"
5799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5800 *) ac_try_echo=$ac_try;;
5802 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5803 $as_echo "$ac_try_echo") >&5
5804 (eval "$ac_compile") 2>conftest.er1
5806 grep -v '^ *+' conftest.er1 >conftest.err
5808 cat conftest.err >&5
5809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); } && {
5811 test -z "$ac_c_werror_flag" ||
5812 test ! -s conftest.err
5813 } && test -s conftest.$ac_objext; then
5814 ac_cv_c_inline=$ac_kw
5816 $as_echo "$as_me: failed program was:" >&5
5817 sed 's/^/| /' conftest.$ac_ext >&5
5822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5823 test "$ac_cv_c_inline" != no && break
5827 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5828 $as_echo "$ac_cv_c_inline" >&6; }
5831 case $ac_cv_c_inline in
5834 case $ac_cv_c_inline in
5836 *) ac_val=$ac_cv_c_inline;;
5838 cat >>confdefs.h <<_ACEOF
5840 #define inline $ac_val
5846 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
5847 $as_echo_n "checking for off_t... " >&6; }
5848 if test "${ac_cv_type_off_t+set}" = set; then
5849 $as_echo_n "(cached) " >&6
5852 cat >conftest.$ac_ext <<_ACEOF
5855 cat confdefs.h >>conftest.$ac_ext
5856 cat >>conftest.$ac_ext <<_ACEOF
5857 /* end confdefs.h. */
5858 $ac_includes_default
5868 rm -f conftest.$ac_objext
5869 if { (ac_try="$ac_compile"
5871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5872 *) ac_try_echo=$ac_try;;
5874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5875 $as_echo "$ac_try_echo") >&5
5876 (eval "$ac_compile") 2>conftest.er1
5878 grep -v '^ *+' conftest.er1 >conftest.err
5880 cat conftest.err >&5
5881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); } && {
5883 test -z "$ac_c_werror_flag" ||
5884 test ! -s conftest.err
5885 } && test -s conftest.$ac_objext; then
5886 cat >conftest.$ac_ext <<_ACEOF
5889 cat confdefs.h >>conftest.$ac_ext
5890 cat >>conftest.$ac_ext <<_ACEOF
5891 /* end confdefs.h. */
5892 $ac_includes_default
5896 if (sizeof ((off_t)))
5902 rm -f conftest.$ac_objext
5903 if { (ac_try="$ac_compile"
5905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5906 *) ac_try_echo=$ac_try;;
5908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5909 $as_echo "$ac_try_echo") >&5
5910 (eval "$ac_compile") 2>conftest.er1
5912 grep -v '^ *+' conftest.er1 >conftest.err
5914 cat conftest.err >&5
5915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); } && {
5917 test -z "$ac_c_werror_flag" ||
5918 test ! -s conftest.err
5919 } && test -s conftest.$ac_objext; then
5922 $as_echo "$as_me: failed program was:" >&5
5923 sed 's/^/| /' conftest.$ac_ext >&5
5925 ac_cv_type_off_t=yes
5928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5930 $as_echo "$as_me: failed program was:" >&5
5931 sed 's/^/| /' conftest.$ac_ext >&5
5936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5938 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5939 $as_echo "$ac_cv_type_off_t" >&6; }
5940 if test "x$ac_cv_type_off_t" = x""yes; then
5944 cat >>confdefs.h <<_ACEOF
5945 #define off_t long int
5950 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
5951 $as_echo_n "checking for size_t... " >&6; }
5952 if test "${ac_cv_type_size_t+set}" = set; then
5953 $as_echo_n "(cached) " >&6
5955 ac_cv_type_size_t=no
5956 cat >conftest.$ac_ext <<_ACEOF
5959 cat confdefs.h >>conftest.$ac_ext
5960 cat >>conftest.$ac_ext <<_ACEOF
5961 /* end confdefs.h. */
5962 $ac_includes_default
5966 if (sizeof (size_t))
5972 rm -f conftest.$ac_objext
5973 if { (ac_try="$ac_compile"
5975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5976 *) ac_try_echo=$ac_try;;
5978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5979 $as_echo "$ac_try_echo") >&5
5980 (eval "$ac_compile") 2>conftest.er1
5982 grep -v '^ *+' conftest.er1 >conftest.err
5984 cat conftest.err >&5
5985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); } && {
5987 test -z "$ac_c_werror_flag" ||
5988 test ! -s conftest.err
5989 } && test -s conftest.$ac_objext; then
5990 cat >conftest.$ac_ext <<_ACEOF
5993 cat confdefs.h >>conftest.$ac_ext
5994 cat >>conftest.$ac_ext <<_ACEOF
5995 /* end confdefs.h. */
5996 $ac_includes_default
6000 if (sizeof ((size_t)))
6006 rm -f conftest.$ac_objext
6007 if { (ac_try="$ac_compile"
6009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6010 *) ac_try_echo=$ac_try;;
6012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6013 $as_echo "$ac_try_echo") >&5
6014 (eval "$ac_compile") 2>conftest.er1
6016 grep -v '^ *+' conftest.er1 >conftest.err
6018 cat conftest.err >&5
6019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); } && {
6021 test -z "$ac_c_werror_flag" ||
6022 test ! -s conftest.err
6023 } && test -s conftest.$ac_objext; then
6026 $as_echo "$as_me: failed program was:" >&5
6027 sed 's/^/| /' conftest.$ac_ext >&5
6029 ac_cv_type_size_t=yes
6032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6034 $as_echo "$as_me: failed program was:" >&5
6035 sed 's/^/| /' conftest.$ac_ext >&5
6040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6042 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6043 $as_echo "$ac_cv_type_size_t" >&6; }
6044 if test "x$ac_cv_type_size_t" = x""yes; then
6048 cat >>confdefs.h <<_ACEOF
6049 #define size_t unsigned int
6054 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6055 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6056 if test "${ac_cv_struct_tm+set}" = set; then
6057 $as_echo_n "(cached) " >&6
6059 cat >conftest.$ac_ext <<_ACEOF
6062 cat confdefs.h >>conftest.$ac_ext
6063 cat >>conftest.$ac_ext <<_ACEOF
6064 /* end confdefs.h. */
6065 #include <sys/types.h>
6072 int *p = &tm.tm_sec;
6078 rm -f conftest.$ac_objext
6079 if { (ac_try="$ac_compile"
6081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6082 *) ac_try_echo=$ac_try;;
6084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6085 $as_echo "$ac_try_echo") >&5
6086 (eval "$ac_compile") 2>conftest.er1
6088 grep -v '^ *+' conftest.er1 >conftest.err
6090 cat conftest.err >&5
6091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092 (exit $ac_status); } && {
6093 test -z "$ac_c_werror_flag" ||
6094 test ! -s conftest.err
6095 } && test -s conftest.$ac_objext; then
6096 ac_cv_struct_tm=time.h
6098 $as_echo "$as_me: failed program was:" >&5
6099 sed 's/^/| /' conftest.$ac_ext >&5
6101 ac_cv_struct_tm=sys/time.h
6104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6106 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6107 $as_echo "$ac_cv_struct_tm" >&6; }
6108 if test $ac_cv_struct_tm = sys/time.h; then
6110 cat >>confdefs.h <<\_ACEOF
6111 #define TM_IN_SYS_TIME 1
6116 { $as_echo "$as_me:$LINENO: checking for boolean" >&5
6117 $as_echo_n "checking for boolean... " >&6; }
6118 if test "${ac_cv_type_boolean+set}" = set; then
6119 $as_echo_n "(cached) " >&6
6121 ac_cv_type_boolean=no
6122 cat >conftest.$ac_ext <<_ACEOF
6125 cat confdefs.h >>conftest.$ac_ext
6126 cat >>conftest.$ac_ext <<_ACEOF
6127 /* end confdefs.h. */
6128 $ac_includes_default
6132 if (sizeof (boolean))
6138 rm -f conftest.$ac_objext
6139 if { (ac_try="$ac_compile"
6141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6142 *) ac_try_echo=$ac_try;;
6144 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6145 $as_echo "$ac_try_echo") >&5
6146 (eval "$ac_compile") 2>conftest.er1
6148 grep -v '^ *+' conftest.er1 >conftest.err
6150 cat conftest.err >&5
6151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); } && {
6153 test -z "$ac_c_werror_flag" ||
6154 test ! -s conftest.err
6155 } && test -s conftest.$ac_objext; then
6156 cat >conftest.$ac_ext <<_ACEOF
6159 cat confdefs.h >>conftest.$ac_ext
6160 cat >>conftest.$ac_ext <<_ACEOF
6161 /* end confdefs.h. */
6162 $ac_includes_default
6166 if (sizeof ((boolean)))
6172 rm -f conftest.$ac_objext
6173 if { (ac_try="$ac_compile"
6175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6176 *) ac_try_echo=$ac_try;;
6178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6179 $as_echo "$ac_try_echo") >&5
6180 (eval "$ac_compile") 2>conftest.er1
6182 grep -v '^ *+' conftest.er1 >conftest.err
6184 cat conftest.err >&5
6185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); } && {
6187 test -z "$ac_c_werror_flag" ||
6188 test ! -s conftest.err
6189 } && test -s conftest.$ac_objext; then
6192 $as_echo "$as_me: failed program was:" >&5
6193 sed 's/^/| /' conftest.$ac_ext >&5
6195 ac_cv_type_boolean=yes
6198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6200 $as_echo "$as_me: failed program was:" >&5
6201 sed 's/^/| /' conftest.$ac_ext >&5
6206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6208 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
6209 $as_echo "$ac_cv_type_boolean" >&6; }
6210 if test "x$ac_cv_type_boolean" = x""yes; then
6214 cat >>confdefs.h <<_ACEOF
6235 for ac_func in popen wcschr wcsdup mkstemp stat mmap lrand48 rand srand48 srand bcopy bzero time getrusage mallinfo
6237 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6238 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6239 $as_echo_n "checking for $ac_func... " >&6; }
6240 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6241 $as_echo_n "(cached) " >&6
6243 cat >conftest.$ac_ext <<_ACEOF
6246 cat confdefs.h >>conftest.$ac_ext
6247 cat >>conftest.$ac_ext <<_ACEOF
6248 /* end confdefs.h. */
6249 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6250 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6251 #define $ac_func innocuous_$ac_func
6253 /* System header to define __stub macros and hopefully few prototypes,
6254 which can conflict with char $ac_func (); below.
6255 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6256 <limits.h> exists even on freestanding compilers. */
6259 # include <limits.h>
6261 # include <assert.h>
6266 /* Override any GCC internal prototype to avoid an error.
6267 Use char because int might match the return type of a GCC
6268 builtin and then its argument prototype would still apply. */
6273 /* The GNU C library defines this for functions which it implements
6274 to always fail with ENOSYS. Some functions are actually named
6275 something starting with __ and the normal name is an alias. */
6276 #if defined __stub_$ac_func || defined __stub___$ac_func
6288 rm -f conftest.$ac_objext conftest$ac_exeext
6289 if { (ac_try="$ac_link"
6291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6292 *) ac_try_echo=$ac_try;;
6294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6295 $as_echo "$ac_try_echo") >&5
6296 (eval "$ac_link") 2>conftest.er1
6298 grep -v '^ *+' conftest.er1 >conftest.err
6300 cat conftest.err >&5
6301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); } && {
6303 test -z "$ac_c_werror_flag" ||
6304 test ! -s conftest.err
6305 } && test -s conftest$ac_exeext && {
6306 test "$cross_compiling" = yes ||
6307 $as_test_x conftest$ac_exeext
6309 eval "$as_ac_var=yes"
6311 $as_echo "$as_me: failed program was:" >&5
6312 sed 's/^/| /' conftest.$ac_ext >&5
6314 eval "$as_ac_var=no"
6317 rm -rf conftest.dSYM
6318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6319 conftest$ac_exeext conftest.$ac_ext
6321 ac_res=`eval 'as_val=${'$as_ac_var'}
6322 $as_echo "$as_val"'`
6323 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6324 $as_echo "$ac_res" >&6; }
6325 as_val=`eval 'as_val=${'$as_ac_var'}
6326 $as_echo "$as_val"'`
6327 if test "x$as_val" = x""yes; then
6328 cat >>confdefs.h <<_ACEOF
6329 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6336 # The cast to long int works around a bug in the HP C Compiler
6337 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6338 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6339 # This bug is HP SR number 8606223364.
6340 { $as_echo "$as_me:$LINENO: checking size of signed char" >&5
6341 $as_echo_n "checking size of signed char... " >&6; }
6342 if test "${ac_cv_sizeof_signed_char+set}" = set; then
6343 $as_echo_n "(cached) " >&6
6345 if test "$cross_compiling" = yes; then
6346 # Depending upon the size, compute the lo and hi bounds.
6347 cat >conftest.$ac_ext <<_ACEOF
6350 cat confdefs.h >>conftest.$ac_ext
6351 cat >>conftest.$ac_ext <<_ACEOF
6352 /* end confdefs.h. */
6353 $ac_includes_default
6357 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) >= 0)];
6364 rm -f conftest.$ac_objext
6365 if { (ac_try="$ac_compile"
6367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6368 *) ac_try_echo=$ac_try;;
6370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6371 $as_echo "$ac_try_echo") >&5
6372 (eval "$ac_compile") 2>conftest.er1
6374 grep -v '^ *+' conftest.er1 >conftest.err
6376 cat conftest.err >&5
6377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378 (exit $ac_status); } && {
6379 test -z "$ac_c_werror_flag" ||
6380 test ! -s conftest.err
6381 } && test -s conftest.$ac_objext; then
6384 cat >conftest.$ac_ext <<_ACEOF
6387 cat confdefs.h >>conftest.$ac_ext
6388 cat >>conftest.$ac_ext <<_ACEOF
6389 /* end confdefs.h. */
6390 $ac_includes_default
6394 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) <= $ac_mid)];
6401 rm -f conftest.$ac_objext
6402 if { (ac_try="$ac_compile"
6404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6405 *) ac_try_echo=$ac_try;;
6407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6408 $as_echo "$ac_try_echo") >&5
6409 (eval "$ac_compile") 2>conftest.er1
6411 grep -v '^ *+' conftest.er1 >conftest.err
6413 cat conftest.err >&5
6414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); } && {
6416 test -z "$ac_c_werror_flag" ||
6417 test ! -s conftest.err
6418 } && test -s conftest.$ac_objext; then
6419 ac_hi=$ac_mid; break
6421 $as_echo "$as_me: failed program was:" >&5
6422 sed 's/^/| /' conftest.$ac_ext >&5
6424 ac_lo=`expr $ac_mid + 1`
6425 if test $ac_lo -le $ac_mid; then
6429 ac_mid=`expr 2 '*' $ac_mid + 1`
6432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6435 $as_echo "$as_me: failed program was:" >&5
6436 sed 's/^/| /' conftest.$ac_ext >&5
6438 cat >conftest.$ac_ext <<_ACEOF
6441 cat confdefs.h >>conftest.$ac_ext
6442 cat >>conftest.$ac_ext <<_ACEOF
6443 /* end confdefs.h. */
6444 $ac_includes_default
6448 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) < 0)];
6455 rm -f conftest.$ac_objext
6456 if { (ac_try="$ac_compile"
6458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6459 *) ac_try_echo=$ac_try;;
6461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6462 $as_echo "$ac_try_echo") >&5
6463 (eval "$ac_compile") 2>conftest.er1
6465 grep -v '^ *+' conftest.er1 >conftest.err
6467 cat conftest.err >&5
6468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469 (exit $ac_status); } && {
6470 test -z "$ac_c_werror_flag" ||
6471 test ! -s conftest.err
6472 } && test -s conftest.$ac_objext; then
6475 cat >conftest.$ac_ext <<_ACEOF
6478 cat confdefs.h >>conftest.$ac_ext
6479 cat >>conftest.$ac_ext <<_ACEOF
6480 /* end confdefs.h. */
6481 $ac_includes_default
6485 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) >= $ac_mid)];
6492 rm -f conftest.$ac_objext
6493 if { (ac_try="$ac_compile"
6495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6496 *) ac_try_echo=$ac_try;;
6498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6499 $as_echo "$ac_try_echo") >&5
6500 (eval "$ac_compile") 2>conftest.er1
6502 grep -v '^ *+' conftest.er1 >conftest.err
6504 cat conftest.err >&5
6505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506 (exit $ac_status); } && {
6507 test -z "$ac_c_werror_flag" ||
6508 test ! -s conftest.err
6509 } && test -s conftest.$ac_objext; then
6510 ac_lo=$ac_mid; break
6512 $as_echo "$as_me: failed program was:" >&5
6513 sed 's/^/| /' conftest.$ac_ext >&5
6515 ac_hi=`expr '(' $ac_mid ')' - 1`
6516 if test $ac_mid -le $ac_hi; then
6520 ac_mid=`expr 2 '*' $ac_mid`
6523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6526 $as_echo "$as_me: failed program was:" >&5
6527 sed 's/^/| /' conftest.$ac_ext >&5
6532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6536 # Binary search between lo and hi bounds.
6537 while test "x$ac_lo" != "x$ac_hi"; do
6538 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6539 cat >conftest.$ac_ext <<_ACEOF
6542 cat confdefs.h >>conftest.$ac_ext
6543 cat >>conftest.$ac_ext <<_ACEOF
6544 /* end confdefs.h. */
6545 $ac_includes_default
6549 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) <= $ac_mid)];
6556 rm -f conftest.$ac_objext
6557 if { (ac_try="$ac_compile"
6559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6560 *) ac_try_echo=$ac_try;;
6562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6563 $as_echo "$ac_try_echo") >&5
6564 (eval "$ac_compile") 2>conftest.er1
6566 grep -v '^ *+' conftest.er1 >conftest.err
6568 cat conftest.err >&5
6569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570 (exit $ac_status); } && {
6571 test -z "$ac_c_werror_flag" ||
6572 test ! -s conftest.err
6573 } && test -s conftest.$ac_objext; then
6576 $as_echo "$as_me: failed program was:" >&5
6577 sed 's/^/| /' conftest.$ac_ext >&5
6579 ac_lo=`expr '(' $ac_mid ')' + 1`
6582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6585 ?*) ac_cv_sizeof_signed_char=$ac_lo;;
6586 '') if test "$ac_cv_type_signed_char" = yes; then
6587 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6589 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed char)
6590 See \`config.log' for more details." >&5
6591 $as_echo "$as_me: error: cannot compute sizeof (signed char)
6592 See \`config.log' for more details." >&2;}
6593 { (exit 77); exit 77; }; }; }
6595 ac_cv_sizeof_signed_char=0
6599 cat >conftest.$ac_ext <<_ACEOF
6602 cat confdefs.h >>conftest.$ac_ext
6603 cat >>conftest.$ac_ext <<_ACEOF
6604 /* end confdefs.h. */
6605 $ac_includes_default
6606 static long int longval () { return (long int) (sizeof (signed char)); }
6607 static unsigned long int ulongval () { return (long int) (sizeof (signed char)); }
6614 FILE *f = fopen ("conftest.val", "w");
6617 if (((long int) (sizeof (signed char))) < 0)
6619 long int i = longval ();
6620 if (i != ((long int) (sizeof (signed char))))
6622 fprintf (f, "%ld", i);
6626 unsigned long int i = ulongval ();
6627 if (i != ((long int) (sizeof (signed char))))
6629 fprintf (f, "%lu", i);
6631 /* Do not output a trailing newline, as this causes \r\n confusion
6632 on some platforms. */
6633 return ferror (f) || fclose (f) != 0;
6639 rm -f conftest$ac_exeext
6640 if { (ac_try="$ac_link"
6642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6643 *) ac_try_echo=$ac_try;;
6645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6646 $as_echo "$ac_try_echo") >&5
6647 (eval "$ac_link") 2>&5
6649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6651 { (case "(($ac_try" in
6652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6653 *) ac_try_echo=$ac_try;;
6655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6656 $as_echo "$ac_try_echo") >&5
6657 (eval "$ac_try") 2>&5
6659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660 (exit $ac_status); }; }; then
6661 ac_cv_sizeof_signed_char=`cat conftest.val`
6663 $as_echo "$as_me: program exited with status $ac_status" >&5
6664 $as_echo "$as_me: failed program was:" >&5
6665 sed 's/^/| /' conftest.$ac_ext >&5
6668 if test "$ac_cv_type_signed_char" = yes; then
6669 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6670 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6671 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed char)
6672 See \`config.log' for more details." >&5
6673 $as_echo "$as_me: error: cannot compute sizeof (signed char)
6674 See \`config.log' for more details." >&2;}
6675 { (exit 77); exit 77; }; }; }
6677 ac_cv_sizeof_signed_char=0
6680 rm -rf conftest.dSYM
6681 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6685 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_char" >&5
6686 $as_echo "$ac_cv_sizeof_signed_char" >&6; }
6690 cat >>confdefs.h <<_ACEOF
6691 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
6695 # The cast to long int works around a bug in the HP C Compiler
6696 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6697 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6698 # This bug is HP SR number 8606223364.
6699 { $as_echo "$as_me:$LINENO: checking size of signed short" >&5
6700 $as_echo_n "checking size of signed short... " >&6; }
6701 if test "${ac_cv_sizeof_signed_short+set}" = set; then
6702 $as_echo_n "(cached) " >&6
6704 if test "$cross_compiling" = yes; then
6705 # Depending upon the size, compute the lo and hi bounds.
6706 cat >conftest.$ac_ext <<_ACEOF
6709 cat confdefs.h >>conftest.$ac_ext
6710 cat >>conftest.$ac_ext <<_ACEOF
6711 /* end confdefs.h. */
6712 $ac_includes_default
6716 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) >= 0)];
6723 rm -f conftest.$ac_objext
6724 if { (ac_try="$ac_compile"
6726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6727 *) ac_try_echo=$ac_try;;
6729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6730 $as_echo "$ac_try_echo") >&5
6731 (eval "$ac_compile") 2>conftest.er1
6733 grep -v '^ *+' conftest.er1 >conftest.err
6735 cat conftest.err >&5
6736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6737 (exit $ac_status); } && {
6738 test -z "$ac_c_werror_flag" ||
6739 test ! -s conftest.err
6740 } && test -s conftest.$ac_objext; then
6743 cat >conftest.$ac_ext <<_ACEOF
6746 cat confdefs.h >>conftest.$ac_ext
6747 cat >>conftest.$ac_ext <<_ACEOF
6748 /* end confdefs.h. */
6749 $ac_includes_default
6753 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) <= $ac_mid)];
6760 rm -f conftest.$ac_objext
6761 if { (ac_try="$ac_compile"
6763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6764 *) ac_try_echo=$ac_try;;
6766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6767 $as_echo "$ac_try_echo") >&5
6768 (eval "$ac_compile") 2>conftest.er1
6770 grep -v '^ *+' conftest.er1 >conftest.err
6772 cat conftest.err >&5
6773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774 (exit $ac_status); } && {
6775 test -z "$ac_c_werror_flag" ||
6776 test ! -s conftest.err
6777 } && test -s conftest.$ac_objext; then
6778 ac_hi=$ac_mid; break
6780 $as_echo "$as_me: failed program was:" >&5
6781 sed 's/^/| /' conftest.$ac_ext >&5
6783 ac_lo=`expr $ac_mid + 1`
6784 if test $ac_lo -le $ac_mid; then
6788 ac_mid=`expr 2 '*' $ac_mid + 1`
6791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6794 $as_echo "$as_me: failed program was:" >&5
6795 sed 's/^/| /' conftest.$ac_ext >&5
6797 cat >conftest.$ac_ext <<_ACEOF
6800 cat confdefs.h >>conftest.$ac_ext
6801 cat >>conftest.$ac_ext <<_ACEOF
6802 /* end confdefs.h. */
6803 $ac_includes_default
6807 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) < 0)];
6814 rm -f conftest.$ac_objext
6815 if { (ac_try="$ac_compile"
6817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6818 *) ac_try_echo=$ac_try;;
6820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6821 $as_echo "$ac_try_echo") >&5
6822 (eval "$ac_compile") 2>conftest.er1
6824 grep -v '^ *+' conftest.er1 >conftest.err
6826 cat conftest.err >&5
6827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828 (exit $ac_status); } && {
6829 test -z "$ac_c_werror_flag" ||
6830 test ! -s conftest.err
6831 } && test -s conftest.$ac_objext; then
6834 cat >conftest.$ac_ext <<_ACEOF
6837 cat confdefs.h >>conftest.$ac_ext
6838 cat >>conftest.$ac_ext <<_ACEOF
6839 /* end confdefs.h. */
6840 $ac_includes_default
6844 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) >= $ac_mid)];
6851 rm -f conftest.$ac_objext
6852 if { (ac_try="$ac_compile"
6854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6855 *) ac_try_echo=$ac_try;;
6857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6858 $as_echo "$ac_try_echo") >&5
6859 (eval "$ac_compile") 2>conftest.er1
6861 grep -v '^ *+' conftest.er1 >conftest.err
6863 cat conftest.err >&5
6864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865 (exit $ac_status); } && {
6866 test -z "$ac_c_werror_flag" ||
6867 test ! -s conftest.err
6868 } && test -s conftest.$ac_objext; then
6869 ac_lo=$ac_mid; break
6871 $as_echo "$as_me: failed program was:" >&5
6872 sed 's/^/| /' conftest.$ac_ext >&5
6874 ac_hi=`expr '(' $ac_mid ')' - 1`
6875 if test $ac_mid -le $ac_hi; then
6879 ac_mid=`expr 2 '*' $ac_mid`
6882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6885 $as_echo "$as_me: failed program was:" >&5
6886 sed 's/^/| /' conftest.$ac_ext >&5
6891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6895 # Binary search between lo and hi bounds.
6896 while test "x$ac_lo" != "x$ac_hi"; do
6897 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6898 cat >conftest.$ac_ext <<_ACEOF
6901 cat confdefs.h >>conftest.$ac_ext
6902 cat >>conftest.$ac_ext <<_ACEOF
6903 /* end confdefs.h. */
6904 $ac_includes_default
6908 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) <= $ac_mid)];
6915 rm -f conftest.$ac_objext
6916 if { (ac_try="$ac_compile"
6918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6919 *) ac_try_echo=$ac_try;;
6921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6922 $as_echo "$ac_try_echo") >&5
6923 (eval "$ac_compile") 2>conftest.er1
6925 grep -v '^ *+' conftest.er1 >conftest.err
6927 cat conftest.err >&5
6928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929 (exit $ac_status); } && {
6930 test -z "$ac_c_werror_flag" ||
6931 test ! -s conftest.err
6932 } && test -s conftest.$ac_objext; then
6935 $as_echo "$as_me: failed program was:" >&5
6936 sed 's/^/| /' conftest.$ac_ext >&5
6938 ac_lo=`expr '(' $ac_mid ')' + 1`
6941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6944 ?*) ac_cv_sizeof_signed_short=$ac_lo;;
6945 '') if test "$ac_cv_type_signed_short" = yes; then
6946 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6947 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6948 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed short)
6949 See \`config.log' for more details." >&5
6950 $as_echo "$as_me: error: cannot compute sizeof (signed short)
6951 See \`config.log' for more details." >&2;}
6952 { (exit 77); exit 77; }; }; }
6954 ac_cv_sizeof_signed_short=0
6958 cat >conftest.$ac_ext <<_ACEOF
6961 cat confdefs.h >>conftest.$ac_ext
6962 cat >>conftest.$ac_ext <<_ACEOF
6963 /* end confdefs.h. */
6964 $ac_includes_default
6965 static long int longval () { return (long int) (sizeof (signed short)); }
6966 static unsigned long int ulongval () { return (long int) (sizeof (signed short)); }
6973 FILE *f = fopen ("conftest.val", "w");
6976 if (((long int) (sizeof (signed short))) < 0)
6978 long int i = longval ();
6979 if (i != ((long int) (sizeof (signed short))))
6981 fprintf (f, "%ld", i);
6985 unsigned long int i = ulongval ();
6986 if (i != ((long int) (sizeof (signed short))))
6988 fprintf (f, "%lu", i);
6990 /* Do not output a trailing newline, as this causes \r\n confusion
6991 on some platforms. */
6992 return ferror (f) || fclose (f) != 0;
6998 rm -f conftest$ac_exeext
6999 if { (ac_try="$ac_link"
7001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7002 *) ac_try_echo=$ac_try;;
7004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7005 $as_echo "$ac_try_echo") >&5
7006 (eval "$ac_link") 2>&5
7008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7010 { (case "(($ac_try" in
7011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7012 *) ac_try_echo=$ac_try;;
7014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7015 $as_echo "$ac_try_echo") >&5
7016 (eval "$ac_try") 2>&5
7018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); }; }; then
7020 ac_cv_sizeof_signed_short=`cat conftest.val`
7022 $as_echo "$as_me: program exited with status $ac_status" >&5
7023 $as_echo "$as_me: failed program was:" >&5
7024 sed 's/^/| /' conftest.$ac_ext >&5
7027 if test "$ac_cv_type_signed_short" = yes; then
7028 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7029 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7030 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed short)
7031 See \`config.log' for more details." >&5
7032 $as_echo "$as_me: error: cannot compute sizeof (signed short)
7033 See \`config.log' for more details." >&2;}
7034 { (exit 77); exit 77; }; }; }
7036 ac_cv_sizeof_signed_short=0
7039 rm -rf conftest.dSYM
7040 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7044 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_short" >&5
7045 $as_echo "$ac_cv_sizeof_signed_short" >&6; }
7049 cat >>confdefs.h <<_ACEOF
7050 #define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
7054 # The cast to long int works around a bug in the HP C Compiler
7055 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7056 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7057 # This bug is HP SR number 8606223364.
7058 { $as_echo "$as_me:$LINENO: checking size of signed" >&5
7059 $as_echo_n "checking size of signed... " >&6; }
7060 if test "${ac_cv_sizeof_signed+set}" = set; then
7061 $as_echo_n "(cached) " >&6
7063 if test "$cross_compiling" = yes; then
7064 # Depending upon the size, compute the lo and hi bounds.
7065 cat >conftest.$ac_ext <<_ACEOF
7068 cat confdefs.h >>conftest.$ac_ext
7069 cat >>conftest.$ac_ext <<_ACEOF
7070 /* end confdefs.h. */
7071 $ac_includes_default
7075 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) >= 0)];
7082 rm -f conftest.$ac_objext
7083 if { (ac_try="$ac_compile"
7085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7086 *) ac_try_echo=$ac_try;;
7088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7089 $as_echo "$ac_try_echo") >&5
7090 (eval "$ac_compile") 2>conftest.er1
7092 grep -v '^ *+' conftest.er1 >conftest.err
7094 cat conftest.err >&5
7095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096 (exit $ac_status); } && {
7097 test -z "$ac_c_werror_flag" ||
7098 test ! -s conftest.err
7099 } && test -s conftest.$ac_objext; then
7102 cat >conftest.$ac_ext <<_ACEOF
7105 cat confdefs.h >>conftest.$ac_ext
7106 cat >>conftest.$ac_ext <<_ACEOF
7107 /* end confdefs.h. */
7108 $ac_includes_default
7112 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) <= $ac_mid)];
7119 rm -f conftest.$ac_objext
7120 if { (ac_try="$ac_compile"
7122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7123 *) ac_try_echo=$ac_try;;
7125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7126 $as_echo "$ac_try_echo") >&5
7127 (eval "$ac_compile") 2>conftest.er1
7129 grep -v '^ *+' conftest.er1 >conftest.err
7131 cat conftest.err >&5
7132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133 (exit $ac_status); } && {
7134 test -z "$ac_c_werror_flag" ||
7135 test ! -s conftest.err
7136 } && test -s conftest.$ac_objext; then
7137 ac_hi=$ac_mid; break
7139 $as_echo "$as_me: failed program was:" >&5
7140 sed 's/^/| /' conftest.$ac_ext >&5
7142 ac_lo=`expr $ac_mid + 1`
7143 if test $ac_lo -le $ac_mid; then
7147 ac_mid=`expr 2 '*' $ac_mid + 1`
7150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7153 $as_echo "$as_me: failed program was:" >&5
7154 sed 's/^/| /' conftest.$ac_ext >&5
7156 cat >conftest.$ac_ext <<_ACEOF
7159 cat confdefs.h >>conftest.$ac_ext
7160 cat >>conftest.$ac_ext <<_ACEOF
7161 /* end confdefs.h. */
7162 $ac_includes_default
7166 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) < 0)];
7173 rm -f conftest.$ac_objext
7174 if { (ac_try="$ac_compile"
7176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7177 *) ac_try_echo=$ac_try;;
7179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7180 $as_echo "$ac_try_echo") >&5
7181 (eval "$ac_compile") 2>conftest.er1
7183 grep -v '^ *+' conftest.er1 >conftest.err
7185 cat conftest.err >&5
7186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187 (exit $ac_status); } && {
7188 test -z "$ac_c_werror_flag" ||
7189 test ! -s conftest.err
7190 } && test -s conftest.$ac_objext; then
7193 cat >conftest.$ac_ext <<_ACEOF
7196 cat confdefs.h >>conftest.$ac_ext
7197 cat >>conftest.$ac_ext <<_ACEOF
7198 /* end confdefs.h. */
7199 $ac_includes_default
7203 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) >= $ac_mid)];
7210 rm -f conftest.$ac_objext
7211 if { (ac_try="$ac_compile"
7213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7214 *) ac_try_echo=$ac_try;;
7216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7217 $as_echo "$ac_try_echo") >&5
7218 (eval "$ac_compile") 2>conftest.er1
7220 grep -v '^ *+' conftest.er1 >conftest.err
7222 cat conftest.err >&5
7223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224 (exit $ac_status); } && {
7225 test -z "$ac_c_werror_flag" ||
7226 test ! -s conftest.err
7227 } && test -s conftest.$ac_objext; then
7228 ac_lo=$ac_mid; break
7230 $as_echo "$as_me: failed program was:" >&5
7231 sed 's/^/| /' conftest.$ac_ext >&5
7233 ac_hi=`expr '(' $ac_mid ')' - 1`
7234 if test $ac_mid -le $ac_hi; then
7238 ac_mid=`expr 2 '*' $ac_mid`
7241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7244 $as_echo "$as_me: failed program was:" >&5
7245 sed 's/^/| /' conftest.$ac_ext >&5
7250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7254 # Binary search between lo and hi bounds.
7255 while test "x$ac_lo" != "x$ac_hi"; do
7256 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7257 cat >conftest.$ac_ext <<_ACEOF
7260 cat confdefs.h >>conftest.$ac_ext
7261 cat >>conftest.$ac_ext <<_ACEOF
7262 /* end confdefs.h. */
7263 $ac_includes_default
7267 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) <= $ac_mid)];
7274 rm -f conftest.$ac_objext
7275 if { (ac_try="$ac_compile"
7277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7278 *) ac_try_echo=$ac_try;;
7280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7281 $as_echo "$ac_try_echo") >&5
7282 (eval "$ac_compile") 2>conftest.er1
7284 grep -v '^ *+' conftest.er1 >conftest.err
7286 cat conftest.err >&5
7287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288 (exit $ac_status); } && {
7289 test -z "$ac_c_werror_flag" ||
7290 test ! -s conftest.err
7291 } && test -s conftest.$ac_objext; then
7294 $as_echo "$as_me: failed program was:" >&5
7295 sed 's/^/| /' conftest.$ac_ext >&5
7297 ac_lo=`expr '(' $ac_mid ')' + 1`
7300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7303 ?*) ac_cv_sizeof_signed=$ac_lo;;
7304 '') if test "$ac_cv_type_signed" = yes; then
7305 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7306 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7307 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed)
7308 See \`config.log' for more details." >&5
7309 $as_echo "$as_me: error: cannot compute sizeof (signed)
7310 See \`config.log' for more details." >&2;}
7311 { (exit 77); exit 77; }; }; }
7313 ac_cv_sizeof_signed=0
7317 cat >conftest.$ac_ext <<_ACEOF
7320 cat confdefs.h >>conftest.$ac_ext
7321 cat >>conftest.$ac_ext <<_ACEOF
7322 /* end confdefs.h. */
7323 $ac_includes_default
7324 static long int longval () { return (long int) (sizeof (signed)); }
7325 static unsigned long int ulongval () { return (long int) (sizeof (signed)); }
7332 FILE *f = fopen ("conftest.val", "w");
7335 if (((long int) (sizeof (signed))) < 0)
7337 long int i = longval ();
7338 if (i != ((long int) (sizeof (signed))))
7340 fprintf (f, "%ld", i);
7344 unsigned long int i = ulongval ();
7345 if (i != ((long int) (sizeof (signed))))
7347 fprintf (f, "%lu", i);
7349 /* Do not output a trailing newline, as this causes \r\n confusion
7350 on some platforms. */
7351 return ferror (f) || fclose (f) != 0;
7357 rm -f conftest$ac_exeext
7358 if { (ac_try="$ac_link"
7360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7361 *) ac_try_echo=$ac_try;;
7363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7364 $as_echo "$ac_try_echo") >&5
7365 (eval "$ac_link") 2>&5
7367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7369 { (case "(($ac_try" in
7370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7371 *) ac_try_echo=$ac_try;;
7373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7374 $as_echo "$ac_try_echo") >&5
7375 (eval "$ac_try") 2>&5
7377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7378 (exit $ac_status); }; }; then
7379 ac_cv_sizeof_signed=`cat conftest.val`
7381 $as_echo "$as_me: program exited with status $ac_status" >&5
7382 $as_echo "$as_me: failed program was:" >&5
7383 sed 's/^/| /' conftest.$ac_ext >&5
7386 if test "$ac_cv_type_signed" = yes; then
7387 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7388 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7389 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed)
7390 See \`config.log' for more details." >&5
7391 $as_echo "$as_me: error: cannot compute sizeof (signed)
7392 See \`config.log' for more details." >&2;}
7393 { (exit 77); exit 77; }; }; }
7395 ac_cv_sizeof_signed=0
7398 rm -rf conftest.dSYM
7399 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7403 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed" >&5
7404 $as_echo "$ac_cv_sizeof_signed" >&6; }
7408 cat >>confdefs.h <<_ACEOF
7409 #define SIZEOF_SIGNED $ac_cv_sizeof_signed
7413 # The cast to long int works around a bug in the HP C Compiler
7414 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7415 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7416 # This bug is HP SR number 8606223364.
7417 { $as_echo "$as_me:$LINENO: checking size of signed long long" >&5
7418 $as_echo_n "checking size of signed long long... " >&6; }
7419 if test "${ac_cv_sizeof_signed_long_long+set}" = set; then
7420 $as_echo_n "(cached) " >&6
7422 if test "$cross_compiling" = yes; then
7423 # Depending upon the size, compute the lo and hi bounds.
7424 cat >conftest.$ac_ext <<_ACEOF
7427 cat confdefs.h >>conftest.$ac_ext
7428 cat >>conftest.$ac_ext <<_ACEOF
7429 /* end confdefs.h. */
7430 $ac_includes_default
7434 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) >= 0)];
7441 rm -f conftest.$ac_objext
7442 if { (ac_try="$ac_compile"
7444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7445 *) ac_try_echo=$ac_try;;
7447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7448 $as_echo "$ac_try_echo") >&5
7449 (eval "$ac_compile") 2>conftest.er1
7451 grep -v '^ *+' conftest.er1 >conftest.err
7453 cat conftest.err >&5
7454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455 (exit $ac_status); } && {
7456 test -z "$ac_c_werror_flag" ||
7457 test ! -s conftest.err
7458 } && test -s conftest.$ac_objext; then
7461 cat >conftest.$ac_ext <<_ACEOF
7464 cat confdefs.h >>conftest.$ac_ext
7465 cat >>conftest.$ac_ext <<_ACEOF
7466 /* end confdefs.h. */
7467 $ac_includes_default
7471 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) <= $ac_mid)];
7478 rm -f conftest.$ac_objext
7479 if { (ac_try="$ac_compile"
7481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7482 *) ac_try_echo=$ac_try;;
7484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7485 $as_echo "$ac_try_echo") >&5
7486 (eval "$ac_compile") 2>conftest.er1
7488 grep -v '^ *+' conftest.er1 >conftest.err
7490 cat conftest.err >&5
7491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7492 (exit $ac_status); } && {
7493 test -z "$ac_c_werror_flag" ||
7494 test ! -s conftest.err
7495 } && test -s conftest.$ac_objext; then
7496 ac_hi=$ac_mid; break
7498 $as_echo "$as_me: failed program was:" >&5
7499 sed 's/^/| /' conftest.$ac_ext >&5
7501 ac_lo=`expr $ac_mid + 1`
7502 if test $ac_lo -le $ac_mid; then
7506 ac_mid=`expr 2 '*' $ac_mid + 1`
7509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7512 $as_echo "$as_me: failed program was:" >&5
7513 sed 's/^/| /' conftest.$ac_ext >&5
7515 cat >conftest.$ac_ext <<_ACEOF
7518 cat confdefs.h >>conftest.$ac_ext
7519 cat >>conftest.$ac_ext <<_ACEOF
7520 /* end confdefs.h. */
7521 $ac_includes_default
7525 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) < 0)];
7532 rm -f conftest.$ac_objext
7533 if { (ac_try="$ac_compile"
7535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7536 *) ac_try_echo=$ac_try;;
7538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7539 $as_echo "$ac_try_echo") >&5
7540 (eval "$ac_compile") 2>conftest.er1
7542 grep -v '^ *+' conftest.er1 >conftest.err
7544 cat conftest.err >&5
7545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546 (exit $ac_status); } && {
7547 test -z "$ac_c_werror_flag" ||
7548 test ! -s conftest.err
7549 } && test -s conftest.$ac_objext; then
7552 cat >conftest.$ac_ext <<_ACEOF
7555 cat confdefs.h >>conftest.$ac_ext
7556 cat >>conftest.$ac_ext <<_ACEOF
7557 /* end confdefs.h. */
7558 $ac_includes_default
7562 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) >= $ac_mid)];
7569 rm -f conftest.$ac_objext
7570 if { (ac_try="$ac_compile"
7572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7573 *) ac_try_echo=$ac_try;;
7575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7576 $as_echo "$ac_try_echo") >&5
7577 (eval "$ac_compile") 2>conftest.er1
7579 grep -v '^ *+' conftest.er1 >conftest.err
7581 cat conftest.err >&5
7582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7583 (exit $ac_status); } && {
7584 test -z "$ac_c_werror_flag" ||
7585 test ! -s conftest.err
7586 } && test -s conftest.$ac_objext; then
7587 ac_lo=$ac_mid; break
7589 $as_echo "$as_me: failed program was:" >&5
7590 sed 's/^/| /' conftest.$ac_ext >&5
7592 ac_hi=`expr '(' $ac_mid ')' - 1`
7593 if test $ac_mid -le $ac_hi; then
7597 ac_mid=`expr 2 '*' $ac_mid`
7600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7603 $as_echo "$as_me: failed program was:" >&5
7604 sed 's/^/| /' conftest.$ac_ext >&5
7609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7613 # Binary search between lo and hi bounds.
7614 while test "x$ac_lo" != "x$ac_hi"; do
7615 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7616 cat >conftest.$ac_ext <<_ACEOF
7619 cat confdefs.h >>conftest.$ac_ext
7620 cat >>conftest.$ac_ext <<_ACEOF
7621 /* end confdefs.h. */
7622 $ac_includes_default
7626 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) <= $ac_mid)];
7633 rm -f conftest.$ac_objext
7634 if { (ac_try="$ac_compile"
7636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7637 *) ac_try_echo=$ac_try;;
7639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7640 $as_echo "$ac_try_echo") >&5
7641 (eval "$ac_compile") 2>conftest.er1
7643 grep -v '^ *+' conftest.er1 >conftest.err
7645 cat conftest.err >&5
7646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647 (exit $ac_status); } && {
7648 test -z "$ac_c_werror_flag" ||
7649 test ! -s conftest.err
7650 } && test -s conftest.$ac_objext; then
7653 $as_echo "$as_me: failed program was:" >&5
7654 sed 's/^/| /' conftest.$ac_ext >&5
7656 ac_lo=`expr '(' $ac_mid ')' + 1`
7659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7662 ?*) ac_cv_sizeof_signed_long_long=$ac_lo;;
7663 '') if test "$ac_cv_type_signed_long_long" = yes; then
7664 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7665 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7666 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
7667 See \`config.log' for more details." >&5
7668 $as_echo "$as_me: error: cannot compute sizeof (signed long long)
7669 See \`config.log' for more details." >&2;}
7670 { (exit 77); exit 77; }; }; }
7672 ac_cv_sizeof_signed_long_long=0
7676 cat >conftest.$ac_ext <<_ACEOF
7679 cat confdefs.h >>conftest.$ac_ext
7680 cat >>conftest.$ac_ext <<_ACEOF
7681 /* end confdefs.h. */
7682 $ac_includes_default
7683 static long int longval () { return (long int) (sizeof (signed long long)); }
7684 static unsigned long int ulongval () { return (long int) (sizeof (signed long long)); }
7691 FILE *f = fopen ("conftest.val", "w");
7694 if (((long int) (sizeof (signed long long))) < 0)
7696 long int i = longval ();
7697 if (i != ((long int) (sizeof (signed long long))))
7699 fprintf (f, "%ld", i);
7703 unsigned long int i = ulongval ();
7704 if (i != ((long int) (sizeof (signed long long))))
7706 fprintf (f, "%lu", i);
7708 /* Do not output a trailing newline, as this causes \r\n confusion
7709 on some platforms. */
7710 return ferror (f) || fclose (f) != 0;
7716 rm -f conftest$ac_exeext
7717 if { (ac_try="$ac_link"
7719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7720 *) ac_try_echo=$ac_try;;
7722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7723 $as_echo "$ac_try_echo") >&5
7724 (eval "$ac_link") 2>&5
7726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7728 { (case "(($ac_try" in
7729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7730 *) ac_try_echo=$ac_try;;
7732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7733 $as_echo "$ac_try_echo") >&5
7734 (eval "$ac_try") 2>&5
7736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 (exit $ac_status); }; }; then
7738 ac_cv_sizeof_signed_long_long=`cat conftest.val`
7740 $as_echo "$as_me: program exited with status $ac_status" >&5
7741 $as_echo "$as_me: failed program was:" >&5
7742 sed 's/^/| /' conftest.$ac_ext >&5
7745 if test "$ac_cv_type_signed_long_long" = yes; then
7746 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7747 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7748 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
7749 See \`config.log' for more details." >&5
7750 $as_echo "$as_me: error: cannot compute sizeof (signed long long)
7751 See \`config.log' for more details." >&2;}
7752 { (exit 77); exit 77; }; }; }
7754 ac_cv_sizeof_signed_long_long=0
7757 rm -rf conftest.dSYM
7758 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7762 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_long_long" >&5
7763 $as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
7767 cat >>confdefs.h <<_ACEOF
7768 #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
7772 # The cast to long int works around a bug in the HP C Compiler
7773 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7774 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7775 # This bug is HP SR number 8606223364.
7776 { $as_echo "$as_me:$LINENO: checking size of void*" >&5
7777 $as_echo_n "checking size of void*... " >&6; }
7778 if test "${ac_cv_sizeof_voidp+set}" = set; then
7779 $as_echo_n "(cached) " >&6
7781 if test "$cross_compiling" = yes; then
7782 # Depending upon the size, compute the lo and hi bounds.
7783 cat >conftest.$ac_ext <<_ACEOF
7786 cat confdefs.h >>conftest.$ac_ext
7787 cat >>conftest.$ac_ext <<_ACEOF
7788 /* end confdefs.h. */
7789 $ac_includes_default
7793 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) >= 0)];
7800 rm -f conftest.$ac_objext
7801 if { (ac_try="$ac_compile"
7803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7804 *) ac_try_echo=$ac_try;;
7806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7807 $as_echo "$ac_try_echo") >&5
7808 (eval "$ac_compile") 2>conftest.er1
7810 grep -v '^ *+' conftest.er1 >conftest.err
7812 cat conftest.err >&5
7813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814 (exit $ac_status); } && {
7815 test -z "$ac_c_werror_flag" ||
7816 test ! -s conftest.err
7817 } && test -s conftest.$ac_objext; then
7820 cat >conftest.$ac_ext <<_ACEOF
7823 cat confdefs.h >>conftest.$ac_ext
7824 cat >>conftest.$ac_ext <<_ACEOF
7825 /* end confdefs.h. */
7826 $ac_includes_default
7830 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) <= $ac_mid)];
7837 rm -f conftest.$ac_objext
7838 if { (ac_try="$ac_compile"
7840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7841 *) ac_try_echo=$ac_try;;
7843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7844 $as_echo "$ac_try_echo") >&5
7845 (eval "$ac_compile") 2>conftest.er1
7847 grep -v '^ *+' conftest.er1 >conftest.err
7849 cat conftest.err >&5
7850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851 (exit $ac_status); } && {
7852 test -z "$ac_c_werror_flag" ||
7853 test ! -s conftest.err
7854 } && test -s conftest.$ac_objext; then
7855 ac_hi=$ac_mid; break
7857 $as_echo "$as_me: failed program was:" >&5
7858 sed 's/^/| /' conftest.$ac_ext >&5
7860 ac_lo=`expr $ac_mid + 1`
7861 if test $ac_lo -le $ac_mid; then
7865 ac_mid=`expr 2 '*' $ac_mid + 1`
7868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7871 $as_echo "$as_me: failed program was:" >&5
7872 sed 's/^/| /' conftest.$ac_ext >&5
7874 cat >conftest.$ac_ext <<_ACEOF
7877 cat confdefs.h >>conftest.$ac_ext
7878 cat >>conftest.$ac_ext <<_ACEOF
7879 /* end confdefs.h. */
7880 $ac_includes_default
7884 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) < 0)];
7891 rm -f conftest.$ac_objext
7892 if { (ac_try="$ac_compile"
7894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7895 *) ac_try_echo=$ac_try;;
7897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7898 $as_echo "$ac_try_echo") >&5
7899 (eval "$ac_compile") 2>conftest.er1
7901 grep -v '^ *+' conftest.er1 >conftest.err
7903 cat conftest.err >&5
7904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7905 (exit $ac_status); } && {
7906 test -z "$ac_c_werror_flag" ||
7907 test ! -s conftest.err
7908 } && test -s conftest.$ac_objext; then
7911 cat >conftest.$ac_ext <<_ACEOF
7914 cat confdefs.h >>conftest.$ac_ext
7915 cat >>conftest.$ac_ext <<_ACEOF
7916 /* end confdefs.h. */
7917 $ac_includes_default
7921 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) >= $ac_mid)];
7928 rm -f conftest.$ac_objext
7929 if { (ac_try="$ac_compile"
7931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7932 *) ac_try_echo=$ac_try;;
7934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7935 $as_echo "$ac_try_echo") >&5
7936 (eval "$ac_compile") 2>conftest.er1
7938 grep -v '^ *+' conftest.er1 >conftest.err
7940 cat conftest.err >&5
7941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942 (exit $ac_status); } && {
7943 test -z "$ac_c_werror_flag" ||
7944 test ! -s conftest.err
7945 } && test -s conftest.$ac_objext; then
7946 ac_lo=$ac_mid; break
7948 $as_echo "$as_me: failed program was:" >&5
7949 sed 's/^/| /' conftest.$ac_ext >&5
7951 ac_hi=`expr '(' $ac_mid ')' - 1`
7952 if test $ac_mid -le $ac_hi; then
7956 ac_mid=`expr 2 '*' $ac_mid`
7959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7962 $as_echo "$as_me: failed program was:" >&5
7963 sed 's/^/| /' conftest.$ac_ext >&5
7968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7972 # Binary search between lo and hi bounds.
7973 while test "x$ac_lo" != "x$ac_hi"; do
7974 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7975 cat >conftest.$ac_ext <<_ACEOF
7978 cat confdefs.h >>conftest.$ac_ext
7979 cat >>conftest.$ac_ext <<_ACEOF
7980 /* end confdefs.h. */
7981 $ac_includes_default
7985 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) <= $ac_mid)];
7992 rm -f conftest.$ac_objext
7993 if { (ac_try="$ac_compile"
7995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7996 *) ac_try_echo=$ac_try;;
7998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7999 $as_echo "$ac_try_echo") >&5
8000 (eval "$ac_compile") 2>conftest.er1
8002 grep -v '^ *+' conftest.er1 >conftest.err
8004 cat conftest.err >&5
8005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006 (exit $ac_status); } && {
8007 test -z "$ac_c_werror_flag" ||
8008 test ! -s conftest.err
8009 } && test -s conftest.$ac_objext; then
8012 $as_echo "$as_me: failed program was:" >&5
8013 sed 's/^/| /' conftest.$ac_ext >&5
8015 ac_lo=`expr '(' $ac_mid ')' + 1`
8018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8021 ?*) ac_cv_sizeof_voidp=$ac_lo;;
8022 '') if test "$ac_cv_type_voidp" = yes; then
8023 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8025 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
8026 See \`config.log' for more details." >&5
8027 $as_echo "$as_me: error: cannot compute sizeof (void*)
8028 See \`config.log' for more details." >&2;}
8029 { (exit 77); exit 77; }; }; }
8031 ac_cv_sizeof_voidp=0
8035 cat >conftest.$ac_ext <<_ACEOF
8038 cat confdefs.h >>conftest.$ac_ext
8039 cat >>conftest.$ac_ext <<_ACEOF
8040 /* end confdefs.h. */
8041 $ac_includes_default
8042 static long int longval () { return (long int) (sizeof (void*)); }
8043 static unsigned long int ulongval () { return (long int) (sizeof (void*)); }
8050 FILE *f = fopen ("conftest.val", "w");
8053 if (((long int) (sizeof (void*))) < 0)
8055 long int i = longval ();
8056 if (i != ((long int) (sizeof (void*))))
8058 fprintf (f, "%ld", i);
8062 unsigned long int i = ulongval ();
8063 if (i != ((long int) (sizeof (void*))))
8065 fprintf (f, "%lu", i);
8067 /* Do not output a trailing newline, as this causes \r\n confusion
8068 on some platforms. */
8069 return ferror (f) || fclose (f) != 0;
8075 rm -f conftest$ac_exeext
8076 if { (ac_try="$ac_link"
8078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8079 *) ac_try_echo=$ac_try;;
8081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8082 $as_echo "$ac_try_echo") >&5
8083 (eval "$ac_link") 2>&5
8085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8087 { (case "(($ac_try" in
8088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8089 *) ac_try_echo=$ac_try;;
8091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8092 $as_echo "$ac_try_echo") >&5
8093 (eval "$ac_try") 2>&5
8095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096 (exit $ac_status); }; }; then
8097 ac_cv_sizeof_voidp=`cat conftest.val`
8099 $as_echo "$as_me: program exited with status $ac_status" >&5
8100 $as_echo "$as_me: failed program was:" >&5
8101 sed 's/^/| /' conftest.$ac_ext >&5
8104 if test "$ac_cv_type_voidp" = yes; then
8105 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8106 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8107 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
8108 See \`config.log' for more details." >&5
8109 $as_echo "$as_me: error: cannot compute sizeof (void*)
8110 See \`config.log' for more details." >&2;}
8111 { (exit 77); exit 77; }; }; }
8113 ac_cv_sizeof_voidp=0
8116 rm -rf conftest.dSYM
8117 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8121 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
8122 $as_echo "$ac_cv_sizeof_voidp" >&6; }
8126 cat >>confdefs.h <<_ACEOF
8127 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
8134 # Extract the first word of "freetype-config", so it can be a program name with args.
8135 set dummy freetype-config; ac_word=$2
8136 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8137 $as_echo_n "checking for $ac_word... " >&6; }
8138 if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then
8139 $as_echo_n "(cached) " >&6
8141 case $FREETYPE_CONFIG in
8143 ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
8146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8147 as_dummy=""$PATH:/usr/local/bin:/sw/bin:/opt/local/bin""
8148 for as_dir in $as_dummy
8151 test -z "$as_dir" && as_dir=.
8152 for ac_exec_ext in '' $ac_executable_extensions; do
8153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8154 ac_cv_path_FREETYPE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8155 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8165 FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
8166 if test -n "$FREETYPE_CONFIG"; then
8167 { $as_echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
8168 $as_echo "$FREETYPE_CONFIG" >&6; }
8170 { $as_echo "$as_me:$LINENO: result: no" >&5
8171 $as_echo "no" >&6; }
8176 OLDCPPFLAGS="${CPPFLAGS}"
8178 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
8179 CPPFLAGS="$CPPFLAGS "`$FREETYPE_CONFIG --cflags`
8180 else if test -d /usr/include/freetype2; then
8181 CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
8182 else if test -d /usr/local/include/freetype2; then
8183 CPPFLAGS="$CPPFLAGS -I/usr/local/include/freetype2"
8188 if test "x${FREETYPE_CONFIG}" '=' "x";then
8189 # if we didn't find the freetype-config program, we won't
8190 # know where the libs are expected to be. So just blindly
8191 # try to link against them.
8192 { $as_echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
8193 $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
8194 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8195 $as_echo_n "(cached) " >&6
8197 ac_check_lib_save_LIBS=$LIBS
8198 LIBS="-lfreetype $LIBS"
8199 cat >conftest.$ac_ext <<_ACEOF
8202 cat confdefs.h >>conftest.$ac_ext
8203 cat >>conftest.$ac_ext <<_ACEOF
8204 /* end confdefs.h. */
8206 /* Override any GCC internal prototype to avoid an error.
8207 Use char because int might match the return type of a GCC
8208 builtin and then its argument prototype would still apply. */
8212 char FT_Init_FreeType ();
8216 return FT_Init_FreeType ();
8221 rm -f conftest.$ac_objext conftest$ac_exeext
8222 if { (ac_try="$ac_link"
8224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8225 *) ac_try_echo=$ac_try;;
8227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8228 $as_echo "$ac_try_echo") >&5
8229 (eval "$ac_link") 2>conftest.er1
8231 grep -v '^ *+' conftest.er1 >conftest.err
8233 cat conftest.err >&5
8234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235 (exit $ac_status); } && {
8236 test -z "$ac_c_werror_flag" ||
8237 test ! -s conftest.err
8238 } && test -s conftest$ac_exeext && {
8239 test "$cross_compiling" = yes ||
8240 $as_test_x conftest$ac_exeext
8242 ac_cv_lib_freetype_FT_Init_FreeType=yes
8244 $as_echo "$as_me: failed program was:" >&5
8245 sed 's/^/| /' conftest.$ac_ext >&5
8247 ac_cv_lib_freetype_FT_Init_FreeType=no
8250 rm -rf conftest.dSYM
8251 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8252 conftest$ac_exeext conftest.$ac_ext
8253 LIBS=$ac_check_lib_save_LIBS
8255 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
8256 $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
8257 if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then
8264 for ac_header in ft2build.h
8266 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8268 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8269 $as_echo_n "checking for $ac_header... " >&6; }
8270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8271 $as_echo_n "(cached) " >&6
8273 ac_res=`eval 'as_val=${'$as_ac_Header'}
8274 $as_echo "$as_val"'`
8275 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8276 $as_echo "$ac_res" >&6; }
8278 # Is the header compilable?
8279 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8280 $as_echo_n "checking $ac_header usability... " >&6; }
8281 cat >conftest.$ac_ext <<_ACEOF
8284 cat confdefs.h >>conftest.$ac_ext
8285 cat >>conftest.$ac_ext <<_ACEOF
8286 /* end confdefs.h. */
8287 $ac_includes_default
8288 #include <$ac_header>
8290 rm -f conftest.$ac_objext
8291 if { (ac_try="$ac_compile"
8293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8294 *) ac_try_echo=$ac_try;;
8296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8297 $as_echo "$ac_try_echo") >&5
8298 (eval "$ac_compile") 2>conftest.er1
8300 grep -v '^ *+' conftest.er1 >conftest.err
8302 cat conftest.err >&5
8303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304 (exit $ac_status); } && {
8305 test -z "$ac_c_werror_flag" ||
8306 test ! -s conftest.err
8307 } && test -s conftest.$ac_objext; then
8308 ac_header_compiler=yes
8310 $as_echo "$as_me: failed program was:" >&5
8311 sed 's/^/| /' conftest.$ac_ext >&5
8313 ac_header_compiler=no
8316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8317 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8318 $as_echo "$ac_header_compiler" >&6; }
8320 # Is the header present?
8321 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8322 $as_echo_n "checking $ac_header presence... " >&6; }
8323 cat >conftest.$ac_ext <<_ACEOF
8326 cat confdefs.h >>conftest.$ac_ext
8327 cat >>conftest.$ac_ext <<_ACEOF
8328 /* end confdefs.h. */
8329 #include <$ac_header>
8331 if { (ac_try="$ac_cpp conftest.$ac_ext"
8333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8334 *) ac_try_echo=$ac_try;;
8336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8337 $as_echo "$ac_try_echo") >&5
8338 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8340 grep -v '^ *+' conftest.er1 >conftest.err
8342 cat conftest.err >&5
8343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 (exit $ac_status); } >/dev/null && {
8345 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8346 test ! -s conftest.err
8348 ac_header_preproc=yes
8350 $as_echo "$as_me: failed program was:" >&5
8351 sed 's/^/| /' conftest.$ac_ext >&5
8353 ac_header_preproc=no
8356 rm -f conftest.err conftest.$ac_ext
8357 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8358 $as_echo "$ac_header_preproc" >&6; }
8360 # So? What about this header?
8361 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8363 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8364 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8365 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8366 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8367 ac_header_preproc=yes
8370 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8371 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8372 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8373 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8374 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8375 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8376 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8377 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8378 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8379 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8380 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8381 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8385 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8386 $as_echo_n "checking for $ac_header... " >&6; }
8387 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8388 $as_echo_n "(cached) " >&6
8390 eval "$as_ac_Header=\$ac_header_preproc"
8392 ac_res=`eval 'as_val=${'$as_ac_Header'}
8393 $as_echo "$as_val"'`
8394 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8395 $as_echo "$ac_res" >&6; }
8398 as_val=`eval 'as_val=${'$as_ac_Header'}
8399 $as_echo "$as_val"'`
8400 if test "x$as_val" = x""yes; then
8401 cat >>confdefs.h <<_ACEOF
8402 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8409 if test "x${HAVE_FT2BUILD_H}" '=' "x";then
8411 for ac_header in freetype/freetype.h
8413 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8415 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8416 $as_echo_n "checking for $ac_header... " >&6; }
8417 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8418 $as_echo_n "(cached) " >&6
8420 ac_res=`eval 'as_val=${'$as_ac_Header'}
8421 $as_echo "$as_val"'`
8422 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8423 $as_echo "$ac_res" >&6; }
8425 # Is the header compilable?
8426 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8427 $as_echo_n "checking $ac_header usability... " >&6; }
8428 cat >conftest.$ac_ext <<_ACEOF
8431 cat confdefs.h >>conftest.$ac_ext
8432 cat >>conftest.$ac_ext <<_ACEOF
8433 /* end confdefs.h. */
8434 $ac_includes_default
8435 #include <$ac_header>
8437 rm -f conftest.$ac_objext
8438 if { (ac_try="$ac_compile"
8440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8441 *) ac_try_echo=$ac_try;;
8443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8444 $as_echo "$ac_try_echo") >&5
8445 (eval "$ac_compile") 2>conftest.er1
8447 grep -v '^ *+' conftest.er1 >conftest.err
8449 cat conftest.err >&5
8450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); } && {
8452 test -z "$ac_c_werror_flag" ||
8453 test ! -s conftest.err
8454 } && test -s conftest.$ac_objext; then
8455 ac_header_compiler=yes
8457 $as_echo "$as_me: failed program was:" >&5
8458 sed 's/^/| /' conftest.$ac_ext >&5
8460 ac_header_compiler=no
8463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8464 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8465 $as_echo "$ac_header_compiler" >&6; }
8467 # Is the header present?
8468 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8469 $as_echo_n "checking $ac_header presence... " >&6; }
8470 cat >conftest.$ac_ext <<_ACEOF
8473 cat confdefs.h >>conftest.$ac_ext
8474 cat >>conftest.$ac_ext <<_ACEOF
8475 /* end confdefs.h. */
8476 #include <$ac_header>
8478 if { (ac_try="$ac_cpp conftest.$ac_ext"
8480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8481 *) ac_try_echo=$ac_try;;
8483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8484 $as_echo "$ac_try_echo") >&5
8485 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8487 grep -v '^ *+' conftest.er1 >conftest.err
8489 cat conftest.err >&5
8490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); } >/dev/null && {
8492 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8493 test ! -s conftest.err
8495 ac_header_preproc=yes
8497 $as_echo "$as_me: failed program was:" >&5
8498 sed 's/^/| /' conftest.$ac_ext >&5
8500 ac_header_preproc=no
8503 rm -f conftest.err conftest.$ac_ext
8504 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8505 $as_echo "$ac_header_preproc" >&6; }
8507 # So? What about this header?
8508 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8510 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8511 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8512 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8513 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8514 ac_header_preproc=yes
8517 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8518 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8519 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8520 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8521 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8522 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8523 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8524 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8525 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8526 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8527 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8528 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8532 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8533 $as_echo_n "checking for $ac_header... " >&6; }
8534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8535 $as_echo_n "(cached) " >&6
8537 eval "$as_ac_Header=\$ac_header_preproc"
8539 ac_res=`eval 'as_val=${'$as_ac_Header'}
8540 $as_echo "$as_val"'`
8541 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8542 $as_echo "$ac_res" >&6; }
8545 as_val=`eval 'as_val=${'$as_ac_Header'}
8546 $as_echo "$as_val"'`
8547 if test "x$as_val" = x""yes; then
8548 cat >>confdefs.h <<_ACEOF
8549 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8551 HAVE_FREETYPE_FREETYPE_H=1
8558 if test "x${HAVE_LIB_FREETYPE}" '!=' "x" -o \
8559 "x${FREETYPE_CONFIG}" '!=' "x";then
8560 if test "x${HAVE_FREETYPE_FREETYPE_H}" '!=' "x";then
8563 if test "x${HAVE_FT2BUILD_H}" '!=' "x";then
8568 if test "x${HAVE_FREETYPE}" = "x1"; then
8569 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
8570 LIBS="$LIBS "`$FREETYPE_CONFIG --libs`
8572 LIBS="$LIBS -lfreetype"
8575 if test "x${HAVE_FT2BUILD_H}" = "x1"; then
8576 HAVE_FT2BUILD_H_DEFINE='#define HAVE_FT2BUILD_H'
8579 { $as_echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
8580 $as_echo_n "checking whether we can compile the freetype test program... " >&6; }
8582 cat > conftest.c << EOF
8583 $HAVE_FT2BUILD_H_DEFINE
8585 #ifdef HAVE_FT2BUILD_H
8586 #include <ft2build.h>
8587 #include FT_FREETYPE_H
8590 #include FT_SFNT_NAMES_H
8591 #include FT_TRUETYPE_IDS_H
8592 #include FT_OUTLINE_H
8594 #include <freetype/freetype.h>
8595 #include <freetype/ftglyph.h>
8596 #include <freetype/ftsizes.h>
8597 #include <freetype/ftsnames.h>
8598 #include <freetype/ttnameid.h>
8599 #include <freetype/ftoutln.h>
8604 FT_Library ftlibrary;
8616 FT_Init_FreeType(&ftlibrary);
8617 FT_New_Face(ftlibrary, "filename", 0, &face);
8618 i = face->num_glyphs - 1;
8619 italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
8620 bold = face->style_flags&FT_STYLE_FLAG_BOLD;
8621 FT_Get_Postscript_Name(face);
8622 FT_Get_Char_Index(face, 33);
8623 FT_Get_First_Char(face, &i);
8624 FT_Get_Next_Char(face, 33, &i);
8625 if(FT_HAS_GLYPH_NAMES(face)) {
8626 FT_Get_Glyph_Name(face, 33, name, 127);
8628 FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
8629 FT_Get_Glyph(face->glyph, &glyph);
8630 FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
8631 FT_Done_Glyph(glyph);
8633 FT_Done_FreeType(ftlibrary);
8638 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
8639 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8640 { $as_echo "$as_me:$LINENO: result: yes" >&5
8641 $as_echo "yes" >&6; }
8643 cat >>confdefs.h <<\_ACEOF
8644 #define HAVE_FREETYPE 1
8648 cat >>confdefs.h <<\_ACEOF
8649 #define HAVE_FREETYPE_FREETYPE_H 1
8653 cat >>confdefs.h <<\_ACEOF
8654 #define USE_FREETYPE 1
8658 echo "configure: failed program was:" >&5
8661 { $as_echo "$as_me:$LINENO: result: no" >&5
8662 $as_echo "no" >&6; }
8667 # if the above didn't work out, reset all changes to the compiler variables.
8668 if test "x${HAVE_FREETYPE}" '!=' "x1"; then
8669 CPPFLAGS=$OLDCPPFLAGS
8675 OLDCPPFLAGS="${CPPFLAGS}"
8678 if test -d /usr/include/fontconfig; then
8679 CPPFLAGS="$CPPFLAGS -I/usr/include/fontconfig"
8682 { $as_echo "$as_me:$LINENO: checking for FcInit in -lfontconfig" >&5
8683 $as_echo_n "checking for FcInit in -lfontconfig... " >&6; }
8684 if test "${ac_cv_lib_fontconfig_FcInit+set}" = set; then
8685 $as_echo_n "(cached) " >&6
8687 ac_check_lib_save_LIBS=$LIBS
8688 LIBS="-lfontconfig $LIBS"
8689 cat >conftest.$ac_ext <<_ACEOF
8692 cat confdefs.h >>conftest.$ac_ext
8693 cat >>conftest.$ac_ext <<_ACEOF
8694 /* end confdefs.h. */
8696 /* Override any GCC internal prototype to avoid an error.
8697 Use char because int might match the return type of a GCC
8698 builtin and then its argument prototype would still apply. */
8711 rm -f conftest.$ac_objext conftest$ac_exeext
8712 if { (ac_try="$ac_link"
8714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8715 *) ac_try_echo=$ac_try;;
8717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8718 $as_echo "$ac_try_echo") >&5
8719 (eval "$ac_link") 2>conftest.er1
8721 grep -v '^ *+' conftest.er1 >conftest.err
8723 cat conftest.err >&5
8724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725 (exit $ac_status); } && {
8726 test -z "$ac_c_werror_flag" ||
8727 test ! -s conftest.err
8728 } && test -s conftest$ac_exeext && {
8729 test "$cross_compiling" = yes ||
8730 $as_test_x conftest$ac_exeext
8732 ac_cv_lib_fontconfig_FcInit=yes
8734 $as_echo "$as_me: failed program was:" >&5
8735 sed 's/^/| /' conftest.$ac_ext >&5
8737 ac_cv_lib_fontconfig_FcInit=no
8740 rm -rf conftest.dSYM
8741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8742 conftest$ac_exeext conftest.$ac_ext
8743 LIBS=$ac_check_lib_save_LIBS
8745 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fontconfig_FcInit" >&5
8746 $as_echo "$ac_cv_lib_fontconfig_FcInit" >&6; }
8747 if test "x$ac_cv_lib_fontconfig_FcInit" = x""yes; then
8748 HAVE_LIB_FONTCONFIG=1
8752 for ac_header in fontconfig.h
8754 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8756 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8757 $as_echo_n "checking for $ac_header... " >&6; }
8758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8759 $as_echo_n "(cached) " >&6
8761 ac_res=`eval 'as_val=${'$as_ac_Header'}
8762 $as_echo "$as_val"'`
8763 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8764 $as_echo "$ac_res" >&6; }
8766 # Is the header compilable?
8767 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8768 $as_echo_n "checking $ac_header usability... " >&6; }
8769 cat >conftest.$ac_ext <<_ACEOF
8772 cat confdefs.h >>conftest.$ac_ext
8773 cat >>conftest.$ac_ext <<_ACEOF
8774 /* end confdefs.h. */
8775 $ac_includes_default
8776 #include <$ac_header>
8778 rm -f conftest.$ac_objext
8779 if { (ac_try="$ac_compile"
8781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8782 *) ac_try_echo=$ac_try;;
8784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8785 $as_echo "$ac_try_echo") >&5
8786 (eval "$ac_compile") 2>conftest.er1
8788 grep -v '^ *+' conftest.er1 >conftest.err
8790 cat conftest.err >&5
8791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792 (exit $ac_status); } && {
8793 test -z "$ac_c_werror_flag" ||
8794 test ! -s conftest.err
8795 } && test -s conftest.$ac_objext; then
8796 ac_header_compiler=yes
8798 $as_echo "$as_me: failed program was:" >&5
8799 sed 's/^/| /' conftest.$ac_ext >&5
8801 ac_header_compiler=no
8804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8805 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8806 $as_echo "$ac_header_compiler" >&6; }
8808 # Is the header present?
8809 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8810 $as_echo_n "checking $ac_header presence... " >&6; }
8811 cat >conftest.$ac_ext <<_ACEOF
8814 cat confdefs.h >>conftest.$ac_ext
8815 cat >>conftest.$ac_ext <<_ACEOF
8816 /* end confdefs.h. */
8817 #include <$ac_header>
8819 if { (ac_try="$ac_cpp conftest.$ac_ext"
8821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8822 *) ac_try_echo=$ac_try;;
8824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8825 $as_echo "$ac_try_echo") >&5
8826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8828 grep -v '^ *+' conftest.er1 >conftest.err
8830 cat conftest.err >&5
8831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832 (exit $ac_status); } >/dev/null && {
8833 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8834 test ! -s conftest.err
8836 ac_header_preproc=yes
8838 $as_echo "$as_me: failed program was:" >&5
8839 sed 's/^/| /' conftest.$ac_ext >&5
8841 ac_header_preproc=no
8844 rm -f conftest.err conftest.$ac_ext
8845 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8846 $as_echo "$ac_header_preproc" >&6; }
8848 # So? What about this header?
8849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8851 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8852 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8853 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8854 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8855 ac_header_preproc=yes
8858 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8859 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8860 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8861 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8862 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8863 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8864 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8865 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8866 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8867 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8868 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8869 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8873 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8874 $as_echo_n "checking for $ac_header... " >&6; }
8875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8876 $as_echo_n "(cached) " >&6
8878 eval "$as_ac_Header=\$ac_header_preproc"
8880 ac_res=`eval 'as_val=${'$as_ac_Header'}
8881 $as_echo "$as_val"'`
8882 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8883 $as_echo "$ac_res" >&6; }
8886 as_val=`eval 'as_val=${'$as_ac_Header'}
8887 $as_echo "$as_val"'`
8888 if test "x$as_val" = x""yes; then
8889 cat >>confdefs.h <<_ACEOF
8890 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8898 if test "x${HAVE_LIB_FONTCONFIG}" != "x";then
8899 if test "x${HAVE_FONTCONFIG_H}" != "x";then
8904 if test "x${HAVE_FONTCONFIG}" = "x1"; then
8905 LIBS="$LIBS -lfontconfig"
8906 { $as_echo "$as_me:$LINENO: checking whether we can compile the fontconfig test program" >&5
8907 $as_echo_n "checking whether we can compile the fontconfig test program... " >&6; }
8909 if (echo $LIBS | grep lfreetype >/dev/null 2>&1); then
8910 #move freetype library to the end of libraries, otherwise fontconfig
8912 LIBS=`echo $LIBS | sed -e 's/-lfreetype//g' -e 's/$/ -lfreetype/'`
8915 cat > conftest.c << EOF
8917 #include <fontconfig.h>
8921 FcPattern *pattern, *match;
8924 char*s1="abc",*s2="ABC";
8927 pattern = FcPatternBuild(0, FC_FAMILY, FcTypeString, "", 0);
8928 FcPatternAddInteger(pattern, FC_SLANT, FC_SLANT_ITALIC);
8929 FcPatternAddInteger(pattern, FC_WEIGHT, FC_WEIGHT_BOLD);
8931 FcConfig*c = FcConfigCreate();
8932 FcConfigParseAndLoad(c, (FcChar8*)"", 1);
8933 FcConfigBuildFonts(c);
8934 FcConfigSetCurrent(c);
8936 FcFontSet * set = FcConfigGetFonts(c, FcSetSystem);
8937 FcFontSetDestroy(set);
8939 FcConfigSubstitute(0, pattern, FcMatchPattern);
8940 FcDefaultSubstitute(pattern);
8941 match = FcFontMatch(0, pattern, &result);
8942 FcPatternGetString(match, "family", 0, &v) == FcResultMatch;
8943 FcPatternGetBool(match, "family", 0, &v) == FcResultMatch;
8944 FcPatternPrint(pattern);
8945 FcPatternDestroy(pattern);
8946 FcPatternDestroy(match);
8952 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
8953 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8954 { $as_echo "$as_me:$LINENO: result: yes" >&5
8955 $as_echo "yes" >&6; }
8957 cat >>confdefs.h <<\_ACEOF
8958 #define HAVE_FONTCONFIG 1
8962 echo "configure: failed program was:" >&5
8965 { $as_echo "$as_me:$LINENO: result: no" >&5
8966 $as_echo "no" >&6; }
8971 # if the above didn't work out, reset all changes to the compiler variables.
8972 if test "x${HAVE_FONTCONFIG}" "!=" "x1"; then
8973 CPPFLAGS=$OLDCPPFLAGS
8979 OLDCPPFLAGS="${CPPFLAGS}"
8982 { $as_echo "$as_me:$LINENO: checking for fftw_plan_dft_r2c_2d in -lfftw3" >&5
8983 $as_echo_n "checking for fftw_plan_dft_r2c_2d in -lfftw3... " >&6; }
8984 if test "${ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d+set}" = set; then
8985 $as_echo_n "(cached) " >&6
8987 ac_check_lib_save_LIBS=$LIBS
8988 LIBS="-lfftw3 $LIBS"
8989 cat >conftest.$ac_ext <<_ACEOF
8992 cat confdefs.h >>conftest.$ac_ext
8993 cat >>conftest.$ac_ext <<_ACEOF
8994 /* end confdefs.h. */
8996 /* Override any GCC internal prototype to avoid an error.
8997 Use char because int might match the return type of a GCC
8998 builtin and then its argument prototype would still apply. */
9002 char fftw_plan_dft_r2c_2d ();
9006 return fftw_plan_dft_r2c_2d ();
9011 rm -f conftest.$ac_objext conftest$ac_exeext
9012 if { (ac_try="$ac_link"
9014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9015 *) ac_try_echo=$ac_try;;
9017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9018 $as_echo "$ac_try_echo") >&5
9019 (eval "$ac_link") 2>conftest.er1
9021 grep -v '^ *+' conftest.er1 >conftest.err
9023 cat conftest.err >&5
9024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025 (exit $ac_status); } && {
9026 test -z "$ac_c_werror_flag" ||
9027 test ! -s conftest.err
9028 } && test -s conftest$ac_exeext && {
9029 test "$cross_compiling" = yes ||
9030 $as_test_x conftest$ac_exeext
9032 ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d=yes
9034 $as_echo "$as_me: failed program was:" >&5
9035 sed 's/^/| /' conftest.$ac_ext >&5
9037 ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d=no
9040 rm -rf conftest.dSYM
9041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9042 conftest$ac_exeext conftest.$ac_ext
9043 LIBS=$ac_check_lib_save_LIBS
9045 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d" >&5
9046 $as_echo "$ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d" >&6; }
9047 if test "x$ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d" = x""yes; then
9052 for ac_header in fftw3.h
9054 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9056 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9057 $as_echo_n "checking for $ac_header... " >&6; }
9058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9059 $as_echo_n "(cached) " >&6
9061 ac_res=`eval 'as_val=${'$as_ac_Header'}
9062 $as_echo "$as_val"'`
9063 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9064 $as_echo "$ac_res" >&6; }
9066 # Is the header compilable?
9067 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9068 $as_echo_n "checking $ac_header usability... " >&6; }
9069 cat >conftest.$ac_ext <<_ACEOF
9072 cat confdefs.h >>conftest.$ac_ext
9073 cat >>conftest.$ac_ext <<_ACEOF
9074 /* end confdefs.h. */
9075 $ac_includes_default
9076 #include <$ac_header>
9078 rm -f conftest.$ac_objext
9079 if { (ac_try="$ac_compile"
9081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9082 *) ac_try_echo=$ac_try;;
9084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9085 $as_echo "$ac_try_echo") >&5
9086 (eval "$ac_compile") 2>conftest.er1
9088 grep -v '^ *+' conftest.er1 >conftest.err
9090 cat conftest.err >&5
9091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092 (exit $ac_status); } && {
9093 test -z "$ac_c_werror_flag" ||
9094 test ! -s conftest.err
9095 } && test -s conftest.$ac_objext; then
9096 ac_header_compiler=yes
9098 $as_echo "$as_me: failed program was:" >&5
9099 sed 's/^/| /' conftest.$ac_ext >&5
9101 ac_header_compiler=no
9104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9105 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9106 $as_echo "$ac_header_compiler" >&6; }
9108 # Is the header present?
9109 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9110 $as_echo_n "checking $ac_header presence... " >&6; }
9111 cat >conftest.$ac_ext <<_ACEOF
9114 cat confdefs.h >>conftest.$ac_ext
9115 cat >>conftest.$ac_ext <<_ACEOF
9116 /* end confdefs.h. */
9117 #include <$ac_header>
9119 if { (ac_try="$ac_cpp conftest.$ac_ext"
9121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9122 *) ac_try_echo=$ac_try;;
9124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9125 $as_echo "$ac_try_echo") >&5
9126 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9128 grep -v '^ *+' conftest.er1 >conftest.err
9130 cat conftest.err >&5
9131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132 (exit $ac_status); } >/dev/null && {
9133 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9134 test ! -s conftest.err
9136 ac_header_preproc=yes
9138 $as_echo "$as_me: failed program was:" >&5
9139 sed 's/^/| /' conftest.$ac_ext >&5
9141 ac_header_preproc=no
9144 rm -f conftest.err conftest.$ac_ext
9145 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9146 $as_echo "$ac_header_preproc" >&6; }
9148 # So? What about this header?
9149 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9151 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9152 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9153 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9154 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9155 ac_header_preproc=yes
9158 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9159 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9160 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9161 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9162 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9163 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9164 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9165 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9166 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9167 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9168 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9169 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9173 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9174 $as_echo_n "checking for $ac_header... " >&6; }
9175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9176 $as_echo_n "(cached) " >&6
9178 eval "$as_ac_Header=\$ac_header_preproc"
9180 ac_res=`eval 'as_val=${'$as_ac_Header'}
9181 $as_echo "$as_val"'`
9182 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9183 $as_echo "$ac_res" >&6; }
9186 as_val=`eval 'as_val=${'$as_ac_Header'}
9187 $as_echo "$as_val"'`
9188 if test "x$as_val" = x""yes; then
9189 cat >>confdefs.h <<_ACEOF
9190 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9198 if test "x${HAVE_LIBFFTW3}" != "x";then
9199 if test "x${HAVE_FFTW3_H}" != "x";then
9204 if test "x${HAVE_FFTW3}" = "x1"; then
9205 LIBS="$LIBS -lfftw3"
9206 { $as_echo "$as_me:$LINENO: checking whether we can compile the fftw3 test program" >&5
9207 $as_echo_n "checking whether we can compile the fftw3 test program... " >&6; }
9209 cat > conftest.c << EOF
9215 fftw_plan plan = fftw_plan_dft_2d(600, 800, (fftw_complex*)data, (fftw_complex*)data, FFTW_FORWARD, FFTW_ESTIMATE);
9216 plan = fftw_plan_dft_r2c_2d(600, 800, (double*)data, (fftw_complex*)data, FFTW_ESTIMATE);
9217 plan = fftw_plan_dft_c2r_2d(600, 800, (fftw_complex*)data, (double*)data, FFTW_ESTIMATE);
9219 fftw_destroy_plan(plan);
9223 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
9224 if { (eval echo fftw3.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9225 { $as_echo "$as_me:$LINENO: result: yes" >&5
9226 $as_echo "yes" >&6; }
9228 cat >>confdefs.h <<\_ACEOF
9229 #define HAVE_FFTW3 1
9233 echo "configure: failed program was:" >&5
9236 { $as_echo "$as_me:$LINENO: result: no" >&5
9237 $as_echo "no" >&6; }
9242 # if the above didn't work out, reset all changes to the compiler variables.
9243 if test "x${HAVE_FFTW3}" "!=" "x1"; then
9244 CPPFLAGS=$OLDCPPFLAGS
9250 # if test "$HAVE_OPENGL";then
9251 # DEVICE_OPENGL='devices/opengl.$(O)'
9252 # AC_SUBST(DEVICE_OPENGL)
9258 if test "x${DISABLE_LAME}" = "xtrue"; then
9259 echo "*" Disabling lame support...
9261 # old lame code at lib/lame
9262 if test -f lib/lame/Makefile.in; then
9263 lame_in_source='$(lame_objects)'
9264 lame_makefile="lib/lame/Makefile"
9265 CPPFLAGS="$CPPFLAGS -Ilame -Ilib/lame"
9267 cat >>confdefs.h <<\_ACEOF
9272 if test -d /usr/include/lame; then
9273 CPPFLAGS="$CPPFLAGS -I /usr/include/lame"
9275 if test -d /usr/local/include/lame; then
9276 CPPFLAGS="$CPPFLAGS -I /usr/local/include/lame"
9280 { $as_echo "$as_me:$LINENO: checking for lame_init in -lmp3lame" >&5
9281 $as_echo_n "checking for lame_init in -lmp3lame... " >&6; }
9282 if test "${ac_cv_lib_mp3lame_lame_init+set}" = set; then
9283 $as_echo_n "(cached) " >&6
9285 ac_check_lib_save_LIBS=$LIBS
9286 LIBS="-lmp3lame $LIBS"
9287 cat >conftest.$ac_ext <<_ACEOF
9290 cat confdefs.h >>conftest.$ac_ext
9291 cat >>conftest.$ac_ext <<_ACEOF
9292 /* end confdefs.h. */
9294 /* Override any GCC internal prototype to avoid an error.
9295 Use char because int might match the return type of a GCC
9296 builtin and then its argument prototype would still apply. */
9304 return lame_init ();
9309 rm -f conftest.$ac_objext conftest$ac_exeext
9310 if { (ac_try="$ac_link"
9312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9313 *) ac_try_echo=$ac_try;;
9315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9316 $as_echo "$ac_try_echo") >&5
9317 (eval "$ac_link") 2>conftest.er1
9319 grep -v '^ *+' conftest.er1 >conftest.err
9321 cat conftest.err >&5
9322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); } && {
9324 test -z "$ac_c_werror_flag" ||
9325 test ! -s conftest.err
9326 } && test -s conftest$ac_exeext && {
9327 test "$cross_compiling" = yes ||
9328 $as_test_x conftest$ac_exeext
9330 ac_cv_lib_mp3lame_lame_init=yes
9332 $as_echo "$as_me: failed program was:" >&5
9333 sed 's/^/| /' conftest.$ac_ext >&5
9335 ac_cv_lib_mp3lame_lame_init=no
9338 rm -rf conftest.dSYM
9339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9340 conftest$ac_exeext conftest.$ac_ext
9341 LIBS=$ac_check_lib_save_LIBS
9343 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mp3lame_lame_init" >&5
9344 $as_echo "$ac_cv_lib_mp3lame_lame_init" >&6; }
9345 if test "x$ac_cv_lib_mp3lame_lame_init" = x""yes; then
9346 cat >>confdefs.h <<_ACEOF
9347 #define HAVE_LIBMP3LAME 1
9350 LIBS="-lmp3lame $LIBS"
9358 for ac_header in lame.h
9360 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9362 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9363 $as_echo_n "checking for $ac_header... " >&6; }
9364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9365 $as_echo_n "(cached) " >&6
9367 ac_res=`eval 'as_val=${'$as_ac_Header'}
9368 $as_echo "$as_val"'`
9369 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9370 $as_echo "$ac_res" >&6; }
9372 # Is the header compilable?
9373 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9374 $as_echo_n "checking $ac_header usability... " >&6; }
9375 cat >conftest.$ac_ext <<_ACEOF
9378 cat confdefs.h >>conftest.$ac_ext
9379 cat >>conftest.$ac_ext <<_ACEOF
9380 /* end confdefs.h. */
9381 $ac_includes_default
9382 #include <$ac_header>
9384 rm -f conftest.$ac_objext
9385 if { (ac_try="$ac_compile"
9387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9388 *) ac_try_echo=$ac_try;;
9390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9391 $as_echo "$ac_try_echo") >&5
9392 (eval "$ac_compile") 2>conftest.er1
9394 grep -v '^ *+' conftest.er1 >conftest.err
9396 cat conftest.err >&5
9397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398 (exit $ac_status); } && {
9399 test -z "$ac_c_werror_flag" ||
9400 test ! -s conftest.err
9401 } && test -s conftest.$ac_objext; then
9402 ac_header_compiler=yes
9404 $as_echo "$as_me: failed program was:" >&5
9405 sed 's/^/| /' conftest.$ac_ext >&5
9407 ac_header_compiler=no
9410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9411 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9412 $as_echo "$ac_header_compiler" >&6; }
9414 # Is the header present?
9415 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9416 $as_echo_n "checking $ac_header presence... " >&6; }
9417 cat >conftest.$ac_ext <<_ACEOF
9420 cat confdefs.h >>conftest.$ac_ext
9421 cat >>conftest.$ac_ext <<_ACEOF
9422 /* end confdefs.h. */
9423 #include <$ac_header>
9425 if { (ac_try="$ac_cpp conftest.$ac_ext"
9427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9428 *) ac_try_echo=$ac_try;;
9430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9431 $as_echo "$ac_try_echo") >&5
9432 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9434 grep -v '^ *+' conftest.er1 >conftest.err
9436 cat conftest.err >&5
9437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438 (exit $ac_status); } >/dev/null && {
9439 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9440 test ! -s conftest.err
9442 ac_header_preproc=yes
9444 $as_echo "$as_me: failed program was:" >&5
9445 sed 's/^/| /' conftest.$ac_ext >&5
9447 ac_header_preproc=no
9450 rm -f conftest.err conftest.$ac_ext
9451 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9452 $as_echo "$ac_header_preproc" >&6; }
9454 # So? What about this header?
9455 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9457 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9458 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9459 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9460 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9461 ac_header_preproc=yes
9464 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9465 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9466 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9467 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9468 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9469 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9470 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9471 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9472 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9473 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9474 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9475 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9479 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9480 $as_echo_n "checking for $ac_header... " >&6; }
9481 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9482 $as_echo_n "(cached) " >&6
9484 eval "$as_ac_Header=\$ac_header_preproc"
9486 ac_res=`eval 'as_val=${'$as_ac_Header'}
9487 $as_echo "$as_val"'`
9488 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9489 $as_echo "$ac_res" >&6; }
9492 as_val=`eval 'as_val=${'$as_ac_Header'}
9493 $as_echo "$as_val"'`
9494 if test "x$as_val" = x""yes; then
9495 cat >>confdefs.h <<_ACEOF
9496 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9503 if test "x$NO_LIBMP3LAME" "!=" "x1" -a "x$HASLAMEHEADER" '!=' "x";then
9504 cat >>confdefs.h <<\_ACEOF
9513 splash_in_source='$(splash_objects)'
9514 xpdf_in_source='$(xpdf_objects)'
9520 # ------------------------------------------------------------------
9523 { $as_echo "$as_me:$LINENO: checking whether the filesystem normalizes file names" >&5
9524 $as_echo_n "checking whether the filesystem normalizes file names... " >&6; }
9526 echo test1 > __abcdefghijklmnopqrstuvwxyz.txt
9527 echo test2 > __ABCDEFGHIJKLMNOPQRSTUVWXYZ.txt
9528 if test `cat __abcdefghijklmnopqrstuvwxyz.txt` = "test2";then
9529 { $as_echo "$as_me:$LINENO: result: yes" >&5
9530 $as_echo "yes" >&6; }
9532 cat >>confdefs.h <<\_ACEOF
9533 #define LOWERCASE_UPPERCASE 1
9537 { $as_echo "$as_me:$LINENO: result: no" >&5
9538 $as_echo "no" >&6; }
9541 rm -f __abcdefghijklmnopqrstuvwxyz.txt
9542 rm -f __ABCDEFGHIJKLMNOPQRSTUVWXYZ.txt
9546 for ac_prog in avifile-config
9548 # Extract the first word of "$ac_prog", so it can be a program name with args.
9549 set dummy $ac_prog; ac_word=$2
9550 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9551 $as_echo_n "checking for $ac_word... " >&6; }
9552 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then
9553 $as_echo_n "(cached) " >&6
9555 if test -n "$AVIFILE_CONFIG"; then
9556 ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
9558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9562 test -z "$as_dir" && as_dir=.
9563 for ac_exec_ext in '' $ac_executable_extensions; do
9564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9565 ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
9566 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9575 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
9576 if test -n "$AVIFILE_CONFIG"; then
9577 { $as_echo "$as_me:$LINENO: result: $AVIFILE_CONFIG" >&5
9578 $as_echo "$AVIFILE_CONFIG" >&6; }
9580 { $as_echo "$as_me:$LINENO: result: no" >&5
9581 $as_echo "no" >&6; }
9585 test -n "$AVIFILE_CONFIG" && break
9589 if test "x$AVIFILE_CONFIG" '!=' "x";then
9590 OLDCPPFLAGS="$CPPFLAGS"
9591 # temporarily add avifile paths to CPPFLAGS...
9592 CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
9595 for ac_header in avifile/version.h version.h
9597 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9598 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9599 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9600 $as_echo_n "checking for $ac_header... " >&6; }
9601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9602 $as_echo_n "(cached) " >&6
9604 ac_res=`eval 'as_val=${'$as_ac_Header'}
9605 $as_echo "$as_val"'`
9606 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9607 $as_echo "$ac_res" >&6; }
9609 # Is the header compilable?
9610 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9611 $as_echo_n "checking $ac_header usability... " >&6; }
9612 cat >conftest.$ac_ext <<_ACEOF
9615 cat confdefs.h >>conftest.$ac_ext
9616 cat >>conftest.$ac_ext <<_ACEOF
9617 /* end confdefs.h. */
9618 $ac_includes_default
9619 #include <$ac_header>
9621 rm -f conftest.$ac_objext
9622 if { (ac_try="$ac_compile"
9624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9625 *) ac_try_echo=$ac_try;;
9627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9628 $as_echo "$ac_try_echo") >&5
9629 (eval "$ac_compile") 2>conftest.er1
9631 grep -v '^ *+' conftest.er1 >conftest.err
9633 cat conftest.err >&5
9634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635 (exit $ac_status); } && {
9636 test -z "$ac_c_werror_flag" ||
9637 test ! -s conftest.err
9638 } && test -s conftest.$ac_objext; then
9639 ac_header_compiler=yes
9641 $as_echo "$as_me: failed program was:" >&5
9642 sed 's/^/| /' conftest.$ac_ext >&5
9644 ac_header_compiler=no
9647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9648 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9649 $as_echo "$ac_header_compiler" >&6; }
9651 # Is the header present?
9652 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9653 $as_echo_n "checking $ac_header presence... " >&6; }
9654 cat >conftest.$ac_ext <<_ACEOF
9657 cat confdefs.h >>conftest.$ac_ext
9658 cat >>conftest.$ac_ext <<_ACEOF
9659 /* end confdefs.h. */
9660 #include <$ac_header>
9662 if { (ac_try="$ac_cpp conftest.$ac_ext"
9664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9665 *) ac_try_echo=$ac_try;;
9667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9668 $as_echo "$ac_try_echo") >&5
9669 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9671 grep -v '^ *+' conftest.er1 >conftest.err
9673 cat conftest.err >&5
9674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 (exit $ac_status); } >/dev/null && {
9676 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9677 test ! -s conftest.err
9679 ac_header_preproc=yes
9681 $as_echo "$as_me: failed program was:" >&5
9682 sed 's/^/| /' conftest.$ac_ext >&5
9684 ac_header_preproc=no
9687 rm -f conftest.err conftest.$ac_ext
9688 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9689 $as_echo "$ac_header_preproc" >&6; }
9691 # So? What about this header?
9692 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9694 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9695 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9696 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9697 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9698 ac_header_preproc=yes
9701 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9702 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9703 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9704 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9705 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9706 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9707 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9708 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9709 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9710 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9711 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9712 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9716 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9717 $as_echo_n "checking for $ac_header... " >&6; }
9718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9719 $as_echo_n "(cached) " >&6
9721 eval "$as_ac_Header=\$ac_header_preproc"
9723 ac_res=`eval 'as_val=${'$as_ac_Header'}
9724 $as_echo "$as_val"'`
9725 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9726 $as_echo "$ac_res" >&6; }
9729 as_val=`eval 'as_val=${'$as_ac_Header'}
9730 $as_echo "$as_val"'`
9731 if test "x$as_val" = x""yes; then
9732 cat >>confdefs.h <<_ACEOF
9733 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9741 CPPFLAGS="$OLDCPPFLAGS"
9744 { $as_echo "$as_me:$LINENO: checking whether we can compile the avifile test program" >&5
9745 $as_echo_n "checking whether we can compile the avifile test program... " >&6; }
9747 if test "x${ac_cv_header_version_h}" '=' "xyes";then
9748 HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
9750 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
9751 HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
9754 cat > conftest.cpp << EOF
9756 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
9757 // so we have to introduce them this way
9758 $HAVE_VERSION_H_DEFINE
9759 $HAVE_AVIFILE_VERSION_H_DEFINE
9761 #ifdef HAVE_VERSION_H
9762 #include <version.h>
9764 #ifdef HAVE_AVIFILE_VERSION_H
9765 #include <avifile/version.h>
9768 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
9769 #include <avifile.h>
9770 #include <aviplay.h>
9771 #include <avm_fourcc.h>
9772 #include <avm_creators.h>
9773 #include <StreamInfo.h>
9776 #include <avifile.h>
9777 #include <aviplay.h>
9778 #include <aviutil.h>
9780 #define Height height
9787 IAviReadFile* player;
9788 IAviReadStream* astream;
9789 IAviReadStream* vstream;
9790 player = CreateIAviReadFile(0);
9791 astream = player->GetStream(0, AviStream::Audio);
9792 vstream = player->GetStream(0, AviStream::Video);
9793 vstream -> StartStreaming();
9794 astream -> StartStreaming();
9797 player->GetFileHeader(&head);
9798 head.dwMicroSecPerFrame;
9803 head.dwMicroSecPerFrame;
9804 astream->GetEndPos(),
9805 astream->GetEndTime());
9806 player->StreamCount();
9808 StreamInfo*audioinfo;
9809 StreamInfo*videoinfo;
9810 audioinfo = astream->GetStreamInfo();
9811 videoinfo = vstream->GetStreamInfo();
9812 videoinfo->GetVideoWidth();
9813 videoinfo->GetVideoHeight();
9814 audioinfo->GetAudioSamplesPerSec();
9815 videoinfo->GetFps();
9817 CImage*img = vstream->GetFrame();
9824 astream->GetAudioFormatInfo(&wave,0);
9826 astream->ReadFrames(0,0,0,a,b);
9828 int main (int argc, char*argv)
9834 if test "x$AVIFILE_CONFIG" '!=' "x";then
9835 AVIFILE_LIBS=`$AVIFILE_CONFIG --libs`
9836 AVIFILE_CFLAGS=`$AVIFILE_CONFIG --cflags`
9837 avifile_link='$CXX $CPPFLAGS $CXXFLAGS $AVIFILE_CFLAGS conftest.cpp $AVIFILE_LIBS -o conftest${ac_exeext}'
9838 if { (eval echo avi2swf.m4:71: \"$avifile_link\") 1>&5; (eval $avifile_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
9839 { $as_echo "$as_me:$LINENO: result: yes" >&5
9840 $as_echo "yes" >&6; }
9844 cat >>confdefs.h <<\_ACEOF
9845 #define AVIFILE true
9849 echo "configure: failed program was:" >&5
9850 cat conftest.cpp >&5
9851 { $as_echo "$as_me:$LINENO: result: no" >&5
9852 $as_echo "no" >&6; }
9855 { $as_echo "$as_me:$LINENO: result: no" >&5
9856 $as_echo "no" >&6; }
9860 if test "x${AVIFILE}" = "xtrue"; then
9861 VIDEO_LIBS="$VIDEO_LIBS $AVIFILE_LIBS"
9862 VIDEO_CFLAGS="$VIDEO_CFLAGS $AVIFILE_CFLAGS"
9864 cat >>confdefs.h <<\_ACEOF
9865 #define HAVE_AVIFILE 1
9870 if test "x${WIN32}" != "x"; then
9871 #AC_CHECK_LIB(avifil32, AVIFileInit,AVIFIL32=true)
9872 #if test "x${AVIFIL32}" != "x"; then
9873 # VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
9875 VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
9881 # ------------------------------------------------------------------
9883 if test "x${UNCOMPRESS}" = "xgzip"; then
9885 cat >>confdefs.h <<\_ACEOF
9892 # ------------------------------------------------------------------
9895 { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
9896 $as_echo_n "checking for Python.h... " >&6; }
9898 if test "x$PYTHON_LIB" '!=' "x" -a "x$PYTHON_INCLUDES" '!=' "x";then
9901 if test "x$PYTHON_LIB" '!=' "x" -o "x$PYTHON_INCLUDES" '!=' "x";then
9902 echo "Set both PYTHON_LIB and PYTHON_INCLUDES, or none at all"
9904 # iterate through version 2.2 to 2.6
9905 for v in 2 3 4 5 6; do
9907 if test -f "/usr/include/python2.$v/Python.h";then
9909 PYTHON_LIB="-lpython$PY_VERSION"
9910 if test -f "/usr/lib/python2.$v/site-packages/PIL/_imaging.so";then
9911 PYTHON_LIB2="$PYTHON_LIB /usr/lib/python2.$v/site-packages/PIL/_imaging.so"
9912 HAVE_PYTHON_IMAGING_LIB=1
9914 PYTHON_LIB2="$PYTHON_LIB"
9916 PYTHON_INCLUDES="-I/usr/include/python$PY_VERSION"
9918 elif test -f "/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/Python.h";then
9920 PYTHON_LIB="-framework Python"
9921 if test -f "/Library/Frameworks/Python.framework/Versions/2.$v/site-packages/PIL/_imaging.so";then
9922 PYTHON_LIB2="$PYTHON_LIB /Library/Python/2.$v/PIL/_imaging.so"
9923 HAVE_PYTHON_IMAGING_LIB=1
9925 PYTHON_LIB2="$PYTHON_LIB"
9927 PYTHON_INCLUDES="-I/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/"
9929 elif test "(" -f "/sw/lib/python2.$v/config/libpython2.$v.dylib" \
9930 -o -f "/sw/lib/python2.$v/config/libpython2.$v.a" \
9931 -o -f "/sw/lib/python2.$v/config/libpython2.$v.so" \
9933 -a -f "/sw/include/python2.$v/Python.h"; then
9935 PYTHON_LIB="-L /sw/lib/python2.$v/config/ -lpython$PY_VERSION /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
9936 if test -f "/sw/lib/python2.$v/site-packages/PIL/_imaging.so";then
9937 PYTHON_LIB2="$PYTHON_LIB /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
9938 HAVE_PYTHON_IMAGING_LIB=1
9940 PYTHON_LIB2="$PYTHON_LIB"
9942 PYTHON_INCLUDES="-I /sw/include/python2.$v/"
9947 if test "x$PY_VERSION" "!=" "x"; then
9948 { $as_echo "$as_me:$LINENO: result: $PY_VERSION" >&5
9949 $as_echo "$PY_VERSION" >&6; }
9950 export PYTHON_INCLUDES PYTHON_LIB
9953 { $as_echo "$as_me:$LINENO: checking whether we can compile the python test program" >&5
9954 $as_echo_n "checking whether we can compile the python test program... " >&6; }
9956 cat > conftest.c << EOF
9962 ret = Py_Main(0, 0);
9963 int x; // check also for gcc 2.95.x incompatibilities
9968 ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS $PYTHON_LIB $LIBS -o conftest${ac_exeext}'
9969 if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9970 { $as_echo "$as_me:$LINENO: result: yes" >&5
9971 $as_echo "yes" >&6; }
9974 echo "configure: failed program was:" >&5
9976 { $as_echo "$as_me:$LINENO: result: no" >&5
9977 $as_echo "no" >&6; }
9980 if test "x$PYTHON_OK" = "xyes";then
9981 { $as_echo "$as_me:$LINENO: checking for Python-Imaging" >&5
9982 $as_echo_n "checking for Python-Imaging... " >&6; }
9983 cat > conftest.c << EOF
9985 #include <Imaging.h>
9993 if test "$HAVE_PYTHON_IMAGING_LIB"; then
9994 ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS ${PYTHON_LIB2} $LIBS -o conftest${ac_exeext}'
9995 if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9996 PYTHON_LIB="${PYTHON_LIB2}"
9998 cat >>confdefs.h <<\_ACEOF
9999 #define HAVE_PYTHON_IMAGING 1
10002 HAVE_PYTHON_IMAGING=yes
10003 export HAVE_PYTHON_IMAGING
10005 { $as_echo "$as_me:$LINENO: result: yes" >&5
10006 $as_echo "yes" >&6; }
10008 echo "configure: failed program was:" >&5
10010 { $as_echo "$as_me:$LINENO: result: no" >&5
10011 $as_echo "no" >&6; }
10014 echo "(didn't find the Python-Imaging libraries)" >&5
10015 { $as_echo "$as_me:$LINENO: result: no" >&5
10016 $as_echo "no" >&6; }
10021 { $as_echo "$as_me:$LINENO: result: nope" >&5
10022 $as_echo "nope" >&6; }
10026 if test "x$PYTHON_OK" '!=' "xyes";then
10027 echo all install uninstall clean: > lib/python/Makefile
10028 # fail silently- the most users won't have any need for the
10029 # python interface anyway
10031 pythonrfxswf="lib/python/Makefile"
10034 # ------------------------------------------------------------------
10036 { $as_echo "$as_me:$LINENO: checking for missing libraries" >&5
10037 $as_echo_n "checking for missing libraries... " >&6; }
10039 if test "x$ZLIBMISSING" = "xtrue";then
10040 MISSINGLIBS="${MISSINGLIBS} zlib"
10041 DISABLEPNG2SWF=true
10044 if test "x$JPEGLIBMISSING" = "xtrue";then
10045 MISSINGLIBS="${MISSINGLIBS} jpeglib"
10046 DISABLEPDF2SWF=true
10047 DISABLEJPEG2SWF=true
10050 if test "x$PDFLIBMISSING" = "xtrue";then
10051 DISABLEPDF2PDF=true;
10053 #if test "x$T1LIBMISSING" = "xtrue";then
10054 # MISSINGLIBS="${MISSINGLIBS} t1lib"
10056 if test "x$UNGIFMISSING" = "xtrue";then
10057 DISABLEGIF2SWF=true
10058 MISSINGLIBS="${MISSINGLIBS} ungif"
10062 if test "x${ac_cv_header_pdflib_h}" '!=' "xyes";then
10063 DISABLEPDF2PDF=true;
10065 if test "x${ac_cv_header_jpeglib_h}" '!=' "xyes"; then
10066 DISABLEPDF2SWF=true;
10067 DISABLEJPEG2SWF=true;
10068 MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
10071 if test "x$HAVE_FREETYPE" '!=' "x1"; then
10072 DISABLEPDF2SWF=true;
10073 MISSINGLIBS="${MISSINGLIBS} freetype"
10076 #if test "x${ac_cv_header_t1lib_h}" '!=' "xyes"; then
10077 # MISSINGLIBS="${MISSINGLIBS} t1lib.h"
10079 if test "x${ac_cv_header_gif_lib_h}" '!=' "xyes"; then
10080 DISABLEGIF2SWF=true
10081 MISSINGLIBS="${MISSINGLIBS} gif_lib.h"
10084 if test "x${ac_cv_header_zlib_h}" '!=' "xyes"; then
10085 DISABLEPNG2SWF=true;
10086 MISSINGLIBS="${MISSINGLIBS} zlib.h"
10089 #if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
10090 # MISSINGLIBS="${MISSINGLIBS} avifile"
10093 { $as_echo "$as_me:$LINENO: result: ${MISSINGLIBS}" >&5
10094 $as_echo "${MISSINGLIBS}" >&6; }
10096 # ------------------------------------------------------------------
10098 if test "x${MISSINGLIBS}" '!=' "x"; then
10099 echo "***************************************************"
10100 echo "* The following headers/libraries are missing: " ${MISSINGLIBS}
10103 avi2swf="avi2swf/Makefile"
10104 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
10105 #don't whine, avi2swf is outdated anyway
10106 #echo "* Disabling avi2swf tool..."
10107 echo all install uninstall clean: > avi2swf/Makefile
10111 pdf2swf_makefile="lib/pdf/Makefile"
10112 PDF2SWF='pdf2swf$(E)'
10113 LIBPDF='libpdf$(A)'
10115 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
10116 echo "* Disabling pdf2swf tool..."
10117 rm -f lib/pdf/Makefile
10118 echo all install uninstall clean libpdf libgfxpdf: > lib/pdf/Makefile
10119 pdf2swf_makefile=""
10126 PDF2PDF='pdf2pdf$(E)'
10127 DEVICE_PDF='devices/pdf.$(O)'
10128 if test "x${DISABLEPDF2PDF}" = "xtrue"; then
10129 #echo "* Disabling pdf2pdf tool..."
10136 if test "x${ZLIBMISSING}" = "xtrue"; then
10138 echo "* Warning! Without zlib, you will not be able to read"
10139 echo "* or write compressed Flash MX files!"
10142 JPEG2SWF='jpeg2swf$(E)'
10143 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
10144 echo "* Disabling jpeg2swf tool..."
10150 GIF2SWF='gif2swf$(E)'
10151 if test "x${DISABLEGIF2SWF}" = "xtrue"; then
10152 echo "* Disabling gif2swf tool..."
10158 PNG2SWF='png2swf$(E)'
10159 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
10160 echo "* Disabling png2swf tool..."
10166 if test "x${MISSINGLIBS}" '!=' "x"; then
10167 if test "x${PARTIAL}" '=' "x"; then
10168 echo "* (never mind)"
10170 echo "***************************************************"
10173 # ------------------------------------------------------------------
10181 if test -f "release.in"; then release_in="./release"; fi
10182 if test -f "Makefile.new.in"; then mk_in="./Makefile.new"; fi
10183 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"
10184 ac_config_files="$ac_config_files ${FILES}"
10186 cat >confcache <<\_ACEOF
10187 # This file is a shell script that caches the results of configure
10188 # tests run on this system so they can be shared between configure
10189 # scripts and configure runs, see configure's option --config-cache.
10190 # It is not useful on other systems. If it contains results you don't
10191 # want to keep, you may remove or edit it.
10193 # config.status only pays attention to the cache file if you give it
10194 # the --recheck option to rerun configure.
10196 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10197 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10198 # following values.
10202 # The following way of writing the cache mishandles newlines in values,
10203 # but we know of no workaround that is simple, portable, and efficient.
10204 # So, we kill variables containing newlines.
10205 # Ultrix sh set writes to stderr and can't be redirected directly,
10206 # and sets the high bit in the cache file unless we assign to the vars.
10208 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10209 eval ac_val=\$$ac_var
10213 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
10214 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10217 _ | IFS | as_nl) ;; #(
10218 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10219 *) $as_unset $ac_var ;;
10225 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10226 *${as_nl}ac_space=\ *)
10227 # `set' does not quote correctly, so add quotes (double-quote
10228 # substitution turns \\\\ into \\, and sed turns \\ into \).
10231 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10234 # `set' quotes correctly as required by POSIX, so do not add quotes.
10235 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10244 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10246 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10248 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10249 if test -w "$cache_file"; then
10250 test "x$cache_file" != "x/dev/null" &&
10251 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
10252 $as_echo "$as_me: updating cache $cache_file" >&6;}
10253 cat confcache >$cache_file
10255 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10256 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10261 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10262 # Let make expand exec_prefix.
10263 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10265 DEFS=-DHAVE_CONFIG_H
10269 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10270 # 1. Remove the extension, and $U if already installed.
10271 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10272 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10273 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10274 # will be set to the directory where LIBOBJS objects are built.
10275 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10276 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10278 LIBOBJS=$ac_libobjs
10280 LTLIBOBJS=$ac_ltlibobjs
10284 : ${CONFIG_STATUS=./config.status}
10286 ac_clean_files_save=$ac_clean_files
10287 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10288 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10289 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10290 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10292 # Generated by $as_me.
10293 # Run this file to recreate the current configuration.
10294 # Compiler output produced by configure, useful for debugging
10295 # configure, is in config.log if it exists.
10298 ac_cs_recheck=false
10300 SHELL=\${CONFIG_SHELL-$SHELL}
10303 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10304 ## --------------------- ##
10305 ## M4sh Initialization. ##
10306 ## --------------------- ##
10308 # Be more Bourne compatible
10309 DUALCASE=1; export DUALCASE # for MKS sh
10310 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10313 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10314 # is contrary to our usage. Disable this feature.
10315 alias -g '${1+"$@"}'='"$@"'
10316 setopt NO_GLOB_SUBST
10318 case `(set -o) 2>/dev/null` in
10319 *posix*) set -o posix ;;
10328 # Avoid depending upon Character Ranges.
10329 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10330 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10331 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10332 as_cr_digits='0123456789'
10333 as_cr_alnum=$as_cr_Letters$as_cr_digits
10338 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10339 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10340 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10341 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10342 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10343 as_echo='printf %s\n'
10344 as_echo_n='printf %s'
10346 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10347 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10348 as_echo_n='/usr/ucb/echo -n'
10350 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10351 as_echo_n_body='eval
10355 expr "X$arg" : "X\\(.*\\)$as_nl";
10356 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10358 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10360 export as_echo_n_body
10361 as_echo_n='sh -c $as_echo_n_body as_echo'
10363 export as_echo_body
10364 as_echo='sh -c $as_echo_body as_echo'
10367 # The user is always right.
10368 if test "${PATH_SEPARATOR+set}" != set; then
10370 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10371 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10376 # Support unset when possible.
10377 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10385 # We need space, tab and new line, in precisely that order. Quoting is
10386 # there to prevent editors from complaining about space-tab.
10387 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10388 # splitting by setting IFS to empty value.)
10391 # Find who we are. Look in the path if we contain no directory separator.
10393 *[\\/]* ) as_myself=$0 ;;
10394 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10395 for as_dir in $PATH
10398 test -z "$as_dir" && as_dir=.
10399 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10405 # We did not find ourselves, most probably we were run as `sh COMMAND'
10406 # in which case we are not to be found in the path.
10407 if test "x$as_myself" = x; then
10410 if test ! -f "$as_myself"; then
10411 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10412 { (exit 1); exit 1; }
10415 # Work around bugs in pre-3.0 UWIN ksh.
10416 for as_var in ENV MAIL MAILPATH
10417 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10429 # Required to use basename.
10430 if expr a : '\(a\)' >/dev/null 2>&1 &&
10431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10438 as_basename=basename
10444 # Name of the executable.
10445 as_me=`$as_basename -- "$0" ||
10446 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10447 X"$0" : 'X\(//\)$' \| \
10448 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10450 sed '/^.*\/\([^/][^/]*\)\/*$/{
10469 as_lineno_1=$LINENO
10470 as_lineno_2=$LINENO
10471 test "x$as_lineno_1" != "x$as_lineno_2" &&
10472 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10474 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10475 # uniformly replaced by the line number. The first 'sed' inserts a
10476 # line-number line after each line using $LINENO; the second 'sed'
10477 # does the real work. The second script uses 'N' to pair each
10478 # line-number line with the line containing $LINENO, and appends
10479 # trailing '-' during substitution so that $LINENO is not a special
10480 # case at line end.
10481 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10482 # scripts with optimization help from Paolo Bonzini. Blame Lee
10483 # E. McMahon (1931-1989) for sed's syntax. :-)
10495 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10498 ' >$as_me.lineno &&
10499 chmod +x "$as_me.lineno" ||
10500 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10501 { (exit 1); exit 1; }; }
10503 # Don't try to exec as it changes $[0], causing all sort of problems
10504 # (the dirname of $[0] is not the place where we might find the
10505 # original and so on. Autoconf is especially sensitive to this).
10506 . "./$as_me.lineno"
10507 # Exit status is that of the last command.
10512 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10518 ECHO_C= ECHO_N= ECHO_T=
10519 case `echo -n x` in
10521 case `echo 'x\c'` in
10522 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10528 if expr a : '\(a\)' >/dev/null 2>&1 &&
10529 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10535 rm -f conf$$ conf$$.exe conf$$.file
10536 if test -d conf$$.dir; then
10537 rm -f conf$$.dir/conf$$.file
10540 mkdir conf$$.dir 2>/dev/null
10542 if (echo >conf$$.file) 2>/dev/null; then
10543 if ln -s conf$$.file conf$$ 2>/dev/null; then
10545 # ... but there are two gotchas:
10546 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10547 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10548 # In both cases, we have to default to `cp -p'.
10549 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10551 elif ln conf$$.file conf$$ 2>/dev/null; then
10559 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10560 rmdir conf$$.dir 2>/dev/null
10562 if mkdir -p . 2>/dev/null; then
10565 test -d ./-p && rmdir ./-p
10569 if test -x / >/dev/null 2>&1; then
10570 as_test_x='test -x'
10572 if ls -dL / >/dev/null 2>&1; then
10579 if test -d "$1"; then
10585 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10586 ???[sx]*):;;*)false;;esac;fi
10590 as_executable_p=$as_test_x
10592 # Sed expression to map a string onto a valid CPP name.
10593 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10595 # Sed expression to map a string onto a valid variable name.
10596 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10601 # Save the log message, to keep $[0] and so on meaningful, and to
10602 # report actual input values of CONFIG_FILES etc. instead of their
10603 # values after options handling.
10605 This file was extended by $as_me, which was
10606 generated by GNU Autoconf 2.63. Invocation command line was
10608 CONFIG_FILES = $CONFIG_FILES
10609 CONFIG_HEADERS = $CONFIG_HEADERS
10610 CONFIG_LINKS = $CONFIG_LINKS
10611 CONFIG_COMMANDS = $CONFIG_COMMANDS
10614 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10619 case $ac_config_files in *"
10620 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10623 case $ac_config_headers in *"
10624 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10628 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10629 # Files that config.status was made for.
10630 config_files="$ac_config_files"
10631 config_headers="$ac_config_headers"
10635 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10637 \`$as_me' instantiates files from templates according to the
10638 current configuration.
10640 Usage: $0 [OPTION]... [FILE]...
10642 -h, --help print this help, then exit
10643 -V, --version print version number and configuration settings, then exit
10644 -q, --quiet, --silent
10645 do not print progress messages
10646 -d, --debug don't remove temporary files
10647 --recheck update $as_me by reconfiguring in the same conditions
10648 --file=FILE[:TEMPLATE]
10649 instantiate the configuration file FILE
10650 --header=FILE[:TEMPLATE]
10651 instantiate the configuration header FILE
10653 Configuration files:
10656 Configuration headers:
10659 Report bugs to <bug-autoconf@gnu.org>."
10662 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10665 configured by $0, generated by GNU Autoconf 2.63,
10666 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10668 Copyright (C) 2008 Free Software Foundation, Inc.
10669 This config.status script is free software; the Free Software Foundation
10670 gives unlimited permission to copy, distribute and modify it."
10675 test -n "\$AWK" || AWK=awk
10678 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10679 # The default lists apply if the user does not specify any file.
10685 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10686 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10697 # Handling of the options.
10698 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10700 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10701 $as_echo "$ac_cs_version"; exit ;;
10702 --debug | --debu | --deb | --de | --d | -d )
10704 --file | --fil | --fi | --f )
10707 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10709 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
10710 ac_need_defaults=false;;
10711 --header | --heade | --head | --hea )
10714 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10716 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
10717 ac_need_defaults=false;;
10719 # Conflict between --help and --header
10720 { $as_echo "$as_me: error: ambiguous option: $1
10721 Try \`$0 --help' for more information." >&2
10722 { (exit 1); exit 1; }; };;
10723 --help | --hel | -h )
10724 $as_echo "$ac_cs_usage"; exit ;;
10725 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10726 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10729 # This is an error.
10730 -*) { $as_echo "$as_me: error: unrecognized option: $1
10731 Try \`$0 --help' for more information." >&2
10732 { (exit 1); exit 1; }; } ;;
10734 *) ac_config_targets="$ac_config_targets $1"
10735 ac_need_defaults=false ;;
10741 ac_configure_extra_args=
10743 if $ac_cs_silent; then
10745 ac_configure_extra_args="$ac_configure_extra_args --silent"
10749 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10750 if \$ac_cs_recheck; then
10751 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10753 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10754 CONFIG_SHELL='$SHELL'
10755 export CONFIG_SHELL
10760 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10764 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10765 ## Running $as_me. ##
10771 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10774 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10776 # Handling of arguments.
10777 for ac_config_target in $ac_config_targets
10779 case $ac_config_target in
10780 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10781 "${FILES}") CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
10783 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10784 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10785 { (exit 1); exit 1; }; };;
10790 # If the user did not use the arguments to specify the items to instantiate,
10791 # then the envvar interface is used. Set only those that are not.
10792 # We use the long form for the default assignment because of an extremely
10793 # bizarre bug on SunOS 4.1.3.
10794 if $ac_need_defaults; then
10795 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10796 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10799 # Have a temporary directory for convenience. Make it in the build tree
10800 # simply because there is no reason against having it here, and in addition,
10801 # creating and moving files from /tmp can sometimes cause problems.
10802 # Hook for its removal unless debugging.
10803 # Note that there is a small window in which the directory will not be cleaned:
10804 # after its creation but before its name has been assigned to `$tmp'.
10808 trap 'exit_status=$?
10809 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10811 trap '{ (exit 1); exit 1; }' 1 2 13 15
10813 # Create a (secure) tmp directory for tmp files.
10816 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10817 test -n "$tmp" && test -d "$tmp"
10820 tmp=./conf$$-$RANDOM
10821 (umask 077 && mkdir "$tmp")
10824 $as_echo "$as_me: cannot create a temporary directory in ." >&2
10825 { (exit 1); exit 1; }
10828 # Set up the scripts for CONFIG_FILES section.
10829 # No need to generate them if there are no CONFIG_FILES.
10830 # This happens for instance with `./config.status config.h'.
10831 if test -n "$CONFIG_FILES"; then
10835 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10836 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10839 ac_cs_awk_cr=$ac_cr
10842 echo 'BEGIN {' >"$tmp/subs1.awk" &&
10847 echo "cat >conf$$subs.awk <<_ACEOF" &&
10848 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10850 } >conf$$subs.sh ||
10851 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10852 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10853 { (exit 1); exit 1; }; }
10854 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
10856 for ac_last_try in false false false false false :; do
10857 . ./conf$$subs.sh ||
10858 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10859 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10860 { (exit 1); exit 1; }; }
10862 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10863 if test $ac_delim_n = $ac_delim_num; then
10865 elif $ac_last_try; then
10866 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10867 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10868 { (exit 1); exit 1; }; }
10870 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10873 rm -f conf$$subs.sh
10875 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10876 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
10880 s/^/S["/; s/!.*/"]=/
10890 s/\(.\{148\}\).*/\1/
10892 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10897 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10904 s/\(.\{148\}\).*/\1/
10906 s/["\\]/\\&/g; s/^/"/; s/$/"/
10910 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10915 ' <conf$$subs.awk | sed '
10920 ' >>$CONFIG_STATUS || ac_write_fail=1
10921 rm -f conf$$subs.awk
10922 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10924 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
10925 for (key in S) S_is_set[key] = 1
10931 nfields = split(line, field, "@")
10933 len = length(field[1])
10934 for (i = 2; i < nfields; i++) {
10936 keylen = length(key)
10937 if (S_is_set[key]) {
10939 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10940 len += length(value) + length(field[++i])
10951 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10952 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10953 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10956 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
10957 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
10958 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
10959 { (exit 1); exit 1; }; }
10962 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10963 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10964 # trailing colons and then remove the whole line if VPATH becomes empty
10965 # (actually we leave an empty line to preserve line numbers).
10966 if test "x$srcdir" = x.; then
10967 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10968 s/:*\$(srcdir):*/:/
10969 s/:*\${srcdir}:*/:/
10971 s/^\([^=]*=[ ]*\):*/\1/
10977 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10978 fi # test -n "$CONFIG_FILES"
10980 # Set up the scripts for CONFIG_HEADERS section.
10981 # No need to generate them if there are no CONFIG_HEADERS.
10982 # This happens for instance with `./config.status Makefile'.
10983 if test -n "$CONFIG_HEADERS"; then
10984 cat >"$tmp/defines.awk" <<\_ACAWK ||
10988 # Transform confdefs.h into an awk script `defines.awk', embedded as
10989 # here-document in config.status, that substitutes the proper values into
10990 # config.h.in to produce config.h.
10992 # Create a delimiter string that does not exist in confdefs.h, to ease
10993 # handling of long lines.
10995 for ac_last_try in false false :; do
10996 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
10997 if test -z "$ac_t"; then
10999 elif $ac_last_try; then
11000 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
11001 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
11002 { (exit 1); exit 1; }; }
11004 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11008 # For the awk script, D is an array of macro values keyed by name,
11009 # likewise P contains macro parameters if any. Preserve backslash
11010 # newline sequences.
11012 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11014 s/.\{148\}/&'"$ac_delim"'/g
11017 s/^[ ]*#[ ]*define[ ][ ]*/ /
11024 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11026 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11030 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11031 D["\1"]=" \3\\\\\\n"\\/p
11033 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11038 s/.\{148\}/&'"$ac_delim"'/g
11043 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11046 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11048 ' <confdefs.h | sed '
11049 s/'"$ac_delim"'/"\\\
11050 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11052 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11053 for (key in D) D_is_set[key] = 1
11056 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11058 split(line, arg, " ")
11059 if (arg[1] == "#") {
11063 defundef = substr(arg[1], 2)
11066 split(mac1, mac2, "(") #)
11068 prefix = substr(line, 1, index(line, defundef) - 1)
11069 if (D_is_set[macro]) {
11070 # Preserve the white space surrounding the "#".
11071 print prefix "define", macro P[macro] D[macro]
11074 # Replace #undef with comments. This is necessary, for example,
11075 # in the case of _POSIX_SOURCE, which is predefined and required
11076 # on some systems where configure will not decide to define it.
11077 if (defundef == "undef") {
11078 print "/*", prefix defundef, macro, "*/"
11086 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11087 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
11088 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
11089 { (exit 1); exit 1; }; }
11090 fi # test -n "$CONFIG_HEADERS"
11093 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
11098 :[FHLC]) ac_mode=$ac_tag; continue;;
11100 case $ac_mode$ac_tag in
11102 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
11103 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
11104 { (exit 1); exit 1; }; };;
11105 :[FH]-) ac_tag=-:-;;
11106 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11123 -) ac_f="$tmp/stdin";;
11124 *) # Look for the file first in the build tree, then in the source tree
11125 # (if the path is not absolute). The absolute path cannot be DOS-style,
11126 # because $ac_f cannot contain `:'.
11130 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11132 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11133 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11134 { (exit 1); exit 1; }; };;
11136 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11137 ac_file_inputs="$ac_file_inputs '$ac_f'"
11140 # Let's still pretend it is `configure' which instantiates (i.e., don't
11141 # use $as_me), people would be surprised to read:
11142 # /* config.h. Generated by config.status. */
11143 configure_input='Generated from '`
11144 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11146 if test x"$ac_file" != x-; then
11147 configure_input="$ac_file. $configure_input"
11148 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
11149 $as_echo "$as_me: creating $ac_file" >&6;}
11151 # Neutralize special characters interpreted by sed in replacement strings.
11152 case $configure_input in #(
11153 *\&* | *\|* | *\\* )
11154 ac_sed_conf_input=`$as_echo "$configure_input" |
11155 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11156 *) ac_sed_conf_input=$configure_input;;
11160 *:-:* | *:-) cat >"$tmp/stdin" \
11161 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11162 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11163 { (exit 1); exit 1; }; } ;;
11168 ac_dir=`$as_dirname -- "$ac_file" ||
11169 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11170 X"$ac_file" : 'X\(//\)[^/]' \| \
11171 X"$ac_file" : 'X\(//\)$' \| \
11172 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11173 $as_echo X"$ac_file" |
11174 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11178 /^X\(\/\/\)[^/].*/{
11193 -*) as_dir=./$as_dir;;
11195 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11199 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11200 *) as_qdir=$as_dir;;
11202 as_dirs="'$as_qdir' $as_dirs"
11203 as_dir=`$as_dirname -- "$as_dir" ||
11204 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11205 X"$as_dir" : 'X\(//\)[^/]' \| \
11206 X"$as_dir" : 'X\(//\)$' \| \
11207 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11208 $as_echo X"$as_dir" |
11209 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11213 /^X\(\/\/\)[^/].*/{
11226 test -d "$as_dir" && break
11228 test -z "$as_dirs" || eval "mkdir $as_dirs"
11229 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11230 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
11231 { (exit 1); exit 1; }; }; }
11235 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11237 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11238 # A ".." for each directory in $ac_dir_suffix.
11239 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11240 case $ac_top_builddir_sub in
11241 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11242 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11245 ac_abs_top_builddir=$ac_pwd
11246 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11247 # for backward compatibility:
11248 ac_top_builddir=$ac_top_build_prefix
11251 .) # We are building in place.
11253 ac_top_srcdir=$ac_top_builddir_sub
11254 ac_abs_top_srcdir=$ac_pwd ;;
11255 [\\/]* | ?:[\\/]* ) # Absolute name.
11256 ac_srcdir=$srcdir$ac_dir_suffix;
11257 ac_top_srcdir=$srcdir
11258 ac_abs_top_srcdir=$srcdir ;;
11259 *) # Relative name.
11260 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11261 ac_top_srcdir=$ac_top_build_prefix$srcdir
11262 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11264 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11274 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11275 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11279 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11280 # If the template does not know about datarootdir, expand it.
11281 # FIXME: This hack should be removed a few years after 2.60.
11282 ac_datarootdir_hack=; ac_datarootdir_seen=
11295 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11296 *datarootdir*) ac_datarootdir_seen=yes;;
11297 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11298 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11299 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11301 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11302 ac_datarootdir_hack='
11303 s&@datadir@&$datadir&g
11304 s&@docdir@&$docdir&g
11305 s&@infodir@&$infodir&g
11306 s&@localedir@&$localedir&g
11307 s&@mandir@&$mandir&g
11308 s&\\\${datarootdir}&$datarootdir&g' ;;
11312 # Neutralize VPATH when `$srcdir' = `.'.
11313 # Shell code in configure.ac might set extrasub.
11314 # FIXME: do we really want to maintain this feature?
11315 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11316 ac_sed_extra="$ac_vpsub
11319 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11321 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11322 s|@configure_input@|$ac_sed_conf_input|;t t
11323 s&@top_builddir@&$ac_top_builddir_sub&;t t
11324 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11325 s&@srcdir@&$ac_srcdir&;t t
11326 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11327 s&@top_srcdir@&$ac_top_srcdir&;t t
11328 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11329 s&@builddir@&$ac_builddir&;t t
11330 s&@abs_builddir@&$ac_abs_builddir&;t t
11331 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11332 s&@INSTALL@&$ac_INSTALL&;t t
11333 $ac_datarootdir_hack
11335 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
11336 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11337 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11338 { (exit 1); exit 1; }; }
11340 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11341 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11342 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11343 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11344 which seems to be undefined. Please make sure it is defined." >&5
11345 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11346 which seems to be undefined. Please make sure it is defined." >&2;}
11350 -) cat "$tmp/out" && rm -f "$tmp/out";;
11351 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
11353 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11354 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11355 { (exit 1); exit 1; }; }
11361 if test x"$ac_file" != x-; then
11363 $as_echo "/* $configure_input */" \
11364 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
11365 } >"$tmp/config.h" \
11366 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11367 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11368 { (exit 1); exit 1; }; }
11369 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
11370 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11371 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11374 mv "$tmp/config.h" "$ac_file" \
11375 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11376 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11377 { (exit 1); exit 1; }; }
11380 $as_echo "/* $configure_input */" \
11381 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
11382 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
11383 $as_echo "$as_me: error: could not create -" >&2;}
11384 { (exit 1); exit 1; }; }
11394 { (exit 0); exit 0; }
11396 chmod +x $CONFIG_STATUS
11397 ac_clean_files=$ac_clean_files_save
11399 test $ac_write_fail = 0 ||
11400 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
11401 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
11402 { (exit 1); exit 1; }; }
11405 # configure is writing to config.log, and then calls config.status.
11406 # config.status does its own redirection, appending to config.log.
11407 # Unfortunately, on DOS this fails, as config.log is still kept open
11408 # by configure, so config.status won't be able to write to it; its
11409 # output is simply discarded. So we exec the FD to /dev/null,
11410 # effectively closing config.log, so it can be properly (re)opened and
11411 # appended to by config.status. When coming back to configure, we
11412 # need to make the FD available again.
11413 if test "$no_create" != yes; then
11415 ac_config_status_args=
11416 test "$silent" = yes &&
11417 ac_config_status_args="$ac_config_status_args --quiet"
11419 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11421 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11422 # would make configure fail if this is the last instruction.
11423 $ac_cs_success || { (exit 1); exit 1; }
11425 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11426 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11427 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11433 # On development trees, create snapshots of config.status
11435 if test -f snapshot -a "x$CHECKMEM" = "x" -a "x$PROFILING" = "x";then
11436 if test "x${MINGW}" = "xyes"; then
11437 echo cp config.status config.status.win32
11438 cp config.status config.status.win32
11440 if test "x$DEBUG" '=' "x" -a "x$OPTIMIZE" '=' "x";then
11441 echo cp config.status config.status.linux
11442 cp config.status config.status.linux
11444 if test "x$DEBUG" '!=' "x" -a "x$OPTIMIZE" '=' "x";then
11445 echo cp config.status config.status.debug
11446 cp config.status config.status.debug
11448 if test "x$DEBUG" = "x" -a "x$OPTIMIZE" '!=' "x"; then
11449 echo cp config.status config.status.optimize
11450 cp config.status config.status.optimize