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
734 program_transform_name
746 enable_option_checking
754 ac_precious_vars='build_alias
768 # Initialize some variables set by options.
770 ac_init_version=false
771 ac_unrecognized_opts=
773 # The variables have the same names as the options, with
774 # dashes changed to underlines.
782 program_transform_name=s,x,x,
790 # Installation directory options.
791 # These are left unexpanded so users can "make install exec_prefix=/foo"
792 # and all the variables that are supposed to be based on exec_prefix
793 # by default will actually change.
794 # Use braces instead of parens because sh, perl, etc. also accept them.
795 # (The list follows the same order as the GNU Coding Standards.)
796 bindir='${exec_prefix}/bin'
797 sbindir='${exec_prefix}/sbin'
798 libexecdir='${exec_prefix}/libexec'
799 datarootdir='${prefix}/share'
800 datadir='${datarootdir}'
801 sysconfdir='${prefix}/etc'
802 sharedstatedir='${prefix}/com'
803 localstatedir='${prefix}/var'
804 includedir='${prefix}/include'
805 oldincludedir='/usr/include'
806 docdir='${datarootdir}/doc/${PACKAGE}'
807 infodir='${datarootdir}/info'
812 libdir='${exec_prefix}/lib'
813 localedir='${datarootdir}/locale'
814 mandir='${datarootdir}/man'
820 # If the previous option needs an argument, assign it.
821 if test -n "$ac_prev"; then
822 eval $ac_prev=\$ac_option
828 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
832 # Accept the important Cygnus configure options, so we can diagnose typos.
834 case $ac_dashdash$ac_option in
838 -bindir | --bindir | --bindi | --bind | --bin | --bi)
840 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
843 -build | --build | --buil | --bui | --bu)
844 ac_prev=build_alias ;;
845 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
846 build_alias=$ac_optarg ;;
848 -cache-file | --cache-file | --cache-fil | --cache-fi \
849 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
850 ac_prev=cache_file ;;
851 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
852 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
853 cache_file=$ac_optarg ;;
856 cache_file=config.cache ;;
858 -datadir | --datadir | --datadi | --datad)
860 -datadir=* | --datadir=* | --datadi=* | --datad=*)
861 datadir=$ac_optarg ;;
863 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
864 | --dataroo | --dataro | --datar)
865 ac_prev=datarootdir ;;
866 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
867 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
868 datarootdir=$ac_optarg ;;
870 -disable-* | --disable-*)
871 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
872 # Reject names that are not valid shell variable names.
873 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
874 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
875 { (exit 1); exit 1; }; }
876 ac_useropt_orig=$ac_useropt
877 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
878 case $ac_user_opts in
882 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
883 ac_unrecognized_sep=', ';;
885 eval enable_$ac_useropt=no ;;
887 -docdir | --docdir | --docdi | --doc | --do)
889 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
892 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
894 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
897 -enable-* | --enable-*)
898 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
899 # Reject names that are not valid shell variable names.
900 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
901 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
902 { (exit 1); exit 1; }; }
903 ac_useropt_orig=$ac_useropt
904 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
905 case $ac_user_opts in
909 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
910 ac_unrecognized_sep=', ';;
912 eval enable_$ac_useropt=\$ac_optarg ;;
914 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
915 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
916 | --exec | --exe | --ex)
917 ac_prev=exec_prefix ;;
918 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
919 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
920 | --exec=* | --exe=* | --ex=*)
921 exec_prefix=$ac_optarg ;;
923 -gas | --gas | --ga | --g)
924 # Obsolete; use --with-gas.
927 -help | --help | --hel | --he | -h)
929 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
930 ac_init_help=recursive ;;
931 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
932 ac_init_help=short ;;
934 -host | --host | --hos | --ho)
935 ac_prev=host_alias ;;
936 -host=* | --host=* | --hos=* | --ho=*)
937 host_alias=$ac_optarg ;;
939 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
941 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
943 htmldir=$ac_optarg ;;
945 -includedir | --includedir | --includedi | --included | --include \
946 | --includ | --inclu | --incl | --inc)
947 ac_prev=includedir ;;
948 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
949 | --includ=* | --inclu=* | --incl=* | --inc=*)
950 includedir=$ac_optarg ;;
952 -infodir | --infodir | --infodi | --infod | --info | --inf)
954 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
955 infodir=$ac_optarg ;;
957 -libdir | --libdir | --libdi | --libd)
959 -libdir=* | --libdir=* | --libdi=* | --libd=*)
962 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
963 | --libexe | --libex | --libe)
964 ac_prev=libexecdir ;;
965 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
966 | --libexe=* | --libex=* | --libe=*)
967 libexecdir=$ac_optarg ;;
969 -localedir | --localedir | --localedi | --localed | --locale)
971 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
972 localedir=$ac_optarg ;;
974 -localstatedir | --localstatedir | --localstatedi | --localstated \
975 | --localstate | --localstat | --localsta | --localst | --locals)
976 ac_prev=localstatedir ;;
977 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
978 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
979 localstatedir=$ac_optarg ;;
981 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
983 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
987 # Obsolete; use --without-fp.
990 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
991 | --no-cr | --no-c | -n)
994 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
995 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
998 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
999 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1000 | --oldin | --oldi | --old | --ol | --o)
1001 ac_prev=oldincludedir ;;
1002 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1003 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1004 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1005 oldincludedir=$ac_optarg ;;
1007 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1009 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1010 prefix=$ac_optarg ;;
1012 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1013 | --program-pre | --program-pr | --program-p)
1014 ac_prev=program_prefix ;;
1015 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1016 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1017 program_prefix=$ac_optarg ;;
1019 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1020 | --program-suf | --program-su | --program-s)
1021 ac_prev=program_suffix ;;
1022 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1023 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1024 program_suffix=$ac_optarg ;;
1026 -program-transform-name | --program-transform-name \
1027 | --program-transform-nam | --program-transform-na \
1028 | --program-transform-n | --program-transform- \
1029 | --program-transform | --program-transfor \
1030 | --program-transfo | --program-transf \
1031 | --program-trans | --program-tran \
1032 | --progr-tra | --program-tr | --program-t)
1033 ac_prev=program_transform_name ;;
1034 -program-transform-name=* | --program-transform-name=* \
1035 | --program-transform-nam=* | --program-transform-na=* \
1036 | --program-transform-n=* | --program-transform-=* \
1037 | --program-transform=* | --program-transfor=* \
1038 | --program-transfo=* | --program-transf=* \
1039 | --program-trans=* | --program-tran=* \
1040 | --progr-tra=* | --program-tr=* | --program-t=*)
1041 program_transform_name=$ac_optarg ;;
1043 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1045 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1046 pdfdir=$ac_optarg ;;
1048 -psdir | --psdir | --psdi | --psd | --ps)
1050 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1053 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1054 | -silent | --silent | --silen | --sile | --sil)
1057 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1059 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1061 sbindir=$ac_optarg ;;
1063 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1064 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1065 | --sharedst | --shareds | --shared | --share | --shar \
1067 ac_prev=sharedstatedir ;;
1068 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1069 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1070 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1072 sharedstatedir=$ac_optarg ;;
1074 -site | --site | --sit)
1076 -site=* | --site=* | --sit=*)
1079 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1081 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1082 srcdir=$ac_optarg ;;
1084 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1085 | --syscon | --sysco | --sysc | --sys | --sy)
1086 ac_prev=sysconfdir ;;
1087 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1088 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1089 sysconfdir=$ac_optarg ;;
1091 -target | --target | --targe | --targ | --tar | --ta | --t)
1092 ac_prev=target_alias ;;
1093 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1094 target_alias=$ac_optarg ;;
1096 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1099 -version | --version | --versio | --versi | --vers | -V)
1100 ac_init_version=: ;;
1103 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1104 # Reject names that are not valid shell variable names.
1105 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1106 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1107 { (exit 1); exit 1; }; }
1108 ac_useropt_orig=$ac_useropt
1109 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1110 case $ac_user_opts in
1114 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1115 ac_unrecognized_sep=', ';;
1117 eval with_$ac_useropt=\$ac_optarg ;;
1119 -without-* | --without-*)
1120 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1121 # Reject names that are not valid shell variable names.
1122 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1123 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1124 { (exit 1); exit 1; }; }
1125 ac_useropt_orig=$ac_useropt
1126 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127 case $ac_user_opts in
1131 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1132 ac_unrecognized_sep=', ';;
1134 eval with_$ac_useropt=no ;;
1137 # Obsolete; use --with-x.
1140 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1141 | --x-incl | --x-inc | --x-in | --x-i)
1142 ac_prev=x_includes ;;
1143 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1144 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1145 x_includes=$ac_optarg ;;
1147 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1148 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1149 ac_prev=x_libraries ;;
1150 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1151 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1152 x_libraries=$ac_optarg ;;
1154 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1155 Try \`$0 --help' for more information." >&2
1156 { (exit 1); exit 1; }; }
1160 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1161 # Reject names that are not valid shell variable names.
1162 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1163 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1164 { (exit 1); exit 1; }; }
1165 eval $ac_envvar=\$ac_optarg
1166 export $ac_envvar ;;
1169 # FIXME: should be removed in autoconf 3.0.
1170 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1171 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1172 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1173 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1179 if test -n "$ac_prev"; then
1180 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1181 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1182 { (exit 1); exit 1; }; }
1185 if test -n "$ac_unrecognized_opts"; then
1186 case $enable_option_checking in
1188 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1189 { (exit 1); exit 1; }; } ;;
1190 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1194 # Check all directory arguments for consistency.
1195 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1196 datadir sysconfdir sharedstatedir localstatedir includedir \
1197 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1198 libdir localedir mandir
1200 eval ac_val=\$$ac_var
1201 # Remove trailing slashes.
1204 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1205 eval $ac_var=\$ac_val;;
1207 # Be sure to have absolute directory names.
1209 [\\/$]* | ?:[\\/]* ) continue;;
1210 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1212 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1213 { (exit 1); exit 1; }; }
1216 # There might be people who depend on the old broken behavior: `$host'
1217 # used to hold the argument of --host etc.
1218 # FIXME: To remove some day.
1221 target=$target_alias
1223 # FIXME: To remove some day.
1224 if test "x$host_alias" != x; then
1225 if test "x$build_alias" = x; then
1226 cross_compiling=maybe
1227 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1228 If a cross compiler is detected then cross compile mode will be used." >&2
1229 elif test "x$build_alias" != "x$host_alias"; then
1235 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1237 test "$silent" = yes && exec 6>/dev/null
1240 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1241 ac_ls_di=`ls -di .` &&
1242 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1243 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1244 { (exit 1); exit 1; }; }
1245 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1246 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1247 { (exit 1); exit 1; }; }
1250 # Find the source files, if location was not specified.
1251 if test -z "$srcdir"; then
1252 ac_srcdir_defaulted=yes
1253 # Try the directory containing this script, then the parent directory.
1254 ac_confdir=`$as_dirname -- "$as_myself" ||
1255 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1256 X"$as_myself" : 'X\(//\)[^/]' \| \
1257 X"$as_myself" : 'X\(//\)$' \| \
1258 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1259 $as_echo X"$as_myself" |
1260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1278 if test ! -r "$srcdir/$ac_unique_file"; then
1282 ac_srcdir_defaulted=no
1284 if test ! -r "$srcdir/$ac_unique_file"; then
1285 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1286 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1287 { (exit 1); exit 1; }; }
1289 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1291 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1292 { (exit 1); exit 1; }; }
1294 # When building in place, set srcdir=.
1295 if test "$ac_abs_confdir" = "$ac_pwd"; then
1298 # Remove unnecessary trailing slashes from srcdir.
1299 # Double slashes in file names in object file debugging info
1300 # mess up M-x gdb in Emacs.
1302 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1304 for ac_var in $ac_precious_vars; do
1305 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1306 eval ac_env_${ac_var}_value=\$${ac_var}
1307 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1312 # Report the --help message.
1314 if test "$ac_init_help" = "long"; then
1315 # Omit some internal or obsolete options to make the list less imposing.
1316 # This message is too long to be a string in the A/UX 3.1 sh.
1318 \`configure' configures this package to adapt to many kinds of systems.
1320 Usage: $0 [OPTION]... [VAR=VALUE]...
1322 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1323 VAR=VALUE. See below for descriptions of some of the useful variables.
1325 Defaults for the options are specified in brackets.
1328 -h, --help display this help and exit
1329 --help=short display options specific to this package
1330 --help=recursive display the short help of all the included packages
1331 -V, --version display version information and exit
1332 -q, --quiet, --silent do not print \`checking...' messages
1333 --cache-file=FILE cache test results in FILE [disabled]
1334 -C, --config-cache alias for \`--cache-file=config.cache'
1335 -n, --no-create do not create output files
1336 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1338 Installation directories:
1339 --prefix=PREFIX install architecture-independent files in PREFIX
1340 [$ac_default_prefix]
1341 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1344 By default, \`make install' will install all the files in
1345 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1346 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1347 for instance \`--prefix=\$HOME'.
1349 For better control, use the options below.
1351 Fine tuning of the installation directories:
1352 --bindir=DIR user executables [EPREFIX/bin]
1353 --sbindir=DIR system admin executables [EPREFIX/sbin]
1354 --libexecdir=DIR program executables [EPREFIX/libexec]
1355 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1356 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1357 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1358 --libdir=DIR object code libraries [EPREFIX/lib]
1359 --includedir=DIR C header files [PREFIX/include]
1360 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1361 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1362 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1363 --infodir=DIR info documentation [DATAROOTDIR/info]
1364 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1365 --mandir=DIR man documentation [DATAROOTDIR/man]
1366 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1367 --htmldir=DIR html documentation [DOCDIR]
1368 --dvidir=DIR dvi documentation [DOCDIR]
1369 --pdfdir=DIR pdf documentation [DOCDIR]
1370 --psdir=DIR ps documentation [DOCDIR]
1376 --program-prefix=PREFIX prepend PREFIX to installed program names
1377 --program-suffix=SUFFIX append SUFFIX to installed program names
1378 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1381 --build=BUILD configure for building on BUILD [guessed]
1382 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1383 --target=TARGET configure for building compilers for TARGET [HOST]
1387 if test -n "$ac_init_help"; then
1392 --disable-option-checking ignore unrecognized --enable/--with options
1393 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1394 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1395 --enable-checkmem turn on ccmalloc debugging
1396 --enable-debug turn on debugging
1397 --enable-profiling turn on profiling
1398 --enable-warnings turn on compiler warnings
1399 --enable-optimizations turn on compiler optimizations (recommended for avi2swf)
1400 --disable-lame don't compile any L.A.M.E. mp3 encoding code in
1402 Some influential environment variables:
1403 CC C compiler command
1404 CFLAGS C compiler flags
1405 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1406 nonstandard directory <lib dir>
1407 LIBS libraries to pass to the linker, e.g. -l<library>
1408 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1409 you have headers in a nonstandard directory <include dir>
1410 CXX C++ compiler command
1411 CXXFLAGS C++ compiler flags
1414 Use these variables to override the choices made by `configure' or to help
1415 it to find libraries and programs with nonstandard names/locations.
1421 if test "$ac_init_help" = "recursive"; then
1422 # If there are subdirs, report their specific --help.
1423 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1424 test -d "$ac_dir" ||
1425 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1430 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1432 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1433 # A ".." for each directory in $ac_dir_suffix.
1434 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1435 case $ac_top_builddir_sub in
1436 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1437 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1440 ac_abs_top_builddir=$ac_pwd
1441 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1442 # for backward compatibility:
1443 ac_top_builddir=$ac_top_build_prefix
1446 .) # We are building in place.
1448 ac_top_srcdir=$ac_top_builddir_sub
1449 ac_abs_top_srcdir=$ac_pwd ;;
1450 [\\/]* | ?:[\\/]* ) # Absolute name.
1451 ac_srcdir=$srcdir$ac_dir_suffix;
1452 ac_top_srcdir=$srcdir
1453 ac_abs_top_srcdir=$srcdir ;;
1455 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1456 ac_top_srcdir=$ac_top_build_prefix$srcdir
1457 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1459 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1461 cd "$ac_dir" || { ac_status=$?; continue; }
1462 # Check for guested configure.
1463 if test -f "$ac_srcdir/configure.gnu"; then
1465 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1466 elif test -f "$ac_srcdir/configure"; then
1468 $SHELL "$ac_srcdir/configure" --help=recursive
1470 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1472 cd "$ac_pwd" || { ac_status=$?; break; }
1476 test -n "$ac_init_help" && exit $ac_status
1477 if $ac_init_version; then
1480 generated by GNU Autoconf 2.63
1482 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1483 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1484 This configure script is free software; the Free Software Foundation
1485 gives unlimited permission to copy, distribute and modify it.
1489 cat >config.log <<_ACEOF
1490 This file contains any messages produced by compilers while
1491 running configure, to aid debugging if configure makes a mistake.
1493 It was created by $as_me, which was
1494 generated by GNU Autoconf 2.63. Invocation command line was
1506 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1507 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1508 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1509 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1510 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1512 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1513 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1515 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1516 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1517 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1518 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1519 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1520 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1521 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1529 test -z "$as_dir" && as_dir=.
1530 $as_echo "PATH: $as_dir"
1546 # Keep a trace of the command line.
1547 # Strip out --no-create and --no-recursion so they do not pile up.
1548 # Strip out --silent because we don't want to record it for future runs.
1549 # Also quote any args containing shell meta-characters.
1550 # Make two passes to allow for proper duplicate-argument suppression.
1554 ac_must_keep_next=false
1560 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1561 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1562 | -silent | --silent | --silen | --sile | --sil)
1565 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1568 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1570 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1571 if test $ac_must_keep_next = true; then
1572 ac_must_keep_next=false # Got value, back to normal.
1575 *=* | --config-cache | -C | -disable-* | --disable-* \
1576 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1577 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1578 | -with-* | --with-* | -without-* | --without-* | --x)
1579 case "$ac_configure_args0 " in
1580 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1583 -* ) ac_must_keep_next=true ;;
1586 ac_configure_args="$ac_configure_args '$ac_arg'"
1591 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1592 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1594 # When interrupted or exit'd, cleanup temporary files, and complete
1595 # config.log. We remove comments because anyway the quotes in there
1596 # would cause problems or look ugly.
1597 # WARNING: Use '\'' to represent an apostrophe within the trap.
1598 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1599 trap 'exit_status=$?
1600 # Save into config.log some information that might help in debugging.
1605 ## ---------------- ##
1606 ## Cache variables. ##
1607 ## ---------------- ##
1610 # The following way of writing the cache mishandles newlines in values,
1612 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1613 eval ac_val=\$$ac_var
1617 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1618 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1621 _ | IFS | as_nl) ;; #(
1622 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1623 *) $as_unset $ac_var ;;
1628 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1629 *${as_nl}ac_space=\ *)
1631 "s/'\''/'\''\\\\'\'''\''/g;
1632 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1635 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1643 ## ----------------- ##
1644 ## Output variables. ##
1645 ## ----------------- ##
1648 for ac_var in $ac_subst_vars
1650 eval ac_val=\$$ac_var
1652 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1654 $as_echo "$ac_var='\''$ac_val'\''"
1658 if test -n "$ac_subst_files"; then
1660 ## ------------------- ##
1661 ## File substitutions. ##
1662 ## ------------------- ##
1665 for ac_var in $ac_subst_files
1667 eval ac_val=\$$ac_var
1669 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1671 $as_echo "$ac_var='\''$ac_val'\''"
1676 if test -s confdefs.h; then
1686 test "$ac_signal" != 0 &&
1687 $as_echo "$as_me: caught signal $ac_signal"
1688 $as_echo "$as_me: exit $exit_status"
1690 rm -f core *.core core.conftest.* &&
1691 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1694 for ac_signal in 1 2 13 15; do
1695 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1699 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1700 rm -f -r conftest* confdefs.h
1702 # Predefined preprocessor variables.
1704 cat >>confdefs.h <<_ACEOF
1705 #define PACKAGE_NAME "$PACKAGE_NAME"
1709 cat >>confdefs.h <<_ACEOF
1710 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1714 cat >>confdefs.h <<_ACEOF
1715 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1719 cat >>confdefs.h <<_ACEOF
1720 #define PACKAGE_STRING "$PACKAGE_STRING"
1724 cat >>confdefs.h <<_ACEOF
1725 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1729 # Let the site file select an alternate cache file if it wants to.
1730 # Prefer an explicitly selected file to automatically selected ones.
1733 if test -n "$CONFIG_SITE"; then
1734 ac_site_file1=$CONFIG_SITE
1735 elif test "x$prefix" != xNONE; then
1736 ac_site_file1=$prefix/share/config.site
1737 ac_site_file2=$prefix/etc/config.site
1739 ac_site_file1=$ac_default_prefix/share/config.site
1740 ac_site_file2=$ac_default_prefix/etc/config.site
1742 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1744 test "x$ac_site_file" = xNONE && continue
1745 if test -r "$ac_site_file"; then
1746 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1747 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1748 sed 's/^/| /' "$ac_site_file" >&5
1753 if test -r "$cache_file"; then
1754 # Some versions of bash will fail to source /dev/null (special
1755 # files actually), so we avoid doing that.
1756 if test -f "$cache_file"; then
1757 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1758 $as_echo "$as_me: loading cache $cache_file" >&6;}
1760 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1761 *) . "./$cache_file";;
1765 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1766 $as_echo "$as_me: creating cache $cache_file" >&6;}
1770 # Check that the precious variables saved in the cache have kept the same
1772 ac_cache_corrupted=false
1773 for ac_var in $ac_precious_vars; do
1774 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1775 eval ac_new_set=\$ac_env_${ac_var}_set
1776 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1777 eval ac_new_val=\$ac_env_${ac_var}_value
1778 case $ac_old_set,$ac_new_set in
1780 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1781 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1782 ac_cache_corrupted=: ;;
1784 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1785 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1786 ac_cache_corrupted=: ;;
1789 if test "x$ac_old_val" != "x$ac_new_val"; then
1790 # differences in whitespace do not lead to failure.
1791 ac_old_val_w=`echo x $ac_old_val`
1792 ac_new_val_w=`echo x $ac_new_val`
1793 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1794 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1795 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1796 ac_cache_corrupted=:
1798 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1799 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1800 eval $ac_var=\$ac_old_val
1802 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1803 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1804 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1805 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1808 # Pass precious variables to config.status.
1809 if test "$ac_new_set" = set; then
1811 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1812 *) ac_arg=$ac_var=$ac_new_val ;;
1814 case " $ac_configure_args " in
1815 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1816 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1820 if $ac_cache_corrupted; then
1821 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1822 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1823 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1824 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1825 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1826 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1827 { (exit 1); exit 1; }; }
1847 ac_cpp='$CPP $CPPFLAGS'
1848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1855 # ------------------- option parsing -------------------------------
1864 # Check whether --enable-checkmem was given.
1865 if test "${enable_checkmem+set}" = set; then
1866 enableval=$enable_checkmem; CHECKMEM=true
1869 # Check whether --enable-debug was given.
1870 if test "${enable_debug+set}" = set; then
1871 enableval=$enable_debug; DEBUG=true
1874 # Check whether --enable-profiling was given.
1875 if test "${enable_profiling+set}" = set; then
1876 enableval=$enable_profiling; PROFILING=true
1879 # Check whether --enable-warnings was given.
1880 if test "${enable_warnings+set}" = set; then
1881 enableval=$enable_warnings; ENABLE_WARNINGS=true
1884 # Check whether --enable-optimizations was given.
1885 if test "${enable_optimizations+set}" = set; then
1886 enableval=$enable_optimizations; OPTIMIZE=true
1889 # Check whether --enable-lame was given.
1890 if test "${enable_lame+set}" = set; then
1891 enableval=$enable_lame; if test "x$enable_lame" = "xno";then
1900 VERSION=2010-02-06-1900
1902 # ------------------------------------------------------------------
1904 if test "x${srcdir}" != "x."; then
1905 echo "--srcdir is not supported"
1909 WARNINGS="-Wimplicit -Wreturn-type -Wno-write-strings -Wformat"
1910 if test "x$ENABLE_WARNINGS" '!=' "x";then
1911 WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls -Wno-write-strings -D_FORTIFY_SOURCE=2 "
1914 if test "x$CHECKMEM" '!=' "x";then
1917 if test "x$PROFILING" '!=' "x";then
1920 if test "x$DEBUG" '!=' "x";then
1921 if test "x$PROFILING" = "x";then
1922 CFLAGS="$WARNINGS -O2 -g $CFLAGS"
1923 CXXFLAGS="$WARNINGS -O2 -g $CXXFLAGS"
1924 LDFLAGS="-g $LDFLAGS"
1926 CFLAGS="$WARNINGS -O2 -g -pg $CFLAGS"
1927 CXXFLAGS="$WARNINGS -O2 -g -pg $CXXFLAGS"
1928 LDFLAGS="-g -pg $LDFLAGS"
1930 else if test "x$OPTIMIZE" '!=' "x"; then
1931 CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
1932 CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
1934 CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
1935 CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
1939 CFLAGS="-fPIC $CFLAGS"
1940 CXXFLAGS="-fPIC $CFLAGS"
1943 #if test "x$OLDGCC" '!=' "x";then
1944 # #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
1945 # #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
1946 # CFLAGS="$CFLAGS -ansi -pendantic"
1947 # CXXFLAGS="$CXXFLAGS -ansi -pendantic"
1950 export PACKAGE VERSION CFLAGS CXXFLAGS
1954 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1955 if test -f "$ac_dir/install-sh"; then
1957 ac_install_sh="$ac_aux_dir/install-sh -c"
1959 elif test -f "$ac_dir/install.sh"; then
1961 ac_install_sh="$ac_aux_dir/install.sh -c"
1963 elif test -f "$ac_dir/shtool"; then
1965 ac_install_sh="$ac_aux_dir/shtool install -c"
1969 if test -z "$ac_aux_dir"; then
1970 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1971 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1972 { (exit 1); exit 1; }; }
1975 # These three variables are undocumented and unsupported,
1976 # and are intended to be withdrawn in a future Autoconf release.
1977 # They can cause serious problems if a builder's source tree is in a directory
1978 # whose full name contains unusual characters.
1979 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1980 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1981 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1984 # Make sure we can run config.sub.
1985 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1986 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1987 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1988 { (exit 1); exit 1; }; }
1990 { $as_echo "$as_me:$LINENO: checking build system type" >&5
1991 $as_echo_n "checking build system type... " >&6; }
1992 if test "${ac_cv_build+set}" = set; then
1993 $as_echo_n "(cached) " >&6
1995 ac_build_alias=$build_alias
1996 test "x$ac_build_alias" = x &&
1997 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1998 test "x$ac_build_alias" = x &&
1999 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2000 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2001 { (exit 1); exit 1; }; }
2002 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2003 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2004 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2005 { (exit 1); exit 1; }; }
2008 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2009 $as_echo "$ac_cv_build" >&6; }
2010 case $ac_cv_build in
2012 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2013 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2014 { (exit 1); exit 1; }; };;
2017 ac_save_IFS=$IFS; IFS='-'
2023 # Remember, the first character of IFS is used to create $*,
2024 # except with old shells:
2027 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2030 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2031 $as_echo_n "checking host system type... " >&6; }
2032 if test "${ac_cv_host+set}" = set; then
2033 $as_echo_n "(cached) " >&6
2035 if test "x$host_alias" = x; then
2036 ac_cv_host=$ac_cv_build
2038 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2039 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2040 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2041 { (exit 1); exit 1; }; }
2045 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2046 $as_echo "$ac_cv_host" >&6; }
2049 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2050 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2051 { (exit 1); exit 1; }; };;
2054 ac_save_IFS=$IFS; IFS='-'
2060 # Remember, the first character of IFS is used to create $*,
2061 # except with old shells:
2064 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2074 CXXFLAGS="$CXXFLAGS -fno-rtti"
2076 if test -d /opt/local/include && test -d /opt/local/lib; then
2077 CPPFLAGS="${CPPFLAGS} -I/opt/local/include"
2078 LDFLAGS="${LDFLAGS} -L/opt/local/lib"
2080 # Use fink packages if available.
2081 #if test -d /sw/include && test -d /sw/lib; then
2082 # CPPFLAGS="${CPPFLAGS} -I/sw/include"
2083 # LDFLAGS="${LDFLAGS} -L/sw/lib"
2091 ac_cpp='$CPP $CPPFLAGS'
2092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2095 if test -n "$ac_tool_prefix"; then
2096 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2097 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2098 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2099 $as_echo_n "checking for $ac_word... " >&6; }
2100 if test "${ac_cv_prog_CC+set}" = set; then
2101 $as_echo_n "(cached) " >&6
2103 if test -n "$CC"; then
2104 ac_cv_prog_CC="$CC" # Let the user override the test.
2106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2110 test -z "$as_dir" && as_dir=.
2111 for ac_exec_ext in '' $ac_executable_extensions; do
2112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2113 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2114 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2124 if test -n "$CC"; then
2125 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2126 $as_echo "$CC" >&6; }
2128 { $as_echo "$as_me:$LINENO: result: no" >&5
2129 $as_echo "no" >&6; }
2134 if test -z "$ac_cv_prog_CC"; then
2136 # Extract the first word of "gcc", so it can be a program name with args.
2137 set dummy gcc; ac_word=$2
2138 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2139 $as_echo_n "checking for $ac_word... " >&6; }
2140 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2141 $as_echo_n "(cached) " >&6
2143 if test -n "$ac_ct_CC"; then
2144 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2150 test -z "$as_dir" && as_dir=.
2151 for ac_exec_ext in '' $ac_executable_extensions; do
2152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2153 ac_cv_prog_ac_ct_CC="gcc"
2154 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2163 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2164 if test -n "$ac_ct_CC"; then
2165 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2166 $as_echo "$ac_ct_CC" >&6; }
2168 { $as_echo "$as_me:$LINENO: result: no" >&5
2169 $as_echo "no" >&6; }
2172 if test "x$ac_ct_CC" = x; then
2175 case $cross_compiling:$ac_tool_warned in
2177 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2178 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2179 ac_tool_warned=yes ;;
2187 if test -z "$CC"; then
2188 if test -n "$ac_tool_prefix"; then
2189 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2190 set dummy ${ac_tool_prefix}cc; ac_word=$2
2191 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2192 $as_echo_n "checking for $ac_word... " >&6; }
2193 if test "${ac_cv_prog_CC+set}" = set; then
2194 $as_echo_n "(cached) " >&6
2196 if test -n "$CC"; then
2197 ac_cv_prog_CC="$CC" # Let the user override the test.
2199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2203 test -z "$as_dir" && as_dir=.
2204 for ac_exec_ext in '' $ac_executable_extensions; do
2205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2206 ac_cv_prog_CC="${ac_tool_prefix}cc"
2207 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2217 if test -n "$CC"; then
2218 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2219 $as_echo "$CC" >&6; }
2221 { $as_echo "$as_me:$LINENO: result: no" >&5
2222 $as_echo "no" >&6; }
2228 if test -z "$CC"; then
2229 # Extract the first word of "cc", so it can be a program name with args.
2230 set dummy cc; ac_word=$2
2231 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2232 $as_echo_n "checking for $ac_word... " >&6; }
2233 if test "${ac_cv_prog_CC+set}" = set; then
2234 $as_echo_n "(cached) " >&6
2236 if test -n "$CC"; then
2237 ac_cv_prog_CC="$CC" # Let the user override the test.
2240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2244 test -z "$as_dir" && as_dir=.
2245 for ac_exec_ext in '' $ac_executable_extensions; do
2246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2247 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2248 ac_prog_rejected=yes
2252 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2259 if test $ac_prog_rejected = yes; then
2260 # We found a bogon in the path, so make sure we never use it.
2261 set dummy $ac_cv_prog_CC
2263 if test $# != 0; then
2264 # We chose a different compiler from the bogus one.
2265 # However, it has the same basename, so the bogon will be chosen
2266 # first if we set CC to just the basename; use the full file name.
2268 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2274 if test -n "$CC"; then
2275 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2276 $as_echo "$CC" >&6; }
2278 { $as_echo "$as_me:$LINENO: result: no" >&5
2279 $as_echo "no" >&6; }
2284 if test -z "$CC"; then
2285 if test -n "$ac_tool_prefix"; then
2286 for ac_prog in cl.exe
2288 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2289 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2290 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2291 $as_echo_n "checking for $ac_word... " >&6; }
2292 if test "${ac_cv_prog_CC+set}" = set; then
2293 $as_echo_n "(cached) " >&6
2295 if test -n "$CC"; then
2296 ac_cv_prog_CC="$CC" # Let the user override the test.
2298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2302 test -z "$as_dir" && as_dir=.
2303 for ac_exec_ext in '' $ac_executable_extensions; do
2304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2305 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2306 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2316 if test -n "$CC"; then
2317 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2318 $as_echo "$CC" >&6; }
2320 { $as_echo "$as_me:$LINENO: result: no" >&5
2321 $as_echo "no" >&6; }
2325 test -n "$CC" && break
2328 if test -z "$CC"; then
2330 for ac_prog in cl.exe
2332 # Extract the first word of "$ac_prog", so it can be a program name with args.
2333 set dummy $ac_prog; ac_word=$2
2334 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2335 $as_echo_n "checking for $ac_word... " >&6; }
2336 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2337 $as_echo_n "(cached) " >&6
2339 if test -n "$ac_ct_CC"; then
2340 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346 test -z "$as_dir" && as_dir=.
2347 for ac_exec_ext in '' $ac_executable_extensions; do
2348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2349 ac_cv_prog_ac_ct_CC="$ac_prog"
2350 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2359 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2360 if test -n "$ac_ct_CC"; then
2361 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2362 $as_echo "$ac_ct_CC" >&6; }
2364 { $as_echo "$as_me:$LINENO: result: no" >&5
2365 $as_echo "no" >&6; }
2369 test -n "$ac_ct_CC" && break
2372 if test "x$ac_ct_CC" = x; then
2375 case $cross_compiling:$ac_tool_warned in
2377 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2378 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2379 ac_tool_warned=yes ;;
2388 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2389 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2390 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2391 See \`config.log' for more details." >&5
2392 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2393 See \`config.log' for more details." >&2;}
2394 { (exit 1); exit 1; }; }; }
2396 # Provide some information about the compiler.
2397 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2400 { (ac_try="$ac_compiler --version >&5"
2402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2403 *) ac_try_echo=$ac_try;;
2405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2406 $as_echo "$ac_try_echo") >&5
2407 (eval "$ac_compiler --version >&5") 2>&5
2409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); }
2411 { (ac_try="$ac_compiler -v >&5"
2413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2414 *) ac_try_echo=$ac_try;;
2416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2417 $as_echo "$ac_try_echo") >&5
2418 (eval "$ac_compiler -v >&5") 2>&5
2420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); }
2422 { (ac_try="$ac_compiler -V >&5"
2424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2425 *) ac_try_echo=$ac_try;;
2427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2428 $as_echo "$ac_try_echo") >&5
2429 (eval "$ac_compiler -V >&5") 2>&5
2431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432 (exit $ac_status); }
2434 cat >conftest.$ac_ext <<_ACEOF
2437 cat confdefs.h >>conftest.$ac_ext
2438 cat >>conftest.$ac_ext <<_ACEOF
2439 /* end confdefs.h. */
2449 ac_clean_files_save=$ac_clean_files
2450 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2451 # Try to create an executable without -o first, disregard a.out.
2452 # It will help us diagnose broken compilers, and finding out an intuition
2454 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2455 $as_echo_n "checking for C compiler default output file name... " >&6; }
2456 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2458 # The possible output files:
2459 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2462 for ac_file in $ac_files
2465 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2466 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2471 if { (ac_try="$ac_link_default"
2473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2474 *) ac_try_echo=$ac_try;;
2476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2477 $as_echo "$ac_try_echo") >&5
2478 (eval "$ac_link_default") 2>&5
2480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); }; then
2482 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2483 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2484 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2485 # so that the user can short-circuit this test for compilers unknown to
2487 for ac_file in $ac_files ''
2489 test -f "$ac_file" || continue
2491 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2494 # We found the default executable, but exeext='' is most
2498 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2500 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2502 # We set ac_cv_exeext here because the later test for it is not
2503 # safe: cross compilers may not add the suffix if given an `-o'
2504 # argument, so we may need to know it at that point already.
2505 # Even if this section looks crufty: it has the advantage of
2512 test "$ac_cv_exeext" = no && ac_cv_exeext=
2518 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2519 $as_echo "$ac_file" >&6; }
2520 if test -z "$ac_file"; then
2521 $as_echo "$as_me: failed program was:" >&5
2522 sed 's/^/| /' conftest.$ac_ext >&5
2524 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2526 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2527 See \`config.log' for more details." >&5
2528 $as_echo "$as_me: error: C compiler cannot create executables
2529 See \`config.log' for more details." >&2;}
2530 { (exit 77); exit 77; }; }; }
2533 ac_exeext=$ac_cv_exeext
2535 # Check that the compiler produces executables we can run. If not, either
2536 # the compiler is broken, or we cross compile.
2537 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2538 $as_echo_n "checking whether the C compiler works... " >&6; }
2539 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2540 # If not cross compiling, check that we can run a simple program.
2541 if test "$cross_compiling" != yes; then
2542 if { ac_try='./$ac_file'
2543 { (case "(($ac_try" in
2544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2545 *) ac_try_echo=$ac_try;;
2547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2548 $as_echo "$ac_try_echo") >&5
2549 (eval "$ac_try") 2>&5
2551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); }; }; then
2555 if test "$cross_compiling" = maybe; then
2558 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2559 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2560 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2561 If you meant to cross compile, use \`--host'.
2562 See \`config.log' for more details." >&5
2563 $as_echo "$as_me: error: cannot run C compiled programs.
2564 If you meant to cross compile, use \`--host'.
2565 See \`config.log' for more details." >&2;}
2566 { (exit 1); exit 1; }; }; }
2570 { $as_echo "$as_me:$LINENO: result: yes" >&5
2571 $as_echo "yes" >&6; }
2573 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2574 ac_clean_files=$ac_clean_files_save
2575 # Check that the compiler produces executables we can run. If not, either
2576 # the compiler is broken, or we cross compile.
2577 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2578 $as_echo_n "checking whether we are cross compiling... " >&6; }
2579 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2580 $as_echo "$cross_compiling" >&6; }
2582 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2583 $as_echo_n "checking for suffix of executables... " >&6; }
2584 if { (ac_try="$ac_link"
2586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2587 *) ac_try_echo=$ac_try;;
2589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2590 $as_echo "$ac_try_echo") >&5
2591 (eval "$ac_link") 2>&5
2593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); }; then
2595 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2596 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2597 # work properly (i.e., refer to `conftest.exe'), while it won't with
2599 for ac_file in conftest.exe conftest conftest.*; do
2600 test -f "$ac_file" || continue
2602 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2603 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2609 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2611 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2612 See \`config.log' for more details." >&5
2613 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2614 See \`config.log' for more details." >&2;}
2615 { (exit 1); exit 1; }; }; }
2618 rm -f conftest$ac_cv_exeext
2619 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2620 $as_echo "$ac_cv_exeext" >&6; }
2622 rm -f conftest.$ac_ext
2623 EXEEXT=$ac_cv_exeext
2625 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2626 $as_echo_n "checking for suffix of object files... " >&6; }
2627 if test "${ac_cv_objext+set}" = set; then
2628 $as_echo_n "(cached) " >&6
2630 cat >conftest.$ac_ext <<_ACEOF
2633 cat confdefs.h >>conftest.$ac_ext
2634 cat >>conftest.$ac_ext <<_ACEOF
2635 /* end confdefs.h. */
2645 rm -f conftest.o conftest.obj
2646 if { (ac_try="$ac_compile"
2648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2649 *) ac_try_echo=$ac_try;;
2651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2652 $as_echo "$ac_try_echo") >&5
2653 (eval "$ac_compile") 2>&5
2655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656 (exit $ac_status); }; then
2657 for ac_file in conftest.o conftest.obj conftest.*; do
2658 test -f "$ac_file" || continue;
2660 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2661 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2666 $as_echo "$as_me: failed program was:" >&5
2667 sed 's/^/| /' conftest.$ac_ext >&5
2669 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2670 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2671 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2672 See \`config.log' for more details." >&5
2673 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2674 See \`config.log' for more details." >&2;}
2675 { (exit 1); exit 1; }; }; }
2678 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2680 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2681 $as_echo "$ac_cv_objext" >&6; }
2682 OBJEXT=$ac_cv_objext
2684 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2685 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2686 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2687 $as_echo_n "(cached) " >&6
2689 cat >conftest.$ac_ext <<_ACEOF
2692 cat confdefs.h >>conftest.$ac_ext
2693 cat >>conftest.$ac_ext <<_ACEOF
2694 /* end confdefs.h. */
2707 rm -f conftest.$ac_objext
2708 if { (ac_try="$ac_compile"
2710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2711 *) ac_try_echo=$ac_try;;
2713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2714 $as_echo "$ac_try_echo") >&5
2715 (eval "$ac_compile") 2>conftest.er1
2717 grep -v '^ *+' conftest.er1 >conftest.err
2719 cat conftest.err >&5
2720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); } && {
2722 test -z "$ac_c_werror_flag" ||
2723 test ! -s conftest.err
2724 } && test -s conftest.$ac_objext; then
2727 $as_echo "$as_me: failed program was:" >&5
2728 sed 's/^/| /' conftest.$ac_ext >&5
2733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2734 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2737 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2738 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2739 if test $ac_compiler_gnu = yes; then
2744 ac_test_CFLAGS=${CFLAGS+set}
2745 ac_save_CFLAGS=$CFLAGS
2746 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2747 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2748 if test "${ac_cv_prog_cc_g+set}" = set; then
2749 $as_echo_n "(cached) " >&6
2751 ac_save_c_werror_flag=$ac_c_werror_flag
2752 ac_c_werror_flag=yes
2755 cat >conftest.$ac_ext <<_ACEOF
2758 cat confdefs.h >>conftest.$ac_ext
2759 cat >>conftest.$ac_ext <<_ACEOF
2760 /* end confdefs.h. */
2770 rm -f conftest.$ac_objext
2771 if { (ac_try="$ac_compile"
2773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2774 *) ac_try_echo=$ac_try;;
2776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2777 $as_echo "$ac_try_echo") >&5
2778 (eval "$ac_compile") 2>conftest.er1
2780 grep -v '^ *+' conftest.er1 >conftest.err
2782 cat conftest.err >&5
2783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); } && {
2785 test -z "$ac_c_werror_flag" ||
2786 test ! -s conftest.err
2787 } && test -s conftest.$ac_objext; then
2790 $as_echo "$as_me: failed program was:" >&5
2791 sed 's/^/| /' conftest.$ac_ext >&5
2794 cat >conftest.$ac_ext <<_ACEOF
2797 cat confdefs.h >>conftest.$ac_ext
2798 cat >>conftest.$ac_ext <<_ACEOF
2799 /* end confdefs.h. */
2809 rm -f conftest.$ac_objext
2810 if { (ac_try="$ac_compile"
2812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2813 *) ac_try_echo=$ac_try;;
2815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2816 $as_echo "$ac_try_echo") >&5
2817 (eval "$ac_compile") 2>conftest.er1
2819 grep -v '^ *+' conftest.er1 >conftest.err
2821 cat conftest.err >&5
2822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); } && {
2824 test -z "$ac_c_werror_flag" ||
2825 test ! -s conftest.err
2826 } && test -s conftest.$ac_objext; then
2829 $as_echo "$as_me: failed program was:" >&5
2830 sed 's/^/| /' conftest.$ac_ext >&5
2832 ac_c_werror_flag=$ac_save_c_werror_flag
2834 cat >conftest.$ac_ext <<_ACEOF
2837 cat confdefs.h >>conftest.$ac_ext
2838 cat >>conftest.$ac_ext <<_ACEOF
2839 /* end confdefs.h. */
2849 rm -f conftest.$ac_objext
2850 if { (ac_try="$ac_compile"
2852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2853 *) ac_try_echo=$ac_try;;
2855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2856 $as_echo "$ac_try_echo") >&5
2857 (eval "$ac_compile") 2>conftest.er1
2859 grep -v '^ *+' conftest.er1 >conftest.err
2861 cat conftest.err >&5
2862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863 (exit $ac_status); } && {
2864 test -z "$ac_c_werror_flag" ||
2865 test ! -s conftest.err
2866 } && test -s conftest.$ac_objext; then
2869 $as_echo "$as_me: failed program was:" >&5
2870 sed 's/^/| /' conftest.$ac_ext >&5
2875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2882 ac_c_werror_flag=$ac_save_c_werror_flag
2884 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2885 $as_echo "$ac_cv_prog_cc_g" >&6; }
2886 if test "$ac_test_CFLAGS" = set; then
2887 CFLAGS=$ac_save_CFLAGS
2888 elif test $ac_cv_prog_cc_g = yes; then
2889 if test "$GCC" = yes; then
2895 if test "$GCC" = yes; then
2901 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2902 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2903 if test "${ac_cv_prog_cc_c89+set}" = set; then
2904 $as_echo_n "(cached) " >&6
2906 ac_cv_prog_cc_c89=no
2908 cat >conftest.$ac_ext <<_ACEOF
2911 cat confdefs.h >>conftest.$ac_ext
2912 cat >>conftest.$ac_ext <<_ACEOF
2913 /* end confdefs.h. */
2916 #include <sys/types.h>
2917 #include <sys/stat.h>
2918 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2919 struct buf { int x; };
2920 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2921 static char *e (p, i)
2927 static char *f (char * (*g) (char **, int), char **p, ...)
2932 s = g (p, va_arg (v,int));
2937 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2938 function prototypes and stuff, but not '\xHH' hex character constants.
2939 These don't provoke an error unfortunately, instead are silently treated
2940 as 'x'. The following induces an error, until -std is added to get
2941 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2942 array size at least. It's necessary to write '\x00'==0 to get something
2943 that's true only with -std. */
2944 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2946 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2947 inside strings and character constants. */
2949 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2951 int test (int i, double x);
2952 struct s1 {int (*f) (int a);};
2953 struct s2 {int (*f) (double a);};
2954 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2960 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2965 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2966 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2968 CC="$ac_save_CC $ac_arg"
2969 rm -f conftest.$ac_objext
2970 if { (ac_try="$ac_compile"
2972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973 *) ac_try_echo=$ac_try;;
2975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2976 $as_echo "$ac_try_echo") >&5
2977 (eval "$ac_compile") 2>conftest.er1
2979 grep -v '^ *+' conftest.er1 >conftest.err
2981 cat conftest.err >&5
2982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); } && {
2984 test -z "$ac_c_werror_flag" ||
2985 test ! -s conftest.err
2986 } && test -s conftest.$ac_objext; then
2987 ac_cv_prog_cc_c89=$ac_arg
2989 $as_echo "$as_me: failed program was:" >&5
2990 sed 's/^/| /' conftest.$ac_ext >&5
2995 rm -f core conftest.err conftest.$ac_objext
2996 test "x$ac_cv_prog_cc_c89" != "xno" && break
2998 rm -f conftest.$ac_ext
3003 case "x$ac_cv_prog_cc_c89" in
3005 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3006 $as_echo "none needed" >&6; } ;;
3008 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3009 $as_echo "unsupported" >&6; } ;;
3011 CC="$CC $ac_cv_prog_cc_c89"
3012 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3013 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3018 ac_cpp='$CPP $CPPFLAGS'
3019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3024 ac_cpp='$CXXCPP $CPPFLAGS'
3025 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3026 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3027 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3028 if test -z "$CXX"; then
3029 if test -n "$CCC"; then
3032 if test -n "$ac_tool_prefix"; then
3033 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3035 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3036 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3037 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3038 $as_echo_n "checking for $ac_word... " >&6; }
3039 if test "${ac_cv_prog_CXX+set}" = set; then
3040 $as_echo_n "(cached) " >&6
3042 if test -n "$CXX"; then
3043 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3049 test -z "$as_dir" && as_dir=.
3050 for ac_exec_ext in '' $ac_executable_extensions; do
3051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3052 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3053 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3063 if test -n "$CXX"; then
3064 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
3065 $as_echo "$CXX" >&6; }
3067 { $as_echo "$as_me:$LINENO: result: no" >&5
3068 $as_echo "no" >&6; }
3072 test -n "$CXX" && break
3075 if test -z "$CXX"; then
3077 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3079 # Extract the first word of "$ac_prog", so it can be a program name with args.
3080 set dummy $ac_prog; ac_word=$2
3081 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3082 $as_echo_n "checking for $ac_word... " >&6; }
3083 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3084 $as_echo_n "(cached) " >&6
3086 if test -n "$ac_ct_CXX"; then
3087 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093 test -z "$as_dir" && as_dir=.
3094 for ac_exec_ext in '' $ac_executable_extensions; do
3095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3096 ac_cv_prog_ac_ct_CXX="$ac_prog"
3097 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3106 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3107 if test -n "$ac_ct_CXX"; then
3108 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3109 $as_echo "$ac_ct_CXX" >&6; }
3111 { $as_echo "$as_me:$LINENO: result: no" >&5
3112 $as_echo "no" >&6; }
3116 test -n "$ac_ct_CXX" && break
3119 if test "x$ac_ct_CXX" = x; then
3122 case $cross_compiling:$ac_tool_warned in
3124 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3125 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3126 ac_tool_warned=yes ;;
3134 # Provide some information about the compiler.
3135 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3138 { (ac_try="$ac_compiler --version >&5"
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3144 $as_echo "$ac_try_echo") >&5
3145 (eval "$ac_compiler --version >&5") 2>&5
3147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); }
3149 { (ac_try="$ac_compiler -v >&5"
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3155 $as_echo "$ac_try_echo") >&5
3156 (eval "$ac_compiler -v >&5") 2>&5
3158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); }
3160 { (ac_try="$ac_compiler -V >&5"
3162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163 *) ac_try_echo=$ac_try;;
3165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3166 $as_echo "$ac_try_echo") >&5
3167 (eval "$ac_compiler -V >&5") 2>&5
3169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); }
3172 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3173 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3174 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3175 $as_echo_n "(cached) " >&6
3177 cat >conftest.$ac_ext <<_ACEOF
3180 cat confdefs.h >>conftest.$ac_ext
3181 cat >>conftest.$ac_ext <<_ACEOF
3182 /* end confdefs.h. */
3195 rm -f conftest.$ac_objext
3196 if { (ac_try="$ac_compile"
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3202 $as_echo "$ac_try_echo") >&5
3203 (eval "$ac_compile") 2>conftest.er1
3205 grep -v '^ *+' conftest.er1 >conftest.err
3207 cat conftest.err >&5
3208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); } && {
3210 test -z "$ac_cxx_werror_flag" ||
3211 test ! -s conftest.err
3212 } && test -s conftest.$ac_objext; then
3215 $as_echo "$as_me: failed program was:" >&5
3216 sed 's/^/| /' conftest.$ac_ext >&5
3221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3222 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3225 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3226 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3227 if test $ac_compiler_gnu = yes; then
3232 ac_test_CXXFLAGS=${CXXFLAGS+set}
3233 ac_save_CXXFLAGS=$CXXFLAGS
3234 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3235 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3236 if test "${ac_cv_prog_cxx_g+set}" = set; then
3237 $as_echo_n "(cached) " >&6
3239 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3240 ac_cxx_werror_flag=yes
3243 cat >conftest.$ac_ext <<_ACEOF
3246 cat confdefs.h >>conftest.$ac_ext
3247 cat >>conftest.$ac_ext <<_ACEOF
3248 /* end confdefs.h. */
3258 rm -f conftest.$ac_objext
3259 if { (ac_try="$ac_compile"
3261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262 *) ac_try_echo=$ac_try;;
3264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3265 $as_echo "$ac_try_echo") >&5
3266 (eval "$ac_compile") 2>conftest.er1
3268 grep -v '^ *+' conftest.er1 >conftest.err
3270 cat conftest.err >&5
3271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); } && {
3273 test -z "$ac_cxx_werror_flag" ||
3274 test ! -s conftest.err
3275 } && test -s conftest.$ac_objext; then
3276 ac_cv_prog_cxx_g=yes
3278 $as_echo "$as_me: failed program was:" >&5
3279 sed 's/^/| /' conftest.$ac_ext >&5
3282 cat >conftest.$ac_ext <<_ACEOF
3285 cat confdefs.h >>conftest.$ac_ext
3286 cat >>conftest.$ac_ext <<_ACEOF
3287 /* end confdefs.h. */
3297 rm -f conftest.$ac_objext
3298 if { (ac_try="$ac_compile"
3300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3301 *) ac_try_echo=$ac_try;;
3303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3304 $as_echo "$ac_try_echo") >&5
3305 (eval "$ac_compile") 2>conftest.er1
3307 grep -v '^ *+' conftest.er1 >conftest.err
3309 cat conftest.err >&5
3310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); } && {
3312 test -z "$ac_cxx_werror_flag" ||
3313 test ! -s conftest.err
3314 } && test -s conftest.$ac_objext; then
3317 $as_echo "$as_me: failed program was:" >&5
3318 sed 's/^/| /' conftest.$ac_ext >&5
3320 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3322 cat >conftest.$ac_ext <<_ACEOF
3325 cat confdefs.h >>conftest.$ac_ext
3326 cat >>conftest.$ac_ext <<_ACEOF
3327 /* end confdefs.h. */
3337 rm -f conftest.$ac_objext
3338 if { (ac_try="$ac_compile"
3340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3341 *) ac_try_echo=$ac_try;;
3343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3344 $as_echo "$ac_try_echo") >&5
3345 (eval "$ac_compile") 2>conftest.er1
3347 grep -v '^ *+' conftest.er1 >conftest.err
3349 cat conftest.err >&5
3350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); } && {
3352 test -z "$ac_cxx_werror_flag" ||
3353 test ! -s conftest.err
3354 } && test -s conftest.$ac_objext; then
3355 ac_cv_prog_cxx_g=yes
3357 $as_echo "$as_me: failed program was:" >&5
3358 sed 's/^/| /' conftest.$ac_ext >&5
3363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3370 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3372 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3373 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3374 if test "$ac_test_CXXFLAGS" = set; then
3375 CXXFLAGS=$ac_save_CXXFLAGS
3376 elif test $ac_cv_prog_cxx_g = yes; then
3377 if test "$GXX" = yes; then
3383 if test "$GXX" = yes; then
3390 ac_cpp='$CPP $CPPFLAGS'
3391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3398 { $as_echo "$as_me:$LINENO: checking whether gcc supports lazy variable declaration" >&5
3399 $as_echo_n "checking whether gcc supports lazy variable declaration... " >&6; }
3401 cat > conftest.c << EOF
3405 int main (int argc, char*argv)
3415 testprog_link='$CC $CPPFLAGS $CFLAGS conftest.c -o conftest${ac_exeext}'
3416 if { (eval echo gcc.2.95.m4:19: \"$testprog_link\") 1>&5; (eval $testprog_link) 2>&5; } && test -s conftest${ac_exeext}; then
3417 { $as_echo "$as_me:$LINENO: result: yes" >&5
3418 $as_echo "yes" >&6; }
3422 echo "configure: failed program was:" >&5
3424 { $as_echo "$as_me:$LINENO: result: no" >&5
3425 $as_echo "no" >&6; }
3430 if test "x$GCC_IS_OK" '=' "x";then
3431 echo "***************************************************"
3432 echo "* Your gcc is too old to compile this!"
3434 echo "* The last version compileable by this compiler is "
3435 echo "* swftools 0.7.0, which you can download from "
3436 echo "* http://www.swftools.org/swftools-0.7.0.tar.gz "
3438 echo "* Newer versions require at least gcc 3.0.0 "
3439 echo "***************************************************"
3443 if test "x$CHECKMEM" '!=' "x";then
3447 #unset ac_cv_prog_CC
3448 #unset ac_cv_prog_CXX
3453 ac_cpp='$CPP $CPPFLAGS'
3454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3457 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3458 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3459 # On Suns, sometimes $CPP names a directory.
3460 if test -n "$CPP" && test -d "$CPP"; then
3463 if test -z "$CPP"; then
3464 if test "${ac_cv_prog_CPP+set}" = set; then
3465 $as_echo_n "(cached) " >&6
3467 # Double quotes because CPP needs to be expanded
3468 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3471 for ac_c_preproc_warn_flag in '' yes
3473 # Use a header file that comes with gcc, so configuring glibc
3474 # with a fresh cross-compiler works.
3475 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3476 # <limits.h> exists even on freestanding compilers.
3477 # On the NeXT, cc -E runs the code through the compiler's parser,
3478 # not just through cpp. "Syntax error" is here to catch this case.
3479 cat >conftest.$ac_ext <<_ACEOF
3482 cat confdefs.h >>conftest.$ac_ext
3483 cat >>conftest.$ac_ext <<_ACEOF
3484 /* end confdefs.h. */
3486 # include <limits.h>
3488 # include <assert.h>
3492 if { (ac_try="$ac_cpp conftest.$ac_ext"
3494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3495 *) ac_try_echo=$ac_try;;
3497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3498 $as_echo "$ac_try_echo") >&5
3499 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3501 grep -v '^ *+' conftest.er1 >conftest.err
3503 cat conftest.err >&5
3504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 (exit $ac_status); } >/dev/null && {
3506 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3507 test ! -s conftest.err
3511 $as_echo "$as_me: failed program was:" >&5
3512 sed 's/^/| /' conftest.$ac_ext >&5
3514 # Broken: fails on valid input.
3518 rm -f conftest.err conftest.$ac_ext
3520 # OK, works on sane cases. Now check whether nonexistent headers
3521 # can be detected and how.
3522 cat >conftest.$ac_ext <<_ACEOF
3525 cat confdefs.h >>conftest.$ac_ext
3526 cat >>conftest.$ac_ext <<_ACEOF
3527 /* end confdefs.h. */
3528 #include <ac_nonexistent.h>
3530 if { (ac_try="$ac_cpp conftest.$ac_ext"
3532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3533 *) ac_try_echo=$ac_try;;
3535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3536 $as_echo "$ac_try_echo") >&5
3537 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3539 grep -v '^ *+' conftest.er1 >conftest.err
3541 cat conftest.err >&5
3542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); } >/dev/null && {
3544 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3545 test ! -s conftest.err
3547 # Broken: success on invalid input.
3550 $as_echo "$as_me: failed program was:" >&5
3551 sed 's/^/| /' conftest.$ac_ext >&5
3553 # Passes both tests.
3558 rm -f conftest.err conftest.$ac_ext
3561 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3562 rm -f conftest.err conftest.$ac_ext
3563 if $ac_preproc_ok; then
3575 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3576 $as_echo "$CPP" >&6; }
3578 for ac_c_preproc_warn_flag in '' yes
3580 # Use a header file that comes with gcc, so configuring glibc
3581 # with a fresh cross-compiler works.
3582 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3583 # <limits.h> exists even on freestanding compilers.
3584 # On the NeXT, cc -E runs the code through the compiler's parser,
3585 # not just through cpp. "Syntax error" is here to catch this case.
3586 cat >conftest.$ac_ext <<_ACEOF
3589 cat confdefs.h >>conftest.$ac_ext
3590 cat >>conftest.$ac_ext <<_ACEOF
3591 /* end confdefs.h. */
3593 # include <limits.h>
3595 # include <assert.h>
3599 if { (ac_try="$ac_cpp conftest.$ac_ext"
3601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3602 *) ac_try_echo=$ac_try;;
3604 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3605 $as_echo "$ac_try_echo") >&5
3606 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3608 grep -v '^ *+' conftest.er1 >conftest.err
3610 cat conftest.err >&5
3611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); } >/dev/null && {
3613 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3614 test ! -s conftest.err
3618 $as_echo "$as_me: failed program was:" >&5
3619 sed 's/^/| /' conftest.$ac_ext >&5
3621 # Broken: fails on valid input.
3625 rm -f conftest.err conftest.$ac_ext
3627 # OK, works on sane cases. Now check whether nonexistent headers
3628 # can be detected and how.
3629 cat >conftest.$ac_ext <<_ACEOF
3632 cat confdefs.h >>conftest.$ac_ext
3633 cat >>conftest.$ac_ext <<_ACEOF
3634 /* end confdefs.h. */
3635 #include <ac_nonexistent.h>
3637 if { (ac_try="$ac_cpp conftest.$ac_ext"
3639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3640 *) ac_try_echo=$ac_try;;
3642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3643 $as_echo "$ac_try_echo") >&5
3644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3646 grep -v '^ *+' conftest.er1 >conftest.err
3648 cat conftest.err >&5
3649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650 (exit $ac_status); } >/dev/null && {
3651 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3652 test ! -s conftest.err
3654 # Broken: success on invalid input.
3657 $as_echo "$as_me: failed program was:" >&5
3658 sed 's/^/| /' conftest.$ac_ext >&5
3660 # Passes both tests.
3665 rm -f conftest.err conftest.$ac_ext
3668 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3669 rm -f conftest.err conftest.$ac_ext
3670 if $ac_preproc_ok; then
3673 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3674 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3675 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3676 See \`config.log' for more details." >&5
3677 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3678 See \`config.log' for more details." >&2;}
3679 { (exit 1); exit 1; }; }; }
3683 ac_cpp='$CPP $CPPFLAGS'
3684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3689 if test -n "$ac_tool_prefix"; then
3690 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3691 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3692 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3693 $as_echo_n "checking for $ac_word... " >&6; }
3694 if test "${ac_cv_prog_RANLIB+set}" = set; then
3695 $as_echo_n "(cached) " >&6
3697 if test -n "$RANLIB"; then
3698 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3704 test -z "$as_dir" && as_dir=.
3705 for ac_exec_ext in '' $ac_executable_extensions; do
3706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3707 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3708 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3717 RANLIB=$ac_cv_prog_RANLIB
3718 if test -n "$RANLIB"; then
3719 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3720 $as_echo "$RANLIB" >&6; }
3722 { $as_echo "$as_me:$LINENO: result: no" >&5
3723 $as_echo "no" >&6; }
3728 if test -z "$ac_cv_prog_RANLIB"; then
3729 ac_ct_RANLIB=$RANLIB
3730 # Extract the first word of "ranlib", so it can be a program name with args.
3731 set dummy ranlib; ac_word=$2
3732 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3733 $as_echo_n "checking for $ac_word... " >&6; }
3734 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3735 $as_echo_n "(cached) " >&6
3737 if test -n "$ac_ct_RANLIB"; then
3738 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3744 test -z "$as_dir" && as_dir=.
3745 for ac_exec_ext in '' $ac_executable_extensions; do
3746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3747 ac_cv_prog_ac_ct_RANLIB="ranlib"
3748 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3757 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3758 if test -n "$ac_ct_RANLIB"; then
3759 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3760 $as_echo "$ac_ct_RANLIB" >&6; }
3762 { $as_echo "$as_me:$LINENO: result: no" >&5
3763 $as_echo "no" >&6; }
3766 if test "x$ac_ct_RANLIB" = x; then
3769 case $cross_compiling:$ac_tool_warned in
3771 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3772 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3773 ac_tool_warned=yes ;;
3775 RANLIB=$ac_ct_RANLIB
3778 RANLIB="$ac_cv_prog_RANLIB"
3781 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3782 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3784 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3785 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3786 $as_echo_n "(cached) " >&6
3788 cat >conftest.make <<\_ACEOF
3791 @echo '@@@%%%=$(MAKE)=@@@%%%'
3793 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3794 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3796 eval ac_cv_prog_make_${ac_make}_set=yes;;
3798 eval ac_cv_prog_make_${ac_make}_set=no;;
3802 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3803 { $as_echo "$as_me:$LINENO: result: yes" >&5
3804 $as_echo "yes" >&6; }
3807 { $as_echo "$as_me:$LINENO: result: no" >&5
3808 $as_echo "no" >&6; }
3809 SET_MAKE="MAKE=${MAKE-make}"
3812 # Find a good install program. We prefer a C program (faster),
3813 # so one script is as good as another. But avoid the broken or
3814 # incompatible versions:
3815 # SysV /etc/install, /usr/sbin/install
3816 # SunOS /usr/etc/install
3817 # IRIX /sbin/install
3819 # AmigaOS /C/install, which installs bootblocks on floppy discs
3820 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3821 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3822 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3823 # OS/2's system install, which has a completely different semantic
3824 # ./install, which can be erroneously created by make from ./install.sh.
3825 # Reject install programs that cannot install multiple files.
3826 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3827 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3828 if test -z "$INSTALL"; then
3829 if test "${ac_cv_path_install+set}" = set; then
3830 $as_echo_n "(cached) " >&6
3832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3836 test -z "$as_dir" && as_dir=.
3837 # Account for people who put trailing slashes in PATH elements.
3839 ./ | .// | /cC/* | \
3840 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3841 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3844 # OSF1 and SCO ODT 3.0 have their own names for install.
3845 # Don't use installbsd from OSF since it installs stuff as root
3847 for ac_prog in ginstall scoinst install; do
3848 for ac_exec_ext in '' $ac_executable_extensions; do
3849 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3850 if test $ac_prog = install &&
3851 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3852 # AIX install. It has an incompatible calling convention.
3854 elif test $ac_prog = install &&
3855 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3856 # program-specific install script used by HP pwplus--don't use.
3859 rm -rf conftest.one conftest.two conftest.dir
3860 echo one > conftest.one
3861 echo two > conftest.two
3863 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3864 test -s conftest.one && test -s conftest.two &&
3865 test -s conftest.dir/conftest.one &&
3866 test -s conftest.dir/conftest.two
3868 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3881 rm -rf conftest.one conftest.two conftest.dir
3884 if test "${ac_cv_path_install+set}" = set; then
3885 INSTALL=$ac_cv_path_install
3887 # As a last resort, use the slow shell script. Don't cache a
3888 # value for INSTALL within a source directory, because that will
3889 # break other packages using the cache if that directory is
3890 # removed, or if the value is a relative name.
3891 INSTALL=$ac_install_sh
3894 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3895 $as_echo "$INSTALL" >&6; }
3897 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3898 # It thinks the first close brace ends the variable substitution.
3899 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3901 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3903 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3905 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3906 $as_echo_n "checking whether ln -s works... " >&6; }
3908 if test "$LN_S" = "ln -s"; then
3909 { $as_echo "$as_me:$LINENO: result: yes" >&5
3910 $as_echo "yes" >&6; }
3912 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3913 $as_echo "no, using $LN_S" >&6; }
3916 for ac_prog in gzip uncompress compress
3918 # Extract the first word of "$ac_prog", so it can be a program name with args.
3919 set dummy $ac_prog; ac_word=$2
3920 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3921 $as_echo_n "checking for $ac_word... " >&6; }
3922 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then
3923 $as_echo_n "(cached) " >&6
3925 if test -n "$UNCOMPRESS"; then
3926 ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
3928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3932 test -z "$as_dir" && as_dir=.
3933 for ac_exec_ext in '' $ac_executable_extensions; do
3934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3935 ac_cv_prog_UNCOMPRESS="$ac_prog"
3936 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3945 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
3946 if test -n "$UNCOMPRESS"; then
3947 { $as_echo "$as_me:$LINENO: result: $UNCOMPRESS" >&5
3948 $as_echo "$UNCOMPRESS" >&6; }
3950 { $as_echo "$as_me:$LINENO: result: no" >&5
3951 $as_echo "no" >&6; }
3955 test -n "$UNCOMPRESS" && break
3966 if test "x$EXEEXT" = "x.exe";then
3975 { $as_echo "$as_me:$LINENO: checking host system type" >&5
3976 $as_echo_n "checking host system type... " >&6; }
3977 if test "${ac_cv_host+set}" = set; then
3978 $as_echo_n "(cached) " >&6
3980 if test "x$host_alias" = x; then
3981 ac_cv_host=$ac_cv_build
3983 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3984 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3985 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3986 { (exit 1); exit 1; }; }
3990 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3991 $as_echo "$ac_cv_host" >&6; }
3994 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3995 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
3996 { (exit 1); exit 1; }; };;
3999 ac_save_IFS=$IFS; IFS='-'
4005 # Remember, the first character of IFS is used to create $*,
4006 # except with old shells:
4009 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4014 { $as_echo "$as_me:$LINENO: checking for target system" >&5
4015 $as_echo_n "checking for target system... " >&6; }
4019 *cygwin* ) CYGWIN=yes;;
4020 *mingw* ) MINGW=yes;;
4024 if test "x$MINGW" = "xyes"; then
4025 #fix for the debian distribution of mingw
4026 if test -x "/usr/i586-mingw32msvc/bin/ar";then
4027 AR="/usr/i586-mingw32msvc/bin/ar"
4029 if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
4030 RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
4032 #fix for the gentoo distribution of mingw
4033 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
4034 AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
4036 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
4037 RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
4039 if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
4040 STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
4046 if test "x${CYGWIN}" = "xyes"; then
4048 cat >>confdefs.h <<\_ACEOF
4052 { $as_echo "$as_me:$LINENO: result: cygwin" >&5
4053 $as_echo "cygwin" >&6; }
4055 if test "x${MINGW}" = "xyes"; then
4057 cat >>confdefs.h <<\_ACEOF
4063 cat >>confdefs.h <<\_ACEOF
4067 LIBS="$LIBS -lws2_32 -lgdi32"
4068 { $as_echo "$as_me:$LINENO: result: mingw" >&5
4069 $as_echo "mingw" >&6; }
4074 cat >>confdefs.h <<\_ACEOF
4078 { $as_echo "$as_me:$LINENO: result: " >&5
4085 if test "x${MINGW}" != "xyes"; then
4088 cat >>confdefs.h <<\_ACEOF
4101 # The following tries to make use of includes and libraries in
4102 # /usr/local, too. Notice: A -I/usr/local/include might break
4103 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
4104 # especially on systems which link /usr/local to /usr, so it has yet
4105 # to be seen how useful this is.
4106 if test -d /usr/local/lib; then
4107 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4109 if test -d /usr/local/include; then
4110 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
4111 # CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4114 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
4115 # if the user has a special prefix (like /opt), there might also be $prefix/lib
4116 # and $prefix/include, which should be included in our search paths for libraries
4118 LDFLAGS="$LDFLAGS -L${libdir}"
4119 CPPFLAGS="$CPPFLAGS -I${includedir}"
4120 # TODO- test whether gcc still works after this
4124 #LDFLAGS "-L/sw/lib" ; CPPFLAGS "-I/sw/include -I/sw/include/lame"
4127 # this must be done after (I believe) AC_PROG_MAKE_SET
4128 if test "x$DEBUG" '!=' "x" -o "x$STRIP" = "x";then
4129 if test "$MACOSX";then
4132 STRIP="@echo debug enabled, not stripping "
4140 { $as_echo "$as_me:$LINENO: checking for sin in -lm" >&5
4141 $as_echo_n "checking for sin in -lm... " >&6; }
4142 if test "${ac_cv_lib_m_sin+set}" = set; then
4143 $as_echo_n "(cached) " >&6
4145 ac_check_lib_save_LIBS=$LIBS
4147 cat >conftest.$ac_ext <<_ACEOF
4150 cat confdefs.h >>conftest.$ac_ext
4151 cat >>conftest.$ac_ext <<_ACEOF
4152 /* end confdefs.h. */
4154 /* Override any GCC internal prototype to avoid an error.
4155 Use char because int might match the return type of a GCC
4156 builtin and then its argument prototype would still apply. */
4169 rm -f conftest.$ac_objext conftest$ac_exeext
4170 if { (ac_try="$ac_link"
4172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4173 *) ac_try_echo=$ac_try;;
4175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4176 $as_echo "$ac_try_echo") >&5
4177 (eval "$ac_link") 2>conftest.er1
4179 grep -v '^ *+' conftest.er1 >conftest.err
4181 cat conftest.err >&5
4182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); } && {
4184 test -z "$ac_c_werror_flag" ||
4185 test ! -s conftest.err
4186 } && test -s conftest$ac_exeext && {
4187 test "$cross_compiling" = yes ||
4188 $as_test_x conftest$ac_exeext
4192 $as_echo "$as_me: failed program was:" >&5
4193 sed 's/^/| /' conftest.$ac_ext >&5
4198 rm -rf conftest.dSYM
4199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4200 conftest$ac_exeext conftest.$ac_ext
4201 LIBS=$ac_check_lib_save_LIBS
4203 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
4204 $as_echo "$ac_cv_lib_m_sin" >&6; }
4205 if test "x$ac_cv_lib_m_sin" = x""yes; then
4206 cat >>confdefs.h <<_ACEOF
4213 echo "Error: Math library not found.";
4219 { $as_echo "$as_me:$LINENO: checking for deflate in -lz" >&5
4220 $as_echo_n "checking for deflate in -lz... " >&6; }
4221 if test "${ac_cv_lib_z_deflate+set}" = set; then
4222 $as_echo_n "(cached) " >&6
4224 ac_check_lib_save_LIBS=$LIBS
4226 cat >conftest.$ac_ext <<_ACEOF
4229 cat confdefs.h >>conftest.$ac_ext
4230 cat >>conftest.$ac_ext <<_ACEOF
4231 /* end confdefs.h. */
4233 /* Override any GCC internal prototype to avoid an error.
4234 Use char because int might match the return type of a GCC
4235 builtin and then its argument prototype would still apply. */
4248 rm -f conftest.$ac_objext conftest$ac_exeext
4249 if { (ac_try="$ac_link"
4251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4252 *) ac_try_echo=$ac_try;;
4254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4255 $as_echo "$ac_try_echo") >&5
4256 (eval "$ac_link") 2>conftest.er1
4258 grep -v '^ *+' conftest.er1 >conftest.err
4260 cat conftest.err >&5
4261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); } && {
4263 test -z "$ac_c_werror_flag" ||
4264 test ! -s conftest.err
4265 } && test -s conftest$ac_exeext && {
4266 test "$cross_compiling" = yes ||
4267 $as_test_x conftest$ac_exeext
4269 ac_cv_lib_z_deflate=yes
4271 $as_echo "$as_me: failed program was:" >&5
4272 sed 's/^/| /' conftest.$ac_ext >&5
4274 ac_cv_lib_z_deflate=no
4277 rm -rf conftest.dSYM
4278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4279 conftest$ac_exeext conftest.$ac_ext
4280 LIBS=$ac_check_lib_save_LIBS
4282 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
4283 $as_echo "$ac_cv_lib_z_deflate" >&6; }
4284 if test "x$ac_cv_lib_z_deflate" = x""yes; then
4285 cat >>confdefs.h <<_ACEOF
4296 if test "x$ZLIBMISSING" = "xtrue";then
4299 echo "You need zlib to compile swftools"
4305 { $as_echo "$as_me:$LINENO: checking for PDF_open_file in -lpdf" >&5
4306 $as_echo_n "checking for PDF_open_file in -lpdf... " >&6; }
4307 if test "${ac_cv_lib_pdf_PDF_open_file+set}" = set; then
4308 $as_echo_n "(cached) " >&6
4310 ac_check_lib_save_LIBS=$LIBS
4312 cat >conftest.$ac_ext <<_ACEOF
4315 cat confdefs.h >>conftest.$ac_ext
4316 cat >>conftest.$ac_ext <<_ACEOF
4317 /* end confdefs.h. */
4319 /* Override any GCC internal prototype to avoid an error.
4320 Use char because int might match the return type of a GCC
4321 builtin and then its argument prototype would still apply. */
4325 char PDF_open_file ();
4329 return PDF_open_file ();
4334 rm -f conftest.$ac_objext conftest$ac_exeext
4335 if { (ac_try="$ac_link"
4337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4338 *) ac_try_echo=$ac_try;;
4340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4341 $as_echo "$ac_try_echo") >&5
4342 (eval "$ac_link") 2>conftest.er1
4344 grep -v '^ *+' conftest.er1 >conftest.err
4346 cat conftest.err >&5
4347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); } && {
4349 test -z "$ac_c_werror_flag" ||
4350 test ! -s conftest.err
4351 } && test -s conftest$ac_exeext && {
4352 test "$cross_compiling" = yes ||
4353 $as_test_x conftest$ac_exeext
4355 ac_cv_lib_pdf_PDF_open_file=yes
4357 $as_echo "$as_me: failed program was:" >&5
4358 sed 's/^/| /' conftest.$ac_ext >&5
4360 ac_cv_lib_pdf_PDF_open_file=no
4363 rm -rf conftest.dSYM
4364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4365 conftest$ac_exeext conftest.$ac_ext
4366 LIBS=$ac_check_lib_save_LIBS
4368 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pdf_PDF_open_file" >&5
4369 $as_echo "$ac_cv_lib_pdf_PDF_open_file" >&6; }
4370 if test "x$ac_cv_lib_pdf_PDF_open_file" = x""yes; then
4371 cat >>confdefs.h <<_ACEOF
4372 #define HAVE_LIBPDF 1
4382 { $as_echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -ljpeg" >&5
4383 $as_echo_n "checking for jpeg_write_raw_data in -ljpeg... " >&6; }
4384 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then
4385 $as_echo_n "(cached) " >&6
4387 ac_check_lib_save_LIBS=$LIBS
4389 cat >conftest.$ac_ext <<_ACEOF
4392 cat confdefs.h >>conftest.$ac_ext
4393 cat >>conftest.$ac_ext <<_ACEOF
4394 /* end confdefs.h. */
4396 /* Override any GCC internal prototype to avoid an error.
4397 Use char because int might match the return type of a GCC
4398 builtin and then its argument prototype would still apply. */
4402 char jpeg_write_raw_data ();
4406 return jpeg_write_raw_data ();
4411 rm -f conftest.$ac_objext conftest$ac_exeext
4412 if { (ac_try="$ac_link"
4414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4415 *) ac_try_echo=$ac_try;;
4417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4418 $as_echo "$ac_try_echo") >&5
4419 (eval "$ac_link") 2>conftest.er1
4421 grep -v '^ *+' conftest.er1 >conftest.err
4423 cat conftest.err >&5
4424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425 (exit $ac_status); } && {
4426 test -z "$ac_c_werror_flag" ||
4427 test ! -s conftest.err
4428 } && test -s conftest$ac_exeext && {
4429 test "$cross_compiling" = yes ||
4430 $as_test_x conftest$ac_exeext
4432 ac_cv_lib_jpeg_jpeg_write_raw_data=yes
4434 $as_echo "$as_me: failed program was:" >&5
4435 sed 's/^/| /' conftest.$ac_ext >&5
4437 ac_cv_lib_jpeg_jpeg_write_raw_data=no
4440 rm -rf conftest.dSYM
4441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4442 conftest$ac_exeext conftest.$ac_ext
4443 LIBS=$ac_check_lib_save_LIBS
4445 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
4446 $as_echo "$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6; }
4447 if test "x$ac_cv_lib_jpeg_jpeg_write_raw_data" = x""yes; then
4448 cat >>confdefs.h <<_ACEOF
4449 #define HAVE_LIBJPEG 1
4459 { $as_echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
4460 $as_echo_n "checking for DGifOpen in -lungif... " >&6; }
4461 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
4462 $as_echo_n "(cached) " >&6
4464 ac_check_lib_save_LIBS=$LIBS
4465 LIBS="-lungif $LIBS"
4466 cat >conftest.$ac_ext <<_ACEOF
4469 cat confdefs.h >>conftest.$ac_ext
4470 cat >>conftest.$ac_ext <<_ACEOF
4471 /* end confdefs.h. */
4473 /* Override any GCC internal prototype to avoid an error.
4474 Use char because int might match the return type of a GCC
4475 builtin and then its argument prototype would still apply. */
4488 rm -f conftest.$ac_objext conftest$ac_exeext
4489 if { (ac_try="$ac_link"
4491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4492 *) ac_try_echo=$ac_try;;
4494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4495 $as_echo "$ac_try_echo") >&5
4496 (eval "$ac_link") 2>conftest.er1
4498 grep -v '^ *+' conftest.er1 >conftest.err
4500 cat conftest.err >&5
4501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); } && {
4503 test -z "$ac_c_werror_flag" ||
4504 test ! -s conftest.err
4505 } && test -s conftest$ac_exeext && {
4506 test "$cross_compiling" = yes ||
4507 $as_test_x conftest$ac_exeext
4509 ac_cv_lib_ungif_DGifOpen=yes
4511 $as_echo "$as_me: failed program was:" >&5
4512 sed 's/^/| /' conftest.$ac_ext >&5
4514 ac_cv_lib_ungif_DGifOpen=no
4517 rm -rf conftest.dSYM
4518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4519 conftest$ac_exeext conftest.$ac_ext
4520 LIBS=$ac_check_lib_save_LIBS
4522 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
4523 $as_echo "$ac_cv_lib_ungif_DGifOpen" >&6; }
4524 if test "x$ac_cv_lib_ungif_DGifOpen" = x""yes; then
4525 cat >>confdefs.h <<_ACEOF
4526 #define HAVE_LIBUNGIF 1
4529 LIBS="-lungif $LIBS"
4535 if test "$UNGIFMISSING";then
4538 { $as_echo "$as_me:$LINENO: checking for DGifOpen in -lgif" >&5
4539 $as_echo_n "checking for DGifOpen in -lgif... " >&6; }
4540 if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then
4541 $as_echo_n "(cached) " >&6
4543 ac_check_lib_save_LIBS=$LIBS
4545 cat >conftest.$ac_ext <<_ACEOF
4548 cat confdefs.h >>conftest.$ac_ext
4549 cat >>conftest.$ac_ext <<_ACEOF
4550 /* end confdefs.h. */
4552 /* Override any GCC internal prototype to avoid an error.
4553 Use char because int might match the return type of a GCC
4554 builtin and then its argument prototype would still apply. */
4567 rm -f conftest.$ac_objext conftest$ac_exeext
4568 if { (ac_try="$ac_link"
4570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4571 *) ac_try_echo=$ac_try;;
4573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4574 $as_echo "$ac_try_echo") >&5
4575 (eval "$ac_link") 2>conftest.er1
4577 grep -v '^ *+' conftest.er1 >conftest.err
4579 cat conftest.err >&5
4580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581 (exit $ac_status); } && {
4582 test -z "$ac_c_werror_flag" ||
4583 test ! -s conftest.err
4584 } && test -s conftest$ac_exeext && {
4585 test "$cross_compiling" = yes ||
4586 $as_test_x conftest$ac_exeext
4588 ac_cv_lib_gif_DGifOpen=yes
4590 $as_echo "$as_me: failed program was:" >&5
4591 sed 's/^/| /' conftest.$ac_ext >&5
4593 ac_cv_lib_gif_DGifOpen=no
4596 rm -rf conftest.dSYM
4597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4598 conftest$ac_exeext conftest.$ac_ext
4599 LIBS=$ac_check_lib_save_LIBS
4601 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpen" >&5
4602 $as_echo "$ac_cv_lib_gif_DGifOpen" >&6; }
4603 if test "x$ac_cv_lib_gif_DGifOpen" = x""yes; then
4604 cat >>confdefs.h <<_ACEOF
4605 #define HAVE_LIBGIF 1
4616 { $as_echo "$as_me:$LINENO: checking for zzip_file_open in -lzzip" >&5
4617 $as_echo_n "checking for zzip_file_open in -lzzip... " >&6; }
4618 if test "${ac_cv_lib_zzip_zzip_file_open+set}" = set; then
4619 $as_echo_n "(cached) " >&6
4621 ac_check_lib_save_LIBS=$LIBS
4623 cat >conftest.$ac_ext <<_ACEOF
4626 cat confdefs.h >>conftest.$ac_ext
4627 cat >>conftest.$ac_ext <<_ACEOF
4628 /* end confdefs.h. */
4630 /* Override any GCC internal prototype to avoid an error.
4631 Use char because int might match the return type of a GCC
4632 builtin and then its argument prototype would still apply. */
4636 char zzip_file_open ();
4640 return zzip_file_open ();
4645 rm -f conftest.$ac_objext conftest$ac_exeext
4646 if { (ac_try="$ac_link"
4648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4649 *) ac_try_echo=$ac_try;;
4651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4652 $as_echo "$ac_try_echo") >&5
4653 (eval "$ac_link") 2>conftest.er1
4655 grep -v '^ *+' conftest.er1 >conftest.err
4657 cat conftest.err >&5
4658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); } && {
4660 test -z "$ac_c_werror_flag" ||
4661 test ! -s conftest.err
4662 } && test -s conftest$ac_exeext && {
4663 test "$cross_compiling" = yes ||
4664 $as_test_x conftest$ac_exeext
4666 ac_cv_lib_zzip_zzip_file_open=yes
4668 $as_echo "$as_me: failed program was:" >&5
4669 sed 's/^/| /' conftest.$ac_ext >&5
4671 ac_cv_lib_zzip_zzip_file_open=no
4674 rm -rf conftest.dSYM
4675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4676 conftest$ac_exeext conftest.$ac_ext
4677 LIBS=$ac_check_lib_save_LIBS
4679 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_zzip_zzip_file_open" >&5
4680 $as_echo "$ac_cv_lib_zzip_zzip_file_open" >&6; }
4681 if test "x$ac_cv_lib_zzip_zzip_file_open" = x""yes; then
4682 cat >>confdefs.h <<_ACEOF
4683 #define HAVE_LIBZZIP 1
4694 { $as_echo "$as_me:$LINENO: checking for byte order" >&5
4695 $as_echo_n "checking for byte order... " >&6; }
4696 if test "$cross_compiling" = yes; then
4699 cat >conftest.$ac_ext <<_ACEOF
4702 cat confdefs.h >>conftest.$ac_ext
4703 cat >>conftest.$ac_ext <<_ACEOF
4704 /* end confdefs.h. */
4706 int main (int argc, char *argv[])
4713 rm -f conftest$ac_exeext
4714 if { (ac_try="$ac_link"
4716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4717 *) ac_try_echo=$ac_try;;
4719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4720 $as_echo "$ac_try_echo") >&5
4721 (eval "$ac_link") 2>&5
4723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4725 { (case "(($ac_try" in
4726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4727 *) ac_try_echo=$ac_try;;
4729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4730 $as_echo "$ac_try_echo") >&5
4731 (eval "$ac_try") 2>&5
4733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734 (exit $ac_status); }; }; then
4737 $as_echo "$as_me: program exited with status $ac_status" >&5
4738 $as_echo "$as_me: failed program was:" >&5
4739 sed 's/^/| /' conftest.$ac_ext >&5
4744 rm -rf conftest.dSYM
4745 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4751 if test "x${CROSSCOMPILE}" = "x1"; then
4752 { $as_echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
4753 $as_echo "we are cross compiling- trying to guess from system type" >&6; }
4754 { $as_echo "$as_me:$LINENO: checking target system type" >&5
4755 $as_echo_n "checking target system type... " >&6; }
4756 if test "${ac_cv_target+set}" = set; then
4757 $as_echo_n "(cached) " >&6
4759 if test "x$target_alias" = x; then
4760 ac_cv_target=$ac_cv_host
4762 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4763 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
4764 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
4765 { (exit 1); exit 1; }; }
4769 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
4770 $as_echo "$ac_cv_target" >&6; }
4771 case $ac_cv_target in
4773 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
4774 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
4775 { (exit 1); exit 1; }; };;
4777 target=$ac_cv_target
4778 ac_save_IFS=$IFS; IFS='-'
4784 # Remember, the first character of IFS is used to create $*,
4785 # except with old shells:
4788 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4791 # The aliases save the names the user supplied, while $host etc.
4792 # will get canonicalized.
4793 test -n "$target_alias" &&
4794 test "$program_prefix$program_suffix$program_transform_name" = \
4796 program_prefix=${target_alias}-
4797 { $as_echo "$as_me:$LINENO: checking for byte order, try 2" >&5
4798 $as_echo_n "checking for byte order, try 2... " >&6; }
4803 *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
4810 if test "x${LITTLEENDIAN}" = "x1"; then
4811 { $as_echo "$as_me:$LINENO: result: little endian" >&5
4812 $as_echo "little endian" >&6; }
4816 if test "x${BIGENDIAN}" = "x1"; then
4817 { $as_echo "$as_me:$LINENO: result: big endian" >&5
4818 $as_echo "big endian" >&6; }
4821 export WORDS_BIGENDIAN
4823 cat >>confdefs.h <<\_ACEOF
4824 #define WORDS_BIGENDIAN 1
4828 if test "x${BYTEORDERCHECKOK}" != "x1"; then
4829 { $as_echo "$as_me:$LINENO: result: unknown" >&5
4830 $as_echo "unknown" >&6; }
4831 echo Byte order could not determined.
4837 { $as_echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
4838 $as_echo_n "checking whether system() can handle command substitution... " >&6; }
4839 if test "$cross_compiling" = yes; then
4842 cat >conftest.$ac_ext <<_ACEOF
4845 cat confdefs.h >>conftest.$ac_ext
4846 cat >>conftest.$ac_ext <<_ACEOF
4847 /* end confdefs.h. */
4850 int main (int argc, char*argv[])
4852 return system("test `touch config.tmp2`");
4856 rm -f conftest$ac_exeext
4857 if { (ac_try="$ac_link"
4859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4860 *) ac_try_echo=$ac_try;;
4862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4863 $as_echo "$ac_try_echo") >&5
4864 (eval "$ac_link") 2>&5
4866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4868 { (case "(($ac_try" in
4869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4870 *) ac_try_echo=$ac_try;;
4872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4873 $as_echo "$ac_try_echo") >&5
4874 (eval "$ac_try") 2>&5
4876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); }; }; then
4880 $as_echo "$as_me: program exited with status $ac_status" >&5
4881 $as_echo "$as_me: failed program was:" >&5
4882 sed 's/^/| /' conftest.$ac_ext >&5
4885 rm -rf conftest.dSYM
4886 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4891 if test "x${OK}" = "xOK";then
4892 test -f config.tmp2 || OK=
4895 if test "x${CROSSCOMPILE}" = "x1";then
4898 if test "x${OK}" = "xOK";then
4900 { $as_echo "$as_me:$LINENO: result: yes" >&5
4901 $as_echo "yes" >&6; }
4903 export SYSTEM_BACKTICKS
4905 cat >>confdefs.h <<\_ACEOF
4906 #define SYSTEM_BACKTICKS 1
4910 { $as_echo "$as_me:$LINENO: result: no" >&5
4911 $as_echo "no" >&6; }
4916 test "$program_prefix" != NONE &&
4917 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4918 # Use a double $ so make ignores it.
4919 test "$program_suffix" != NONE &&
4920 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4921 # Double any \ or $.
4922 # By default was `s,x,x', remove it if useless.
4923 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4924 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4927 ac_config_headers="$ac_config_headers config.h"
4935 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4936 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4937 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4938 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4940 $as_echo_n "(cached) " >&6
4942 cat >conftest.$ac_ext <<_ACEOF
4945 cat confdefs.h >>conftest.$ac_ext
4946 cat >>conftest.$ac_ext <<_ACEOF
4947 /* end confdefs.h. */
4948 #include <sys/types.h>
4960 rm -f conftest.$ac_objext
4961 if { (ac_try="$ac_compile"
4963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4964 *) ac_try_echo=$ac_try;;
4966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4967 $as_echo "$ac_try_echo") >&5
4968 (eval "$ac_compile") 2>conftest.er1
4970 grep -v '^ *+' conftest.er1 >conftest.err
4972 cat conftest.err >&5
4973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); } && {
4975 test -z "$ac_c_werror_flag" ||
4976 test ! -s conftest.err
4977 } && test -s conftest.$ac_objext; then
4978 eval "$as_ac_Header=yes"
4980 $as_echo "$as_me: failed program was:" >&5
4981 sed 's/^/| /' conftest.$ac_ext >&5
4983 eval "$as_ac_Header=no"
4986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4988 ac_res=`eval 'as_val=${'$as_ac_Header'}
4989 $as_echo "$as_val"'`
4990 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4991 $as_echo "$ac_res" >&6; }
4992 as_val=`eval 'as_val=${'$as_ac_Header'}
4993 $as_echo "$as_val"'`
4994 if test "x$as_val" = x""yes; then
4995 cat >>confdefs.h <<_ACEOF
4996 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4999 ac_header_dirent=$ac_hdr; break
5003 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5004 if test $ac_header_dirent = dirent.h; then
5005 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
5006 $as_echo_n "checking for library containing opendir... " >&6; }
5007 if test "${ac_cv_search_opendir+set}" = set; then
5008 $as_echo_n "(cached) " >&6
5010 ac_func_search_save_LIBS=$LIBS
5011 cat >conftest.$ac_ext <<_ACEOF
5014 cat confdefs.h >>conftest.$ac_ext
5015 cat >>conftest.$ac_ext <<_ACEOF
5016 /* end confdefs.h. */
5018 /* Override any GCC internal prototype to avoid an error.
5019 Use char because int might match the return type of a GCC
5020 builtin and then its argument prototype would still apply. */
5033 for ac_lib in '' dir; do
5034 if test -z "$ac_lib"; then
5035 ac_res="none required"
5038 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5040 rm -f conftest.$ac_objext conftest$ac_exeext
5041 if { (ac_try="$ac_link"
5043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5044 *) ac_try_echo=$ac_try;;
5046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5047 $as_echo "$ac_try_echo") >&5
5048 (eval "$ac_link") 2>conftest.er1
5050 grep -v '^ *+' conftest.er1 >conftest.err
5052 cat conftest.err >&5
5053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); } && {
5055 test -z "$ac_c_werror_flag" ||
5056 test ! -s conftest.err
5057 } && test -s conftest$ac_exeext && {
5058 test "$cross_compiling" = yes ||
5059 $as_test_x conftest$ac_exeext
5061 ac_cv_search_opendir=$ac_res
5063 $as_echo "$as_me: failed program was:" >&5
5064 sed 's/^/| /' conftest.$ac_ext >&5
5069 rm -rf conftest.dSYM
5070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5072 if test "${ac_cv_search_opendir+set}" = set; then
5076 if test "${ac_cv_search_opendir+set}" = set; then
5079 ac_cv_search_opendir=no
5082 LIBS=$ac_func_search_save_LIBS
5084 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5085 $as_echo "$ac_cv_search_opendir" >&6; }
5086 ac_res=$ac_cv_search_opendir
5087 if test "$ac_res" != no; then
5088 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"