2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir=.
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
240 SHELL=${CONFIG_SHELL-/bin/sh}
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
251 # Portably unset VAR.
254 { eval $1=; unset $1;}
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 # Create "$as_dir" as a directory, including parents if necessary.
283 -*) as_dir=./$as_dir;;
285 test -d "$as_dir" || eval $as_mkdir_p || {
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 test -d "$as_dir" && break
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
354 as_val=`expr "$@" || test $? -eq 1`
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
366 as_status=$?; test $as_status -eq 0 && as_status=1
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
448 # Exit status is that of the last command.
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
470 mkdir conf$$.dir 2>/dev/null
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481 elif ln conf$$.file conf$$ 2>/dev/null; then
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
495 test -d ./-p && rmdir ./-p
499 if test -x / >/dev/null 2>&1; then
502 if ls -dL / >/dev/null 2>&1; then
509 if test -d "$1"; then
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
520 as_executable_p=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" || exec 7<&0 </dev/null
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
540 ac_default_prefix=/usr/local
542 ac_config_libobj_dir=.
549 # Identity of this package.
557 ac_unique_file="src/"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
571 # ifdef HAVE_STDLIB_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
594 ac_subst_vars='LTLIBOBJS
690 program_transform_name
703 enable_option_checking
711 ac_precious_vars='build_alias
725 # Initialize some variables set by options.
727 ac_init_version=false
728 ac_unrecognized_opts=
730 # The variables have the same names as the options, with
731 # dashes changed to underlines.
739 program_transform_name=s,x,x,
747 # Installation directory options.
748 # These are left unexpanded so users can "make install exec_prefix=/foo"
749 # and all the variables that are supposed to be based on exec_prefix
750 # by default will actually change.
751 # Use braces instead of parens because sh, perl, etc. also accept them.
752 # (The list follows the same order as the GNU Coding Standards.)
753 bindir='${exec_prefix}/bin'
754 sbindir='${exec_prefix}/sbin'
755 libexecdir='${exec_prefix}/libexec'
756 datarootdir='${prefix}/share'
757 datadir='${datarootdir}'
758 sysconfdir='${prefix}/etc'
759 sharedstatedir='${prefix}/com'
760 localstatedir='${prefix}/var'
761 includedir='${prefix}/include'
762 oldincludedir='/usr/include'
763 docdir='${datarootdir}/doc/${PACKAGE}'
764 infodir='${datarootdir}/info'
769 libdir='${exec_prefix}/lib'
770 localedir='${datarootdir}/locale'
771 mandir='${datarootdir}/man'
777 # If the previous option needs an argument, assign it.
778 if test -n "$ac_prev"; then
779 eval $ac_prev=\$ac_option
785 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
789 # Accept the important Cygnus configure options, so we can diagnose typos.
791 case $ac_dashdash$ac_option in
795 -bindir | --bindir | --bindi | --bind | --bin | --bi)
797 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
800 -build | --build | --buil | --bui | --bu)
801 ac_prev=build_alias ;;
802 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
803 build_alias=$ac_optarg ;;
805 -cache-file | --cache-file | --cache-fil | --cache-fi \
806 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
807 ac_prev=cache_file ;;
808 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
809 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
810 cache_file=$ac_optarg ;;
813 cache_file=config.cache ;;
815 -datadir | --datadir | --datadi | --datad)
817 -datadir=* | --datadir=* | --datadi=* | --datad=*)
818 datadir=$ac_optarg ;;
820 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
821 | --dataroo | --dataro | --datar)
822 ac_prev=datarootdir ;;
823 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
824 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
825 datarootdir=$ac_optarg ;;
827 -disable-* | --disable-*)
828 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
829 # Reject names that are not valid shell variable names.
830 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
831 as_fn_error "invalid feature name: $ac_useropt"
832 ac_useropt_orig=$ac_useropt
833 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
834 case $ac_user_opts in
838 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
839 ac_unrecognized_sep=', ';;
841 eval enable_$ac_useropt=no ;;
843 -docdir | --docdir | --docdi | --doc | --do)
845 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
848 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
850 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
853 -enable-* | --enable-*)
854 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
855 # Reject names that are not valid shell variable names.
856 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
857 as_fn_error "invalid feature name: $ac_useropt"
858 ac_useropt_orig=$ac_useropt
859 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
860 case $ac_user_opts in
864 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
865 ac_unrecognized_sep=', ';;
867 eval enable_$ac_useropt=\$ac_optarg ;;
869 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
870 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
871 | --exec | --exe | --ex)
872 ac_prev=exec_prefix ;;
873 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
874 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
875 | --exec=* | --exe=* | --ex=*)
876 exec_prefix=$ac_optarg ;;
878 -gas | --gas | --ga | --g)
879 # Obsolete; use --with-gas.
882 -help | --help | --hel | --he | -h)
884 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
885 ac_init_help=recursive ;;
886 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
887 ac_init_help=short ;;
889 -host | --host | --hos | --ho)
890 ac_prev=host_alias ;;
891 -host=* | --host=* | --hos=* | --ho=*)
892 host_alias=$ac_optarg ;;
894 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
896 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
898 htmldir=$ac_optarg ;;
900 -includedir | --includedir | --includedi | --included | --include \
901 | --includ | --inclu | --incl | --inc)
902 ac_prev=includedir ;;
903 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
904 | --includ=* | --inclu=* | --incl=* | --inc=*)
905 includedir=$ac_optarg ;;
907 -infodir | --infodir | --infodi | --infod | --info | --inf)
909 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
910 infodir=$ac_optarg ;;
912 -libdir | --libdir | --libdi | --libd)
914 -libdir=* | --libdir=* | --libdi=* | --libd=*)
917 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
918 | --libexe | --libex | --libe)
919 ac_prev=libexecdir ;;
920 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
921 | --libexe=* | --libex=* | --libe=*)
922 libexecdir=$ac_optarg ;;
924 -localedir | --localedir | --localedi | --localed | --locale)
926 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
927 localedir=$ac_optarg ;;
929 -localstatedir | --localstatedir | --localstatedi | --localstated \
930 | --localstate | --localstat | --localsta | --localst | --locals)
931 ac_prev=localstatedir ;;
932 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
933 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
934 localstatedir=$ac_optarg ;;
936 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
938 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
942 # Obsolete; use --without-fp.
945 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
946 | --no-cr | --no-c | -n)
949 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
950 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
953 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
954 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
955 | --oldin | --oldi | --old | --ol | --o)
956 ac_prev=oldincludedir ;;
957 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
958 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
959 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
960 oldincludedir=$ac_optarg ;;
962 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
964 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
967 -program-prefix | --program-prefix | --program-prefi | --program-pref \
968 | --program-pre | --program-pr | --program-p)
969 ac_prev=program_prefix ;;
970 -program-prefix=* | --program-prefix=* | --program-prefi=* \
971 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
972 program_prefix=$ac_optarg ;;
974 -program-suffix | --program-suffix | --program-suffi | --program-suff \
975 | --program-suf | --program-su | --program-s)
976 ac_prev=program_suffix ;;
977 -program-suffix=* | --program-suffix=* | --program-suffi=* \
978 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
979 program_suffix=$ac_optarg ;;
981 -program-transform-name | --program-transform-name \
982 | --program-transform-nam | --program-transform-na \
983 | --program-transform-n | --program-transform- \
984 | --program-transform | --program-transfor \
985 | --program-transfo | --program-transf \
986 | --program-trans | --program-tran \
987 | --progr-tra | --program-tr | --program-t)
988 ac_prev=program_transform_name ;;
989 -program-transform-name=* | --program-transform-name=* \
990 | --program-transform-nam=* | --program-transform-na=* \
991 | --program-transform-n=* | --program-transform-=* \
992 | --program-transform=* | --program-transfor=* \
993 | --program-transfo=* | --program-transf=* \
994 | --program-trans=* | --program-tran=* \
995 | --progr-tra=* | --program-tr=* | --program-t=*)
996 program_transform_name=$ac_optarg ;;
998 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1000 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1001 pdfdir=$ac_optarg ;;
1003 -psdir | --psdir | --psdi | --psd | --ps)
1005 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1008 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1009 | -silent | --silent | --silen | --sile | --sil)
1012 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1014 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1016 sbindir=$ac_optarg ;;
1018 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1019 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1020 | --sharedst | --shareds | --shared | --share | --shar \
1022 ac_prev=sharedstatedir ;;
1023 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1024 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1025 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1027 sharedstatedir=$ac_optarg ;;
1029 -site | --site | --sit)
1031 -site=* | --site=* | --sit=*)
1034 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1036 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1037 srcdir=$ac_optarg ;;
1039 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1040 | --syscon | --sysco | --sysc | --sys | --sy)
1041 ac_prev=sysconfdir ;;
1042 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1043 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1044 sysconfdir=$ac_optarg ;;
1046 -target | --target | --targe | --targ | --tar | --ta | --t)
1047 ac_prev=target_alias ;;
1048 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1049 target_alias=$ac_optarg ;;
1051 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1054 -version | --version | --versio | --versi | --vers | -V)
1055 ac_init_version=: ;;
1058 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1059 # Reject names that are not valid shell variable names.
1060 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1061 as_fn_error "invalid package name: $ac_useropt"
1062 ac_useropt_orig=$ac_useropt
1063 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1064 case $ac_user_opts in
1068 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1069 ac_unrecognized_sep=', ';;
1071 eval with_$ac_useropt=\$ac_optarg ;;
1073 -without-* | --without-*)
1074 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1075 # Reject names that are not valid shell variable names.
1076 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1077 as_fn_error "invalid package name: $ac_useropt"
1078 ac_useropt_orig=$ac_useropt
1079 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1080 case $ac_user_opts in
1084 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1085 ac_unrecognized_sep=', ';;
1087 eval with_$ac_useropt=no ;;
1090 # Obsolete; use --with-x.
1093 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1094 | --x-incl | --x-inc | --x-in | --x-i)
1095 ac_prev=x_includes ;;
1096 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1097 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1098 x_includes=$ac_optarg ;;
1100 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1101 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1102 ac_prev=x_libraries ;;
1103 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1104 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1105 x_libraries=$ac_optarg ;;
1107 -*) as_fn_error "unrecognized option: \`$ac_option'
1108 Try \`$0 --help' for more information."
1112 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1113 # Reject names that are not valid shell variable names.
1114 case $ac_envvar in #(
1115 '' | [0-9]* | *[!_$as_cr_alnum]* )
1116 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1118 eval $ac_envvar=\$ac_optarg
1119 export $ac_envvar ;;
1122 # FIXME: should be removed in autoconf 3.0.
1123 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1124 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1125 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1126 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1132 if test -n "$ac_prev"; then
1133 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1134 as_fn_error "missing argument to $ac_option"
1137 if test -n "$ac_unrecognized_opts"; then
1138 case $enable_option_checking in
1140 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1141 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1145 # Check all directory arguments for consistency.
1146 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1147 datadir sysconfdir sharedstatedir localstatedir includedir \
1148 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1149 libdir localedir mandir
1151 eval ac_val=\$$ac_var
1152 # Remove trailing slashes.
1155 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1156 eval $ac_var=\$ac_val;;
1158 # Be sure to have absolute directory names.
1160 [\\/$]* | ?:[\\/]* ) continue;;
1161 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1163 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1166 # There might be people who depend on the old broken behavior: `$host'
1167 # used to hold the argument of --host etc.
1168 # FIXME: To remove some day.
1171 target=$target_alias
1173 # FIXME: To remove some day.
1174 if test "x$host_alias" != x; then
1175 if test "x$build_alias" = x; then
1176 cross_compiling=maybe
1177 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1178 If a cross compiler is detected then cross compile mode will be used." >&2
1179 elif test "x$build_alias" != "x$host_alias"; then
1185 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1187 test "$silent" = yes && exec 6>/dev/null
1190 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1191 ac_ls_di=`ls -di .` &&
1192 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1193 as_fn_error "working directory cannot be determined"
1194 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1195 as_fn_error "pwd does not report name of working directory"
1198 # Find the source files, if location was not specified.
1199 if test -z "$srcdir"; then
1200 ac_srcdir_defaulted=yes
1201 # Try the directory containing this script, then the parent directory.
1202 ac_confdir=`$as_dirname -- "$as_myself" ||
1203 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1204 X"$as_myself" : 'X\(//\)[^/]' \| \
1205 X"$as_myself" : 'X\(//\)$' \| \
1206 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1207 $as_echo X"$as_myself" |
1208 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1226 if test ! -r "$srcdir/$ac_unique_file"; then
1230 ac_srcdir_defaulted=no
1232 if test ! -r "$srcdir/$ac_unique_file"; then
1233 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1234 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1236 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1238 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1240 # When building in place, set srcdir=.
1241 if test "$ac_abs_confdir" = "$ac_pwd"; then
1244 # Remove unnecessary trailing slashes from srcdir.
1245 # Double slashes in file names in object file debugging info
1246 # mess up M-x gdb in Emacs.
1248 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1250 for ac_var in $ac_precious_vars; do
1251 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1252 eval ac_env_${ac_var}_value=\$${ac_var}
1253 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1254 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1258 # Report the --help message.
1260 if test "$ac_init_help" = "long"; then
1261 # Omit some internal or obsolete options to make the list less imposing.
1262 # This message is too long to be a string in the A/UX 3.1 sh.
1264 \`configure' configures this package to adapt to many kinds of systems.
1266 Usage: $0 [OPTION]... [VAR=VALUE]...
1268 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1269 VAR=VALUE. See below for descriptions of some of the useful variables.
1271 Defaults for the options are specified in brackets.
1274 -h, --help display this help and exit
1275 --help=short display options specific to this package
1276 --help=recursive display the short help of all the included packages
1277 -V, --version display version information and exit
1278 -q, --quiet, --silent do not print \`checking...' messages
1279 --cache-file=FILE cache test results in FILE [disabled]
1280 -C, --config-cache alias for \`--cache-file=config.cache'
1281 -n, --no-create do not create output files
1282 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1284 Installation directories:
1285 --prefix=PREFIX install architecture-independent files in PREFIX
1286 [$ac_default_prefix]
1287 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1290 By default, \`make install' will install all the files in
1291 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1292 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1293 for instance \`--prefix=\$HOME'.
1295 For better control, use the options below.
1297 Fine tuning of the installation directories:
1298 --bindir=DIR user executables [EPREFIX/bin]
1299 --sbindir=DIR system admin executables [EPREFIX/sbin]
1300 --libexecdir=DIR program executables [EPREFIX/libexec]
1301 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1302 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1303 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1304 --libdir=DIR object code libraries [EPREFIX/lib]
1305 --includedir=DIR C header files [PREFIX/include]
1306 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1307 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1308 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1309 --infodir=DIR info documentation [DATAROOTDIR/info]
1310 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1311 --mandir=DIR man documentation [DATAROOTDIR/man]
1312 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1313 --htmldir=DIR html documentation [DOCDIR]
1314 --dvidir=DIR dvi documentation [DOCDIR]
1315 --pdfdir=DIR pdf documentation [DOCDIR]
1316 --psdir=DIR ps documentation [DOCDIR]
1322 --program-prefix=PREFIX prepend PREFIX to installed program names
1323 --program-suffix=SUFFIX append SUFFIX to installed program names
1324 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1327 --build=BUILD configure for building on BUILD [guessed]
1328 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1329 --target=TARGET configure for building compilers for TARGET [HOST]
1333 if test -n "$ac_init_help"; then
1338 --disable-option-checking ignore unrecognized --enable/--with options
1339 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1340 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1341 --enable-checkmem turn on ccmalloc debugging
1342 --enable-debug turn on debugging
1343 --enable-profiling turn on profiling
1344 --enable-warnings turn on compiler warnings
1345 --enable-optimizations turn on compiler optimizations (recommended for avi2swf)
1346 --disable-lame don't compile any L.A.M.E. mp3 encoding code in
1348 Some influential environment variables:
1349 CC C compiler command
1350 CFLAGS C compiler flags
1351 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1352 nonstandard directory <lib dir>
1353 LIBS libraries to pass to the linker, e.g. -l<library>
1354 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1355 you have headers in a nonstandard directory <include dir>
1356 CXX C++ compiler command
1357 CXXFLAGS C++ compiler flags
1360 Use these variables to override the choices made by `configure' or to help
1361 it to find libraries and programs with nonstandard names/locations.
1363 Report bugs to the package provider.
1368 if test "$ac_init_help" = "recursive"; then
1369 # If there are subdirs, report their specific --help.
1370 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1371 test -d "$ac_dir" ||
1372 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1377 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1379 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1380 # A ".." for each directory in $ac_dir_suffix.
1381 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1382 case $ac_top_builddir_sub in
1383 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1384 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1387 ac_abs_top_builddir=$ac_pwd
1388 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1389 # for backward compatibility:
1390 ac_top_builddir=$ac_top_build_prefix
1393 .) # We are building in place.
1395 ac_top_srcdir=$ac_top_builddir_sub
1396 ac_abs_top_srcdir=$ac_pwd ;;
1397 [\\/]* | ?:[\\/]* ) # Absolute name.
1398 ac_srcdir=$srcdir$ac_dir_suffix;
1399 ac_top_srcdir=$srcdir
1400 ac_abs_top_srcdir=$srcdir ;;
1402 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1403 ac_top_srcdir=$ac_top_build_prefix$srcdir
1404 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1406 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1408 cd "$ac_dir" || { ac_status=$?; continue; }
1409 # Check for guested configure.
1410 if test -f "$ac_srcdir/configure.gnu"; then
1412 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1413 elif test -f "$ac_srcdir/configure"; then
1415 $SHELL "$ac_srcdir/configure" --help=recursive
1417 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1419 cd "$ac_pwd" || { ac_status=$?; break; }
1423 test -n "$ac_init_help" && exit $ac_status
1424 if $ac_init_version; then
1427 generated by GNU Autoconf 2.65
1429 Copyright (C) 2009 Free Software Foundation, Inc.
1430 This configure script is free software; the Free Software Foundation
1431 gives unlimited permission to copy, distribute and modify it.
1436 ## ------------------------ ##
1437 ## Autoconf initialization. ##
1438 ## ------------------------ ##
1440 # ac_fn_c_try_compile LINENO
1441 # --------------------------
1442 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1443 ac_fn_c_try_compile ()
1445 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1446 rm -f conftest.$ac_objext
1447 if { { ac_try="$ac_compile"
1449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1450 *) ac_try_echo=$ac_try;;
1452 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1453 $as_echo "$ac_try_echo"; } >&5
1454 (eval "$ac_compile") 2>conftest.err
1456 if test -s conftest.err; then
1457 grep -v '^ *+' conftest.err >conftest.er1
1458 cat conftest.er1 >&5
1459 mv -f conftest.er1 conftest.err
1461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1462 test $ac_status = 0; } && {
1463 test -z "$ac_c_werror_flag" ||
1464 test ! -s conftest.err
1465 } && test -s conftest.$ac_objext; then :
1468 $as_echo "$as_me: failed program was:" >&5
1469 sed 's/^/| /' conftest.$ac_ext >&5
1473 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1474 as_fn_set_status $ac_retval
1476 } # ac_fn_c_try_compile
1478 # ac_fn_cxx_try_compile LINENO
1479 # ----------------------------
1480 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1481 ac_fn_cxx_try_compile ()
1483 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1484 rm -f conftest.$ac_objext
1485 if { { ac_try="$ac_compile"
1487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1488 *) ac_try_echo=$ac_try;;
1490 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1491 $as_echo "$ac_try_echo"; } >&5
1492 (eval "$ac_compile") 2>conftest.err
1494 if test -s conftest.err; then
1495 grep -v '^ *+' conftest.err >conftest.er1
1496 cat conftest.er1 >&5
1497 mv -f conftest.er1 conftest.err
1499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1500 test $ac_status = 0; } && {
1501 test -z "$ac_cxx_werror_flag" ||
1502 test ! -s conftest.err
1503 } && test -s conftest.$ac_objext; then :
1506 $as_echo "$as_me: failed program was:" >&5
1507 sed 's/^/| /' conftest.$ac_ext >&5
1511 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1512 as_fn_set_status $ac_retval
1514 } # ac_fn_cxx_try_compile
1516 # ac_fn_c_try_cpp LINENO
1517 # ----------------------
1518 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1521 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1522 if { { ac_try="$ac_cpp conftest.$ac_ext"
1524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1525 *) ac_try_echo=$ac_try;;
1527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1528 $as_echo "$ac_try_echo"; } >&5
1529 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1531 if test -s conftest.err; then
1532 grep -v '^ *+' conftest.err >conftest.er1
1533 cat conftest.er1 >&5
1534 mv -f conftest.er1 conftest.err
1536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1537 test $ac_status = 0; } >/dev/null && {
1538 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1539 test ! -s conftest.err
1543 $as_echo "$as_me: failed program was:" >&5
1544 sed 's/^/| /' conftest.$ac_ext >&5
1548 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1549 as_fn_set_status $ac_retval
1553 # ac_fn_c_try_link LINENO
1554 # -----------------------
1555 # Try to link conftest.$ac_ext, and return whether this succeeded.
1558 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1559 rm -f conftest.$ac_objext conftest$ac_exeext
1560 if { { ac_try="$ac_link"
1562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1563 *) ac_try_echo=$ac_try;;
1565 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1566 $as_echo "$ac_try_echo"; } >&5
1567 (eval "$ac_link") 2>conftest.err
1569 if test -s conftest.err; then
1570 grep -v '^ *+' conftest.err >conftest.er1
1571 cat conftest.er1 >&5
1572 mv -f conftest.er1 conftest.err
1574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1575 test $ac_status = 0; } && {
1576 test -z "$ac_c_werror_flag" ||
1577 test ! -s conftest.err
1578 } && test -s conftest$ac_exeext && {
1579 test "$cross_compiling" = yes ||
1580 $as_test_x conftest$ac_exeext
1584 $as_echo "$as_me: failed program was:" >&5
1585 sed 's/^/| /' conftest.$ac_ext >&5
1589 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1590 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1591 # interfere with the next link command; also delete a directory that is
1592 # left behind by Apple's compiler. We do this before executing the actions.
1593 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1594 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1595 as_fn_set_status $ac_retval
1597 } # ac_fn_c_try_link
1599 # ac_fn_c_try_run LINENO
1600 # ----------------------
1601 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1602 # that executables *can* be run.
1605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606 if { { ac_try="$ac_link"
1608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1609 *) ac_try_echo=$ac_try;;
1611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1612 $as_echo "$ac_try_echo"; } >&5
1613 (eval "$ac_link") 2>&5
1615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1617 { { case "(($ac_try" in
1618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1619 *) ac_try_echo=$ac_try;;
1621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1622 $as_echo "$ac_try_echo"; } >&5
1623 (eval "$ac_try") 2>&5
1625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1626 test $ac_status = 0; }; }; then :
1629 $as_echo "$as_me: program exited with status $ac_status" >&5
1630 $as_echo "$as_me: failed program was:" >&5
1631 sed 's/^/| /' conftest.$ac_ext >&5
1633 ac_retval=$ac_status
1635 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1636 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1637 as_fn_set_status $ac_retval
1641 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1642 # -------------------------------------------------------
1643 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1644 # the include files in INCLUDES and setting the cache variable VAR
1646 ac_fn_c_check_header_mongrel ()
1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1651 $as_echo_n "checking for $2... " >&6; }
1652 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1653 $as_echo_n "(cached) " >&6
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1657 $as_echo "$ac_res" >&6; }
1659 # Is the header compilable?
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1661 $as_echo_n "checking $2 usability... " >&6; }
1662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1663 /* end confdefs.h. */
1667 if ac_fn_c_try_compile "$LINENO"; then :
1668 ac_header_compiler=yes
1670 ac_header_compiler=no
1672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1674 $as_echo "$ac_header_compiler" >&6; }
1676 # Is the header present?
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1678 $as_echo_n "checking $2 presence... " >&6; }
1679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1680 /* end confdefs.h. */
1683 if ac_fn_c_try_cpp "$LINENO"; then :
1684 ac_header_preproc=yes
1686 ac_header_preproc=no
1688 rm -f conftest.err conftest.$ac_ext
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1690 $as_echo "$ac_header_preproc" >&6; }
1692 # So? What about this header?
1693 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1696 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1698 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1702 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1704 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1706 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1708 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1710 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1714 $as_echo_n "checking for $2... " >&6; }
1715 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1716 $as_echo_n "(cached) " >&6
1718 eval "$3=\$ac_header_compiler"
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1722 $as_echo "$ac_res" >&6; }
1724 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1726 } # ac_fn_c_check_header_mongrel
1728 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1729 # -------------------------------------------------------
1730 # Tests whether HEADER exists and can be compiled using the include files in
1731 # INCLUDES, setting the cache variable VAR accordingly.
1732 ac_fn_c_check_header_compile ()
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1736 $as_echo_n "checking for $2... " >&6; }
1737 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1738 $as_echo_n "(cached) " >&6
1740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1741 /* end confdefs.h. */
1745 if ac_fn_c_try_compile "$LINENO"; then :
1750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1754 $as_echo "$ac_res" >&6; }
1755 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1757 } # ac_fn_c_check_header_compile
1759 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1760 # -------------------------------------------
1761 # Tests whether TYPE exists after having included INCLUDES, setting cache
1762 # variable VAR accordingly.
1763 ac_fn_c_check_type ()
1765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1767 $as_echo_n "checking for $2... " >&6; }
1768 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1769 $as_echo_n "(cached) " >&6
1772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1773 /* end confdefs.h. */
1784 if ac_fn_c_try_compile "$LINENO"; then :
1785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1786 /* end confdefs.h. */
1797 if ac_fn_c_try_compile "$LINENO"; then :
1802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1808 $as_echo "$ac_res" >&6; }
1809 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1811 } # ac_fn_c_check_type
1813 # ac_fn_c_check_func LINENO FUNC VAR
1814 # ----------------------------------
1815 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1816 ac_fn_c_check_func ()
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820 $as_echo_n "checking for $2... " >&6; }
1821 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1822 $as_echo_n "(cached) " >&6
1824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1825 /* end confdefs.h. */
1826 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1828 #define $2 innocuous_$2
1830 /* System header to define __stub macros and hopefully few prototypes,
1831 which can conflict with char $2 (); below.
1832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1833 <limits.h> exists even on freestanding compilers. */
1836 # include <limits.h>
1838 # include <assert.h>
1843 /* Override any GCC internal prototype to avoid an error.
1844 Use char because int might match the return type of a GCC
1845 builtin and then its argument prototype would still apply. */
1850 /* The GNU C library defines this for functions which it implements
1851 to always fail with ENOSYS. Some functions are actually named
1852 something starting with __ and the normal name is an alias. */
1853 #if defined __stub_$2 || defined __stub___$2
1865 if ac_fn_c_try_link "$LINENO"; then :
1870 rm -f core conftest.err conftest.$ac_objext \
1871 conftest$ac_exeext conftest.$ac_ext
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875 $as_echo "$ac_res" >&6; }
1876 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1878 } # ac_fn_c_check_func
1880 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1881 # --------------------------------------------
1882 # Tries to find the compile-time value of EXPR in a program that includes
1883 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1885 ac_fn_c_compute_int ()
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 if test "$cross_compiling" = yes; then
1889 # Depending upon the size, compute the lo and hi bounds.
1890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1891 /* end confdefs.h. */
1896 static int test_array [1 - 2 * !(($2) >= 0)];
1903 if ac_fn_c_try_compile "$LINENO"; then :
1906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907 /* end confdefs.h. */
1912 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1919 if ac_fn_c_try_compile "$LINENO"; then :
1920 ac_hi=$ac_mid; break
1922 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1923 if test $ac_lo -le $ac_mid; then
1927 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933 /* end confdefs.h. */
1938 static int test_array [1 - 2 * !(($2) < 0)];
1945 if ac_fn_c_try_compile "$LINENO"; then :
1948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949 /* end confdefs.h. */
1954 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1961 if ac_fn_c_try_compile "$LINENO"; then :
1962 ac_lo=$ac_mid; break
1964 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1965 if test $ac_mid -le $ac_hi; then
1969 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1979 # Binary search between lo and hi bounds.
1980 while test "x$ac_lo" != "x$ac_hi"; do
1981 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1983 /* end confdefs.h. */
1988 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1995 if ac_fn_c_try_compile "$LINENO"; then :
1998 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008 /* end confdefs.h. */
2010 static long int longval () { return $2; }
2011 static unsigned long int ulongval () { return $2; }
2018 FILE *f = fopen ("conftest.val", "w");
2023 long int i = longval ();
2026 fprintf (f, "%ld", i);
2030 unsigned long int i = ulongval ();
2033 fprintf (f, "%lu", i);
2035 /* Do not output a trailing newline, as this causes \r\n confusion
2036 on some platforms. */
2037 return ferror (f) || fclose (f) != 0;
2043 if ac_fn_c_try_run "$LINENO"; then :
2044 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2048 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2049 conftest.$ac_objext conftest.beam conftest.$ac_ext
2053 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2054 as_fn_set_status $ac_retval
2056 } # ac_fn_c_compute_int
2057 cat >config.log <<_ACEOF
2058 This file contains any messages produced by compilers while
2059 running configure, to aid debugging if configure makes a mistake.
2061 It was created by $as_me, which was
2062 generated by GNU Autoconf 2.65. Invocation command line was
2074 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2075 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2076 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2077 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2078 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2080 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2081 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2083 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2084 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2085 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2086 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2087 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2088 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2089 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2097 test -z "$as_dir" && as_dir=.
2098 $as_echo "PATH: $as_dir"
2114 # Keep a trace of the command line.
2115 # Strip out --no-create and --no-recursion so they do not pile up.
2116 # Strip out --silent because we don't want to record it for future runs.
2117 # Also quote any args containing shell meta-characters.
2118 # Make two passes to allow for proper duplicate-argument suppression.
2122 ac_must_keep_next=false
2128 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2129 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2130 | -silent | --silent | --silen | --sile | --sil)
2133 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2136 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2138 as_fn_append ac_configure_args1 " '$ac_arg'"
2139 if test $ac_must_keep_next = true; then
2140 ac_must_keep_next=false # Got value, back to normal.
2143 *=* | --config-cache | -C | -disable-* | --disable-* \
2144 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2145 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2146 | -with-* | --with-* | -without-* | --without-* | --x)
2147 case "$ac_configure_args0 " in
2148 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2151 -* ) ac_must_keep_next=true ;;
2154 as_fn_append ac_configure_args " '$ac_arg'"
2159 { ac_configure_args0=; unset ac_configure_args0;}
2160 { ac_configure_args1=; unset ac_configure_args1;}
2162 # When interrupted or exit'd, cleanup temporary files, and complete
2163 # config.log. We remove comments because anyway the quotes in there
2164 # would cause problems or look ugly.
2165 # WARNING: Use '\'' to represent an apostrophe within the trap.
2166 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2167 trap 'exit_status=$?
2168 # Save into config.log some information that might help in debugging.
2173 ## ---------------- ##
2174 ## Cache variables. ##
2175 ## ---------------- ##
2178 # The following way of writing the cache mishandles newlines in values,
2180 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2181 eval ac_val=\$$ac_var
2185 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2186 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2189 _ | IFS | as_nl) ;; #(
2190 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2191 *) { eval $ac_var=; unset $ac_var;} ;;
2196 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2197 *${as_nl}ac_space=\ *)
2199 "s/'\''/'\''\\\\'\'''\''/g;
2200 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2203 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2211 ## ----------------- ##
2212 ## Output variables. ##
2213 ## ----------------- ##
2216 for ac_var in $ac_subst_vars
2218 eval ac_val=\$$ac_var
2220 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2222 $as_echo "$ac_var='\''$ac_val'\''"
2226 if test -n "$ac_subst_files"; then
2228 ## ------------------- ##
2229 ## File substitutions. ##
2230 ## ------------------- ##
2233 for ac_var in $ac_subst_files
2235 eval ac_val=\$$ac_var
2237 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2239 $as_echo "$ac_var='\''$ac_val'\''"
2244 if test -s confdefs.h; then
2254 test "$ac_signal" != 0 &&
2255 $as_echo "$as_me: caught signal $ac_signal"
2256 $as_echo "$as_me: exit $exit_status"
2258 rm -f core *.core core.conftest.* &&
2259 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2262 for ac_signal in 1 2 13 15; do
2263 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2267 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2268 rm -f -r conftest* confdefs.h
2270 $as_echo "/* confdefs.h */" > confdefs.h
2272 # Predefined preprocessor variables.
2274 cat >>confdefs.h <<_ACEOF
2275 #define PACKAGE_NAME "$PACKAGE_NAME"
2278 cat >>confdefs.h <<_ACEOF
2279 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2282 cat >>confdefs.h <<_ACEOF
2283 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2286 cat >>confdefs.h <<_ACEOF
2287 #define PACKAGE_STRING "$PACKAGE_STRING"
2290 cat >>confdefs.h <<_ACEOF
2291 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2294 cat >>confdefs.h <<_ACEOF
2295 #define PACKAGE_URL "$PACKAGE_URL"
2299 # Let the site file select an alternate cache file if it wants to.
2300 # Prefer an explicitly selected file to automatically selected ones.
2303 if test -n "$CONFIG_SITE"; then
2304 ac_site_file1=$CONFIG_SITE
2305 elif test "x$prefix" != xNONE; then
2306 ac_site_file1=$prefix/share/config.site
2307 ac_site_file2=$prefix/etc/config.site
2309 ac_site_file1=$ac_default_prefix/share/config.site
2310 ac_site_file2=$ac_default_prefix/etc/config.site
2312 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2314 test "x$ac_site_file" = xNONE && continue
2315 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2317 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2318 sed 's/^/| /' "$ac_site_file" >&5
2323 if test -r "$cache_file"; then
2324 # Some versions of bash will fail to source /dev/null (special files
2325 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2326 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2328 $as_echo "$as_me: loading cache $cache_file" >&6;}
2330 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2331 *) . "./$cache_file";;
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2336 $as_echo "$as_me: creating cache $cache_file" >&6;}
2340 # Check that the precious variables saved in the cache have kept the same
2342 ac_cache_corrupted=false
2343 for ac_var in $ac_precious_vars; do
2344 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2345 eval ac_new_set=\$ac_env_${ac_var}_set
2346 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2347 eval ac_new_val=\$ac_env_${ac_var}_value
2348 case $ac_old_set,$ac_new_set in
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2351 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2352 ac_cache_corrupted=: ;;
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2355 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2356 ac_cache_corrupted=: ;;
2359 if test "x$ac_old_val" != "x$ac_new_val"; then
2360 # differences in whitespace do not lead to failure.
2361 ac_old_val_w=`echo x $ac_old_val`
2362 ac_new_val_w=`echo x $ac_new_val`
2363 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2365 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2366 ac_cache_corrupted=:
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2369 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2370 eval $ac_var=\$ac_old_val
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2373 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2375 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2378 # Pass precious variables to config.status.
2379 if test "$ac_new_set" = set; then
2381 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2382 *) ac_arg=$ac_var=$ac_new_val ;;
2384 case " $ac_configure_args " in
2385 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2386 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2390 if $ac_cache_corrupted; then
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2392 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2394 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2395 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2397 ## -------------------- ##
2398 ## Main body of script. ##
2399 ## -------------------- ##
2402 ac_cpp='$CPP $CPPFLAGS'
2403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2410 # ------------------- option parsing -------------------------------
2419 # Check whether --enable-checkmem was given.
2420 if test "${enable_checkmem+set}" = set; then :
2421 enableval=$enable_checkmem; CHECKMEM=true
2424 # Check whether --enable-debug was given.
2425 if test "${enable_debug+set}" = set; then :
2426 enableval=$enable_debug; DEBUG=true
2429 # Check whether --enable-profiling was given.
2430 if test "${enable_profiling+set}" = set; then :
2431 enableval=$enable_profiling; PROFILING=true
2434 # Check whether --enable-warnings was given.
2435 if test "${enable_warnings+set}" = set; then :
2436 enableval=$enable_warnings; ENABLE_WARNINGS=true
2439 # Check whether --enable-optimizations was given.
2440 if test "${enable_optimizations+set}" = set; then :
2441 enableval=$enable_optimizations; OPTIMIZE=true
2444 # Check whether --enable-lame was given.
2445 if test "${enable_lame+set}" = set; then :
2446 enableval=$enable_lame; if test "x$enable_lame" = "xno";then
2455 VERSION=2010-02-06-1900
2457 # ------------------------------------------------------------------
2459 if test "x${srcdir}" != "x."; then
2460 echo "--srcdir is not supported"
2464 WARNINGS="-Wimplicit -Wreturn-type -Wno-write-strings -Wformat"
2465 if test "x$ENABLE_WARNINGS" '!=' "x";then
2466 WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls -Wno-write-strings -D_FORTIFY_SOURCE=2 "
2469 if test "x$CHECKMEM" '!=' "x";then
2472 if test "x$PROFILING" '!=' "x";then
2475 if test "x$DEBUG" '!=' "x";then
2476 if test "x$PROFILING" = "x";then
2477 CFLAGS="$WARNINGS -O2 -g $CFLAGS"
2478 CXXFLAGS="$WARNINGS -O2 -g $CXXFLAGS"
2479 LDFLAGS="-g $LDFLAGS"
2481 CFLAGS="$WARNINGS -O2 -g -pg $CFLAGS"
2482 CXXFLAGS="$WARNINGS -O2 -g -pg $CXXFLAGS"
2483 LDFLAGS="-g -pg $LDFLAGS"
2485 else if test "x$OPTIMIZE" '!=' "x"; then
2486 CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
2487 CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
2489 CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
2490 CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
2494 CFLAGS="-fPIC $CFLAGS"
2495 CXXFLAGS="-fPIC $CFLAGS"
2498 #if test "x$OLDGCC" '!=' "x";then
2499 # #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
2500 # #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
2501 # CFLAGS="$CFLAGS -ansi -pendantic"
2502 # CXXFLAGS="$CXXFLAGS -ansi -pendantic"
2505 export PACKAGE VERSION CFLAGS CXXFLAGS
2509 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2510 for ac_t in install-sh install.sh shtool; do
2511 if test -f "$ac_dir/$ac_t"; then
2513 ac_install_sh="$ac_aux_dir/$ac_t -c"
2518 if test -z "$ac_aux_dir"; then
2519 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2522 # These three variables are undocumented and unsupported,
2523 # and are intended to be withdrawn in a future Autoconf release.
2524 # They can cause serious problems if a builder's source tree is in a directory
2525 # whose full name contains unusual characters.
2526 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2527 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2528 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2531 # Make sure we can run config.sub.
2532 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2533 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2536 $as_echo_n "checking build system type... " >&6; }
2537 if test "${ac_cv_build+set}" = set; then :
2538 $as_echo_n "(cached) " >&6
2540 ac_build_alias=$build_alias
2541 test "x$ac_build_alias" = x &&
2542 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2543 test "x$ac_build_alias" = x &&
2544 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2545 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2546 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2550 $as_echo "$ac_cv_build" >&6; }
2551 case $ac_cv_build in
2553 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2556 ac_save_IFS=$IFS; IFS='-'
2562 # Remember, the first character of IFS is used to create $*,
2563 # except with old shells:
2566 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2570 $as_echo_n "checking host system type... " >&6; }
2571 if test "${ac_cv_host+set}" = set; then :
2572 $as_echo_n "(cached) " >&6
2574 if test "x$host_alias" = x; then
2575 ac_cv_host=$ac_cv_build
2577 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2578 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2583 $as_echo "$ac_cv_host" >&6; }
2586 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2589 ac_save_IFS=$IFS; IFS='-'
2595 # Remember, the first character of IFS is used to create $*,
2596 # except with old shells:
2599 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2610 CXXFLAGS="$CXXFLAGS -fno-rtti"
2613 if test -d /opt/local/include && test -d /opt/local/lib; then
2614 CPPFLAGS="${CPPFLAGS} -I/opt/local/include"
2615 LDFLAGS="${LDFLAGS} -L/opt/local/lib"
2617 # Use fink packages if available.
2618 #if test -d /sw/include && test -d /sw/lib; then
2619 # CPPFLAGS="${CPPFLAGS} -I/sw/include"
2620 # LDFLAGS="${LDFLAGS} -L/sw/lib"
2628 ac_cpp='$CPP $CPPFLAGS'
2629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2632 if test -n "$ac_tool_prefix"; then
2633 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2634 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2636 $as_echo_n "checking for $ac_word... " >&6; }
2637 if test "${ac_cv_prog_CC+set}" = set; then :
2638 $as_echo_n "(cached) " >&6
2640 if test -n "$CC"; then
2641 ac_cv_prog_CC="$CC" # Let the user override the test.
2643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647 test -z "$as_dir" && as_dir=.
2648 for ac_exec_ext in '' $ac_executable_extensions; do
2649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2650 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2661 if test -n "$CC"; then
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2663 $as_echo "$CC" >&6; }
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2666 $as_echo "no" >&6; }
2671 if test -z "$ac_cv_prog_CC"; then
2673 # Extract the first word of "gcc", so it can be a program name with args.
2674 set dummy gcc; ac_word=$2
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2676 $as_echo_n "checking for $ac_word... " >&6; }
2677 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2678 $as_echo_n "(cached) " >&6
2680 if test -n "$ac_ct_CC"; then
2681 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687 test -z "$as_dir" && as_dir=.
2688 for ac_exec_ext in '' $ac_executable_extensions; do
2689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2690 ac_cv_prog_ac_ct_CC="gcc"
2691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2700 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2701 if test -n "$ac_ct_CC"; then
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2703 $as_echo "$ac_ct_CC" >&6; }
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2706 $as_echo "no" >&6; }
2709 if test "x$ac_ct_CC" = x; then
2712 case $cross_compiling:$ac_tool_warned in
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2715 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2716 ac_tool_warned=yes ;;
2724 if test -z "$CC"; then
2725 if test -n "$ac_tool_prefix"; then
2726 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2727 set dummy ${ac_tool_prefix}cc; ac_word=$2
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2729 $as_echo_n "checking for $ac_word... " >&6; }
2730 if test "${ac_cv_prog_CC+set}" = set; then :
2731 $as_echo_n "(cached) " >&6
2733 if test -n "$CC"; then
2734 ac_cv_prog_CC="$CC" # Let the user override the test.
2736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2740 test -z "$as_dir" && as_dir=.
2741 for ac_exec_ext in '' $ac_executable_extensions; do
2742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2743 ac_cv_prog_CC="${ac_tool_prefix}cc"
2744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2754 if test -n "$CC"; then
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2756 $as_echo "$CC" >&6; }
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2759 $as_echo "no" >&6; }
2765 if test -z "$CC"; then
2766 # Extract the first word of "cc", so it can be a program name with args.
2767 set dummy cc; ac_word=$2
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2769 $as_echo_n "checking for $ac_word... " >&6; }
2770 if test "${ac_cv_prog_CC+set}" = set; then :
2771 $as_echo_n "(cached) " >&6
2773 if test -n "$CC"; then
2774 ac_cv_prog_CC="$CC" # Let the user override the test.
2777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781 test -z "$as_dir" && as_dir=.
2782 for ac_exec_ext in '' $ac_executable_extensions; do
2783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2784 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2785 ac_prog_rejected=yes
2789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2796 if test $ac_prog_rejected = yes; then
2797 # We found a bogon in the path, so make sure we never use it.
2798 set dummy $ac_cv_prog_CC
2800 if test $# != 0; then
2801 # We chose a different compiler from the bogus one.
2802 # However, it has the same basename, so the bogon will be chosen
2803 # first if we set CC to just the basename; use the full file name.
2805 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2811 if test -n "$CC"; then
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2813 $as_echo "$CC" >&6; }
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2816 $as_echo "no" >&6; }
2821 if test -z "$CC"; then
2822 if test -n "$ac_tool_prefix"; then
2823 for ac_prog in cl.exe
2825 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2826 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2828 $as_echo_n "checking for $ac_word... " >&6; }
2829 if test "${ac_cv_prog_CC+set}" = set; then :
2830 $as_echo_n "(cached) " >&6
2832 if test -n "$CC"; then
2833 ac_cv_prog_CC="$CC" # Let the user override the test.
2835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2839 test -z "$as_dir" && as_dir=.
2840 for ac_exec_ext in '' $ac_executable_extensions; do
2841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2842 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2853 if test -n "$CC"; then
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2855 $as_echo "$CC" >&6; }
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2858 $as_echo "no" >&6; }
2862 test -n "$CC" && break
2865 if test -z "$CC"; then
2867 for ac_prog in cl.exe
2869 # Extract the first word of "$ac_prog", so it can be a program name with args.
2870 set dummy $ac_prog; ac_word=$2
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2872 $as_echo_n "checking for $ac_word... " >&6; }
2873 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2874 $as_echo_n "(cached) " >&6
2876 if test -n "$ac_ct_CC"; then
2877 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883 test -z "$as_dir" && as_dir=.
2884 for ac_exec_ext in '' $ac_executable_extensions; do
2885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2886 ac_cv_prog_ac_ct_CC="$ac_prog"
2887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2896 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2897 if test -n "$ac_ct_CC"; then
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2899 $as_echo "$ac_ct_CC" >&6; }
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2902 $as_echo "no" >&6; }
2906 test -n "$ac_ct_CC" && break
2909 if test "x$ac_ct_CC" = x; then
2912 case $cross_compiling:$ac_tool_warned in
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2915 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2916 ac_tool_warned=yes ;;
2925 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2927 as_fn_error "no acceptable C compiler found in \$PATH
2928 See \`config.log' for more details." "$LINENO" 5; }
2930 # Provide some information about the compiler.
2931 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2934 for ac_option in --version -v -V -qversion; do
2935 { { ac_try="$ac_compiler $ac_option >&5"
2937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2938 *) ac_try_echo=$ac_try;;
2940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2941 $as_echo "$ac_try_echo"; } >&5
2942 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2944 if test -s conftest.err; then
2946 ... rest of stderr output deleted ...
2947 10q' conftest.err >conftest.er1
2948 cat conftest.er1 >&5
2950 rm -f conftest.er1 conftest.err
2951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2952 test $ac_status = 0; }
2955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2956 /* end confdefs.h. */
2966 ac_clean_files_save=$ac_clean_files
2967 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2968 # Try to create an executable without -o first, disregard a.out.
2969 # It will help us diagnose broken compilers, and finding out an intuition
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2972 $as_echo_n "checking whether the C compiler works... " >&6; }
2973 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2975 # The possible output files:
2976 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2979 for ac_file in $ac_files
2982 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2983 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2988 if { { ac_try="$ac_link_default"
2990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2991 *) ac_try_echo=$ac_try;;
2993 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2994 $as_echo "$ac_try_echo"; } >&5
2995 (eval "$ac_link_default") 2>&5
2997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2998 test $ac_status = 0; }; then :
2999 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3000 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3001 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3002 # so that the user can short-circuit this test for compilers unknown to
3004 for ac_file in $ac_files ''
3006 test -f "$ac_file" || continue
3008 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3011 # We found the default executable, but exeext='' is most
3015 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3017 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3019 # We set ac_cv_exeext here because the later test for it is not
3020 # safe: cross compilers may not add the suffix if given an `-o'
3021 # argument, so we may need to know it at that point already.
3022 # Even if this section looks crufty: it has the advantage of
3029 test "$ac_cv_exeext" = no && ac_cv_exeext=
3034 if test -z "$ac_file"; then :
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3036 $as_echo "no" >&6; }
3037 $as_echo "$as_me: failed program was:" >&5
3038 sed 's/^/| /' conftest.$ac_ext >&5
3040 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3041 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3042 { as_fn_set_status 77
3043 as_fn_error "C compiler cannot create executables
3044 See \`config.log' for more details." "$LINENO" 5; }; }
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3047 $as_echo "yes" >&6; }
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3050 $as_echo_n "checking for C compiler default output file name... " >&6; }
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3052 $as_echo "$ac_file" >&6; }
3053 ac_exeext=$ac_cv_exeext
3055 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3056 ac_clean_files=$ac_clean_files_save
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3058 $as_echo_n "checking for suffix of executables... " >&6; }
3059 if { { ac_try="$ac_link"
3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062 *) ac_try_echo=$ac_try;;
3064 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3065 $as_echo "$ac_try_echo"; } >&5
3066 (eval "$ac_link") 2>&5
3068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3069 test $ac_status = 0; }; then :
3070 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3071 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3072 # work properly (i.e., refer to `conftest.exe'), while it won't with
3074 for ac_file in conftest.exe conftest conftest.*; do
3075 test -f "$ac_file" || continue
3077 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3078 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3084 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3085 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3086 as_fn_error "cannot compute suffix of executables: cannot compile and link
3087 See \`config.log' for more details." "$LINENO" 5; }
3089 rm -f conftest conftest$ac_cv_exeext
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3091 $as_echo "$ac_cv_exeext" >&6; }
3093 rm -f conftest.$ac_ext
3094 EXEEXT=$ac_cv_exeext
3096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3097 /* end confdefs.h. */
3102 FILE *f = fopen ("conftest.out", "w");
3103 return ferror (f) || fclose (f) != 0;
3109 ac_clean_files="$ac_clean_files conftest.out"
3110 # Check that the compiler produces executables we can run. If not, either
3111 # the compiler is broken, or we cross compile.
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3113 $as_echo_n "checking whether we are cross compiling... " >&6; }
3114 if test "$cross_compiling" != yes; then
3115 { { ac_try="$ac_link"
3117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3118 *) ac_try_echo=$ac_try;;
3120 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3121 $as_echo "$ac_try_echo"; } >&5
3122 (eval "$ac_link") 2>&5
3124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3125 test $ac_status = 0; }
3126 if { ac_try='./conftest$ac_cv_exeext'
3127 { { case "(($ac_try" in
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3131 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3132 $as_echo "$ac_try_echo"; } >&5
3133 (eval "$ac_try") 2>&5
3135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3136 test $ac_status = 0; }; }; then
3139 if test "$cross_compiling" = maybe; then
3142 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3143 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3144 as_fn_error "cannot run C compiled programs.
3145 If you meant to cross compile, use \`--host'.
3146 See \`config.log' for more details." "$LINENO" 5; }
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3151 $as_echo "$cross_compiling" >&6; }
3153 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3154 ac_clean_files=$ac_clean_files_save
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3156 $as_echo_n "checking for suffix of object files... " >&6; }
3157 if test "${ac_cv_objext+set}" = set; then :
3158 $as_echo_n "(cached) " >&6
3160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3161 /* end confdefs.h. */
3171 rm -f conftest.o conftest.obj
3172 if { { ac_try="$ac_compile"
3174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175 *) ac_try_echo=$ac_try;;
3177 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3178 $as_echo "$ac_try_echo"; } >&5
3179 (eval "$ac_compile") 2>&5
3181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3182 test $ac_status = 0; }; then :
3183 for ac_file in conftest.o conftest.obj conftest.*; do
3184 test -f "$ac_file" || continue;
3186 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3187 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3192 $as_echo "$as_me: failed program was:" >&5
3193 sed 's/^/| /' conftest.$ac_ext >&5
3195 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3196 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3197 as_fn_error "cannot compute suffix of object files: cannot compile
3198 See \`config.log' for more details." "$LINENO" 5; }
3200 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3203 $as_echo "$ac_cv_objext" >&6; }
3204 OBJEXT=$ac_cv_objext
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3207 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3208 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3209 $as_echo_n "(cached) " >&6
3211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3212 /* end confdefs.h. */
3225 if ac_fn_c_try_compile "$LINENO"; then :
3230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3231 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3235 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3236 if test $ac_compiler_gnu = yes; then
3241 ac_test_CFLAGS=${CFLAGS+set}
3242 ac_save_CFLAGS=$CFLAGS
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3244 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3245 if test "${ac_cv_prog_cc_g+set}" = set; then :
3246 $as_echo_n "(cached) " >&6
3248 ac_save_c_werror_flag=$ac_c_werror_flag
3249 ac_c_werror_flag=yes
3252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3253 /* end confdefs.h. */
3263 if ac_fn_c_try_compile "$LINENO"; then :
3267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3268 /* end confdefs.h. */
3278 if ac_fn_c_try_compile "$LINENO"; then :
3281 ac_c_werror_flag=$ac_save_c_werror_flag
3283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3284 /* end confdefs.h. */
3294 if ac_fn_c_try_compile "$LINENO"; then :
3297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3302 ac_c_werror_flag=$ac_save_c_werror_flag
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3305 $as_echo "$ac_cv_prog_cc_g" >&6; }
3306 if test "$ac_test_CFLAGS" = set; then
3307 CFLAGS=$ac_save_CFLAGS
3308 elif test $ac_cv_prog_cc_g = yes; then
3309 if test "$GCC" = yes; then
3315 if test "$GCC" = yes; then
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3322 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3323 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3324 $as_echo_n "(cached) " >&6
3326 ac_cv_prog_cc_c89=no
3328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3329 /* end confdefs.h. */
3332 #include <sys/types.h>
3333 #include <sys/stat.h>
3334 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3335 struct buf { int x; };
3336 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3337 static char *e (p, i)
3343 static char *f (char * (*g) (char **, int), char **p, ...)
3348 s = g (p, va_arg (v,int));
3353 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3354 function prototypes and stuff, but not '\xHH' hex character constants.
3355 These don't provoke an error unfortunately, instead are silently treated
3356 as 'x'. The following induces an error, until -std is added to get
3357 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3358 array size at least. It's necessary to write '\x00'==0 to get something
3359 that's true only with -std. */
3360 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3362 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3363 inside strings and character constants. */
3365 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3367 int test (int i, double x);
3368 struct s1 {int (*f) (int a);};
3369 struct s2 {int (*f) (double a);};
3370 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3376 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3381 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3382 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3384 CC="$ac_save_CC $ac_arg"
3385 if ac_fn_c_try_compile "$LINENO"; then :
3386 ac_cv_prog_cc_c89=$ac_arg
3388 rm -f core conftest.err conftest.$ac_objext
3389 test "x$ac_cv_prog_cc_c89" != "xno" && break
3391 rm -f conftest.$ac_ext
3396 case "x$ac_cv_prog_cc_c89" in
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3399 $as_echo "none needed" >&6; } ;;
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3402 $as_echo "unsupported" >&6; } ;;
3404 CC="$CC $ac_cv_prog_cc_c89"
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3406 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3408 if test "x$ac_cv_prog_cc_c89" != xno; then :
3413 ac_cpp='$CPP $CPPFLAGS'
3414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3419 ac_cpp='$CXXCPP $CPPFLAGS'
3420 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3421 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3422 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3423 if test -z "$CXX"; then
3424 if test -n "$CCC"; then
3427 if test -n "$ac_tool_prefix"; then
3428 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3430 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3431 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3433 $as_echo_n "checking for $ac_word... " >&6; }
3434 if test "${ac_cv_prog_CXX+set}" = set; then :
3435 $as_echo_n "(cached) " >&6
3437 if test -n "$CXX"; then
3438 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444 test -z "$as_dir" && as_dir=.
3445 for ac_exec_ext in '' $ac_executable_extensions; do
3446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3447 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3458 if test -n "$CXX"; then
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3460 $as_echo "$CXX" >&6; }
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3463 $as_echo "no" >&6; }
3467 test -n "$CXX" && break
3470 if test -z "$CXX"; then
3472 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3474 # Extract the first word of "$ac_prog", so it can be a program name with args.
3475 set dummy $ac_prog; ac_word=$2
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3477 $as_echo_n "checking for $ac_word... " >&6; }
3478 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3479 $as_echo_n "(cached) " >&6
3481 if test -n "$ac_ct_CXX"; then
3482 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3488 test -z "$as_dir" && as_dir=.
3489 for ac_exec_ext in '' $ac_executable_extensions; do
3490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3491 ac_cv_prog_ac_ct_CXX="$ac_prog"
3492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3501 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3502 if test -n "$ac_ct_CXX"; then
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3504 $as_echo "$ac_ct_CXX" >&6; }
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3507 $as_echo "no" >&6; }
3511 test -n "$ac_ct_CXX" && break
3514 if test "x$ac_ct_CXX" = x; then
3517 case $cross_compiling:$ac_tool_warned in
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3520 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3521 ac_tool_warned=yes ;;
3529 # Provide some information about the compiler.
3530 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3533 for ac_option in --version -v -V -qversion; do
3534 { { ac_try="$ac_compiler $ac_option >&5"
3536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537 *) ac_try_echo=$ac_try;;
3539 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3540 $as_echo "$ac_try_echo"; } >&5
3541 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3543 if test -s conftest.err; then
3545 ... rest of stderr output deleted ...
3546 10q' conftest.err >conftest.er1
3547 cat conftest.er1 >&5
3549 rm -f conftest.er1 conftest.err
3550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3551 test $ac_status = 0; }
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3555 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3556 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3557 $as_echo_n "(cached) " >&6
3559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3560 /* end confdefs.h. */
3573 if ac_fn_cxx_try_compile "$LINENO"; then :
3578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3579 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3583 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3584 if test $ac_compiler_gnu = yes; then
3589 ac_test_CXXFLAGS=${CXXFLAGS+set}
3590 ac_save_CXXFLAGS=$CXXFLAGS
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3592 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3593 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3594 $as_echo_n "(cached) " >&6
3596 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3597 ac_cxx_werror_flag=yes
3600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3601 /* end confdefs.h. */
3611 if ac_fn_cxx_try_compile "$LINENO"; then :
3612 ac_cv_prog_cxx_g=yes
3615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3616 /* end confdefs.h. */
3626 if ac_fn_cxx_try_compile "$LINENO"; then :
3629 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632 /* end confdefs.h. */
3642 if ac_fn_cxx_try_compile "$LINENO"; then :
3643 ac_cv_prog_cxx_g=yes
3645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3650 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3653 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3654 if test "$ac_test_CXXFLAGS" = set; then
3655 CXXFLAGS=$ac_save_CXXFLAGS
3656 elif test $ac_cv_prog_cxx_g = yes; then
3657 if test "$GXX" = yes; then
3663 if test "$GXX" = yes; then
3670 ac_cpp='$CPP $CPPFLAGS'
3671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports lazy variable declaration" >&5
3679 $as_echo_n "checking whether gcc supports lazy variable declaration... " >&6; }
3681 cat > conftest.c << EOF
3685 int main (int argc, char*argv)
3695 testprog_link='$CC $CPPFLAGS $CFLAGS conftest.c -o conftest${ac_exeext}'
3696 if { (eval echo gcc.2.95.m4:19: \"$testprog_link\") 1>&5; (eval $testprog_link) 2>&5; } && test -s conftest${ac_exeext}; then
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3698 $as_echo "yes" >&6; }
3702 echo "configure: failed program was:" >&5
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3705 $as_echo "no" >&6; }
3710 if test "x$GCC_IS_OK" '=' "x";then
3711 echo "***************************************************"
3712 echo "* Your gcc is too old to compile this!"
3714 echo "* The last version compileable by this compiler is "
3715 echo "* swftools 0.7.0, which you can download from "
3716 echo "* http://www.swftools.org/swftools-0.7.0.tar.gz "
3718 echo "* Newer versions require at least gcc 3.0.0 "
3719 echo "***************************************************"
3723 if test "x$CHECKMEM" '!=' "x";then
3727 #unset ac_cv_prog_CC
3728 #unset ac_cv_prog_CXX
3733 ac_cpp='$CPP $CPPFLAGS'
3734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3738 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3739 # On Suns, sometimes $CPP names a directory.
3740 if test -n "$CPP" && test -d "$CPP"; then
3743 if test -z "$CPP"; then
3744 if test "${ac_cv_prog_CPP+set}" = set; then :
3745 $as_echo_n "(cached) " >&6
3747 # Double quotes because CPP needs to be expanded
3748 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3751 for ac_c_preproc_warn_flag in '' yes
3753 # Use a header file that comes with gcc, so configuring glibc
3754 # with a fresh cross-compiler works.
3755 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3756 # <limits.h> exists even on freestanding compilers.
3757 # On the NeXT, cc -E runs the code through the compiler's parser,
3758 # not just through cpp. "Syntax error" is here to catch this case.
3759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3760 /* end confdefs.h. */
3762 # include <limits.h>
3764 # include <assert.h>
3768 if ac_fn_c_try_cpp "$LINENO"; then :
3771 # Broken: fails on valid input.
3774 rm -f conftest.err conftest.$ac_ext
3776 # OK, works on sane cases. Now check whether nonexistent headers
3777 # can be detected and how.
3778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3779 /* end confdefs.h. */
3780 #include <ac_nonexistent.h>
3782 if ac_fn_c_try_cpp "$LINENO"; then :
3783 # Broken: success on invalid input.
3786 # Passes both tests.
3790 rm -f conftest.err conftest.$ac_ext
3793 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3794 rm -f conftest.err conftest.$ac_ext
3795 if $ac_preproc_ok; then :
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3808 $as_echo "$CPP" >&6; }
3810 for ac_c_preproc_warn_flag in '' yes
3812 # Use a header file that comes with gcc, so configuring glibc
3813 # with a fresh cross-compiler works.
3814 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3815 # <limits.h> exists even on freestanding compilers.
3816 # On the NeXT, cc -E runs the code through the compiler's parser,
3817 # not just through cpp. "Syntax error" is here to catch this case.
3818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3819 /* end confdefs.h. */
3821 # include <limits.h>
3823 # include <assert.h>
3827 if ac_fn_c_try_cpp "$LINENO"; then :
3830 # Broken: fails on valid input.
3833 rm -f conftest.err conftest.$ac_ext
3835 # OK, works on sane cases. Now check whether nonexistent headers
3836 # can be detected and how.
3837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3838 /* end confdefs.h. */
3839 #include <ac_nonexistent.h>
3841 if ac_fn_c_try_cpp "$LINENO"; then :
3842 # Broken: success on invalid input.
3845 # Passes both tests.
3849 rm -f conftest.err conftest.$ac_ext
3852 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3853 rm -f conftest.err conftest.$ac_ext
3854 if $ac_preproc_ok; then :
3857 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3858 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3859 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3860 See \`config.log' for more details." "$LINENO" 5; }
3864 ac_cpp='$CPP $CPPFLAGS'
3865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3870 if test -n "$ac_tool_prefix"; then
3871 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3872 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3874 $as_echo_n "checking for $ac_word... " >&6; }
3875 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3876 $as_echo_n "(cached) " >&6
3878 if test -n "$RANLIB"; then
3879 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3885 test -z "$as_dir" && as_dir=.
3886 for ac_exec_ext in '' $ac_executable_extensions; do
3887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3888 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3898 RANLIB=$ac_cv_prog_RANLIB
3899 if test -n "$RANLIB"; then
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3901 $as_echo "$RANLIB" >&6; }
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3904 $as_echo "no" >&6; }
3909 if test -z "$ac_cv_prog_RANLIB"; then
3910 ac_ct_RANLIB=$RANLIB
3911 # Extract the first word of "ranlib", so it can be a program name with args.
3912 set dummy ranlib; ac_word=$2
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3914 $as_echo_n "checking for $ac_word... " >&6; }
3915 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3916 $as_echo_n "(cached) " >&6
3918 if test -n "$ac_ct_RANLIB"; then
3919 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3925 test -z "$as_dir" && as_dir=.
3926 for ac_exec_ext in '' $ac_executable_extensions; do
3927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3928 ac_cv_prog_ac_ct_RANLIB="ranlib"
3929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3938 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3939 if test -n "$ac_ct_RANLIB"; then
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3941 $as_echo "$ac_ct_RANLIB" >&6; }
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3944 $as_echo "no" >&6; }
3947 if test "x$ac_ct_RANLIB" = x; then
3950 case $cross_compiling:$ac_tool_warned in
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3953 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3954 ac_tool_warned=yes ;;
3956 RANLIB=$ac_ct_RANLIB
3959 RANLIB="$ac_cv_prog_RANLIB"
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3963 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3965 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3966 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3967 $as_echo_n "(cached) " >&6
3969 cat >conftest.make <<\_ACEOF
3972 @echo '@@@%%%=$(MAKE)=@@@%%%'
3974 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3975 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3977 eval ac_cv_prog_make_${ac_make}_set=yes;;
3979 eval ac_cv_prog_make_${ac_make}_set=no;;
3983 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3985 $as_echo "yes" >&6; }
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3989 $as_echo "no" >&6; }
3990 SET_MAKE="MAKE=${MAKE-make}"
3993 # Find a good install program. We prefer a C program (faster),
3994 # so one script is as good as another. But avoid the broken or
3995 # incompatible versions:
3996 # SysV /etc/install, /usr/sbin/install
3997 # SunOS /usr/etc/install
3998 # IRIX /sbin/install
4000 # AmigaOS /C/install, which installs bootblocks on floppy discs
4001 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4002 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4003 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4004 # OS/2's system install, which has a completely different semantic
4005 # ./install, which can be erroneously created by make from ./install.sh.
4006 # Reject install programs that cannot install multiple files.
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4008 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4009 if test -z "$INSTALL"; then
4010 if test "${ac_cv_path_install+set}" = set; then :
4011 $as_echo_n "(cached) " >&6
4013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4017 test -z "$as_dir" && as_dir=.
4018 # Account for people who put trailing slashes in PATH elements.
4019 case $as_dir/ in #((
4020 ./ | .// | /[cC]/* | \
4021 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4022 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4025 # OSF1 and SCO ODT 3.0 have their own names for install.
4026 # Don't use installbsd from OSF since it installs stuff as root
4028 for ac_prog in ginstall scoinst install; do
4029 for ac_exec_ext in '' $ac_executable_extensions; do
4030 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4031 if test $ac_prog = install &&
4032 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4033 # AIX install. It has an incompatible calling convention.
4035 elif test $ac_prog = install &&
4036 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4037 # program-specific install script used by HP pwplus--don't use.
4040 rm -rf conftest.one conftest.two conftest.dir
4041 echo one > conftest.one
4042 echo two > conftest.two
4044 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4045 test -s conftest.one && test -s conftest.two &&
4046 test -s conftest.dir/conftest.one &&
4047 test -s conftest.dir/conftest.two
4049 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4062 rm -rf conftest.one conftest.two conftest.dir
4065 if test "${ac_cv_path_install+set}" = set; then
4066 INSTALL=$ac_cv_path_install
4068 # As a last resort, use the slow shell script. Don't cache a
4069 # value for INSTALL within a source directory, because that will
4070 # break other packages using the cache if that directory is
4071 # removed, or if the value is a relative name.
4072 INSTALL=$ac_install_sh
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4076 $as_echo "$INSTALL" >&6; }
4078 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4079 # It thinks the first close brace ends the variable substitution.
4080 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4082 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4084 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4087 $as_echo_n "checking whether ln -s works... " >&6; }
4089 if test "$LN_S" = "ln -s"; then
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4091 $as_echo "yes" >&6; }
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4094 $as_echo "no, using $LN_S" >&6; }
4097 for ac_prog in gzip uncompress compress
4099 # Extract the first word of "$ac_prog", so it can be a program name with args.
4100 set dummy $ac_prog; ac_word=$2
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4102 $as_echo_n "checking for $ac_word... " >&6; }
4103 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then :
4104 $as_echo_n "(cached) " >&6
4106 if test -n "$UNCOMPRESS"; then
4107 ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
4109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4113 test -z "$as_dir" && as_dir=.
4114 for ac_exec_ext in '' $ac_executable_extensions; do
4115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4116 ac_cv_prog_UNCOMPRESS="$ac_prog"
4117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4126 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
4127 if test -n "$UNCOMPRESS"; then
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNCOMPRESS" >&5
4129 $as_echo "$UNCOMPRESS" >&6; }
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4132 $as_echo "no" >&6; }
4136 test -n "$UNCOMPRESS" && break
4147 if test "x$EXEEXT" = "x.exe";then
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system" >&5
4160 $as_echo_n "checking for target system... " >&6; }
4164 *cygwin* ) CYGWIN=yes;;
4165 *mingw* ) MINGW=yes;;
4169 if test "x$MINGW" = "xyes"; then
4170 #fix for the debian distribution of mingw
4171 if test -x "/usr/i586-mingw32msvc/bin/ar";then
4172 AR="/usr/i586-mingw32msvc/bin/ar"
4174 if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
4175 RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
4177 #fix for the gentoo distribution of mingw
4178 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
4179 AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
4181 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
4182 RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
4184 if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
4185 STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
4191 if test "x${CYGWIN}" = "xyes"; then
4193 $as_echo "#define CYGWIN 1" >>confdefs.h
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cygwin" >&5
4196 $as_echo "cygwin" >&6; }
4198 if test "x${MINGW}" = "xyes"; then
4200 $as_echo "#define MINGW 1" >>confdefs.h
4204 $as_echo "#define WIN32 1" >>confdefs.h
4206 LIBS="$LIBS -lws2_32 -lgdi32"
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: mingw" >&5
4208 $as_echo "mingw" >&6; }
4213 $as_echo "#define LINUX 1" >>confdefs.h
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
4221 if test "x${MINGW}" != "xyes"; then
4224 $as_echo "#define O_BINARY 0" >>confdefs.h
4235 # The following tries to make use of includes and libraries in
4236 # /usr/local, too. Notice: A -I/usr/local/include might break
4237 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
4238 # especially on systems which link /usr/local to /usr, so it has yet
4239 # to be seen how useful this is.
4240 if test -d /usr/local/lib; then
4241 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4243 if test -d /usr/local/include; then
4244 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
4245 # CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4248 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
4249 # if the user has a special prefix (like /opt), there might also be $prefix/lib
4250 # and $prefix/include, which should be included in our search paths for libraries
4252 LDFLAGS="$LDFLAGS -L${libdir}"
4253 CPPFLAGS="$CPPFLAGS -I${includedir}"
4254 # TODO- test whether gcc still works after this
4258 #LDFLAGS "-L/sw/lib" ; CPPFLAGS "-I/sw/include -I/sw/include/lame"
4261 # this must be done after (I believe) AC_PROG_MAKE_SET
4262 if test "x$DEBUG" '!=' "x" -o "x$STRIP" = "x";then
4263 if test "$MACOSX";then
4266 STRIP="@echo debug enabled, not stripping "
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
4274 $as_echo_n "checking for sin in -lm... " >&6; }
4275 if test "${ac_cv_lib_m_sin+set}" = set; then :
4276 $as_echo_n "(cached) " >&6
4278 ac_check_lib_save_LIBS=$LIBS
4280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4281 /* end confdefs.h. */
4283 /* Override any GCC internal prototype to avoid an error.
4284 Use char because int might match the return type of a GCC
4285 builtin and then its argument prototype would still apply. */
4298 if ac_fn_c_try_link "$LINENO"; then :
4303 rm -f core conftest.err conftest.$ac_objext \
4304 conftest$ac_exeext conftest.$ac_ext
4305 LIBS=$ac_check_lib_save_LIBS
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
4308 $as_echo "$ac_cv_lib_m_sin" >&6; }
4309 if test "x$ac_cv_lib_m_sin" = x""yes; then :
4310 cat >>confdefs.h <<_ACEOF
4317 echo "Error: Math library not found.";
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
4323 $as_echo_n "checking for deflate in -lz... " >&6; }
4324 if test "${ac_cv_lib_z_deflate+set}" = set; then :
4325 $as_echo_n "(cached) " >&6
4327 ac_check_lib_save_LIBS=$LIBS
4329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4330 /* end confdefs.h. */
4332 /* Override any GCC internal prototype to avoid an error.
4333 Use char because int might match the return type of a GCC
4334 builtin and then its argument prototype would still apply. */
4347 if ac_fn_c_try_link "$LINENO"; then :
4348 ac_cv_lib_z_deflate=yes
4350 ac_cv_lib_z_deflate=no
4352 rm -f core conftest.err conftest.$ac_objext \
4353 conftest$ac_exeext conftest.$ac_ext
4354 LIBS=$ac_check_lib_save_LIBS
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
4357 $as_echo "$ac_cv_lib_z_deflate" >&6; }
4358 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
4359 cat >>confdefs.h <<_ACEOF
4370 if test "x$ZLIBMISSING" = "xtrue";then
4373 echo "You need zlib to compile swftools"
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDF_open_file in -lpdf" >&5
4379 $as_echo_n "checking for PDF_open_file in -lpdf... " >&6; }
4380 if test "${ac_cv_lib_pdf_PDF_open_file+set}" = set; then :
4381 $as_echo_n "(cached) " >&6
4383 ac_check_lib_save_LIBS=$LIBS
4385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4386 /* end confdefs.h. */
4388 /* Override any GCC internal prototype to avoid an error.
4389 Use char because int might match the return type of a GCC
4390 builtin and then its argument prototype would still apply. */
4394 char PDF_open_file ();
4398 return PDF_open_file ();
4403 if ac_fn_c_try_link "$LINENO"; then :
4404 ac_cv_lib_pdf_PDF_open_file=yes
4406 ac_cv_lib_pdf_PDF_open_file=no
4408 rm -f core conftest.err conftest.$ac_objext \
4409 conftest$ac_exeext conftest.$ac_ext
4410 LIBS=$ac_check_lib_save_LIBS
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pdf_PDF_open_file" >&5
4413 $as_echo "$ac_cv_lib_pdf_PDF_open_file" >&6; }
4414 if test "x$ac_cv_lib_pdf_PDF_open_file" = x""yes; then :
4415 cat >>confdefs.h <<_ACEOF
4416 #define HAVE_LIBPDF 1
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_write_raw_data in -ljpeg" >&5
4426 $as_echo_n "checking for jpeg_write_raw_data in -ljpeg... " >&6; }
4427 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then :
4428 $as_echo_n "(cached) " >&6
4430 ac_check_lib_save_LIBS=$LIBS
4432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4433 /* end confdefs.h. */
4435 /* Override any GCC internal prototype to avoid an error.
4436 Use char because int might match the return type of a GCC
4437 builtin and then its argument prototype would still apply. */
4441 char jpeg_write_raw_data ();
4445 return jpeg_write_raw_data ();
4450 if ac_fn_c_try_link "$LINENO"; then :
4451 ac_cv_lib_jpeg_jpeg_write_raw_data=yes
4453 ac_cv_lib_jpeg_jpeg_write_raw_data=no
4455 rm -f core conftest.err conftest.$ac_objext \
4456 conftest$ac_exeext conftest.$ac_ext
4457 LIBS=$ac_check_lib_save_LIBS
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
4460 $as_echo "$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6; }
4461 if test "x$ac_cv_lib_jpeg_jpeg_write_raw_data" = x""yes; then :
4462 cat >>confdefs.h <<_ACEOF
4463 #define HAVE_LIBJPEG 1
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifOpen in -lungif" >&5
4473 $as_echo_n "checking for DGifOpen in -lungif... " >&6; }
4474 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then :
4475 $as_echo_n "(cached) " >&6
4477 ac_check_lib_save_LIBS=$LIBS
4478 LIBS="-lungif $LIBS"
4479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4480 /* end confdefs.h. */
4482 /* Override any GCC internal prototype to avoid an error.
4483 Use char because int might match the return type of a GCC
4484 builtin and then its argument prototype would still apply. */
4497 if ac_fn_c_try_link "$LINENO"; then :
4498 ac_cv_lib_ungif_DGifOpen=yes
4500 ac_cv_lib_ungif_DGifOpen=no
4502 rm -f core conftest.err conftest.$ac_objext \
4503 conftest$ac_exeext conftest.$ac_ext
4504 LIBS=$ac_check_lib_save_LIBS
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_DGifOpen" >&5
4507 $as_echo "$ac_cv_lib_ungif_DGifOpen" >&6; }
4508 if test "x$ac_cv_lib_ungif_DGifOpen" = x""yes; then :
4509 cat >>confdefs.h <<_ACEOF
4510 #define HAVE_LIBUNGIF 1
4513 LIBS="-lungif $LIBS"
4519 if test "$UNGIFMISSING";then
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifOpen in -lgif" >&5
4522 $as_echo_n "checking for DGifOpen in -lgif... " >&6; }
4523 if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then :
4524 $as_echo_n "(cached) " >&6
4526 ac_check_lib_save_LIBS=$LIBS
4528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4529 /* end confdefs.h. */
4531 /* Override any GCC internal prototype to avoid an error.
4532 Use char because int might match the return type of a GCC
4533 builtin and then its argument prototype would still apply. */
4546 if ac_fn_c_try_link "$LINENO"; then :
4547 ac_cv_lib_gif_DGifOpen=yes
4549 ac_cv_lib_gif_DGifOpen=no
4551 rm -f core conftest.err conftest.$ac_objext \
4552 conftest$ac_exeext conftest.$ac_ext
4553 LIBS=$ac_check_lib_save_LIBS
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifOpen" >&5
4556 $as_echo "$ac_cv_lib_gif_DGifOpen" >&6; }
4557 if test "x$ac_cv_lib_gif_DGifOpen" = x""yes; then :
4558 cat >>confdefs.h <<_ACEOF
4559 #define HAVE_LIBGIF 1
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zzip_file_open in -lzzip" >&5
4570 $as_echo_n "checking for zzip_file_open in -lzzip... " >&6; }
4571 if test "${ac_cv_lib_zzip_zzip_file_open+set}" = set; then :
4572 $as_echo_n "(cached) " >&6
4574 ac_check_lib_save_LIBS=$LIBS
4576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4577 /* end confdefs.h. */
4579 /* Override any GCC internal prototype to avoid an error.
4580 Use char because int might match the return type of a GCC
4581 builtin and then its argument prototype would still apply. */
4585 char zzip_file_open ();
4589 return zzip_file_open ();
4594 if ac_fn_c_try_link "$LINENO"; then :
4595 ac_cv_lib_zzip_zzip_file_open=yes
4597 ac_cv_lib_zzip_zzip_file_open=no
4599 rm -f core conftest.err conftest.$ac_objext \
4600 conftest$ac_exeext conftest.$ac_ext
4601 LIBS=$ac_check_lib_save_LIBS
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zzip_zzip_file_open" >&5
4604 $as_echo "$ac_cv_lib_zzip_zzip_file_open" >&6; }
4605 if test "x$ac_cv_lib_zzip_zzip_file_open" = x""yes; then :
4606 cat >>confdefs.h <<_ACEOF
4607 #define HAVE_LIBZZIP 1
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4618 $as_echo_n "checking target system type... " >&6; }
4619 if test "${ac_cv_target+set}" = set; then :
4620 $as_echo_n "(cached) " >&6
4622 if test "x$target_alias" = x; then
4623 ac_cv_target=$ac_cv_host
4625 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4626 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4631 $as_echo "$ac_cv_target" >&6; }
4632 case $ac_cv_target in
4634 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4636 target=$ac_cv_target
4637 ac_save_IFS=$IFS; IFS='-'
4643 # Remember, the first character of IFS is used to create $*,
4644 # except with old shells:
4647 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4650 # The aliases save the names the user supplied, while $host etc.
4651 # will get canonicalized.
4652 test -n "$target_alias" &&
4653 test "$program_prefix$program_suffix$program_transform_name" = \
4655 program_prefix=${target_alias}-
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for byte order" >&5
4658 $as_echo_n "checking for byte order... " >&6; }
4659 if test "$cross_compiling" = yes; then :
4662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4663 /* end confdefs.h. */
4665 int main (int argc, char *argv[])
4672 if ac_fn_c_try_run "$LINENO"; then :
4677 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4678 conftest.$ac_objext conftest.beam conftest.$ac_ext
4683 if test "x${CROSSCOMPILE}" = "x1"; then
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: we are cross compiling- trying to guess from system type" >&5
4685 $as_echo "we are cross compiling- trying to guess from system type" >&6; }
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for byte order, try 2" >&5
4688 $as_echo_n "checking for byte order, try 2... " >&6; }
4693 *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
4700 if test "x${LITTLEENDIAN}" = "x1"; then
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: little endian" >&5
4702 $as_echo "little endian" >&6; }
4706 if test "x${BIGENDIAN}" = "x1"; then
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: big endian" >&5
4708 $as_echo "big endian" >&6; }
4711 export WORDS_BIGENDIAN
4713 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4716 if test "x${BYTEORDERCHECKOK}" != "x1"; then
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
4718 $as_echo "unknown" >&6; }
4719 echo Byte order could not determined.
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system() can handle command substitution" >&5
4726 $as_echo_n "checking whether system() can handle command substitution... " >&6; }
4727 if test "$cross_compiling" = yes; then :
4730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4731 /* end confdefs.h. */
4734 int main (int argc, char*argv[])
4736 return system("test `touch config.tmp2`");
4740 if ac_fn_c_try_run "$LINENO"; then :
4743 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4744 conftest.$ac_objext conftest.beam conftest.$ac_ext
4748 if test "x${OK}" = "xOK";then
4749 test -f config.tmp2 || OK=
4752 if test "x${CROSSCOMPILE}" = "x1";then
4755 if test "x${OK}" = "xOK";then
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4758 $as_echo "yes" >&6; }
4760 export SYSTEM_BACKTICKS
4762 $as_echo "#define SYSTEM_BACKTICKS 1" >>confdefs.h
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4766 $as_echo "no" >&6; }
4771 test "$program_prefix" != NONE &&
4772 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4773 # Use a double $ so make ignores it.
4774 test "$program_suffix" != NONE &&
4775 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4776 # Double any \ or $.
4777 # By default was `s,x,x', remove it if useless.
4778 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4779 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4782 ac_config_headers="$ac_config_headers config.h"
4785 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4786 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4788 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4789 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
4790 $as_echo_n "(cached) " >&6
4792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4793 /* end confdefs.h. */
4794 #include <sys/types.h>
4806 if ac_fn_c_try_compile "$LINENO"; then :
4807 eval "$as_ac_Header=yes"
4809 eval "$as_ac_Header=no"
4811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4813 eval ac_res=\$$as_ac_Header
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4815 $as_echo "$ac_res" >&6; }
4816 eval as_val=\$$as_ac_Header
4817 if test "x$as_val" = x""yes; then :
4818 cat >>confdefs.h <<_ACEOF
4819 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4822 ac_header_dirent=$ac_hdr; break
4826 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4827 if test $ac_header_dirent = dirent.h; then
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4829 $as_echo_n "checking for library containing opendir... " >&6; }
4830 if test "${ac_cv_search_opendir+set}" = set; then :
4831 $as_echo_n "(cached) " >&6
4833 ac_func_search_save_LIBS=$LIBS
4834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4835 /* end confdefs.h. */
4837 /* Override any GCC internal prototype to avoid an error.
4838 Use char because int might match the return type of a GCC
4839 builtin and then its argument prototype would still apply. */
4852 for ac_lib in '' dir; do
4853 if test -z "$ac_lib"; then
4854 ac_res="none required"
4857 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4859 if ac_fn_c_try_link "$LINENO"; then :
4860 ac_cv_search_opendir=$ac_res
4862 rm -f core conftest.err conftest.$ac_objext \
4864 if test "${ac_cv_search_opendir+set}" = set; then :
4868 if test "${ac_cv_search_opendir+set}" = set; then :
4871 ac_cv_search_opendir=no
4874 LIBS=$ac_func_search_save_LIBS
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4877 $as_echo "$ac_cv_search_opendir" >&6; }
4878 ac_res=$ac_cv_search_opendir
4879 if test "$ac_res" != no; then :
4880 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4886 $as_echo_n "checking for library containing opendir... " >&6; }
4887 if test "${ac_cv_search_opendir+set}" = set; then :
4888 $as_echo_n "(cached) " >&6
4890 ac_func_search_save_LIBS=$LIBS
4891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4892 /* end confdefs.h. */
4894 /* Override any GCC internal prototype to avoid an error.
4895 Use char because int might match the return type of a GCC
4896 builtin and then its argument prototype would still apply. */
4909 for ac_lib in '' x; do
4910 if test -z "$ac_lib"; then
4911 ac_res="none required"
4914 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4916 if ac_fn_c_try_link "$LINENO"; then :
4917 ac_cv_search_opendir=$ac_res
4919 rm -f core conftest.err conftest.$ac_objext \
4921 if test "${ac_cv_search_opendir+set}" = set; then :
4925 if test "${ac_cv_search_opendir+set}" = set; then :
4928 ac_cv_search_opendir=no
4931 LIBS=$ac_func_search_save_LIBS
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4934 $as_echo "$ac_cv_search_opendir" >&6; }
4935 ac_res=$ac_cv_search_opendir
4936 if test "$ac_res" != no; then :
4937 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4945 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4946 if test "${ac_cv_path_GREP+set}" = set; then :
4947 $as_echo_n "(cached) " >&6
4949 if test -z "$GREP"; then
4950 ac_path_GREP_found=false
4951 # Loop through the user's path and test for each of PROGNAME-LIST
4952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4953 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4956 test -z "$as_dir" && as_dir=.
4957 for ac_prog in grep ggrep; do
4958 for ac_exec_ext in '' $ac_executable_extensions; do
4959 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4960 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4961 # Check for GNU ac_path_GREP and select it if it is found.
4962 # Check for GNU $ac_path_GREP
4963 case `"$ac_path_GREP" --version 2>&1` in
4965 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4968 $as_echo_n 0123456789 >"conftest.in"
4971 cat "conftest.in" "conftest.in" >"conftest.tmp"
4972 mv "conftest.tmp" "conftest.in"
4973 cp "conftest.in" "conftest.nl"
4974 $as_echo 'GREP' >> "conftest.nl"
4975 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4976 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4977 as_fn_arith $ac_count + 1 && ac_count=$as_val
4978 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4979 # Best one so far, save it but keep looking for a better one
4980 ac_cv_path_GREP="$ac_path_GREP"
4981 ac_path_GREP_max=$ac_count
4983 # 10*(2^10) chars as input seems more than enough
4984 test $ac_count -gt 10 && break
4986 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4989 $ac_path_GREP_found && break 3
4994 if test -z "$ac_cv_path_GREP"; then
4995 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4998 ac_cv_path_GREP=$GREP
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5003 $as_echo "$ac_cv_path_GREP" >&6; }
5004 GREP="$ac_cv_path_GREP"
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5008 $as_echo_n "checking for egrep... " >&6; }
5009 if test "${ac_cv_path_EGREP+set}" = set; then :
5010 $as_echo_n "(cached) " >&6
5012 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5013 then ac_cv_path_EGREP="$GREP -E"
5015 if test -z "$EGREP"; then
5016 ac_path_EGREP_found=false
5017 # Loop through the user's path and test for each of PROGNAME-LIST
5018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5019 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5022 test -z "$as_dir" && as_dir=.
5023 for ac_prog in egrep; do
5024 for ac_exec_ext in '' $ac_executable_extensions; do
5025 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5026 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5027 # Check for GNU ac_path_EGREP and select it if it is found.
5028 # Check for GNU $ac_path_EGREP
5029 case `"$ac_path_EGREP" --version 2>&1` in
5031 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5034 $as_echo_n 0123456789 >"conftest.in"
5037 cat "conftest.in" "conftest.in" >"conftest.tmp"
5038 mv "conftest.tmp" "conftest.in"
5039 cp "conftest.in" "conftest.nl"
5040 $as_echo 'EGREP' >> "conftest.nl"
5041 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5042 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5043 as_fn_arith $ac_count + 1 && ac_count=$as_val
5044 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5045 # Best one so far, save it but keep looking for a better one
5046 ac_cv_path_EGREP="$ac_path_EGREP"
5047 ac_path_EGREP_max=$ac_count
5049 # 10*(2^10) chars as input seems more than enough
5050 test $ac_count -gt 10 && break
5052 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5055 $ac_path_EGREP_found && break 3
5060 if test -z "$ac_cv_path_EGREP"; then
5061 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5064 ac_cv_path_EGREP=$EGREP
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5070 $as_echo "$ac_cv_path_EGREP" >&6; }
5071 EGREP="$ac_cv_path_EGREP"
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5075 $as_echo_n "checking for ANSI C header files... " >&6; }
5076 if test "${ac_cv_header_stdc+set}" = set; then :
5077 $as_echo_n "(cached) " >&6
5079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5080 /* end confdefs.h. */
5094 if ac_fn_c_try_compile "$LINENO"; then :
5095 ac_cv_header_stdc=yes
5097 ac_cv_header_stdc=no
5099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5101 if test $ac_cv_header_stdc = yes; then
5102 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5104 /* end confdefs.h. */
5108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5109 $EGREP "memchr" >/dev/null 2>&1; then :
5112 ac_cv_header_stdc=no
5118 if test $ac_cv_header_stdc = yes; then
5119 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5121 /* end confdefs.h. */
5125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5126 $EGREP "free" >/dev/null 2>&1; then :
5129 ac_cv_header_stdc=no
5135 if test $ac_cv_header_stdc = yes; then
5136 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5137 if test "$cross_compiling" = yes; then :
5140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5141 /* end confdefs.h. */
5144 #if ((' ' & 0x0FF) == 0x020)
5145 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5146 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5148 # define ISLOWER(c) \
5149 (('a' <= (c) && (c) <= 'i') \
5150 || ('j' <= (c) && (c) <= 'r') \
5151 || ('s' <= (c) && (c) <= 'z'))
5152 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5155 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5160 for (i = 0; i < 256; i++)
5161 if (XOR (islower (i), ISLOWER (i))
5162 || toupper (i) != TOUPPER (i))
5167 if ac_fn_c_try_run "$LINENO"; then :
5170 ac_cv_header_stdc=no
5172 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5173 conftest.$ac_objext conftest.beam conftest.$ac_ext
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5179 $as_echo "$ac_cv_header_stdc" >&6; }
5180 if test $ac_cv_header_stdc = yes; then
5182 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5187 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5188 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5189 inttypes.h stdint.h unistd.h
5191 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5192 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5194 eval as_val=\$$as_ac_Header
5195 if test "x$as_val" = x""yes; then :
5196 cat >>confdefs.h <<_ACEOF
5197 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5205 for ac_header in zlib.h gif_lib.h io.h wchar.h jpeglib.h assert.h signal.h pthread.h sys/stat.h sys/mman.h sys/types.h dirent.h sys/bsdtypes.h sys/ndir.h sys/dir.h ndir.h time.h sys/time.h sys/resource.h pdflib.h zzip/lib.h
5207 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5208 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5209 eval as_val=\$$as_ac_Header
5210 if test "x$as_val" = x""yes; then :
5211 cat >>confdefs.h <<_ACEOF
5212 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5221 cat >>confdefs.h <<_ACEOF
5222 #define PACKAGE "$PACKAGE"
5226 cat >>confdefs.h <<_ACEOF
5227 #define VERSION "$VERSION"
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5237 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5238 if test "${ac_cv_c_const+set}" = set; then :
5239 $as_echo_n "(cached) " >&6
5241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5242 /* end confdefs.h. */
5247 /* FIXME: Include the comments suggested by Paul. */
5249 /* Ultrix mips cc rejects this. */
5250 typedef int charset[2];
5252 /* SunOS 4.1.1 cc rejects this. */
5253 char const *const *pcpcc;
5255 /* NEC SVR4.0.2 mips cc rejects this. */
5256 struct point {int x, y;};
5257 static struct point const zero = {0,0};
5258 /* AIX XL C 1.02.0.0 rejects this.
5259 It does not let you subtract one const X* pointer from another in
5260 an arm of an if-expression whose if-part is not a constant
5262 const char *g = "string";
5263 pcpcc = &g + (g ? g-g : 0);
5264 /* HPUX 7.0 cc rejects these. */
5266 ppc = (char**) pcpcc;
5267 pcpcc = (char const *const *) ppc;
5268 { /* SCO 3.2v4 cc rejects this. */
5270 char const *s = 0 ? (char *) 0 : (char const *) 0;
5275 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5277 const int *foo = &x[0];
5280 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5281 typedef const int *iptr;
5285 { /* AIX XL C 1.02.0.0 rejects this saying
5286 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5287 struct s { int j; const int *ap[3]; };
5288 struct s *b; b->j = 5;
5290 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5294 return !cs[0] && !zero.x;
5301 if ac_fn_c_try_compile "$LINENO"; then :
5306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5309 $as_echo "$ac_cv_c_const" >&6; }
5310 if test $ac_cv_c_const = no; then
5312 $as_echo "#define const /**/" >>confdefs.h
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5317 $as_echo_n "checking for inline... " >&6; }
5318 if test "${ac_cv_c_inline+set}" = set; then :
5319 $as_echo_n "(cached) " >&6
5322 for ac_kw in inline __inline__ __inline; do
5323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5324 /* end confdefs.h. */
5327 static $ac_kw foo_t static_foo () {return 0; }
5328 $ac_kw foo_t foo () {return 0; }
5332 if ac_fn_c_try_compile "$LINENO"; then :
5333 ac_cv_c_inline=$ac_kw
5335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5336 test "$ac_cv_c_inline" != no && break
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5341 $as_echo "$ac_cv_c_inline" >&6; }
5343 case $ac_cv_c_inline in
5346 case $ac_cv_c_inline in
5348 *) ac_val=$ac_cv_c_inline;;
5350 cat >>confdefs.h <<_ACEOF
5352 #define inline $ac_val
5358 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5359 if test "x$ac_cv_type_off_t" = x""yes; then :
5363 cat >>confdefs.h <<_ACEOF
5364 #define off_t long int
5369 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5370 if test "x$ac_cv_type_size_t" = x""yes; then :
5374 cat >>confdefs.h <<_ACEOF
5375 #define size_t unsigned int
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5381 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5382 if test "${ac_cv_struct_tm+set}" = set; then :
5383 $as_echo_n "(cached) " >&6
5385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5386 /* end confdefs.h. */
5387 #include <sys/types.h>
5394 int *p = &tm.tm_sec;
5400 if ac_fn_c_try_compile "$LINENO"; then :
5401 ac_cv_struct_tm=time.h
5403 ac_cv_struct_tm=sys/time.h
5405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5408 $as_echo "$ac_cv_struct_tm" >&6; }
5409 if test $ac_cv_struct_tm = sys/time.h; then
5411 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5415 ac_fn_c_check_type "$LINENO" "boolean" "ac_cv_type_boolean" "$ac_includes_default"
5416 if test "x$ac_cv_type_boolean" = x""yes; then :
5420 cat >>confdefs.h <<_ACEOF
5426 for ac_func in popen wcschr wcsdup mkstemp stat mmap lrand48 rand srand48 srand bcopy bzero time getrusage mallinfo open64
5428 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5429 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5430 eval as_val=\$$as_ac_var
5431 if test "x$as_val" = x""yes; then :
5432 cat >>confdefs.h <<_ACEOF
5433 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5440 # The cast to long int works around a bug in the HP C Compiler
5441 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5442 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5443 # This bug is HP SR number 8606223364.
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5
5445 $as_echo_n "checking size of signed char... " >&6; }
5446 if test "${ac_cv_sizeof_signed_char+set}" = set; then :
5447 $as_echo_n "(cached) " >&6
5449 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char" "$ac_includes_default"; then :
5452 if test "$ac_cv_type_signed_char" = yes; then
5453 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5455 { as_fn_set_status 77
5456 as_fn_error "cannot compute sizeof (signed char)
5457 See \`config.log' for more details." "$LINENO" 5; }; }
5459 ac_cv_sizeof_signed_char=0
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5
5465 $as_echo "$ac_cv_sizeof_signed_char" >&6; }
5469 cat >>confdefs.h <<_ACEOF
5470 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
5474 # The cast to long int works around a bug in the HP C Compiler
5475 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5476 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5477 # This bug is HP SR number 8606223364.
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
5479 $as_echo_n "checking size of signed short... " >&6; }
5480 if test "${ac_cv_sizeof_signed_short+set}" = set; then :
5481 $as_echo_n "(cached) " >&6
5483 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short" "$ac_includes_default"; then :
5486 if test "$ac_cv_type_signed_short" = yes; then
5487 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5488 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5489 { as_fn_set_status 77
5490 as_fn_error "cannot compute sizeof (signed short)
5491 See \`config.log' for more details." "$LINENO" 5; }; }
5493 ac_cv_sizeof_signed_short=0
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
5499 $as_echo "$ac_cv_sizeof_signed_short" >&6; }
5503 cat >>confdefs.h <<_ACEOF
5504 #define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
5508 # The cast to long int works around a bug in the HP C Compiler
5509 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5510 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5511 # This bug is HP SR number 8606223364.
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed" >&5
5513 $as_echo_n "checking size of signed... " >&6; }
5514 if test "${ac_cv_sizeof_signed+set}" = set; then :
5515 $as_echo_n "(cached) " >&6
5517 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed))" "ac_cv_sizeof_signed" "$ac_includes_default"; then :
5520 if test "$ac_cv_type_signed" = yes; then
5521 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5522 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5523 { as_fn_set_status 77
5524 as_fn_error "cannot compute sizeof (signed)
5525 See \`config.log' for more details." "$LINENO" 5; }; }
5527 ac_cv_sizeof_signed=0
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed" >&5
5533 $as_echo "$ac_cv_sizeof_signed" >&6; }
5537 cat >>confdefs.h <<_ACEOF
5538 #define SIZEOF_SIGNED $ac_cv_sizeof_signed
5542 # The cast to long int works around a bug in the HP C Compiler
5543 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5544 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5545 # This bug is HP SR number 8606223364.
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
5547 $as_echo_n "checking size of signed long long... " >&6; }
5548 if test "${ac_cv_sizeof_signed_long_long+set}" = set; then :
5549 $as_echo_n "(cached) " >&6
5551 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long" "$ac_includes_default"; then :
5554 if test "$ac_cv_type_signed_long_long" = yes; then
5555 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5556 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5557 { as_fn_set_status 77
5558 as_fn_error "cannot compute sizeof (signed long long)
5559 See \`config.log' for more details." "$LINENO" 5; }; }
5561 ac_cv_sizeof_signed_long_long=0
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
5567 $as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
5571 cat >>confdefs.h <<_ACEOF
5572 #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
5576 # The cast to long int works around a bug in the HP C Compiler
5577 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5578 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5579 # This bug is HP SR number 8606223364.
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
5581 $as_echo_n "checking size of void*... " >&6; }
5582 if test "${ac_cv_sizeof_voidp+set}" = set; then :
5583 $as_echo_n "(cached) " >&6
5585 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
5588 if test "$ac_cv_type_voidp" = yes; then
5589 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5590 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5591 { as_fn_set_status 77
5592 as_fn_error "cannot compute sizeof (void*)
5593 See \`config.log' for more details." "$LINENO" 5; }; }
5595 ac_cv_sizeof_voidp=0
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
5601 $as_echo "$ac_cv_sizeof_voidp" >&6; }
5605 cat >>confdefs.h <<_ACEOF
5606 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
5613 # Extract the first word of "freetype-config", so it can be a program name with args.
5614 set dummy freetype-config; ac_word=$2
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5616 $as_echo_n "checking for $ac_word... " >&6; }
5617 if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then :
5618 $as_echo_n "(cached) " >&6
5620 case $FREETYPE_CONFIG in
5622 ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
5625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5626 as_dummy=""$PATH:/usr/local/bin:/sw/bin:/opt/local/bin""
5627 for as_dir in $as_dummy
5630 test -z "$as_dir" && as_dir=.
5631 for ac_exec_ext in '' $ac_executable_extensions; do
5632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5633 ac_cv_path_FREETYPE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5644 FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
5645 if test -n "$FREETYPE_CONFIG"; then
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_CONFIG" >&5
5647 $as_echo "$FREETYPE_CONFIG" >&6; }
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5650 $as_echo "no" >&6; }
5655 OLDCPPFLAGS="${CPPFLAGS}"
5657 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
5658 CPPFLAGS="$CPPFLAGS "`$FREETYPE_CONFIG --cflags`
5659 else if test -d /usr/include/freetype2; then
5660 CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
5661 else if test -d /usr/local/include/freetype2; then
5662 CPPFLAGS="$CPPFLAGS -I/usr/local/include/freetype2"
5667 if test "x${FREETYPE_CONFIG}" '=' "x";then
5668 # if we didn't find the freetype-config program, we won't
5669 # know where the libs are expected to be. So just blindly
5670 # try to link against them.
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
5672 $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
5673 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
5674 $as_echo_n "(cached) " >&6
5676 ac_check_lib_save_LIBS=$LIBS
5677 LIBS="-lfreetype $LIBS"
5678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5679 /* end confdefs.h. */
5681 /* Override any GCC internal prototype to avoid an error.
5682 Use char because int might match the return type of a GCC
5683 builtin and then its argument prototype would still apply. */
5687 char FT_Init_FreeType ();
5691 return FT_Init_FreeType ();
5696 if ac_fn_c_try_link "$LINENO"; then :
5697 ac_cv_lib_freetype_FT_Init_FreeType=yes
5699 ac_cv_lib_freetype_FT_Init_FreeType=no
5701 rm -f core conftest.err conftest.$ac_objext \
5702 conftest$ac_exeext conftest.$ac_ext
5703 LIBS=$ac_check_lib_save_LIBS
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
5706 $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
5707 if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
5713 for ac_header in ft2build.h
5715 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
5716 if test "x$ac_cv_header_ft2build_h" = x""yes; then :
5717 cat >>confdefs.h <<_ACEOF
5718 #define HAVE_FT2BUILD_H 1
5725 if test "x${HAVE_FT2BUILD_H}" '=' "x";then
5726 for ac_header in freetype/freetype.h
5728 ac_fn_c_check_header_mongrel "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$ac_includes_default"
5729 if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then :
5730 cat >>confdefs.h <<_ACEOF
5731 #define HAVE_FREETYPE_FREETYPE_H 1
5733 HAVE_FREETYPE_FREETYPE_H=1
5740 if test "x${HAVE_LIB_FREETYPE}" '!=' "x" -o \
5741 "x${FREETYPE_CONFIG}" '!=' "x";then
5742 if test "x${HAVE_FREETYPE_FREETYPE_H}" '!=' "x";then
5745 if test "x${HAVE_FT2BUILD_H}" '!=' "x";then
5750 if test "x${HAVE_FREETYPE}" = "x1"; then
5751 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
5752 LIBS="$LIBS "`$FREETYPE_CONFIG --libs`
5754 LIBS="$LIBS -lfreetype"
5757 if test "x${HAVE_FT2BUILD_H}" = "x1"; then
5758 HAVE_FT2BUILD_H_DEFINE='#define HAVE_FT2BUILD_H'
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the freetype test program" >&5
5762 $as_echo_n "checking whether we can compile the freetype test program... " >&6; }
5764 cat > conftest.c << EOF
5765 $HAVE_FT2BUILD_H_DEFINE
5767 #ifdef HAVE_FT2BUILD_H
5768 #include <ft2build.h>
5769 #include FT_FREETYPE_H
5772 #include FT_SFNT_NAMES_H
5773 #include FT_TRUETYPE_IDS_H
5774 #include FT_OUTLINE_H
5776 #include <freetype/freetype.h>
5777 #include <freetype/ftglyph.h>
5778 #include <freetype/ftsizes.h>
5779 #include <freetype/ftsnames.h>
5780 #include <freetype/ttnameid.h>
5781 #include <freetype/ftoutln.h>
5786 FT_Library ftlibrary;
5798 FT_Init_FreeType(&ftlibrary);
5799 FT_New_Face(ftlibrary, "filename", 0, &face);
5800 i = face->num_glyphs - 1;
5801 italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
5802 bold = face->style_flags&FT_STYLE_FLAG_BOLD;
5803 FT_Get_Postscript_Name(face);
5804 FT_Get_Char_Index(face, 33);
5805 FT_Get_First_Char(face, &i);
5806 FT_Get_Next_Char(face, 33, &i);
5807 if(FT_HAS_GLYPH_NAMES(face)) {
5808 FT_Get_Glyph_Name(face, 33, name, 127);
5810 FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
5811 FT_Get_Glyph(face->glyph, &glyph);
5812 FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
5813 FT_Done_Glyph(glyph);
5815 FT_Done_FreeType(ftlibrary);
5820 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
5821 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5823 $as_echo "yes" >&6; }
5825 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
5828 $as_echo "#define HAVE_FREETYPE_FREETYPE_H 1" >>confdefs.h
5831 $as_echo "#define USE_FREETYPE 1" >>confdefs.h
5834 echo "configure: failed program was:" >&5
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5838 $as_echo "no" >&6; }
5843 # if the above didn't work out, reset all changes to the compiler variables.
5844 if test "x${HAVE_FREETYPE}" '!=' "x1"; then
5845 CPPFLAGS=$OLDCPPFLAGS
5851 OLDCPPFLAGS="${CPPFLAGS}"
5854 if test -d /usr/include/fontconfig; then
5855 CPPFLAGS="$CPPFLAGS -I/usr/include/fontconfig"
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FcInit in -lfontconfig" >&5
5859 $as_echo_n "checking for FcInit in -lfontconfig... " >&6; }
5860 if test "${ac_cv_lib_fontconfig_FcInit+set}" = set; then :
5861 $as_echo_n "(cached) " >&6
5863 ac_check_lib_save_LIBS=$LIBS
5864 LIBS="-lfontconfig $LIBS"
5865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5866 /* end confdefs.h. */
5868 /* Override any GCC internal prototype to avoid an error.
5869 Use char because int might match the return type of a GCC
5870 builtin and then its argument prototype would still apply. */
5883 if ac_fn_c_try_link "$LINENO"; then :
5884 ac_cv_lib_fontconfig_FcInit=yes
5886 ac_cv_lib_fontconfig_FcInit=no
5888 rm -f core conftest.err conftest.$ac_objext \
5889 conftest$ac_exeext conftest.$ac_ext
5890 LIBS=$ac_check_lib_save_LIBS
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fontconfig_FcInit" >&5
5893 $as_echo "$ac_cv_lib_fontconfig_FcInit" >&6; }
5894 if test "x$ac_cv_lib_fontconfig_FcInit" = x""yes; then :
5895 HAVE_LIB_FONTCONFIG=1
5898 for ac_header in fontconfig.h
5900 ac_fn_c_check_header_mongrel "$LINENO" "fontconfig.h" "ac_cv_header_fontconfig_h" "$ac_includes_default"
5901 if test "x$ac_cv_header_fontconfig_h" = x""yes; then :
5902 cat >>confdefs.h <<_ACEOF
5903 #define HAVE_FONTCONFIG_H 1
5911 if test "x${HAVE_LIB_FONTCONFIG}" != "x";then
5912 if test "x${HAVE_FONTCONFIG_H}" != "x";then
5917 if test "x${HAVE_FONTCONFIG}" = "x1"; then
5918 LIBS="$LIBS -lfontconfig"
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the fontconfig test program" >&5
5920 $as_echo_n "checking whether we can compile the fontconfig test program... " >&6; }
5922 if (echo $LIBS | grep lfreetype >/dev/null 2>&1); then
5923 #move freetype library to the end of libraries, otherwise fontconfig
5925 LIBS=`echo $LIBS | sed -e 's/-lfreetype//g' -e 's/$/ -lfreetype/'`
5928 cat > conftest.c << EOF
5930 #include <fontconfig.h>
5934 FcPattern *pattern, *match;
5937 char*s1="abc",*s2="ABC";
5940 pattern = FcPatternBuild(0, FC_FAMILY, FcTypeString, "", 0);
5941 FcPatternAddInteger(pattern, FC_SLANT, FC_SLANT_ITALIC);
5942 FcPatternAddInteger(pattern, FC_WEIGHT, FC_WEIGHT_BOLD);
5944 FcConfig*c = FcConfigCreate();
5945 FcConfigParseAndLoad(c, (FcChar8*)"", 1);
5946 FcConfigBuildFonts(c);
5947 FcConfigSetCurrent(c);
5949 FcFontSet * set = FcConfigGetFonts(c, FcSetSystem);
5950 FcFontSetDestroy(set);
5952 FcConfigSubstitute(0, pattern, FcMatchPattern);
5953 FcDefaultSubstitute(pattern);
5954 match = FcFontMatch(0, pattern, &result);
5955 FcPatternGetString(match, "family", 0, &v) == FcResultMatch;
5956 FcPatternGetBool(match, "family", 0, &v) == FcResultMatch;
5957 FcPatternPrint(pattern);
5958 FcPatternDestroy(pattern);
5959 FcPatternDestroy(match);
5965 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
5966 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5968 $as_echo "yes" >&6; }
5970 $as_echo "#define HAVE_FONTCONFIG 1" >>confdefs.h
5973 echo "configure: failed program was:" >&5
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5977 $as_echo "no" >&6; }
5982 # if the above didn't work out, reset all changes to the compiler variables.
5983 if test "x${HAVE_FONTCONFIG}" "!=" "x1"; then
5984 CPPFLAGS=$OLDCPPFLAGS
5990 OLDCPPFLAGS="${CPPFLAGS}"
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_plan_dft_r2c_2d in -lfftw3" >&5
5994 $as_echo_n "checking for fftw_plan_dft_r2c_2d in -lfftw3... " >&6; }
5995 if test "${ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d+set}" = set; then :
5996 $as_echo_n "(cached) " >&6
5998 ac_check_lib_save_LIBS=$LIBS
5999 LIBS="-lfftw3 $LIBS"
6000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6001 /* end confdefs.h. */
6003 /* Override any GCC internal prototype to avoid an error.
6004 Use char because int might match the return type of a GCC
6005 builtin and then its argument prototype would still apply. */
6009 char fftw_plan_dft_r2c_2d ();
6013 return fftw_plan_dft_r2c_2d ();
6018 if ac_fn_c_try_link "$LINENO"; then :
6019 ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d=yes
6021 ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d=no
6023 rm -f core conftest.err conftest.$ac_objext \
6024 conftest$ac_exeext conftest.$ac_ext
6025 LIBS=$ac_check_lib_save_LIBS
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d" >&5
6028 $as_echo "$ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d" >&6; }
6029 if test "x$ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d" = x""yes; then :
6033 for ac_header in fftw3.h
6035 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
6036 if test "x$ac_cv_header_fftw3_h" = x""yes; then :
6037 cat >>confdefs.h <<_ACEOF
6038 #define HAVE_FFTW3_H 1
6046 if test "x${HAVE_LIBFFTW3}" != "x";then
6047 if test "x${HAVE_FFTW3_H}" != "x";then
6052 if test "x${HAVE_FFTW3}" = "x1"; then
6053 LIBS="$LIBS -lfftw3"
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the fftw3 test program" >&5
6055 $as_echo_n "checking whether we can compile the fftw3 test program... " >&6; }
6057 cat > conftest.c << EOF
6063 fftw_plan plan = fftw_plan_dft_2d(600, 800, (fftw_complex*)data, (fftw_complex*)data, FFTW_FORWARD, FFTW_ESTIMATE);
6064 plan = fftw_plan_dft_r2c_2d(600, 800, (double*)data, (fftw_complex*)data, FFTW_ESTIMATE);
6065 plan = fftw_plan_dft_c2r_2d(600, 800, (fftw_complex*)data, (double*)data, FFTW_ESTIMATE);
6067 fftw_destroy_plan(plan);
6071 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
6072 if { (eval echo fftw3.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6074 $as_echo "yes" >&6; }
6076 $as_echo "#define HAVE_FFTW3 1" >>confdefs.h
6079 echo "configure: failed program was:" >&5
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6083 $as_echo "no" >&6; }
6088 # if the above didn't work out, reset all changes to the compiler variables.
6089 if test "x${HAVE_FFTW3}" "!=" "x1"; then
6090 CPPFLAGS=$OLDCPPFLAGS
6096 # if test "$HAVE_OPENGL";then
6097 # DEVICE_OPENGL='devices/opengl.$(O)'
6098 # AC_SUBST(DEVICE_OPENGL)
6104 if test "x${DISABLE_LAME}" = "xtrue"; then
6105 echo "*" Disabling lame support...
6107 # old lame code at lib/lame
6108 if test -f lib/lame/Makefile.in; then
6109 lame_in_source='$(lame_objects)'
6110 lame_makefile="lib/lame/Makefile"
6111 CPPFLAGS="$CPPFLAGS -Ilame -Ilib/lame"
6113 $as_echo "#define HAVE_LAME 1" >>confdefs.h
6116 if test -d /usr/include/lame; then
6117 CPPFLAGS="$CPPFLAGS -I /usr/include/lame"
6119 if test -d /usr/local/include/lame; then
6120 CPPFLAGS="$CPPFLAGS -I /usr/local/include/lame"
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lame_init in -lmp3lame" >&5
6124 $as_echo_n "checking for lame_init in -lmp3lame... " >&6; }
6125 if test "${ac_cv_lib_mp3lame_lame_init+set}" = set; then :
6126 $as_echo_n "(cached) " >&6
6128 ac_check_lib_save_LIBS=$LIBS
6129 LIBS="-lmp3lame $LIBS"
6130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6131 /* end confdefs.h. */
6133 /* Override any GCC internal prototype to avoid an error.
6134 Use char because int might match the return type of a GCC
6135 builtin and then its argument prototype would still apply. */
6143 return lame_init ();
6148 if ac_fn_c_try_link "$LINENO"; then :
6149 ac_cv_lib_mp3lame_lame_init=yes
6151 ac_cv_lib_mp3lame_lame_init=no
6153 rm -f core conftest.err conftest.$ac_objext \
6154 conftest$ac_exeext conftest.$ac_ext
6155 LIBS=$ac_check_lib_save_LIBS
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp3lame_lame_init" >&5
6158 $as_echo "$ac_cv_lib_mp3lame_lame_init" >&6; }
6159 if test "x$ac_cv_lib_mp3lame_lame_init" = x""yes; then :
6160 cat >>confdefs.h <<_ACEOF
6161 #define HAVE_LIBMP3LAME 1
6164 LIBS="-lmp3lame $LIBS"
6171 for ac_header in lame.h
6173 ac_fn_c_check_header_mongrel "$LINENO" "lame.h" "ac_cv_header_lame_h" "$ac_includes_default"
6174 if test "x$ac_cv_header_lame_h" = x""yes; then :
6175 cat >>confdefs.h <<_ACEOF
6176 #define HAVE_LAME_H 1
6183 if test "x$NO_LIBMP3LAME" "!=" "x1" -a "x$HASLAMEHEADER" '!=' "x";then
6184 $as_echo "#define HAVE_LAME 1" >>confdefs.h
6191 splash_in_source='$(splash_objects)'
6192 xpdf_in_source='$(xpdf_objects)'
6198 # ------------------------------------------------------------------
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the filesystem normalizes file names" >&5
6202 $as_echo_n "checking whether the filesystem normalizes file names... " >&6; }
6204 echo test1 > __abcdefghijklmnopqrstuvwxyz.txt
6205 echo test2 > __ABCDEFGHIJKLMNOPQRSTUVWXYZ.txt
6206 if test `cat __abcdefghijklmnopqrstuvwxyz.txt` = "test2";then
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6208 $as_echo "yes" >&6; }
6210 $as_echo "#define LOWERCASE_UPPERCASE 1" >>confdefs.h
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6214 $as_echo "no" >&6; }
6217 rm -f __abcdefghijklmnopqrstuvwxyz.txt
6218 rm -f __ABCDEFGHIJKLMNOPQRSTUVWXYZ.txt
6222 for ac_prog in avifile-config
6224 # Extract the first word of "$ac_prog", so it can be a program name with args.
6225 set dummy $ac_prog; ac_word=$2
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6227 $as_echo_n "checking for $ac_word... " >&6; }
6228 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then :
6229 $as_echo_n "(cached) " >&6
6231 if test -n "$AVIFILE_CONFIG"; then
6232 ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
6234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6238 test -z "$as_dir" && as_dir=.
6239 for ac_exec_ext in '' $ac_executable_extensions; do
6240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6241 ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
6242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6251 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
6252 if test -n "$AVIFILE_CONFIG"; then
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AVIFILE_CONFIG" >&5
6254 $as_echo "$AVIFILE_CONFIG" >&6; }
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6257 $as_echo "no" >&6; }
6261 test -n "$AVIFILE_CONFIG" && break
6265 if test "x$AVIFILE_CONFIG" '!=' "x";then
6266 OLDCPPFLAGS="$CPPFLAGS"
6267 # temporarily add avifile paths to CPPFLAGS...
6268 CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
6269 for ac_header in avifile/version.h version.h
6271 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6272 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6273 eval as_val=\$$as_ac_Header
6274 if test "x$as_val" = x""yes; then :
6275 cat >>confdefs.h <<_ACEOF
6276 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6284 CPPFLAGS="$OLDCPPFLAGS"
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the avifile test program" >&5
6288 $as_echo_n "checking whether we can compile the avifile test program... " >&6; }
6290 if test "x${ac_cv_header_version_h}" '=' "xyes";then
6291 HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
6293 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
6294 HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
6297 cat > conftest.cpp << EOF
6299 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
6300 // so we have to introduce them this way
6301 $HAVE_VERSION_H_DEFINE
6302 $HAVE_AVIFILE_VERSION_H_DEFINE
6304 #ifdef HAVE_VERSION_H
6305 #include <version.h>
6307 #ifdef HAVE_AVIFILE_VERSION_H
6308 #include <avifile/version.h>
6311 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
6312 #include <avifile.h>
6313 #include <aviplay.h>
6314 #include <avm_fourcc.h>
6315 #include <avm_creators.h>
6316 #include <StreamInfo.h>
6319 #include <avifile.h>
6320 #include <aviplay.h>
6321 #include <aviutil.h>
6323 #define Height height
6330 IAviReadFile* player;
6331 IAviReadStream* astream;
6332 IAviReadStream* vstream;
6333 player = CreateIAviReadFile(0);
6334 astream = player->GetStream(0, AviStream::Audio);
6335 vstream = player->GetStream(0, AviStream::Video);
6336 vstream -> StartStreaming();
6337 astream -> StartStreaming();
6340 player->GetFileHeader(&head);
6341 head.dwMicroSecPerFrame;
6346 head.dwMicroSecPerFrame;
6347 astream->GetEndPos(),
6348 astream->GetEndTime());
6349 player->StreamCount();
6351 StreamInfo*audioinfo;
6352 StreamInfo*videoinfo;
6353 audioinfo = astream->GetStreamInfo();
6354 videoinfo = vstream->GetStreamInfo();
6355 videoinfo->GetVideoWidth();
6356 videoinfo->GetVideoHeight();
6357 audioinfo->GetAudioSamplesPerSec();
6358 videoinfo->GetFps();
6360 CImage*img = vstream->GetFrame();
6367 astream->GetAudioFormatInfo(&wave,0);
6369 astream->ReadFrames(0,0,0,a,b);
6371 int main (int argc, char*argv)
6377 if test "x$AVIFILE_CONFIG" '!=' "x";then
6378 AVIFILE_LIBS=`$AVIFILE_CONFIG --libs`
6379 AVIFILE_CFLAGS=`$AVIFILE_CONFIG --cflags`
6380 avifile_link='$CXX $CPPFLAGS $CXXFLAGS $AVIFILE_CFLAGS conftest.cpp $AVIFILE_LIBS -o conftest${ac_exeext}'
6381 if { (eval echo avi2swf.m4:71: \"$avifile_link\") 1>&5; (eval $avifile_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6383 $as_echo "yes" >&6; }
6387 $as_echo "#define AVIFILE true" >>confdefs.h
6390 echo "configure: failed program was:" >&5
6391 cat conftest.cpp >&5
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6393 $as_echo "no" >&6; }
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6397 $as_echo "no" >&6; }
6401 if test "x${AVIFILE}" = "xtrue"; then
6402 VIDEO_LIBS="$VIDEO_LIBS $AVIFILE_LIBS"
6403 VIDEO_CFLAGS="$VIDEO_CFLAGS $AVIFILE_CFLAGS"
6405 $as_echo "#define HAVE_AVIFILE 1" >>confdefs.h
6409 if test "x${WIN32}" != "x"; then
6410 #AC_CHECK_LIB(avifil32, AVIFileInit,AVIFIL32=true)
6411 #if test "x${AVIFIL32}" != "x"; then
6412 # VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
6414 VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
6420 # ------------------------------------------------------------------
6422 if test "x${UNCOMPRESS}" = "xgzip"; then
6424 $as_echo "#define USE_GZIP 1" >>confdefs.h
6429 # ------------------------------------------------------------------
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python.h" >&5
6433 $as_echo_n "checking for Python.h... " >&6; }
6435 if test "x$PYTHON_LIB" '!=' "x" -a "x$PYTHON_INCLUDES" '!=' "x";then
6438 if test "x$PYTHON_LIB" '!=' "x" -o "x$PYTHON_INCLUDES" '!=' "x";then
6439 echo "Set both PYTHON_LIB and PYTHON_INCLUDES, or none at all"
6441 # iterate through version 2.2 to 2.6
6442 for v in 2 3 4 5 6; do
6444 if test -f "/usr/include/python2.$v/Python.h";then
6446 PYTHON_LIB="-lpython$PY_VERSION"
6447 if test -f "/usr/lib/python2.$v/site-packages/PIL/_imaging.so";then
6448 PYTHON_LIB2="$PYTHON_LIB /usr/lib/python2.$v/site-packages/PIL/_imaging.so"
6449 HAVE_PYTHON_IMAGING_LIB=1
6451 PYTHON_LIB2="$PYTHON_LIB"
6453 PYTHON_INCLUDES="-I/usr/include/python$PY_VERSION"
6455 elif test -f "/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/Python.h";then
6457 PYTHON_LIB="-framework Python"
6458 if test -f "/Library/Frameworks/Python.framework/Versions/2.$v/site-packages/PIL/_imaging.so";then
6459 PYTHON_LIB2="$PYTHON_LIB /Library/Python/2.$v/PIL/_imaging.so"
6460 HAVE_PYTHON_IMAGING_LIB=1
6462 PYTHON_LIB2="$PYTHON_LIB"
6464 PYTHON_INCLUDES="-I/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/"
6466 elif test "(" -f "/sw/lib/python2.$v/config/libpython2.$v.dylib" \
6467 -o -f "/sw/lib/python2.$v/config/libpython2.$v.a" \
6468 -o -f "/sw/lib/python2.$v/config/libpython2.$v.so" \
6470 -a -f "/sw/include/python2.$v/Python.h"; then
6472 PYTHON_LIB="-L /sw/lib/python2.$v/config/ -lpython$PY_VERSION /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
6473 if test -f "/sw/lib/python2.$v/site-packages/PIL/_imaging.so";then
6474 PYTHON_LIB2="$PYTHON_LIB /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
6475 HAVE_PYTHON_IMAGING_LIB=1
6477 PYTHON_LIB2="$PYTHON_LIB"
6479 PYTHON_INCLUDES="-I /sw/include/python2.$v/"
6484 if test "x$PY_VERSION" "!=" "x"; then
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_VERSION" >&5
6486 $as_echo "$PY_VERSION" >&6; }
6487 export PYTHON_INCLUDES PYTHON_LIB
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the python test program" >&5
6491 $as_echo_n "checking whether we can compile the python test program... " >&6; }
6493 cat > conftest.c << EOF
6499 ret = Py_Main(0, 0);
6500 int x; // check also for gcc 2.95.x incompatibilities
6505 ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS $PYTHON_LIB $LIBS -o conftest${ac_exeext}'
6506 if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6508 $as_echo "yes" >&6; }
6511 echo "configure: failed program was:" >&5
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6514 $as_echo "no" >&6; }
6517 if test "x$PYTHON_OK" = "xyes";then
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python-Imaging" >&5
6519 $as_echo_n "checking for Python-Imaging... " >&6; }
6520 cat > conftest.c << EOF
6522 #include <Imaging.h>
6530 if test "$HAVE_PYTHON_IMAGING_LIB"; then
6531 ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS ${PYTHON_LIB2} $LIBS -o conftest${ac_exeext}'
6532 if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6533 PYTHON_LIB="${PYTHON_LIB2}"
6535 $as_echo "#define HAVE_PYTHON_IMAGING 1" >>confdefs.h
6537 HAVE_PYTHON_IMAGING=yes
6538 export HAVE_PYTHON_IMAGING
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6541 $as_echo "yes" >&6; }
6543 echo "configure: failed program was:" >&5
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6546 $as_echo "no" >&6; }
6549 echo "(didn't find the Python-Imaging libraries)" >&5
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6551 $as_echo "no" >&6; }
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: nope" >&5
6557 $as_echo "nope" >&6; }
6561 if test "x$PYTHON_OK" '!=' "xyes";then
6562 echo all install uninstall clean: > lib/python/Makefile
6563 # fail silently- the most users won't have any need for the
6564 # python interface anyway
6566 pythongfx="lib/python/Makefile"
6569 # ------------------------------------------------------------------
6572 # Extract the first word of "ruby", so it can be a program name with args.
6573 set dummy ruby; ac_word=$2
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6575 $as_echo_n "checking for $ac_word... " >&6; }
6576 if test "${ac_cv_path_RUBY+set}" = set; then :
6577 $as_echo_n "(cached) " >&6
6581 ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
6584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6588 test -z "$as_dir" && as_dir=.
6589 for ac_exec_ext in '' $ac_executable_extensions; do
6590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6591 ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
6592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6602 RUBY=$ac_cv_path_RUBY
6603 if test -n "$RUBY"; then
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5
6605 $as_echo "$RUBY" >&6; }
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6608 $as_echo "no" >&6; }
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ruby's include directory" >&5
6620 $as_echo_n "checking for ruby's include directory... " >&6; }
6621 if test "x$RUBY" '!=' "x";then
6622 rubyinc=`$RUBY -e 'require "rbconfig";puts Config::expand(Config::CONFIG.send("\x5b\x5d", "archdir"))' 2>/dev/null`
6623 if test -d $rubyinc;then
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rubyinc" >&5
6625 $as_echo "$rubyinc" >&6; }
6627 # If we got a sensible archdir, we also ask ruby to supply us with CPPFLAGS
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ruby's cpp flags" >&5
6630 $as_echo_n "checking for ruby's cpp flags... " >&6; }
6631 rubycpp=`$RUBY -e 'require "rbconfig";puts Config::expand(Config::CONFIG.send("\x5b\x5d", "CPPFLAGS"))' 2>/dev/null`
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rubycpp" >&5
6633 $as_echo "$rubycpp" >&6; }
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ruby's ld flags" >&5
6636 $as_echo_n "checking for ruby's ld flags... " >&6; }
6637 rubyld=`$RUBY -e 'require "rbconfig";puts Config::expand(Config::CONFIG.send("\x5b\x5d", "LIBRUBYARG_SHARED"))' 2>/dev/null`
6638 rubyld2=`$RUBY -e 'require "rbconfig";v=Config::expand(Config::CONFIG.send("\x5b\x5d", "LIBRUBY_LDSHARED"));puts v.gsub(/^g?cc/,"")' 2>/dev/null`
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$rubyld $rubyld2\"" >&5
6640 $as_echo "\"$rubyld $rubyld2\"" >&6; }
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ruby library name" >&5
6643 $as_echo_n "checking for ruby library name... " >&6; }
6644 rubylib=`$RUBY -e 'require "rbconfig";puts Config::expand(Config::CONFIG.send("\x5b\x5d", "RUBY_SO_NAME"))' 2>/dev/null`
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rubylib" >&5
6646 $as_echo "$rubylib" >&6; }
6648 RUBY_CPPFLAGS="$rubycpp -I$rubyinc $RUBY_CPPFLAGS"
6649 RUBY_LDFLAGS="$rubyld $rubyld2 $RUBY_LDFLAGS"
6650 RUBY_INSTALLDIR="$rubyinc"
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 'unknown'" >&5
6653 $as_echo "'unknown'" >&6; }
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 'unknown'" >&5
6657 $as_echo "'unknown'" >&6; }
6660 #OLDLDFLAGS="$LDFLAGS"
6661 #LDFLAGS="$LDFLAGS $RUBY_LDFLAGS"
6662 #AC_CHECK_LIB($rubylib, rb_define_method, HAVE_RUBY_LIB=1,)
6663 #LDFLAGS="$OLDLDFLAGS"
6665 OLDCPPFLAGS="$CPPFLAGS"
6666 CPPFLAGS="$CPPFLAGS $RUBY_CPPFLAGS"
6667 for ac_header in ruby.h
6669 ac_fn_c_check_header_mongrel "$LINENO" "ruby.h" "ac_cv_header_ruby_h" "$ac_includes_default"
6670 if test "x$ac_cv_header_ruby_h" = x""yes; then :
6671 cat >>confdefs.h <<_ACEOF
6672 #define HAVE_RUBY_H 1
6679 CPPFLAGS="$OLDCPPFLAGS"
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we should compile the ruby module" >&5
6682 $as_echo_n "checking whether we should compile the ruby module... " >&6; }
6683 if test "x${HAVE_RUBY_H}" '!=' "x";then
6684 #RUBY_LIBS="$RUBY_LIBS -l$rubylib"
6686 cat > conftest.c << EOF
6688 static VALUE foobar;
6689 VALUE foobar_set_foo(VALUE module, VALUE _key, VALUE _value)
6695 foobar = rb_define_module("foobar");
6696 rb_define_module_function(foobar, "set_foo", foobar_set_foo, 2);
6698 int main() {return 0;}
6700 ac_link='$CC $SHARED $CPPFLAGS $RUBY_CPPFLAGS $CFLAGS conftest.c $LDFLAGS $RUBY_LDFLAGS $LIBS $RUBY_LIBS -o conftest${SLEXT}'
6701 if { (eval echo ruby.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${SLEXT}; then
6704 echo "configure: failed program was:" >&5
6710 if test "x${RUBY_OK}" '=' "xyes"; then
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6712 $as_echo "yes" >&6; }
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6719 $as_echo "no" >&6; }
6727 if test "x$RUBY_OK" '!=' "xyes";then
6728 echo all install uninstall clean: > lib/ruby/Makefile
6729 # fail silently- the most users won't have any need for the
6730 # ruby interface anyway
6732 rubygfx="lib/ruby/Makefile"
6735 # ------------------------------------------------------------------
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for missing libraries" >&5
6738 $as_echo_n "checking for missing libraries... " >&6; }
6740 if test "x$ZLIBMISSING" = "xtrue";then
6741 MISSINGLIBS="${MISSINGLIBS} zlib"
6745 if test "x$JPEGLIBMISSING" = "xtrue";then
6746 MISSINGLIBS="${MISSINGLIBS} jpeglib"
6748 DISABLEJPEG2SWF=true
6751 if test "x$PDFLIBMISSING" = "xtrue";then
6752 DISABLEPDF2PDF=true;
6754 #if test "x$T1LIBMISSING" = "xtrue";then
6755 # MISSINGLIBS="${MISSINGLIBS} t1lib"
6757 if test "x$UNGIFMISSING" = "xtrue";then
6759 MISSINGLIBS="${MISSINGLIBS} ungif"
6763 if test "x${ac_cv_header_pdflib_h}" '!=' "xyes";then
6764 DISABLEPDF2PDF=true;
6766 if test "x${ac_cv_header_jpeglib_h}" '!=' "xyes"; then
6767 DISABLEPDF2SWF=true;
6768 DISABLEJPEG2SWF=true;
6769 MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
6772 if test "x$HAVE_FREETYPE" '!=' "x1"; then
6773 DISABLEPDF2SWF=true;
6774 MISSINGLIBS="${MISSINGLIBS} freetype"
6777 #if test "x${ac_cv_header_t1lib_h}" '!=' "xyes"; then
6778 # MISSINGLIBS="${MISSINGLIBS} t1lib.h"
6780 if test "x${ac_cv_header_gif_lib_h}" '!=' "xyes"; then
6782 MISSINGLIBS="${MISSINGLIBS} gif_lib.h"
6785 if test "x${ac_cv_header_zlib_h}" '!=' "xyes"; then
6786 DISABLEPNG2SWF=true;
6787 MISSINGLIBS="${MISSINGLIBS} zlib.h"
6790 #if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
6791 # MISSINGLIBS="${MISSINGLIBS} avifile"
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${MISSINGLIBS}" >&5
6795 $as_echo "${MISSINGLIBS}" >&6; }
6797 # ------------------------------------------------------------------
6799 if test "x${MISSINGLIBS}" '!=' "x"; then
6800 echo "***************************************************"
6801 echo "* The following headers/libraries are missing: " ${MISSINGLIBS}
6804 avi2swf="avi2swf/Makefile"
6805 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
6806 #don't whine, avi2swf is outdated anyway
6807 #echo "* Disabling avi2swf tool..."
6808 echo all install uninstall clean: > avi2swf/Makefile
6812 pdf2swf_makefile="lib/pdf/Makefile"
6813 PDF2SWF='pdf2swf$(E)'
6816 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
6817 echo "* Disabling pdf2swf tool..."
6818 rm -f lib/pdf/Makefile
6819 echo all install uninstall clean libpdf libgfxpdf: > lib/pdf/Makefile
6827 PDF2PDF='pdf2pdf$(E)'
6828 DEVICE_PDF='devices/pdf.$(O)'
6829 if test "x${DISABLEPDF2PDF}" = "xtrue"; then
6830 #echo "* Disabling pdf2pdf tool..."
6837 if test "x${ZLIBMISSING}" = "xtrue"; then
6839 echo "* Warning! Without zlib, you will not be able to read"
6840 echo "* or write compressed Flash MX files!"
6843 JPEG2SWF='jpeg2swf$(E)'
6844 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
6845 echo "* Disabling jpeg2swf tool..."
6851 GIF2SWF='gif2swf$(E)'
6852 if test "x${DISABLEGIF2SWF}" = "xtrue"; then
6853 echo "* Disabling gif2swf tool..."
6859 PNG2SWF='png2swf$(E)'
6860 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
6861 echo "* Disabling png2swf tool..."
6867 if test "x${MISSINGLIBS}" '!=' "x"; then
6868 if test "x${PARTIAL}" '=' "x"; then
6869 echo "* (never mind)"
6871 echo "***************************************************"
6874 # ------------------------------------------------------------------
6880 if test -f "release.in"; then release_in="./release"; fi
6881 if test -f "Makefile.new.in"; then mk_in="./Makefile.new"; fi
6882 FILES="$release_in $mk_in Makefile.common ${avi2swf} Makefile lib/Makefile lib/action/Makefile src/Makefile ${pdf2swf_makefile} swfs/Makefile ${pythongfx} ${rubygfx} ${lame_makefile} lib/readers/Makefile"
6883 ac_config_files="$ac_config_files ${FILES}"
6885 cat >confcache <<\_ACEOF
6886 # This file is a shell script that caches the results of configure
6887 # tests run on this system so they can be shared between configure
6888 # scripts and configure runs, see configure's option --config-cache.
6889 # It is not useful on other systems. If it contains results you don't
6890 # want to keep, you may remove or edit it.
6892 # config.status only pays attention to the cache file if you give it
6893 # the --recheck option to rerun configure.
6895 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6896 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6901 # The following way of writing the cache mishandles newlines in values,
6902 # but we know of no workaround that is simple, portable, and efficient.
6903 # So, we kill variables containing newlines.
6904 # Ultrix sh set writes to stderr and can't be redirected directly,
6905 # and sets the high bit in the cache file unless we assign to the vars.
6907 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6908 eval ac_val=\$$ac_var
6912 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6913 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6916 _ | IFS | as_nl) ;; #(
6917 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6918 *) { eval $ac_var=; unset $ac_var;} ;;
6924 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6925 *${as_nl}ac_space=\ *)
6926 # `set' does not quote correctly, so add quotes: double-quote
6927 # substitution turns \\\\ into \\, and sed turns \\ into \.
6930 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6933 # `set' quotes correctly as required by POSIX, so do not add quotes.
6934 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6943 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6945 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6947 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6948 if test -w "$cache_file"; then
6949 test "x$cache_file" != "x/dev/null" &&
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6951 $as_echo "$as_me: updating cache $cache_file" >&6;}
6952 cat confcache >$cache_file
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6955 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6960 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6961 # Let make expand exec_prefix.
6962 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6964 DEFS=-DHAVE_CONFIG_H
6968 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6969 # 1. Remove the extension, and $U if already installed.
6970 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6971 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6972 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6973 # will be set to the directory where LIBOBJS objects are built.
6974 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6975 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6979 LTLIBOBJS=$ac_ltlibobjs
6983 : ${CONFIG_STATUS=./config.status}
6985 ac_clean_files_save=$ac_clean_files
6986 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6988 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6990 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6992 # Generated by $as_me.
6993 # Run this file to recreate the current configuration.
6994 # Compiler output produced by configure, useful for debugging
6995 # configure, is in config.log if it exists.
7001 SHELL=\${CONFIG_SHELL-$SHELL}
7004 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7005 ## -------------------- ##
7006 ## M4sh Initialization. ##
7007 ## -------------------- ##
7009 # Be more Bourne compatible
7010 DUALCASE=1; export DUALCASE # for MKS sh
7011 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7014 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7015 # is contrary to our usage. Disable this feature.
7016 alias -g '${1+"$@"}'='"$@"'
7017 setopt NO_GLOB_SUBST
7019 case `(set -o) 2>/dev/null` in #(
7031 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7032 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7033 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7034 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7035 # Prefer a ksh shell builtin over an external printf program on Solaris,
7036 # but without wasting forks for bash or zsh.
7037 if test -z "$BASH_VERSION$ZSH_VERSION" \
7038 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7039 as_echo='print -r --'
7040 as_echo_n='print -rn --'
7041 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7042 as_echo='printf %s\n'
7043 as_echo_n='printf %s'
7045 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7046 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7047 as_echo_n='/usr/ucb/echo -n'
7049 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7050 as_echo_n_body='eval
7054 expr "X$arg" : "X\\(.*\\)$as_nl";
7055 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7057 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7059 export as_echo_n_body
7060 as_echo_n='sh -c $as_echo_n_body as_echo'
7063 as_echo='sh -c $as_echo_body as_echo'
7066 # The user is always right.
7067 if test "${PATH_SEPARATOR+set}" != set; then
7069 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7070 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7077 # We need space, tab and new line, in precisely that order. Quoting is
7078 # there to prevent editors from complaining about space-tab.
7079 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7080 # splitting by setting IFS to empty value.)
7083 # Find who we are. Look in the path if we contain no directory separator.
7085 *[\\/]* ) as_myself=$0 ;;
7086 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7090 test -z "$as_dir" && as_dir=.
7091 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7097 # We did not find ourselves, most probably we were run as `sh COMMAND'
7098 # in which case we are not to be found in the path.
7099 if test "x$as_myself" = x; then
7102 if test ! -f "$as_myself"; then
7103 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7107 # Unset variables that we do not need and which cause bugs (e.g. in
7108 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7109 # suppresses any "Segmentation fault" message there. '((' could
7110 # trigger a bug in pdksh 5.2.14.
7111 for as_var in BASH_ENV ENV MAIL MAILPATH
7112 do eval test x\${$as_var+set} = xset \
7113 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7126 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7129 # as_fn_error ERROR [LINENO LOG_FD]
7130 # ---------------------------------
7131 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7132 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7133 # script with status $?, using 1 if that was 0.
7136 as_status=$?; test $as_status -eq 0 && as_status=1
7138 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7139 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
7141 $as_echo "$as_me: error: $1" >&2
7142 as_fn_exit $as_status
7146 # as_fn_set_status STATUS
7147 # -----------------------
7148 # Set $? to STATUS, without forking.
7152 } # as_fn_set_status
7156 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7166 # Portably unset VAR.
7169 { eval $1=; unset $1;}
7171 as_unset=as_fn_unset
7172 # as_fn_append VAR VALUE
7173 # ----------------------
7174 # Append the text in VALUE to the end of the definition contained in VAR. Take
7175 # advantage of any shell optimizations that allow amortized linear growth over
7176 # repeated appends, instead of the typical quadratic growth present in naive
7178 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7179 eval 'as_fn_append ()
7190 # as_fn_arith ARG...
7191 # ------------------
7192 # Perform arithmetic evaluation on the ARGs, and store the result in the
7193 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7194 # must be portable across $(()) and expr.
7195 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7196 eval 'as_fn_arith ()
7203 as_val=`expr "$@" || test $? -eq 1`
7208 if expr a : '\(a\)' >/dev/null 2>&1 &&
7209 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7215 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7216 as_basename=basename
7221 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7227 as_me=`$as_basename -- "$0" ||
7228 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7229 X"$0" : 'X\(//\)$' \| \
7230 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7232 sed '/^.*\/\([^/][^/]*\)\/*$/{
7246 # Avoid depending upon Character Ranges.
7247 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7248 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7249 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7250 as_cr_digits='0123456789'
7251 as_cr_alnum=$as_cr_Letters$as_cr_digits
7253 ECHO_C= ECHO_N= ECHO_T=
7254 case `echo -n x` in #(((((
7256 case `echo 'xy\c'` in
7257 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7259 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7266 rm -f conf$$ conf$$.exe conf$$.file
7267 if test -d conf$$.dir; then
7268 rm -f conf$$.dir/conf$$.file
7271 mkdir conf$$.dir 2>/dev/null
7273 if (echo >conf$$.file) 2>/dev/null; then
7274 if ln -s conf$$.file conf$$ 2>/dev/null; then
7276 # ... but there are two gotchas:
7277 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7278 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7279 # In both cases, we have to default to `cp -p'.
7280 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7282 elif ln conf$$.file conf$$ 2>/dev/null; then
7290 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7291 rmdir conf$$.dir 2>/dev/null
7296 # Create "$as_dir" as a directory, including parents if necessary.
7301 -*) as_dir=./$as_dir;;
7303 test -d "$as_dir" || eval $as_mkdir_p || {
7307 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7308 *) as_qdir=$as_dir;;
7310 as_dirs="'$as_qdir' $as_dirs"
7311 as_dir=`$as_dirname -- "$as_dir" ||
7312 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7313 X"$as_dir" : 'X\(//\)[^/]' \| \
7314 X"$as_dir" : 'X\(//\)$' \| \
7315 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7316 $as_echo X"$as_dir" |
7317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7334 test -d "$as_dir" && break
7336 test -z "$as_dirs" || eval "mkdir $as_dirs"
7337 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
7341 if mkdir -p . 2>/dev/null; then
7342 as_mkdir_p='mkdir -p "$as_dir"'
7344 test -d ./-p && rmdir ./-p
7348 if test -x / >/dev/null 2>&1; then
7351 if ls -dL / >/dev/null 2>&1; then
7358 if test -d "$1"; then
7364 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
7365 ???[sx]*):;;*)false;;esac;fi
7369 as_executable_p=$as_test_x
7371 # Sed expression to map a string onto a valid CPP name.
7372 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7374 # Sed expression to map a string onto a valid variable name.
7375 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7379 ## ----------------------------------- ##
7380 ## Main body of $CONFIG_STATUS script. ##
7381 ## ----------------------------------- ##
7383 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7385 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7386 # Save the log message, to keep $0 and so on meaningful, and to
7387 # report actual input values of CONFIG_FILES etc. instead of their
7388 # values after options handling.
7390 This file was extended by $as_me, which was
7391 generated by GNU Autoconf 2.65. Invocation command line was
7393 CONFIG_FILES = $CONFIG_FILES
7394 CONFIG_HEADERS = $CONFIG_HEADERS
7395 CONFIG_LINKS = $CONFIG_LINKS
7396 CONFIG_COMMANDS = $CONFIG_COMMANDS
7399 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7404 case $ac_config_files in *"
7405 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7408 case $ac_config_headers in *"
7409 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7413 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7414 # Files that config.status was made for.
7415 config_files="$ac_config_files"
7416 config_headers="$ac_config_headers"
7420 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7422 \`$as_me' instantiates files and other configuration actions
7423 from templates according to the current configuration. Unless the files
7424 and actions are specified as TAGs, all are instantiated by default.
7426 Usage: $0 [OPTION]... [TAG]...
7428 -h, --help print this help, then exit
7429 -V, --version print version number and configuration settings, then exit
7430 --config print configuration, then exit
7431 -q, --quiet, --silent
7432 do not print progress messages
7433 -d, --debug don't remove temporary files
7434 --recheck update $as_me by reconfiguring in the same conditions
7435 --file=FILE[:TEMPLATE]
7436 instantiate the configuration file FILE
7437 --header=FILE[:TEMPLATE]
7438 instantiate the configuration header FILE
7440 Configuration files:
7443 Configuration headers:
7446 Report bugs to the package provider."
7449 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7450 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7453 configured by $0, generated by GNU Autoconf 2.65,
7454 with options \\"\$ac_cs_config\\"
7456 Copyright (C) 2009 Free Software Foundation, Inc.
7457 This config.status script is free software; the Free Software Foundation
7458 gives unlimited permission to copy, distribute and modify it."
7463 test -n "\$AWK" || AWK=awk
7466 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7467 # The default lists apply if the user does not specify any file.
7473 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7474 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7485 # Handling of the options.
7486 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7488 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7489 $as_echo "$ac_cs_version"; exit ;;
7490 --config | --confi | --conf | --con | --co | --c )
7491 $as_echo "$ac_cs_config"; exit ;;
7492 --debug | --debu | --deb | --de | --d | -d )
7494 --file | --fil | --fi | --f )
7497 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7499 as_fn_append CONFIG_FILES " '$ac_optarg'"
7500 ac_need_defaults=false;;
7501 --header | --heade | --head | --hea )
7504 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7506 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7507 ac_need_defaults=false;;
7509 # Conflict between --help and --header
7510 as_fn_error "ambiguous option: \`$1'
7511 Try \`$0 --help' for more information.";;
7512 --help | --hel | -h )
7513 $as_echo "$ac_cs_usage"; exit ;;
7514 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7515 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7519 -*) as_fn_error "unrecognized option: \`$1'
7520 Try \`$0 --help' for more information." ;;
7522 *) as_fn_append ac_config_targets " $1"
7523 ac_need_defaults=false ;;
7529 ac_configure_extra_args=
7531 if $ac_cs_silent; then
7533 ac_configure_extra_args="$ac_configure_extra_args --silent"
7537 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7538 if \$ac_cs_recheck; then
7539 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7541 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7542 CONFIG_SHELL='$SHELL'
7548 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7552 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7553 ## Running $as_me. ##
7559 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7562 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7564 # Handling of arguments.
7565 for ac_config_target in $ac_config_targets
7567 case $ac_config_target in
7568 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7569 "${FILES}") CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
7571 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7576 # If the user did not use the arguments to specify the items to instantiate,
7577 # then the envvar interface is used. Set only those that are not.
7578 # We use the long form for the default assignment because of an extremely
7579 # bizarre bug on SunOS 4.1.3.
7580 if $ac_need_defaults; then
7581 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7582 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7585 # Have a temporary directory for convenience. Make it in the build tree
7586 # simply because there is no reason against having it here, and in addition,
7587 # creating and moving files from /tmp can sometimes cause problems.
7588 # Hook for its removal unless debugging.
7589 # Note that there is a small window in which the directory will not be cleaned:
7590 # after its creation but before its name has been assigned to `$tmp'.
7594 trap 'exit_status=$?
7595 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7597 trap 'as_fn_exit 1' 1 2 13 15
7599 # Create a (secure) tmp directory for tmp files.
7602 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7603 test -n "$tmp" && test -d "$tmp"
7606 tmp=./conf$$-$RANDOM
7607 (umask 077 && mkdir "$tmp")
7608 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
7610 # Set up the scripts for CONFIG_FILES section.
7611 # No need to generate them if there are no CONFIG_FILES.
7612 # This happens for instance with `./config.status config.h'.
7613 if test -n "$CONFIG_FILES"; then
7616 ac_cr=`echo X | tr X '\015'`
7617 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7618 # But we know of no other shell where ac_cr would be empty at this
7619 # point, so we can use a bashism as a fallback.
7620 if test "x$ac_cr" = x; then
7621 eval ac_cr=\$\'\\r\'
7623 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7624 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7630 echo 'BEGIN {' >"$tmp/subs1.awk" &&
7635 echo "cat >conf$$subs.awk <<_ACEOF" &&
7636 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7639 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7640 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
7642 for ac_last_try in false false false false false :; do
7643 . ./conf$$subs.sh ||
7644 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7646 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7647 if test $ac_delim_n = $ac_delim_num; then
7649 elif $ac_last_try; then
7650 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7652 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7657 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7658 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
7662 s/^/S["/; s/!.*/"]=/
7672 s/\(.\{148\}\)..*/\1/
7674 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7679 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7686 s/\(.\{148\}\)..*/\1/
7688 s/["\\]/\\&/g; s/^/"/; s/$/"/
7692 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7697 ' <conf$$subs.awk | sed '
7702 ' >>$CONFIG_STATUS || ac_write_fail=1
7703 rm -f conf$$subs.awk
7704 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7706 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
7707 for (key in S) S_is_set[key] = 1
7713 nfields = split(line, field, "@")
7715 len = length(field[1])
7716 for (i = 2; i < nfields; i++) {
7718 keylen = length(key)
7719 if (S_is_set[key]) {
7721 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7722 len += length(value) + length(field[++i])
7733 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7734 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7735 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7738 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
7739 || as_fn_error "could not setup config files machinery" "$LINENO" 5
7742 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7743 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7744 # trailing colons and then remove the whole line if VPATH becomes empty
7745 # (actually we leave an empty line to preserve line numbers).
7746 if test "x$srcdir" = x.; then
7747 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7751 s/^\([^=]*=[ ]*\):*/\1/
7757 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7758 fi # test -n "$CONFIG_FILES"
7760 # Set up the scripts for CONFIG_HEADERS section.
7761 # No need to generate them if there are no CONFIG_HEADERS.
7762 # This happens for instance with `./config.status Makefile'.
7763 if test -n "$CONFIG_HEADERS"; then
7764 cat >"$tmp/defines.awk" <<\_ACAWK ||
7768 # Transform confdefs.h into an awk script `defines.awk', embedded as
7769 # here-document in config.status, that substitutes the proper values into
7770 # config.h.in to produce config.h.
7772 # Create a delimiter string that does not exist in confdefs.h, to ease
7773 # handling of long lines.
7775 for ac_last_try in false false :; do
7776 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
7777 if test -z "$ac_t"; then
7779 elif $ac_last_try; then
7780 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
7782 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7786 # For the awk script, D is an array of macro values keyed by name,
7787 # likewise P contains macro parameters if any. Preserve backslash
7788 # newline sequences.
7790 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7792 s/.\{148\}/&'"$ac_delim"'/g
7795 s/^[ ]*#[ ]*define[ ][ ]*/ /
7802 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7804 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7808 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7809 D["\1"]=" \3\\\\\\n"\\/p
7811 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7816 s/.\{148\}/&'"$ac_delim"'/g
7821 s/["\\]/\\&/g; s/^/"/; s/$/"/p
7824 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7826 ' <confdefs.h | sed '
7827 s/'"$ac_delim"'/"\\\
7828 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7830 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7831 for (key in D) D_is_set[key] = 1
7834 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7836 split(line, arg, " ")
7837 if (arg[1] == "#") {
7841 defundef = substr(arg[1], 2)
7844 split(mac1, mac2, "(") #)
7846 prefix = substr(line, 1, index(line, defundef) - 1)
7847 if (D_is_set[macro]) {
7848 # Preserve the white space surrounding the "#".
7849 print prefix "define", macro P[macro] D[macro]
7852 # Replace #undef with comments. This is necessary, for example,
7853 # in the case of _POSIX_SOURCE, which is predefined and required
7854 # on some systems where configure will not decide to define it.
7855 if (defundef == "undef") {
7856 print "/*", prefix defundef, macro, "*/"
7864 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7865 as_fn_error "could not setup config headers machinery" "$LINENO" 5
7866 fi # test -n "$CONFIG_HEADERS"
7869 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
7874 :[FHLC]) ac_mode=$ac_tag; continue;;
7876 case $ac_mode$ac_tag in
7878 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
7879 :[FH]-) ac_tag=-:-;;
7880 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7897 -) ac_f="$tmp/stdin";;
7898 *) # Look for the file first in the build tree, then in the source tree
7899 # (if the path is not absolute). The absolute path cannot be DOS-style,
7900 # because $ac_f cannot contain `:'.
7904 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7906 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7908 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7909 as_fn_append ac_file_inputs " '$ac_f'"
7912 # Let's still pretend it is `configure' which instantiates (i.e., don't
7913 # use $as_me), people would be surprised to read:
7914 # /* config.h. Generated by config.status. */
7915 configure_input='Generated from '`
7916 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7918 if test x"$ac_file" != x-; then
7919 configure_input="$ac_file. $configure_input"
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7921 $as_echo "$as_me: creating $ac_file" >&6;}
7923 # Neutralize special characters interpreted by sed in replacement strings.
7924 case $configure_input in #(
7925 *\&* | *\|* | *\\* )
7926 ac_sed_conf_input=`$as_echo "$configure_input" |
7927 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7928 *) ac_sed_conf_input=$configure_input;;
7932 *:-:* | *:-) cat >"$tmp/stdin" \
7933 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
7938 ac_dir=`$as_dirname -- "$ac_file" ||
7939 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7940 X"$ac_file" : 'X\(//\)[^/]' \| \
7941 X"$ac_file" : 'X\(//\)$' \| \
7942 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7943 $as_echo X"$ac_file" |
7944 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7961 as_dir="$ac_dir"; as_fn_mkdir_p
7965 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7967 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7968 # A ".." for each directory in $ac_dir_suffix.
7969 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7970 case $ac_top_builddir_sub in
7971 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7972 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7975 ac_abs_top_builddir=$ac_pwd
7976 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7977 # for backward compatibility:
7978 ac_top_builddir=$ac_top_build_prefix
7981 .) # We are building in place.
7983 ac_top_srcdir=$ac_top_builddir_sub
7984 ac_abs_top_srcdir=$ac_pwd ;;
7985 [\\/]* | ?:[\\/]* ) # Absolute name.
7986 ac_srcdir=$srcdir$ac_dir_suffix;
7987 ac_top_srcdir=$srcdir
7988 ac_abs_top_srcdir=$srcdir ;;
7990 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7991 ac_top_srcdir=$ac_top_build_prefix$srcdir
7992 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7994 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8004 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8005 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8009 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8010 # If the template does not know about datarootdir, expand it.
8011 # FIXME: This hack should be removed a few years after 2.60.
8012 ac_datarootdir_hack=; ac_datarootdir_seen=
8023 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8024 *datarootdir*) ac_datarootdir_seen=yes;;
8025 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8027 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8029 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8030 ac_datarootdir_hack='
8031 s&@datadir@&$datadir&g
8032 s&@docdir@&$docdir&g
8033 s&@infodir@&$infodir&g
8034 s&@localedir@&$localedir&g
8035 s&@mandir@&$mandir&g
8036 s&\\\${datarootdir}&$datarootdir&g' ;;
8040 # Neutralize VPATH when `$srcdir' = `.'.
8041 # Shell code in configure.ac might set extrasub.
8042 # FIXME: do we really want to maintain this feature?
8043 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8044 ac_sed_extra="$ac_vpsub
8047 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8049 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8050 s|@configure_input@|$ac_sed_conf_input|;t t
8051 s&@top_builddir@&$ac_top_builddir_sub&;t t
8052 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8053 s&@srcdir@&$ac_srcdir&;t t
8054 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8055 s&@top_srcdir@&$ac_top_srcdir&;t t
8056 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8057 s&@builddir@&$ac_builddir&;t t
8058 s&@abs_builddir@&$ac_abs_builddir&;t t
8059 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8060 s&@INSTALL@&$ac_INSTALL&;t t
8061 $ac_datarootdir_hack
8063 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
8064 || as_fn_error "could not create $ac_file" "$LINENO" 5
8066 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8067 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8068 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8070 which seems to be undefined. Please make sure it is defined." >&5
8071 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8072 which seems to be undefined. Please make sure it is defined." >&2;}
8076 -) cat "$tmp/out" && rm -f "$tmp/out";;
8077 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8079 || as_fn_error "could not create $ac_file" "$LINENO" 5
8085 if test x"$ac_file" != x-; then
8087 $as_echo "/* $configure_input */" \
8088 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8089 } >"$tmp/config.h" \
8090 || as_fn_error "could not create $ac_file" "$LINENO" 5
8091 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8093 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8096 mv "$tmp/config.h" "$ac_file" \
8097 || as_fn_error "could not create $ac_file" "$LINENO" 5
8100 $as_echo "/* $configure_input */" \
8101 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8102 || as_fn_error "could not create -" "$LINENO" 5
8114 ac_clean_files=$ac_clean_files_save
8116 test $ac_write_fail = 0 ||
8117 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
8120 # configure is writing to config.log, and then calls config.status.
8121 # config.status does its own redirection, appending to config.log.
8122 # Unfortunately, on DOS this fails, as config.log is still kept open
8123 # by configure, so config.status won't be able to write to it; its
8124 # output is simply discarded. So we exec the FD to /dev/null,
8125 # effectively closing config.log, so it can be properly (re)opened and
8126 # appended to by config.status. When coming back to configure, we
8127 # need to make the FD available again.
8128 if test "$no_create" != yes; then
8130 ac_config_status_args=
8131 test "$silent" = yes &&
8132 ac_config_status_args="$ac_config_status_args --quiet"
8134 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8136 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8137 # would make configure fail if this is the last instruction.
8138 $ac_cs_success || as_fn_exit $?
8140 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8142 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8148 # On development trees, create snapshots of config.status
8150 if test -f snapshot -a "x$CHECKMEM" = "x" -a "x$PROFILING" = "x";then
8151 if test "x${MINGW}" = "xyes"; then
8152 echo cp config.status config.status.win32
8153 cp config.status config.status.win32
8155 if test "x$DEBUG" '=' "x" -a "x$OPTIMIZE" '=' "x";then
8156 echo cp config.status config.status.linux
8157 cp config.status config.status.linux
8159 if test "x$DEBUG" '!=' "x" -a "x$OPTIMIZE" '=' "x";then
8160 echo cp config.status config.status.debug
8161 cp config.status config.status.debug
8163 if test "x$DEBUG" = "x" -a "x$OPTIMIZE" '!=' "x"; then
8164 echo cp config.status config.status.optimize
8165 cp config.status config.status.optimize