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
697 program_transform_name
710 enable_option_checking
719 ac_precious_vars
='build_alias
737 # Initialize some variables set by options.
739 ac_init_version
=false
740 ac_unrecognized_opts
=
742 # The variables have the same names as the options, with
743 # dashes changed to underlines.
751 program_transform_name
=s
,x
,x
,
759 # Installation directory options.
760 # These are left unexpanded so users can "make install exec_prefix=/foo"
761 # and all the variables that are supposed to be based on exec_prefix
762 # by default will actually change.
763 # Use braces instead of parens because sh, perl, etc. also accept them.
764 # (The list follows the same order as the GNU Coding Standards.)
765 bindir
='${exec_prefix}/bin'
766 sbindir
='${exec_prefix}/sbin'
767 libexecdir
='${exec_prefix}/libexec'
768 datarootdir
='${prefix}/share'
769 datadir
='${datarootdir}'
770 sysconfdir
='${prefix}/etc'
771 sharedstatedir
='${prefix}/com'
772 localstatedir
='${prefix}/var'
773 includedir
='${prefix}/include'
774 oldincludedir
='/usr/include'
775 docdir
='${datarootdir}/doc/${PACKAGE}'
776 infodir
='${datarootdir}/info'
781 libdir
='${exec_prefix}/lib'
782 localedir
='${datarootdir}/locale'
783 mandir
='${datarootdir}/man'
789 # If the previous option needs an argument, assign it.
790 if test -n "$ac_prev"; then
791 eval $ac_prev=\
$ac_option
797 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
801 # Accept the important Cygnus configure options, so we can diagnose typos.
803 case $ac_dashdash$ac_option in
807 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
809 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
812 -build |
--build |
--buil |
--bui |
--bu)
813 ac_prev
=build_alias
;;
814 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
815 build_alias
=$ac_optarg ;;
817 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
818 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
819 ac_prev
=cache_file
;;
820 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
821 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
822 cache_file
=$ac_optarg ;;
825 cache_file
=config.cache
;;
827 -datadir |
--datadir |
--datadi |
--datad)
829 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
830 datadir
=$ac_optarg ;;
832 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
833 |
--dataroo |
--dataro |
--datar)
834 ac_prev
=datarootdir
;;
835 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
836 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
837 datarootdir
=$ac_optarg ;;
839 -disable-* |
--disable-*)
840 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
841 # Reject names that are not valid shell variable names.
842 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
843 as_fn_error
"invalid feature name: $ac_useropt"
844 ac_useropt_orig
=$ac_useropt
845 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
846 case $ac_user_opts in
850 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
851 ac_unrecognized_sep
=', ';;
853 eval enable_
$ac_useropt=no
;;
855 -docdir |
--docdir |
--docdi |
--doc |
--do)
857 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
860 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
862 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
865 -enable-* |
--enable-*)
866 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
867 # Reject names that are not valid shell variable names.
868 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
869 as_fn_error
"invalid feature name: $ac_useropt"
870 ac_useropt_orig
=$ac_useropt
871 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
872 case $ac_user_opts in
876 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
877 ac_unrecognized_sep
=', ';;
879 eval enable_
$ac_useropt=\
$ac_optarg ;;
881 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
882 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
883 |
--exec |
--exe |
--ex)
884 ac_prev
=exec_prefix
;;
885 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
886 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
887 |
--exec=* |
--exe=* |
--ex=*)
888 exec_prefix
=$ac_optarg ;;
890 -gas |
--gas |
--ga |
--g)
891 # Obsolete; use --with-gas.
894 -help |
--help |
--hel |
--he |
-h)
896 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
897 ac_init_help
=recursive
;;
898 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
899 ac_init_help
=short
;;
901 -host |
--host |
--hos |
--ho)
902 ac_prev
=host_alias
;;
903 -host=* |
--host=* |
--hos=* |
--ho=*)
904 host_alias
=$ac_optarg ;;
906 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
908 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
910 htmldir
=$ac_optarg ;;
912 -includedir |
--includedir |
--includedi |
--included |
--include \
913 |
--includ |
--inclu |
--incl |
--inc)
914 ac_prev
=includedir
;;
915 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
916 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
917 includedir
=$ac_optarg ;;
919 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
921 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
922 infodir
=$ac_optarg ;;
924 -libdir |
--libdir |
--libdi |
--libd)
926 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
929 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
930 |
--libexe |
--libex |
--libe)
931 ac_prev
=libexecdir
;;
932 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
933 |
--libexe=* |
--libex=* |
--libe=*)
934 libexecdir
=$ac_optarg ;;
936 -localedir |
--localedir |
--localedi |
--localed |
--locale)
938 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
939 localedir
=$ac_optarg ;;
941 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
942 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
943 ac_prev
=localstatedir
;;
944 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
945 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
946 localstatedir
=$ac_optarg ;;
948 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
950 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
954 # Obsolete; use --without-fp.
957 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
958 |
--no-cr |
--no-c |
-n)
961 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
962 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
965 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
966 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
967 |
--oldin |
--oldi |
--old |
--ol |
--o)
968 ac_prev
=oldincludedir
;;
969 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
970 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
971 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
972 oldincludedir
=$ac_optarg ;;
974 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
976 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
979 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
980 |
--program-pre |
--program-pr |
--program-p)
981 ac_prev
=program_prefix
;;
982 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
983 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
984 program_prefix
=$ac_optarg ;;
986 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
987 |
--program-suf |
--program-su |
--program-s)
988 ac_prev
=program_suffix
;;
989 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
990 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
991 program_suffix
=$ac_optarg ;;
993 -program-transform-name |
--program-transform-name \
994 |
--program-transform-nam |
--program-transform-na \
995 |
--program-transform-n |
--program-transform- \
996 |
--program-transform |
--program-transfor \
997 |
--program-transfo |
--program-transf \
998 |
--program-trans |
--program-tran \
999 |
--progr-tra |
--program-tr |
--program-t)
1000 ac_prev
=program_transform_name
;;
1001 -program-transform-name=* |
--program-transform-name=* \
1002 |
--program-transform-nam=* |
--program-transform-na=* \
1003 |
--program-transform-n=* |
--program-transform-=* \
1004 |
--program-transform=* |
--program-transfor=* \
1005 |
--program-transfo=* |
--program-transf=* \
1006 |
--program-trans=* |
--program-tran=* \
1007 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1008 program_transform_name
=$ac_optarg ;;
1010 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1012 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1013 pdfdir
=$ac_optarg ;;
1015 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1017 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1020 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1021 |
-silent |
--silent |
--silen |
--sile |
--sil)
1024 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1026 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1028 sbindir
=$ac_optarg ;;
1030 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1031 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1032 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1034 ac_prev
=sharedstatedir
;;
1035 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1036 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1037 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1039 sharedstatedir
=$ac_optarg ;;
1041 -site |
--site |
--sit)
1043 -site=* |
--site=* |
--sit=*)
1046 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1048 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1049 srcdir
=$ac_optarg ;;
1051 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1052 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1053 ac_prev
=sysconfdir
;;
1054 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1055 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1056 sysconfdir
=$ac_optarg ;;
1058 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1059 ac_prev
=target_alias
;;
1060 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1061 target_alias
=$ac_optarg ;;
1063 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1066 -version |
--version |
--versio |
--versi |
--vers |
-V)
1067 ac_init_version
=: ;;
1070 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1071 # Reject names that are not valid shell variable names.
1072 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1073 as_fn_error
"invalid package name: $ac_useropt"
1074 ac_useropt_orig
=$ac_useropt
1075 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1076 case $ac_user_opts in
1080 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1081 ac_unrecognized_sep
=', ';;
1083 eval with_
$ac_useropt=\
$ac_optarg ;;
1085 -without-* |
--without-*)
1086 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1087 # Reject names that are not valid shell variable names.
1088 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1089 as_fn_error
"invalid package name: $ac_useropt"
1090 ac_useropt_orig
=$ac_useropt
1091 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1092 case $ac_user_opts in
1096 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1097 ac_unrecognized_sep
=', ';;
1099 eval with_
$ac_useropt=no
;;
1102 # Obsolete; use --with-x.
1105 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1106 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1107 ac_prev
=x_includes
;;
1108 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1109 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1110 x_includes
=$ac_optarg ;;
1112 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1113 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1114 ac_prev
=x_libraries
;;
1115 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1116 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1117 x_libraries
=$ac_optarg ;;
1119 -*) as_fn_error
"unrecognized option: \`$ac_option'
1120 Try \`$0 --help' for more information."
1124 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1125 # Reject names that are not valid shell variable names.
1126 case $ac_envvar in #(
1127 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1128 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1130 eval $ac_envvar=\
$ac_optarg
1131 export $ac_envvar ;;
1134 # FIXME: should be removed in autoconf 3.0.
1135 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1136 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1137 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1138 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1144 if test -n "$ac_prev"; then
1145 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1146 as_fn_error
"missing argument to $ac_option"
1149 if test -n "$ac_unrecognized_opts"; then
1150 case $enable_option_checking in
1152 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1153 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1157 # Check all directory arguments for consistency.
1158 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1159 datadir sysconfdir sharedstatedir localstatedir includedir \
1160 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1161 libdir localedir mandir
1163 eval ac_val
=\$
$ac_var
1164 # Remove trailing slashes.
1167 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1168 eval $ac_var=\
$ac_val;;
1170 # Be sure to have absolute directory names.
1172 [\\/$
]* | ?
:[\\/]* ) continue;;
1173 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1175 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1178 # There might be people who depend on the old broken behavior: `$host'
1179 # used to hold the argument of --host etc.
1180 # FIXME: To remove some day.
1183 target
=$target_alias
1185 # FIXME: To remove some day.
1186 if test "x$host_alias" != x
; then
1187 if test "x$build_alias" = x
; then
1188 cross_compiling
=maybe
1189 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1190 If a cross compiler is detected then cross compile mode will be used." >&2
1191 elif test "x$build_alias" != "x$host_alias"; then
1197 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1199 test "$silent" = yes && exec 6>/dev
/null
1202 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1203 ac_ls_di
=`ls -di .` &&
1204 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1205 as_fn_error
"working directory cannot be determined"
1206 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1207 as_fn_error
"pwd does not report name of working directory"
1210 # Find the source files, if location was not specified.
1211 if test -z "$srcdir"; then
1212 ac_srcdir_defaulted
=yes
1213 # Try the directory containing this script, then the parent directory.
1214 ac_confdir
=`$as_dirname -- "$as_myself" ||
1215 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1216 X"$as_myself" : 'X\(//\)[^/]' \| \
1217 X"$as_myself" : 'X\(//\)$' \| \
1218 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1219 $as_echo X"$as_myself" |
1220 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1238 if test ! -r "$srcdir/$ac_unique_file"; then
1242 ac_srcdir_defaulted
=no
1244 if test ! -r "$srcdir/$ac_unique_file"; then
1245 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1246 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1248 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1250 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1252 # When building in place, set srcdir=.
1253 if test "$ac_abs_confdir" = "$ac_pwd"; then
1256 # Remove unnecessary trailing slashes from srcdir.
1257 # Double slashes in file names in object file debugging info
1258 # mess up M-x gdb in Emacs.
1260 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1262 for ac_var
in $ac_precious_vars; do
1263 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1264 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1265 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1266 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1270 # Report the --help message.
1272 if test "$ac_init_help" = "long"; then
1273 # Omit some internal or obsolete options to make the list less imposing.
1274 # This message is too long to be a string in the A/UX 3.1 sh.
1276 \`configure' configures this package to adapt to many kinds of systems.
1278 Usage: $0 [OPTION]... [VAR=VALUE]...
1280 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1281 VAR=VALUE. See below for descriptions of some of the useful variables.
1283 Defaults for the options are specified in brackets.
1286 -h, --help display this help and exit
1287 --help=short display options specific to this package
1288 --help=recursive display the short help of all the included packages
1289 -V, --version display version information and exit
1290 -q, --quiet, --silent do not print \`checking...' messages
1291 --cache-file=FILE cache test results in FILE [disabled]
1292 -C, --config-cache alias for \`--cache-file=config.cache'
1293 -n, --no-create do not create output files
1294 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1296 Installation directories:
1297 --prefix=PREFIX install architecture-independent files in PREFIX
1298 [$ac_default_prefix]
1299 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1302 By default, \`make install' will install all the files in
1303 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1304 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1305 for instance \`--prefix=\$HOME'.
1307 For better control, use the options below.
1309 Fine tuning of the installation directories:
1310 --bindir=DIR user executables [EPREFIX/bin]
1311 --sbindir=DIR system admin executables [EPREFIX/sbin]
1312 --libexecdir=DIR program executables [EPREFIX/libexec]
1313 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1314 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1315 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1316 --libdir=DIR object code libraries [EPREFIX/lib]
1317 --includedir=DIR C header files [PREFIX/include]
1318 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1319 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1320 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1321 --infodir=DIR info documentation [DATAROOTDIR/info]
1322 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1323 --mandir=DIR man documentation [DATAROOTDIR/man]
1324 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1325 --htmldir=DIR html documentation [DOCDIR]
1326 --dvidir=DIR dvi documentation [DOCDIR]
1327 --pdfdir=DIR pdf documentation [DOCDIR]
1328 --psdir=DIR ps documentation [DOCDIR]
1334 --program-prefix=PREFIX prepend PREFIX to installed program names
1335 --program-suffix=SUFFIX append SUFFIX to installed program names
1336 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1339 --build=BUILD configure
for building on BUILD
[guessed
]
1340 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1341 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1345 if test -n "$ac_init_help"; then
1350 --disable-option-checking ignore unrecognized
--enable/--with options
1351 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1352 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1353 --enable-checkmem turn on ccmalloc debugging
1354 --enable-debug turn on debugging
1355 --enable-profiling turn on profiling
1356 --enable-warnings turn on compiler warnings
1357 --enable-optimizations turn on compiler optimizations
(recommended
for avi2swf
)
1358 --enable-poppler link againist libpoppler
1359 --disable-lame "don't compile any L.A.M.E. mp3 encoding code in"
1361 Some influential environment variables
:
1362 CC C compiler
command
1363 CFLAGS C compiler flags
1364 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1365 nonstandard directory
<lib dir
>
1366 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1367 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1368 you have headers
in a nonstandard directory
<include dir
>
1369 CXX C
++ compiler
command
1370 CXXFLAGS C
++ compiler flags
1372 PKG_CONFIG path to pkg-config utility
1374 C compiler flags
for POPPLER
, overriding pkg-config
1376 linker flags
for POPPLER
, overriding pkg-config
1377 CXXCPP C
++ preprocessor
1379 Use these variables to override the choices made by
`configure' or to help
1380 it to find libraries and programs with nonstandard names/locations.
1382 Report bugs to the package provider.
1387 if test "$ac_init_help" = "recursive"; then
1388 # If there are subdirs, report their specific --help.
1389 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1390 test -d "$ac_dir" ||
1391 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1396 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1398 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1399 # A ".." for each directory in $ac_dir_suffix.
1400 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1401 case $ac_top_builddir_sub in
1402 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1403 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1406 ac_abs_top_builddir=$ac_pwd
1407 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1408 # for backward compatibility:
1409 ac_top_builddir=$ac_top_build_prefix
1412 .) # We are building in place.
1414 ac_top_srcdir=$ac_top_builddir_sub
1415 ac_abs_top_srcdir=$ac_pwd ;;
1416 [\\/]* | ?:[\\/]* ) # Absolute name.
1417 ac_srcdir=$srcdir$ac_dir_suffix;
1418 ac_top_srcdir=$srcdir
1419 ac_abs_top_srcdir=$srcdir ;;
1421 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1422 ac_top_srcdir=$ac_top_build_prefix$srcdir
1423 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1425 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1427 cd "$ac_dir" || { ac_status=$?; continue; }
1428 # Check for guested configure.
1429 if test -f "$ac_srcdir/configure.gnu"; then
1431 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1432 elif test -f "$ac_srcdir/configure"; then
1434 $SHELL "$ac_srcdir/configure" --help=recursive
1436 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1438 cd "$ac_pwd" || { ac_status=$?; break; }
1442 test -n "$ac_init_help" && exit $ac_status
1443 if $ac_init_version; then
1446 generated by GNU Autoconf 2.65
1448 Copyright (C) 2009 Free Software Foundation, Inc.
1449 This configure script is free software; the Free Software Foundation
1450 gives unlimited permission to copy, distribute and modify it.
1455 ## ------------------------ ##
1456 ## Autoconf initialization. ##
1457 ## ------------------------ ##
1459 # ac_fn_c_try_compile LINENO
1460 # --------------------------
1461 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1462 ac_fn_c_try_compile ()
1464 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1465 rm -f conftest.$ac_objext
1466 if { { ac_try="$ac_compile"
1468 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1469 *) ac_try_echo
=$ac_try;;
1471 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1472 $as_echo "$ac_try_echo"; } >&5
1473 (eval "$ac_compile") 2>conftest.err
1475 if test -s conftest.err
; then
1476 grep -v '^ *+' conftest.err
>conftest.er1
1477 cat conftest.er1
>&5
1478 mv -f conftest.er1 conftest.err
1480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1481 test $ac_status = 0; } && {
1482 test -z "$ac_c_werror_flag" ||
1483 test ! -s conftest.err
1484 } && test -s conftest.
$ac_objext; then :
1487 $as_echo "$as_me: failed program was:" >&5
1488 sed 's/^/| /' conftest.
$ac_ext >&5
1492 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1493 as_fn_set_status
$ac_retval
1495 } # ac_fn_c_try_compile
1497 # ac_fn_cxx_try_compile LINENO
1498 # ----------------------------
1499 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1500 ac_fn_cxx_try_compile
()
1502 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1503 rm -f conftest.
$ac_objext
1504 if { { ac_try
="$ac_compile"
1506 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1507 *) ac_try_echo=$ac_try;;
1509 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1510 $as_echo "$ac_try_echo"; } >&5
1511 (eval "$ac_compile") 2>conftest.err
1513 if test -s conftest.err; then
1514 grep -v '^ *+' conftest.err >conftest.er1
1515 cat conftest.er1 >&5
1516 mv -f conftest.er1 conftest.err
1518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1519 test $ac_status = 0; } && {
1520 test -z "$ac_cxx_werror_flag" ||
1521 test ! -s conftest.err
1522 } && test -s conftest.$ac_objext; then :
1525 $as_echo "$as_me: failed program was:" >&5
1526 sed 's/^/| /' conftest.$ac_ext >&5
1530 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1531 as_fn_set_status $ac_retval
1533 } # ac_fn_cxx_try_compile
1535 # ac_fn_c_try_cpp LINENO
1536 # ----------------------
1537 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1540 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1541 if { { ac_try="$ac_cpp conftest.$ac_ext"
1543 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1544 *) ac_try_echo
=$ac_try;;
1546 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1547 $as_echo "$ac_try_echo"; } >&5
1548 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1550 if test -s conftest.err
; then
1551 grep -v '^ *+' conftest.err
>conftest.er1
1552 cat conftest.er1
>&5
1553 mv -f conftest.er1 conftest.err
1555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1556 test $ac_status = 0; } >/dev
/null
&& {
1557 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1558 test ! -s conftest.err
1562 $as_echo "$as_me: failed program was:" >&5
1563 sed 's/^/| /' conftest.
$ac_ext >&5
1567 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1568 as_fn_set_status
$ac_retval
1572 # ac_fn_c_try_link LINENO
1573 # -----------------------
1574 # Try to link conftest.$ac_ext, and return whether this succeeded.
1577 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1578 rm -f conftest.
$ac_objext conftest
$ac_exeext
1579 if { { ac_try
="$ac_link"
1581 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1582 *) ac_try_echo=$ac_try;;
1584 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1585 $as_echo "$ac_try_echo"; } >&5
1586 (eval "$ac_link") 2>conftest.err
1588 if test -s conftest.err; then
1589 grep -v '^ *+' conftest.err >conftest.er1
1590 cat conftest.er1 >&5
1591 mv -f conftest.er1 conftest.err
1593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1594 test $ac_status = 0; } && {
1595 test -z "$ac_c_werror_flag" ||
1596 test ! -s conftest.err
1597 } && test -s conftest$ac_exeext && {
1598 test "$cross_compiling" = yes ||
1599 $as_test_x conftest$ac_exeext
1603 $as_echo "$as_me: failed program was:" >&5
1604 sed 's/^/| /' conftest.$ac_ext >&5
1608 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1609 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1610 # interfere with the next link command; also delete a directory that is
1611 # left behind by Apple's compiler. We do this before executing the actions.
1612 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1613 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1614 as_fn_set_status $ac_retval
1616 } # ac_fn_c_try_link
1618 # ac_fn_c_try_run LINENO
1619 # ----------------------
1620 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1621 # that executables *can* be run.
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 if { { ac_try="$ac_link"
1627 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1628 *) ac_try_echo
=$ac_try;;
1630 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1631 $as_echo "$ac_try_echo"; } >&5
1632 (eval "$ac_link") 2>&5
1634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1635 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1636 { { case "(($ac_try" in
1637 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1638 *) ac_try_echo=$ac_try;;
1640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1641 $as_echo "$ac_try_echo"; } >&5
1642 (eval "$ac_try") 2>&5
1644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1645 test $ac_status = 0; }; }; then :
1648 $as_echo "$as_me: program exited with status $ac_status" >&5
1649 $as_echo "$as_me: failed program was:" >&5
1650 sed 's/^/| /' conftest.$ac_ext >&5
1652 ac_retval=$ac_status
1654 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1655 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1656 as_fn_set_status $ac_retval
1660 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1661 # -------------------------------------------------------
1662 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1663 # the include files in INCLUDES and setting the cache variable VAR
1665 ac_fn_c_check_header_mongrel ()
1667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1668 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1670 $as_echo_n "checking for $2... " >&6; }
1671 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1672 $as_echo_n "(cached) " >&6
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1676 $as_echo "$ac_res" >&6; }
1678 # Is the header compilable?
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1680 $as_echo_n "checking $2 usability... " >&6; }
1681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1682 /* end confdefs.h. */
1686 if ac_fn_c_try_compile "$LINENO"; then :
1687 ac_header_compiler=yes
1689 ac_header_compiler=no
1691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1693 $as_echo "$ac_header_compiler" >&6; }
1695 # Is the header present?
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1697 $as_echo_n "checking $2 presence... " >&6; }
1698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1699 /* end confdefs.h. */
1702 if ac_fn_c_try_cpp "$LINENO"; then :
1703 ac_header_preproc=yes
1705 ac_header_preproc=no
1707 rm -f conftest.err conftest.$ac_ext
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1709 $as_echo "$ac_header_preproc" >&6; }
1711 # So? What about this header?
1712 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1715 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1717 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1721 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1723 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1725 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1727 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1729 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1733 $as_echo_n "checking for $2... " >&6; }
1734 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1735 $as_echo_n "(cached) " >&6
1737 eval "$3=\$ac_header_compiler"
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1741 $as_echo "$ac_res" >&6; }
1743 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1745 } # ac_fn_c_check_header_mongrel
1747 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1748 # -------------------------------------------------------
1749 # Tests whether HEADER exists and can be compiled using the include files in
1750 # INCLUDES, setting the cache variable VAR accordingly.
1751 ac_fn_c_check_header_compile ()
1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1755 $as_echo_n "checking for $2... " >&6; }
1756 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1757 $as_echo_n "(cached) " >&6
1759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1760 /* end confdefs.h. */
1764 if ac_fn_c_try_compile "$LINENO"; then :
1769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1773 $as_echo "$ac_res" >&6; }
1774 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1776 } # ac_fn_c_check_header_compile
1778 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1779 # -------------------------------------------
1780 # Tests whether TYPE exists after having included INCLUDES, setting cache
1781 # variable VAR accordingly.
1782 ac_fn_c_check_type ()
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1786 $as_echo_n "checking for $2... " >&6; }
1787 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1788 $as_echo_n "(cached) " >&6
1791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1792 /* end confdefs.h. */
1803 if ac_fn_c_try_compile "$LINENO"; then :
1804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1805 /* end confdefs.h. */
1816 if ac_fn_c_try_compile "$LINENO"; then :
1821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1827 $as_echo "$ac_res" >&6; }
1828 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1830 } # ac_fn_c_check_type
1832 # ac_fn_c_check_func LINENO FUNC VAR
1833 # ----------------------------------
1834 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1835 ac_fn_c_check_func ()
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1839 $as_echo_n "checking for $2... " >&6; }
1840 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1841 $as_echo_n "(cached) " >&6
1843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1844 /* end confdefs.h. */
1845 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1847 #define $2 innocuous_$2
1849 /* System header to define __stub macros and hopefully few prototypes,
1850 which can conflict with char $2 (); below.
1851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1852 <limits.h> exists even on freestanding compilers. */
1855 # include <limits.h>
1857 # include <assert.h>
1862 /* Override any GCC internal prototype to avoid an error.
1863 Use char because int might match the return type of a GCC
1864 builtin and then its argument prototype would still apply. */
1869 /* The GNU C library defines this for functions which it implements
1870 to always fail with ENOSYS. Some functions are actually named
1871 something starting with __ and the normal name is an alias. */
1872 #if defined __stub_$2 || defined __stub___$2
1884 if ac_fn_c_try_link "$LINENO"; then :
1889 rm -f core conftest.err conftest.$ac_objext \
1890 conftest$ac_exeext conftest.$ac_ext
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1894 $as_echo "$ac_res" >&6; }
1895 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1897 } # ac_fn_c_check_func
1899 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1900 # --------------------------------------------
1901 # Tries to find the compile-time value of EXPR in a program that includes
1902 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1904 ac_fn_c_compute_int ()
1906 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1907 if test "$cross_compiling" = yes; then
1908 # Depending upon the size, compute the lo and hi bounds.
1909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910 /* end confdefs.h. */
1915 static int test_array [1 - 2 * !(($2) >= 0)];
1922 if ac_fn_c_try_compile "$LINENO"; then :
1925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1926 /* end confdefs.h. */
1931 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1938 if ac_fn_c_try_compile "$LINENO"; then :
1939 ac_hi=$ac_mid; break
1941 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1942 if test $ac_lo -le $ac_mid; then
1946 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952 /* end confdefs.h. */
1957 static int test_array [1 - 2 * !(($2) < 0)];
1964 if ac_fn_c_try_compile "$LINENO"; then :
1967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1968 /* end confdefs.h. */
1973 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1980 if ac_fn_c_try_compile "$LINENO"; then :
1981 ac_lo=$ac_mid; break
1983 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1984 if test $ac_mid -le $ac_hi; then
1988 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998 # Binary search between lo and hi bounds.
1999 while test "x$ac_lo" != "x$ac_hi"; do
2000 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h. */
2007 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2014 if ac_fn_c_try_compile "$LINENO"; then :
2017 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2022 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h. */
2029 static long int longval () { return $2; }
2030 static unsigned long int ulongval () { return $2; }
2037 FILE *f = fopen ("conftest.val", "w");
2042 long int i = longval ();
2045 fprintf (f, "%ld", i);
2049 unsigned long int i = ulongval ();
2052 fprintf (f, "%lu", i);
2054 /* Do not output a trailing newline, as this causes \r\n confusion
2055 on some platforms. */
2056 return ferror (f) || fclose (f) != 0;
2062 if ac_fn_c_try_run "$LINENO"; then :
2063 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2068 conftest.$ac_objext conftest.beam conftest.$ac_ext
2072 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2073 as_fn_set_status $ac_retval
2075 } # ac_fn_c_compute_int
2077 # ac_fn_cxx_try_cpp LINENO
2078 # ------------------------
2079 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2080 ac_fn_cxx_try_cpp ()
2082 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083 if { { ac_try="$ac_cpp conftest.$ac_ext"
2085 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2086 *) ac_try_echo
=$ac_try;;
2088 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2089 $as_echo "$ac_try_echo"; } >&5
2090 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2092 if test -s conftest.err
; then
2093 grep -v '^ *+' conftest.err
>conftest.er1
2094 cat conftest.er1
>&5
2095 mv -f conftest.er1 conftest.err
2097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2098 test $ac_status = 0; } >/dev
/null
&& {
2099 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2100 test ! -s conftest.err
2104 $as_echo "$as_me: failed program was:" >&5
2105 sed 's/^/| /' conftest.
$ac_ext >&5
2109 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2110 as_fn_set_status
$ac_retval
2112 } # ac_fn_cxx_try_cpp
2114 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2115 # ---------------------------------------------------------
2116 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2117 # the include files in INCLUDES and setting the cache variable VAR
2119 ac_fn_cxx_check_header_mongrel
()
2121 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2122 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2124 $as_echo_n "checking for $2... " >&6; }
2125 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2126 $as_echo_n "(cached) " >&6
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2130 $as_echo "$ac_res" >&6; }
2132 # Is the header compilable?
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2134 $as_echo_n "checking $2 usability... " >&6; }
2135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2136 /* end confdefs.h. */
2140 if ac_fn_cxx_try_compile
"$LINENO"; then :
2141 ac_header_compiler
=yes
2143 ac_header_compiler
=no
2145 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2147 $as_echo "$ac_header_compiler" >&6; }
2149 # Is the header present?
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2151 $as_echo_n "checking $2 presence... " >&6; }
2152 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2153 /* end confdefs.h. */
2156 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2157 ac_header_preproc
=yes
2159 ac_header_preproc
=no
2161 rm -f conftest.err conftest.
$ac_ext
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2163 $as_echo "$ac_header_preproc" >&6; }
2165 # So? What about this header?
2166 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2169 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2171 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2175 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2177 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2179 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2181 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2183 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2187 $as_echo_n "checking for $2... " >&6; }
2188 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2189 $as_echo_n "(cached) " >&6
2191 eval "$3=\$ac_header_compiler"
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2195 $as_echo "$ac_res" >&6; }
2197 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2199 } # ac_fn_cxx_check_header_mongrel
2201 # ac_fn_cxx_try_link LINENO
2202 # -------------------------
2203 # Try to link conftest.$ac_ext, and return whether this succeeded.
2204 ac_fn_cxx_try_link
()
2206 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2207 rm -f conftest.
$ac_objext conftest
$ac_exeext
2208 if { { ac_try
="$ac_link"
2210 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2211 *) ac_try_echo=$ac_try;;
2213 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2214 $as_echo "$ac_try_echo"; } >&5
2215 (eval "$ac_link") 2>conftest.err
2217 if test -s conftest.err; then
2218 grep -v '^ *+' conftest.err >conftest.er1
2219 cat conftest.er1 >&5
2220 mv -f conftest.er1 conftest.err
2222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2223 test $ac_status = 0; } && {
2224 test -z "$ac_cxx_werror_flag" ||
2225 test ! -s conftest.err
2226 } && test -s conftest$ac_exeext && {
2227 test "$cross_compiling" = yes ||
2228 $as_test_x conftest$ac_exeext
2232 $as_echo "$as_me: failed program was:" >&5
2233 sed 's/^/| /' conftest.$ac_ext >&5
2237 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2238 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2239 # interfere with the next link command; also delete a directory that is
2240 # left behind by Apple's compiler. We do this before executing the actions.
2241 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2242 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2243 as_fn_set_status $ac_retval
2245 } # ac_fn_cxx_try_link
2246 cat >config.log <<_ACEOF
2247 This file contains any messages produced by compilers while
2248 running configure, to aid debugging if configure makes a mistake.
2250 It was created by $as_me, which was
2251 generated by GNU Autoconf 2.65. Invocation command line was
2263 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2264 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2265 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2266 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2267 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2269 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2270 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2272 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2273 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2274 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2275 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2276 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2277 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2278 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2286 test -z "$as_dir" && as_dir=.
2287 $as_echo "PATH: $as_dir"
2303 # Keep a trace of the command line.
2304 # Strip out --no-create and --no-recursion so they do not pile up.
2305 # Strip out --silent because we don't want to record it for future runs.
2306 # Also quote any args containing shell meta-characters.
2307 # Make two passes to allow for proper duplicate-argument suppression.
2311 ac_must_keep_next=false
2317 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2318 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2319 | -silent | --silent | --silen | --sile | --sil)
2322 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2325 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2327 as_fn_append ac_configure_args1 " '$ac_arg'"
2328 if test $ac_must_keep_next = true; then
2329 ac_must_keep_next=false # Got value, back to normal.
2332 *=* | --config-cache | -C | -disable-* | --disable-* \
2333 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2334 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2335 | -with-* | --with-* | -without-* | --without-* | --x)
2336 case "$ac_configure_args0 " in
2337 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2340 -* ) ac_must_keep_next=true ;;
2343 as_fn_append ac_configure_args " '$ac_arg'"
2348 { ac_configure_args0=; unset ac_configure_args0;}
2349 { ac_configure_args1=; unset ac_configure_args1;}
2351 # When interrupted or exit'd, cleanup temporary files, and complete
2352 # config.log. We remove comments because anyway the quotes in there
2353 # would cause problems or look ugly.
2354 # WARNING: Use '\'' to represent an apostrophe within the trap.
2355 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2356 trap 'exit_status=$?
2357 # Save into config.log some information that might help in debugging.
2362 ## ---------------- ##
2363 ## Cache variables. ##
2364 ## ---------------- ##
2367 # The following way of writing the cache mishandles newlines in values,
2369 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2370 eval ac_val=\$$ac_var
2374 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2375 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2378 _ | IFS | as_nl) ;; #(
2379 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2380 *) { eval $ac_var=; unset $ac_var;} ;;
2385 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2386 *${as_nl}ac_space=\ *)
2388 "s/'\''/'\''\\\\'\'''\''/g;
2389 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2392 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2400 ## ----------------- ##
2401 ## Output variables. ##
2402 ## ----------------- ##
2405 for ac_var in $ac_subst_vars
2407 eval ac_val=\$$ac_var
2409 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2411 $as_echo "$ac_var='\''$ac_val'\''"
2415 if test -n "$ac_subst_files"; then
2417 ## ------------------- ##
2418 ## File substitutions. ##
2419 ## ------------------- ##
2422 for ac_var in $ac_subst_files
2424 eval ac_val=\$$ac_var
2426 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2428 $as_echo "$ac_var='\''$ac_val'\''"
2433 if test -s confdefs.h; then
2443 test "$ac_signal" != 0 &&
2444 $as_echo "$as_me: caught signal $ac_signal"
2445 $as_echo "$as_me: exit $exit_status"
2447 rm -f core *.core core.conftest.* &&
2448 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2451 for ac_signal in 1 2 13 15; do
2452 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2456 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2457 rm -f -r conftest* confdefs.h
2459 $as_echo "/* confdefs.h */" > confdefs.h
2461 # Predefined preprocessor variables.
2463 cat >>confdefs.h <<_ACEOF
2464 #define PACKAGE_NAME "$PACKAGE_NAME"
2467 cat >>confdefs.h <<_ACEOF
2468 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2471 cat >>confdefs.h <<_ACEOF
2472 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2475 cat >>confdefs.h <<_ACEOF
2476 #define PACKAGE_STRING "$PACKAGE_STRING"
2479 cat >>confdefs.h <<_ACEOF
2480 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2483 cat >>confdefs.h <<_ACEOF
2484 #define PACKAGE_URL "$PACKAGE_URL"
2488 # Let the site file select an alternate cache file if it wants to.
2489 # Prefer an explicitly selected file to automatically selected ones.
2492 if test -n "$CONFIG_SITE"; then
2493 ac_site_file1=$CONFIG_SITE
2494 elif test "x$prefix" != xNONE; then
2495 ac_site_file1=$prefix/share/config.site
2496 ac_site_file2=$prefix/etc/config.site
2498 ac_site_file1=$ac_default_prefix/share/config.site
2499 ac_site_file2=$ac_default_prefix/etc/config.site
2501 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2503 test "x$ac_site_file" = xNONE && continue
2504 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2506 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2507 sed 's/^/| /' "$ac_site_file" >&5
2512 if test -r "$cache_file"; then
2513 # Some versions of bash will fail to source /dev/null (special files
2514 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2515 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2517 $as_echo "$as_me: loading cache $cache_file" >&6;}
2519 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2520 *) . "./$cache_file";;
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2525 $as_echo "$as_me: creating cache $cache_file" >&6;}
2529 # Check that the precious variables saved in the cache have kept the same
2531 ac_cache_corrupted=false
2532 for ac_var in $ac_precious_vars; do
2533 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2534 eval ac_new_set=\$ac_env_${ac_var}_set
2535 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2536 eval ac_new_val=\$ac_env_${ac_var}_value
2537 case $ac_old_set,$ac_new_set in
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2540 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2541 ac_cache_corrupted=: ;;
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2544 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2545 ac_cache_corrupted=: ;;
2548 if test "x$ac_old_val" != "x$ac_new_val"; then
2549 # differences in whitespace do not lead to failure.
2550 ac_old_val_w=`echo x
$ac_old_val`
2551 ac_new_val_w=`echo x
$ac_new_val`
2552 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2554 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2555 ac_cache_corrupted=:
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2558 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2559 eval $ac_var=\$ac_old_val
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2562 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2564 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2567 # Pass precious variables to config.status.
2568 if test "$ac_new_set" = set; then
2570 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2571 *) ac_arg=$ac_var=$ac_new_val ;;
2573 case " $ac_configure_args " in
2574 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2575 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2579 if $ac_cache_corrupted; then
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2581 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2583 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2584 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2586 ## -------------------- ##
2587 ## Main body of script. ##
2588 ## -------------------- ##
2591 ac_cpp='$CPP $CPPFLAGS'
2592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2599 # ------------------- option parsing -------------------------------
2609 # Check whether --enable-checkmem was given.
2610 if test "${enable_checkmem+set}" = set; then :
2611 enableval=$enable_checkmem; CHECKMEM=true
2614 # Check whether --enable-debug was given.
2615 if test "${enable_debug+set}" = set; then :
2616 enableval=$enable_debug; DEBUG=true
2619 # Check whether --enable-profiling was given.
2620 if test "${enable_profiling+set}" = set; then :
2621 enableval=$enable_profiling; PROFILING=true
2624 # Check whether --enable-warnings was given.
2625 if test "${enable_warnings+set}" = set; then :
2626 enableval=$enable_warnings; ENABLE_WARNINGS=true
2629 # Check whether --enable-optimizations was given.
2630 if test "${enable_optimizations+set}" = set; then :
2631 enableval=$enable_optimizations; OPTIMIZE=true
2634 # Check whether --enable-poppler was given.
2635 if test "${enable_poppler+set}" = set; then :
2636 enableval=$enable_poppler; USE_POPPLER=true
2639 # Check whether --enable-lame was given.
2640 if test "${enable_lame+set}" = set; then :
2641 enableval=$enable_lame; if test "x$enable_lame" = "xno";then
2650 VERSION=2010-08-05-2217
2652 # ------------------------------------------------------------------
2654 if test "x${srcdir}" != "x."; then
2655 echo "--srcdir is not supported"
2659 WARNINGS="-Wimplicit -Wreturn-type -Wno-write-strings -Wformat"
2660 if test "x$ENABLE_WARNINGS" '!=' "x";then
2661 WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls -Wno-write-strings -D_FORTIFY_SOURCE=2 "
2664 if test "x$CHECKMEM" '!=' "x";then
2667 if test "x$PROFILING" '!=' "x";then
2670 if test "x$DEBUG" '!=' "x";then
2671 if test "x$PROFILING" = "x";then
2672 CFLAGS="$WARNINGS -O2 -g $CFLAGS"
2673 CXXFLAGS="$WARNINGS -O2 -g $CXXFLAGS"
2674 LDFLAGS="-g $LDFLAGS"
2676 CFLAGS="$WARNINGS -O2 -g -pg $CFLAGS"
2677 CXXFLAGS="$WARNINGS -O2 -g -pg $CXXFLAGS"
2678 LDFLAGS="-g -pg $LDFLAGS"
2680 else if test "x$OPTIMIZE" '!=' "x"; then
2681 CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
2682 CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
2684 CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
2685 CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
2689 CFLAGS="-fPIC $CFLAGS"
2690 CXXFLAGS="-fPIC $CFLAGS"
2693 #if test "x$OLDGCC" '!=' "x";then
2694 # #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
2695 # #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
2696 # CFLAGS="$CFLAGS -ansi -pendantic"
2697 # CXXFLAGS="$CXXFLAGS -ansi -pendantic"
2700 export PACKAGE VERSION CFLAGS CXXFLAGS
2704 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2705 for ac_t in install-sh install.sh shtool; do
2706 if test -f "$ac_dir/$ac_t"; then
2708 ac_install_sh="$ac_aux_dir/$ac_t -c"
2713 if test -z "$ac_aux_dir"; then
2714 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2717 # These three variables are undocumented and unsupported,
2718 # and are intended to be withdrawn in a future Autoconf release.
2719 # They can cause serious problems if a builder's source tree is in a directory
2720 # whose full name contains unusual characters.
2721 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2722 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2723 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2726 # Make sure we can run config.sub.
2727 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2728 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2731 $as_echo_n "checking build system type... " >&6; }
2732 if test "${ac_cv_build+set}" = set; then :
2733 $as_echo_n "(cached) " >&6
2735 ac_build_alias=$build_alias
2736 test "x$ac_build_alias" = x &&
2737 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2738 test "x$ac_build_alias" = x &&
2739 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2740 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2741 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2745 $as_echo "$ac_cv_build" >&6; }
2746 case $ac_cv_build in
2748 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2751 ac_save_IFS=$IFS; IFS='-'
2757 # Remember, the first character of IFS is used to create $*,
2758 # except with old shells:
2761 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2765 $as_echo_n "checking host system type... " >&6; }
2766 if test "${ac_cv_host+set}" = set; then :
2767 $as_echo_n "(cached) " >&6
2769 if test "x$host_alias" = x; then
2770 ac_cv_host=$ac_cv_build
2772 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2773 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2778 $as_echo "$ac_cv_host" >&6; }
2781 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2784 ac_save_IFS=$IFS; IFS='-'
2790 # Remember, the first character of IFS is used to create $*,
2791 # except with old shells:
2794 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2805 CXXFLAGS="$CXXFLAGS -fno-rtti"
2808 if test -d /opt/local/include && test -d /opt/local/lib; then
2809 CPPFLAGS="${CPPFLAGS} -I/opt/local/include"
2810 LDFLAGS="${LDFLAGS} -L/opt/local/lib"
2812 # Use fink packages if available.
2813 #if test -d /sw/include && test -d /sw/lib; then
2814 # CPPFLAGS="${CPPFLAGS} -I/sw/include"
2815 # LDFLAGS="${LDFLAGS} -L/sw/lib"
2823 ac_cpp='$CPP $CPPFLAGS'
2824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2827 if test -n "$ac_tool_prefix"; then
2828 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2829 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2831 $as_echo_n "checking for $ac_word... " >&6; }
2832 if test "${ac_cv_prog_CC+set}" = set; then :
2833 $as_echo_n "(cached) " >&6
2835 if test -n "$CC"; then
2836 ac_cv_prog_CC="$CC" # Let the user override the test.
2838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842 test -z "$as_dir" && as_dir=.
2843 for ac_exec_ext in '' $ac_executable_extensions; do
2844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2845 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2856 if test -n "$CC"; then
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2858 $as_echo "$CC" >&6; }
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2861 $as_echo "no" >&6; }
2866 if test -z "$ac_cv_prog_CC"; then
2868 # Extract the first word of "gcc", so it can be a program name with args.
2869 set dummy gcc; ac_word=$2
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2871 $as_echo_n "checking for $ac_word... " >&6; }
2872 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2873 $as_echo_n "(cached) " >&6
2875 if test -n "$ac_ct_CC"; then
2876 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882 test -z "$as_dir" && as_dir=.
2883 for ac_exec_ext in '' $ac_executable_extensions; do
2884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2885 ac_cv_prog_ac_ct_CC="gcc"
2886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2895 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2896 if test -n "$ac_ct_CC"; then
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2898 $as_echo "$ac_ct_CC" >&6; }
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2901 $as_echo "no" >&6; }
2904 if test "x$ac_ct_CC" = x; then
2907 case $cross_compiling:$ac_tool_warned in
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2910 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2911 ac_tool_warned=yes ;;
2919 if test -z "$CC"; then
2920 if test -n "$ac_tool_prefix"; then
2921 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2922 set dummy ${ac_tool_prefix}cc; ac_word=$2
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2924 $as_echo_n "checking for $ac_word... " >&6; }
2925 if test "${ac_cv_prog_CC+set}" = set; then :
2926 $as_echo_n "(cached) " >&6
2928 if test -n "$CC"; then
2929 ac_cv_prog_CC="$CC" # Let the user override the test.
2931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935 test -z "$as_dir" && as_dir=.
2936 for ac_exec_ext in '' $ac_executable_extensions; do
2937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2938 ac_cv_prog_CC="${ac_tool_prefix}cc"
2939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2949 if test -n "$CC"; then
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2951 $as_echo "$CC" >&6; }
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2954 $as_echo "no" >&6; }
2960 if test -z "$CC"; then
2961 # Extract the first word of "cc", so it can be a program name with args.
2962 set dummy cc; ac_word=$2
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2964 $as_echo_n "checking for $ac_word... " >&6; }
2965 if test "${ac_cv_prog_CC+set}" = set; then :
2966 $as_echo_n "(cached) " >&6
2968 if test -n "$CC"; then
2969 ac_cv_prog_CC="$CC" # Let the user override the test.
2972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976 test -z "$as_dir" && as_dir=.
2977 for ac_exec_ext in '' $ac_executable_extensions; do
2978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2979 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2980 ac_prog_rejected=yes
2984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2991 if test $ac_prog_rejected = yes; then
2992 # We found a bogon in the path, so make sure we never use it.
2993 set dummy $ac_cv_prog_CC
2995 if test $# != 0; then
2996 # We chose a different compiler from the bogus one.
2997 # However, it has the same basename, so the bogon will be chosen
2998 # first if we set CC to just the basename; use the full file name.
3000 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3006 if test -n "$CC"; then
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3008 $as_echo "$CC" >&6; }
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3011 $as_echo "no" >&6; }
3016 if test -z "$CC"; then
3017 if test -n "$ac_tool_prefix"; then
3018 for ac_prog in cl.exe
3020 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3021 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3023 $as_echo_n "checking for $ac_word... " >&6; }
3024 if test "${ac_cv_prog_CC+set}" = set; then :
3025 $as_echo_n "(cached) " >&6
3027 if test -n "$CC"; then
3028 ac_cv_prog_CC="$CC" # Let the user override the test.
3030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034 test -z "$as_dir" && as_dir=.
3035 for ac_exec_ext in '' $ac_executable_extensions; do
3036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3037 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3048 if test -n "$CC"; then
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3050 $as_echo "$CC" >&6; }
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3053 $as_echo "no" >&6; }
3057 test -n "$CC" && break
3060 if test -z "$CC"; then
3062 for ac_prog in cl.exe
3064 # Extract the first word of "$ac_prog", so it can be a program name with args.
3065 set dummy $ac_prog; ac_word=$2
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3067 $as_echo_n "checking for $ac_word... " >&6; }
3068 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3069 $as_echo_n "(cached) " >&6
3071 if test -n "$ac_ct_CC"; then
3072 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3078 test -z "$as_dir" && as_dir=.
3079 for ac_exec_ext in '' $ac_executable_extensions; do
3080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3081 ac_cv_prog_ac_ct_CC="$ac_prog"
3082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3091 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3092 if test -n "$ac_ct_CC"; then
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3094 $as_echo "$ac_ct_CC" >&6; }
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3097 $as_echo "no" >&6; }
3101 test -n "$ac_ct_CC" && break
3104 if test "x$ac_ct_CC" = x; then
3107 case $cross_compiling:$ac_tool_warned in
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3110 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3111 ac_tool_warned=yes ;;
3120 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3121 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3122 as_fn_error "no acceptable C compiler found
in \
$PATH
3123 See \
`config.log' for more details." "$LINENO" 5; }
3125 # Provide some information about the compiler.
3126 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3129 for ac_option in --version -v -V -qversion; do
3130 { { ac_try="$ac_compiler $ac_option >&5"
3132 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3133 *) ac_try_echo
=$ac_try;;
3135 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3136 $as_echo "$ac_try_echo"; } >&5
3137 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3139 if test -s conftest.err
; then
3141 ... rest of stderr output deleted ...
3142 10q' conftest.err
>conftest.er1
3143 cat conftest.er1
>&5
3145 rm -f conftest.er1 conftest.err
3146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3147 test $ac_status = 0; }
3150 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3151 /* end confdefs.h. */
3161 ac_clean_files_save
=$ac_clean_files
3162 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3163 # Try to create an executable without -o first, disregard a.out.
3164 # It will help us diagnose broken compilers, and finding out an intuition
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3167 $as_echo_n "checking whether the C compiler works... " >&6; }
3168 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3170 # The possible output files:
3171 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3174 for ac_file
in $ac_files
3177 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3178 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3183 if { { ac_try
="$ac_link_default"
3185 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3186 *) ac_try_echo=$ac_try;;
3188 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3189 $as_echo "$ac_try_echo"; } >&5
3190 (eval "$ac_link_default") 2>&5
3192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3193 test $ac_status = 0; }; then :
3194 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3195 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3196 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3197 # so that the user can short-circuit this test for compilers unknown to
3199 for ac_file in $ac_files ''
3201 test -f "$ac_file" || continue
3203 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3206 # We found the default executable, but exeext='' is most
3210 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3212 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3214 # We set ac_cv_exeext here because the later test for it is not
3215 # safe: cross compilers may not add the suffix if given an `-o'
3216 # argument, so we may need to know it at that point already.
3217 # Even if this section looks crufty: it has the advantage of
3224 test "$ac_cv_exeext" = no && ac_cv_exeext=
3229 if test -z "$ac_file"; then :
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3231 $as_echo "no" >&6; }
3232 $as_echo "$as_me: failed program was:" >&5
3233 sed 's
/^
/|
/' conftest.$ac_ext >&5
3235 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3236 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3237 { as_fn_set_status 77
3238 as_fn_error "C compiler cannot create executables
3239 See \`config.log
' for more details." "$LINENO" 5; }; }
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3242 $as_echo "yes" >&6; }
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3245 $as_echo_n "checking for C compiler default output file name... " >&6; }
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3247 $as_echo "$ac_file" >&6; }
3248 ac_exeext=$ac_cv_exeext
3250 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3251 ac_clean_files=$ac_clean_files_save
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3253 $as_echo_n "checking for suffix of executables... " >&6; }
3254 if { { ac_try="$ac_link"
3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257 *) ac_try_echo=$ac_try;;
3259 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3260 $as_echo "$ac_try_echo"; } >&5
3261 (eval "$ac_link") 2>&5
3263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3264 test $ac_status = 0; }; then :
3265 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3266 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3267 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3269 for ac_file
in conftest.exe conftest conftest.
*; do
3270 test -f "$ac_file" ||
continue
3272 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3273 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3279 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3280 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3281 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3282 See \`config.log' for more details." "$LINENO" 5; }
3284 rm -f conftest conftest
$ac_cv_exeext
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3286 $as_echo "$ac_cv_exeext" >&6; }
3288 rm -f conftest.
$ac_ext
3289 EXEEXT
=$ac_cv_exeext
3291 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3292 /* end confdefs.h. */
3297 FILE *f = fopen ("conftest.out", "w");
3298 return ferror (f) || fclose (f) != 0;
3304 ac_clean_files
="$ac_clean_files conftest.out"
3305 # Check that the compiler produces executables we can run. If not, either
3306 # the compiler is broken, or we cross compile.
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3308 $as_echo_n "checking whether we are cross compiling... " >&6; }
3309 if test "$cross_compiling" != yes; then
3310 { { ac_try
="$ac_link"
3312 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3313 *) ac_try_echo=$ac_try;;
3315 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3316 $as_echo "$ac_try_echo"; } >&5
3317 (eval "$ac_link") 2>&5
3319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3320 test $ac_status = 0; }
3321 if { ac_try='./conftest$ac_cv_exeext'
3322 { { case "(($ac_try" in
3323 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3324 *) ac_try_echo
=$ac_try;;
3326 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3327 $as_echo "$ac_try_echo"; } >&5
3328 (eval "$ac_try") 2>&5
3330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3331 test $ac_status = 0; }; }; then
3334 if test "$cross_compiling" = maybe
; then
3337 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3338 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3339 as_fn_error
"cannot run C compiled programs.
3340 If you meant to cross compile, use \`--host'.
3341 See \`config.log' for more details." "$LINENO" 5; }
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3346 $as_echo "$cross_compiling" >&6; }
3348 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3349 ac_clean_files
=$ac_clean_files_save
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3351 $as_echo_n "checking for suffix of object files... " >&6; }
3352 if test "${ac_cv_objext+set}" = set; then :
3353 $as_echo_n "(cached) " >&6
3355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3356 /* end confdefs.h. */
3366 rm -f conftest.o conftest.obj
3367 if { { ac_try
="$ac_compile"
3369 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3370 *) ac_try_echo=$ac_try;;
3372 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3373 $as_echo "$ac_try_echo"; } >&5
3374 (eval "$ac_compile") 2>&5
3376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3377 test $ac_status = 0; }; then :
3378 for ac_file in conftest.o conftest.obj conftest.*; do
3379 test -f "$ac_file" || continue;
3381 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3382 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3387 $as_echo "$as_me: failed program was:" >&5
3388 sed 's/^/| /' conftest.$ac_ext >&5
3390 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3391 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3392 as_fn_error "cannot compute suffix of object files
: cannot compile
3393 See \
`config.log' for more details." "$LINENO" 5; }
3395 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3398 $as_echo "$ac_cv_objext" >&6; }
3399 OBJEXT=$ac_cv_objext
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3402 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3403 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3404 $as_echo_n "(cached) " >&6
3406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3407 /* end confdefs.h. */
3420 if ac_fn_c_try_compile "$LINENO"; then :
3425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3426 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3430 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3431 if test $ac_compiler_gnu = yes; then
3436 ac_test_CFLAGS=${CFLAGS+set}
3437 ac_save_CFLAGS=$CFLAGS
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3439 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3440 if test "${ac_cv_prog_cc_g+set}" = set; then :
3441 $as_echo_n "(cached) " >&6
3443 ac_save_c_werror_flag=$ac_c_werror_flag
3444 ac_c_werror_flag=yes
3447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3448 /* end confdefs.h. */
3458 if ac_fn_c_try_compile "$LINENO"; then :
3462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3463 /* end confdefs.h. */
3473 if ac_fn_c_try_compile "$LINENO"; then :
3476 ac_c_werror_flag=$ac_save_c_werror_flag
3478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3479 /* end confdefs.h. */
3489 if ac_fn_c_try_compile "$LINENO"; then :
3492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3497 ac_c_werror_flag=$ac_save_c_werror_flag
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3500 $as_echo "$ac_cv_prog_cc_g" >&6; }
3501 if test "$ac_test_CFLAGS" = set; then
3502 CFLAGS=$ac_save_CFLAGS
3503 elif test $ac_cv_prog_cc_g = yes; then
3504 if test "$GCC" = yes; then
3510 if test "$GCC" = yes; then
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3517 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3518 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3519 $as_echo_n "(cached) " >&6
3521 ac_cv_prog_cc_c89=no
3523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3524 /* end confdefs.h. */
3527 #include <sys/types.h>
3528 #include <sys/stat.h>
3529 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3530 struct buf { int x; };
3531 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3532 static char *e (p, i)
3538 static char *f (char * (*g) (char **, int), char **p, ...)
3543 s = g (p, va_arg (v,int));
3548 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3549 function prototypes and stuff, but not '\xHH' hex character constants.
3550 These don't provoke an error unfortunately, instead are silently treated
3551 as 'x'. The following induces an error, until -std is added to get
3552 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3553 array size at least. It's necessary to write '\x00'==0 to get something
3554 that's true only with -std. */
3555 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3557 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3558 inside strings and character constants. */
3560 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3562 int test (int i, double x);
3563 struct s1 {int (*f) (int a);};
3564 struct s2 {int (*f) (double a);};
3565 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3571 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3576 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3577 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3579 CC="$ac_save_CC $ac_arg"
3580 if ac_fn_c_try_compile "$LINENO"; then :
3581 ac_cv_prog_cc_c89=$ac_arg
3583 rm -f core conftest.err conftest.$ac_objext
3584 test "x$ac_cv_prog_cc_c89" != "xno" && break
3586 rm -f conftest.$ac_ext
3591 case "x$ac_cv_prog_cc_c89" in
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3594 $as_echo "none needed" >&6; } ;;
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3597 $as_echo "unsupported" >&6; } ;;
3599 CC="$CC $ac_cv_prog_cc_c89"
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3601 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3603 if test "x$ac_cv_prog_cc_c89" != xno; then :
3608 ac_cpp='$CPP $CPPFLAGS'
3609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3614 ac_cpp='$CXXCPP $CPPFLAGS'
3615 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3616 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3617 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3618 if test -z "$CXX"; then
3619 if test -n "$CCC"; then
3622 if test -n "$ac_tool_prefix"; then
3623 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3625 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3626 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3628 $as_echo_n "checking for $ac_word... " >&6; }
3629 if test "${ac_cv_prog_CXX+set}" = set; then :
3630 $as_echo_n "(cached) " >&6
3632 if test -n "$CXX"; then
3633 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3639 test -z "$as_dir" && as_dir=.
3640 for ac_exec_ext in '' $ac_executable_extensions; do
3641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3642 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3653 if test -n "$CXX"; then
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3655 $as_echo "$CXX" >&6; }
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3658 $as_echo "no" >&6; }
3662 test -n "$CXX" && break
3665 if test -z "$CXX"; then
3667 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3669 # Extract the first word of "$ac_prog", so it can be a program name with args.
3670 set dummy $ac_prog; ac_word=$2
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3672 $as_echo_n "checking for $ac_word... " >&6; }
3673 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3674 $as_echo_n "(cached) " >&6
3676 if test -n "$ac_ct_CXX"; then
3677 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3683 test -z "$as_dir" && as_dir=.
3684 for ac_exec_ext in '' $ac_executable_extensions; do
3685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3686 ac_cv_prog_ac_ct_CXX="$ac_prog"
3687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3696 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3697 if test -n "$ac_ct_CXX"; then
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3699 $as_echo "$ac_ct_CXX" >&6; }
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3702 $as_echo "no" >&6; }
3706 test -n "$ac_ct_CXX" && break
3709 if test "x$ac_ct_CXX" = x; then
3712 case $cross_compiling:$ac_tool_warned in
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3715 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3716 ac_tool_warned=yes ;;
3724 # Provide some information about the compiler.
3725 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3728 for ac_option in --version -v -V -qversion; do
3729 { { ac_try="$ac_compiler $ac_option >&5"
3731 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3732 *) ac_try_echo
=$ac_try;;
3734 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3735 $as_echo "$ac_try_echo"; } >&5
3736 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3738 if test -s conftest.err
; then
3740 ... rest of stderr output deleted ...
3741 10q' conftest.err
>conftest.er1
3742 cat conftest.er1
>&5
3744 rm -f conftest.er1 conftest.err
3745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3746 test $ac_status = 0; }
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3750 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3751 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3752 $as_echo_n "(cached) " >&6
3754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3755 /* end confdefs.h. */
3768 if ac_fn_cxx_try_compile
"$LINENO"; then :
3773 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3774 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3778 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3779 if test $ac_compiler_gnu = yes; then
3784 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3785 ac_save_CXXFLAGS
=$CXXFLAGS
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3787 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3788 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3789 $as_echo_n "(cached) " >&6
3791 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3792 ac_cxx_werror_flag
=yes
3795 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3796 /* end confdefs.h. */
3806 if ac_fn_cxx_try_compile
"$LINENO"; then :
3807 ac_cv_prog_cxx_g
=yes
3810 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3811 /* end confdefs.h. */
3821 if ac_fn_cxx_try_compile
"$LINENO"; then :
3824 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3826 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3827 /* end confdefs.h. */
3837 if ac_fn_cxx_try_compile
"$LINENO"; then :
3838 ac_cv_prog_cxx_g
=yes
3840 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3842 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3844 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3845 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3848 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3849 if test "$ac_test_CXXFLAGS" = set; then
3850 CXXFLAGS
=$ac_save_CXXFLAGS
3851 elif test $ac_cv_prog_cxx_g = yes; then
3852 if test "$GXX" = yes; then
3858 if test "$GXX" = yes; then
3865 ac_cpp
='$CPP $CPPFLAGS'
3866 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3867 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3868 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports lazy variable declaration" >&5
3874 $as_echo_n "checking whether gcc supports lazy variable declaration... " >&6; }
3876 cat > conftest.c
<< EOF
3880 int main (int argc, char*argv)
3890 testprog_link
='$CC $CPPFLAGS $CFLAGS conftest.c -o conftest${ac_exeext}'
3891 if { (eval echo gcc
.2.95.
m4:19: \"$testprog_link\") 1>&5; (eval $testprog_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3893 $as_echo "yes" >&6; }
3897 echo "configure: failed program was:" >&5
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3900 $as_echo "no" >&6; }
3905 if test "x$GCC_IS_OK" '=' "x";then
3906 echo "***************************************************"
3907 echo "* Your gcc is too old to compile this!"
3909 echo "* The last version compileable by this compiler is "
3910 echo "* swftools 0.7.0, which you can download from "
3911 echo "* http://www.swftools.org/swftools-0.7.0.tar.gz "
3913 echo "* Newer versions require at least gcc 3.0.0 "
3914 echo "***************************************************"
3918 if test "x$CHECKMEM" '!=' "x";then
3922 #unset ac_cv_prog_CC
3923 #unset ac_cv_prog_CXX
3928 ac_cpp
='$CPP $CPPFLAGS'
3929 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3930 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3931 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3933 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3934 # On Suns, sometimes $CPP names a directory.
3935 if test -n "$CPP" && test -d "$CPP"; then
3938 if test -z "$CPP"; then
3939 if test "${ac_cv_prog_CPP+set}" = set; then :
3940 $as_echo_n "(cached) " >&6
3942 # Double quotes because CPP needs to be expanded
3943 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3946 for ac_c_preproc_warn_flag
in '' yes
3948 # Use a header file that comes with gcc, so configuring glibc
3949 # with a fresh cross-compiler works.
3950 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3951 # <limits.h> exists even on freestanding compilers.
3952 # On the NeXT, cc -E runs the code through the compiler's parser,
3953 # not just through cpp. "Syntax error" is here to catch this case.
3954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3955 /* end confdefs.h. */
3957 # include <limits.h>
3959 # include <assert.h>
3963 if ac_fn_c_try_cpp
"$LINENO"; then :
3966 # Broken: fails on valid input.
3969 rm -f conftest.err conftest.
$ac_ext
3971 # OK, works on sane cases. Now check whether nonexistent headers
3972 # can be detected and how.
3973 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3974 /* end confdefs.h. */
3975 #include <ac_nonexistent.h>
3977 if ac_fn_c_try_cpp
"$LINENO"; then :
3978 # Broken: success on invalid input.
3981 # Passes both tests.
3985 rm -f conftest.err conftest.
$ac_ext
3988 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3989 rm -f conftest.err conftest.
$ac_ext
3990 if $ac_preproc_ok; then :
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4003 $as_echo "$CPP" >&6; }
4005 for ac_c_preproc_warn_flag
in '' yes
4007 # Use a header file that comes with gcc, so configuring glibc
4008 # with a fresh cross-compiler works.
4009 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4010 # <limits.h> exists even on freestanding compilers.
4011 # On the NeXT, cc -E runs the code through the compiler's parser,
4012 # not just through cpp. "Syntax error" is here to catch this case.
4013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4014 /* end confdefs.h. */
4016 # include <limits.h>
4018 # include <assert.h>
4022 if ac_fn_c_try_cpp
"$LINENO"; then :
4025 # Broken: fails on valid input.
4028 rm -f conftest.err conftest.
$ac_ext
4030 # OK, works on sane cases. Now check whether nonexistent headers
4031 # can be detected and how.
4032 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4033 /* end confdefs.h. */
4034 #include <ac_nonexistent.h>
4036 if ac_fn_c_try_cpp
"$LINENO"; then :
4037 # Broken: success on invalid input.
4040 # Passes both tests.
4044 rm -f conftest.err conftest.
$ac_ext
4047 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4048 rm -f conftest.err conftest.
$ac_ext
4049 if $ac_preproc_ok; then :
4052 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4053 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4054 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4055 See \`config.log' for more details." "$LINENO" 5; }
4059 ac_cpp
='$CPP $CPPFLAGS'
4060 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4061 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4062 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4065 if test -n "$ac_tool_prefix"; then
4066 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4067 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4069 $as_echo_n "checking for $ac_word... " >&6; }
4070 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4071 $as_echo_n "(cached) " >&6
4073 if test -n "$RANLIB"; then
4074 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4076 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4080 test -z "$as_dir" && as_dir
=.
4081 for ac_exec_ext
in '' $ac_executable_extensions; do
4082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4083 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4093 RANLIB
=$ac_cv_prog_RANLIB
4094 if test -n "$RANLIB"; then
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4096 $as_echo "$RANLIB" >&6; }
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4099 $as_echo "no" >&6; }
4104 if test -z "$ac_cv_prog_RANLIB"; then
4105 ac_ct_RANLIB
=$RANLIB
4106 # Extract the first word of "ranlib", so it can be a program name with args.
4107 set dummy ranlib
; ac_word
=$2
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4109 $as_echo_n "checking for $ac_word... " >&6; }
4110 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4111 $as_echo_n "(cached) " >&6
4113 if test -n "$ac_ct_RANLIB"; then
4114 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4116 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4120 test -z "$as_dir" && as_dir
=.
4121 for ac_exec_ext
in '' $ac_executable_extensions; do
4122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4123 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4133 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4134 if test -n "$ac_ct_RANLIB"; then
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4136 $as_echo "$ac_ct_RANLIB" >&6; }
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4139 $as_echo "no" >&6; }
4142 if test "x$ac_ct_RANLIB" = x
; then
4145 case $cross_compiling:$ac_tool_warned in
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4148 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4149 ac_tool_warned
=yes ;;
4151 RANLIB
=$ac_ct_RANLIB
4154 RANLIB
="$ac_cv_prog_RANLIB"
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4158 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4160 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4161 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4162 $as_echo_n "(cached) " >&6
4164 cat >conftest.
make <<\_ACEOF
4167 @
echo '@@@%%%=$(MAKE)=@@@%%%'
4169 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4170 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4172 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
4174 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
4178 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4180 $as_echo "yes" >&6; }
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4184 $as_echo "no" >&6; }
4185 SET_MAKE
="MAKE=${MAKE-make}"
4188 # Find a good install program. We prefer a C program (faster),
4189 # so one script is as good as another. But avoid the broken or
4190 # incompatible versions:
4191 # SysV /etc/install, /usr/sbin/install
4192 # SunOS /usr/etc/install
4193 # IRIX /sbin/install
4195 # AmigaOS /C/install, which installs bootblocks on floppy discs
4196 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4197 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4198 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4199 # OS/2's system install, which has a completely different semantic
4200 # ./install, which can be erroneously created by make from ./install.sh.
4201 # Reject install programs that cannot install multiple files.
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4203 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4204 if test -z "$INSTALL"; then
4205 if test "${ac_cv_path_install+set}" = set; then :
4206 $as_echo_n "(cached) " >&6
4208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4212 test -z "$as_dir" && as_dir
=.
4213 # Account for people who put trailing slashes in PATH elements.
4214 case $as_dir/ in #((
4215 .
/ | .
// |
/[cC
]/* | \
4216 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4217 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
4220 # OSF1 and SCO ODT 3.0 have their own names for install.
4221 # Don't use installbsd from OSF since it installs stuff as root
4223 for ac_prog
in ginstall scoinst
install; do
4224 for ac_exec_ext
in '' $ac_executable_extensions; do
4225 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4226 if test $ac_prog = install &&
4227 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4228 # AIX install. It has an incompatible calling convention.
4230 elif test $ac_prog = install &&
4231 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4232 # program-specific install script used by HP pwplus--don't use.
4235 rm -rf conftest.one conftest.two conftest.dir
4236 echo one
> conftest.one
4237 echo two
> conftest.two
4239 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
4240 test -s conftest.one
&& test -s conftest.two
&&
4241 test -s conftest.dir
/conftest.one
&&
4242 test -s conftest.dir
/conftest.two
4244 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4257 rm -rf conftest.one conftest.two conftest.dir
4260 if test "${ac_cv_path_install+set}" = set; then
4261 INSTALL
=$ac_cv_path_install
4263 # As a last resort, use the slow shell script. Don't cache a
4264 # value for INSTALL within a source directory, because that will
4265 # break other packages using the cache if that directory is
4266 # removed, or if the value is a relative name.
4267 INSTALL
=$ac_install_sh
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4271 $as_echo "$INSTALL" >&6; }
4273 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4274 # It thinks the first close brace ends the variable substitution.
4275 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4277 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4279 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4282 $as_echo_n "checking whether ln -s works... " >&6; }
4284 if test "$LN_S" = "ln -s"; then
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4286 $as_echo "yes" >&6; }
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4289 $as_echo "no, using $LN_S" >&6; }
4292 for ac_prog
in gzip uncompress compress
4294 # Extract the first word of "$ac_prog", so it can be a program name with args.
4295 set dummy
$ac_prog; ac_word
=$2
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4297 $as_echo_n "checking for $ac_word... " >&6; }
4298 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then :
4299 $as_echo_n "(cached) " >&6
4301 if test -n "$UNCOMPRESS"; then
4302 ac_cv_prog_UNCOMPRESS
="$UNCOMPRESS" # Let the user override the test.
4304 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4308 test -z "$as_dir" && as_dir
=.
4309 for ac_exec_ext
in '' $ac_executable_extensions; do
4310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4311 ac_cv_prog_UNCOMPRESS
="$ac_prog"
4312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4321 UNCOMPRESS
=$ac_cv_prog_UNCOMPRESS
4322 if test -n "$UNCOMPRESS"; then
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNCOMPRESS" >&5
4324 $as_echo "$UNCOMPRESS" >&6; }
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4327 $as_echo "no" >&6; }
4331 test -n "$UNCOMPRESS" && break
4342 if test "x$EXEEXT" = "x.exe";then
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system" >&5
4355 $as_echo_n "checking for target system... " >&6; }
4359 *cygwin
* ) CYGWIN
=yes;;
4360 *mingw
* ) MINGW
=yes;;
4364 if test "x$MINGW" = "xyes"; then
4365 #fix for the debian distribution of mingw
4366 if test -x "/usr/i586-mingw32msvc/bin/ar";then
4367 AR
="/usr/i586-mingw32msvc/bin/ar"
4369 if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
4370 RANLIB
="/usr/i586-mingw32msvc/bin/ranlib"
4372 #fix for the gentoo distribution of mingw
4373 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
4374 AR
="/opt/xmingw/bin/i386-mingw32msvc-ar"
4376 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
4377 RANLIB
="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
4379 if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
4380 STRIP
="/opt/xmingw/bin/i386-mingw32msvc-strip"
4386 if test "x${CYGWIN}" = "xyes"; then
4388 $as_echo "#define CYGWIN 1" >>confdefs.h
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cygwin" >&5
4391 $as_echo "cygwin" >&6; }
4393 if test "x${MINGW}" = "xyes"; then
4395 $as_echo "#define MINGW 1" >>confdefs.h
4399 $as_echo "#define WIN32 1" >>confdefs.h
4401 LIBS
="$LIBS -lws2_32 -lgdi32"
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: mingw" >&5
4403 $as_echo "mingw" >&6; }
4408 $as_echo "#define LINUX 1" >>confdefs.h
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
4416 if test "x${MINGW}" != "xyes"; then
4419 $as_echo "#define O_BINARY 0" >>confdefs.h
4430 # The following tries to make use of includes and libraries in
4431 # /usr/local, too. Notice: A -I/usr/local/include might break
4432 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
4433 # especially on systems which link /usr/local to /usr, so it has yet
4434 # to be seen how useful this is.
4435 if test -d /usr
/local
/lib
; then
4436 LDFLAGS
="$LDFLAGS -L/usr/local/lib"
4438 if test -d /usr
/local
/include
; then
4439 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
4440 # CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4443 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
4444 # if the user has a special prefix (like /opt), there might also be $prefix/lib
4445 # and $prefix/include, which should be included in our search paths for libraries
4447 LDFLAGS
="$LDFLAGS -L${libdir}"
4448 CPPFLAGS
="$CPPFLAGS -I${includedir}"
4449 # TODO- test whether gcc still works after this
4453 #LDFLAGS "-L/sw/lib" ; CPPFLAGS "-I/sw/include -I/sw/include/lame"
4456 # this must be done after (I believe) AC_PROG_MAKE_SET
4457 if test "x$DEBUG" '!=' "x" -o "x$STRIP" = "x";then
4458 if test "$MACOSX";then
4461 STRIP
="@echo debug enabled, not stripping "
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
4469 $as_echo_n "checking for sin in -lm... " >&6; }
4470 if test "${ac_cv_lib_m_sin+set}" = set; then :
4471 $as_echo_n "(cached) " >&6
4473 ac_check_lib_save_LIBS
=$LIBS
4475 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4476 /* end confdefs.h. */
4478 /* Override any GCC internal prototype to avoid an error.
4479 Use char because int might match the return type of a GCC
4480 builtin and then its argument prototype would still apply. */
4493 if ac_fn_c_try_link
"$LINENO"; then :
4498 rm -f core conftest.err conftest.
$ac_objext \
4499 conftest
$ac_exeext conftest.
$ac_ext
4500 LIBS
=$ac_check_lib_save_LIBS
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
4503 $as_echo "$ac_cv_lib_m_sin" >&6; }
4504 if test "x$ac_cv_lib_m_sin" = x
""yes; then :
4505 cat >>confdefs.h
<<_ACEOF
4512 echo "Error: Math library not found.";
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
4518 $as_echo_n "checking for deflate in -lz... " >&6; }
4519 if test "${ac_cv_lib_z_deflate+set}" = set; then :
4520 $as_echo_n "(cached) " >&6
4522 ac_check_lib_save_LIBS
=$LIBS
4524 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4525 /* end confdefs.h. */
4527 /* Override any GCC internal prototype to avoid an error.
4528 Use char because int might match the return type of a GCC
4529 builtin and then its argument prototype would still apply. */
4542 if ac_fn_c_try_link
"$LINENO"; then :
4543 ac_cv_lib_z_deflate
=yes
4545 ac_cv_lib_z_deflate
=no
4547 rm -f core conftest.err conftest.
$ac_objext \
4548 conftest
$ac_exeext conftest.
$ac_ext
4549 LIBS
=$ac_check_lib_save_LIBS
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
4552 $as_echo "$ac_cv_lib_z_deflate" >&6; }
4553 if test "x$ac_cv_lib_z_deflate" = x
""yes; then :
4554 cat >>confdefs.h
<<_ACEOF
4565 if test "x$ZLIBMISSING" = "xtrue";then
4568 echo "You need zlib to compile swftools"
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDF_open_file in -lpdf" >&5
4574 $as_echo_n "checking for PDF_open_file in -lpdf... " >&6; }
4575 if test "${ac_cv_lib_pdf_PDF_open_file+set}" = set; then :
4576 $as_echo_n "(cached) " >&6
4578 ac_check_lib_save_LIBS
=$LIBS
4580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4581 /* end confdefs.h. */
4583 /* Override any GCC internal prototype to avoid an error.
4584 Use char because int might match the return type of a GCC
4585 builtin and then its argument prototype would still apply. */
4589 char PDF_open_file ();
4593 return PDF_open_file ();
4598 if ac_fn_c_try_link
"$LINENO"; then :
4599 ac_cv_lib_pdf_PDF_open_file
=yes
4601 ac_cv_lib_pdf_PDF_open_file
=no
4603 rm -f core conftest.err conftest.
$ac_objext \
4604 conftest
$ac_exeext conftest.
$ac_ext
4605 LIBS
=$ac_check_lib_save_LIBS
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pdf_PDF_open_file" >&5
4608 $as_echo "$ac_cv_lib_pdf_PDF_open_file" >&6; }
4609 if test "x$ac_cv_lib_pdf_PDF_open_file" = x
""yes; then :
4610 cat >>confdefs.h
<<_ACEOF
4611 #define HAVE_LIBPDF 1
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_write_raw_data in -ljpeg" >&5
4621 $as_echo_n "checking for jpeg_write_raw_data in -ljpeg... " >&6; }
4622 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then :
4623 $as_echo_n "(cached) " >&6
4625 ac_check_lib_save_LIBS
=$LIBS
4627 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4628 /* end confdefs.h. */
4630 /* Override any GCC internal prototype to avoid an error.
4631 Use char because int might match the return type of a GCC
4632 builtin and then its argument prototype would still apply. */
4636 char jpeg_write_raw_data ();
4640 return jpeg_write_raw_data ();
4645 if ac_fn_c_try_link
"$LINENO"; then :
4646 ac_cv_lib_jpeg_jpeg_write_raw_data
=yes
4648 ac_cv_lib_jpeg_jpeg_write_raw_data
=no
4650 rm -f core conftest.err conftest.
$ac_objext \
4651 conftest
$ac_exeext conftest.
$ac_ext
4652 LIBS
=$ac_check_lib_save_LIBS
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
4655 $as_echo "$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6; }
4656 if test "x$ac_cv_lib_jpeg_jpeg_write_raw_data" = x
""yes; then :
4657 cat >>confdefs.h
<<_ACEOF
4658 #define HAVE_LIBJPEG 1
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifOpen in -lungif" >&5
4668 $as_echo_n "checking for DGifOpen in -lungif... " >&6; }
4669 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then :
4670 $as_echo_n "(cached) " >&6
4672 ac_check_lib_save_LIBS
=$LIBS
4673 LIBS
="-lungif $LIBS"
4674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4675 /* end confdefs.h. */
4677 /* Override any GCC internal prototype to avoid an error.
4678 Use char because int might match the return type of a GCC
4679 builtin and then its argument prototype would still apply. */
4692 if ac_fn_c_try_link
"$LINENO"; then :
4693 ac_cv_lib_ungif_DGifOpen
=yes
4695 ac_cv_lib_ungif_DGifOpen
=no
4697 rm -f core conftest.err conftest.
$ac_objext \
4698 conftest
$ac_exeext conftest.
$ac_ext
4699 LIBS
=$ac_check_lib_save_LIBS
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_DGifOpen" >&5
4702 $as_echo "$ac_cv_lib_ungif_DGifOpen" >&6; }
4703 if test "x$ac_cv_lib_ungif_DGifOpen" = x
""yes; then :
4704 cat >>confdefs.h
<<_ACEOF
4705 #define HAVE_LIBUNGIF 1
4708 LIBS
="-lungif $LIBS"
4714 if test "$UNGIFMISSING";then
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifOpen in -lgif" >&5
4717 $as_echo_n "checking for DGifOpen in -lgif... " >&6; }
4718 if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then :
4719 $as_echo_n "(cached) " >&6
4721 ac_check_lib_save_LIBS
=$LIBS
4723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4724 /* end confdefs.h. */
4726 /* Override any GCC internal prototype to avoid an error.
4727 Use char because int might match the return type of a GCC
4728 builtin and then its argument prototype would still apply. */
4741 if ac_fn_c_try_link
"$LINENO"; then :
4742 ac_cv_lib_gif_DGifOpen
=yes
4744 ac_cv_lib_gif_DGifOpen
=no
4746 rm -f core conftest.err conftest.
$ac_objext \
4747 conftest
$ac_exeext conftest.
$ac_ext
4748 LIBS
=$ac_check_lib_save_LIBS
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifOpen" >&5
4751 $as_echo "$ac_cv_lib_gif_DGifOpen" >&6; }
4752 if test "x$ac_cv_lib_gif_DGifOpen" = x
""yes; then :
4753 cat >>confdefs.h
<<_ACEOF
4754 #define HAVE_LIBGIF 1
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zzip_file_open in -lzzip" >&5
4765 $as_echo_n "checking for zzip_file_open in -lzzip... " >&6; }
4766 if test "${ac_cv_lib_zzip_zzip_file_open+set}" = set; then :
4767 $as_echo_n "(cached) " >&6
4769 ac_check_lib_save_LIBS
=$LIBS
4771 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4772 /* end confdefs.h. */
4774 /* Override any GCC internal prototype to avoid an error.
4775 Use char because int might match the return type of a GCC
4776 builtin and then its argument prototype would still apply. */
4780 char zzip_file_open ();
4784 return zzip_file_open ();
4789 if ac_fn_c_try_link
"$LINENO"; then :
4790 ac_cv_lib_zzip_zzip_file_open
=yes
4792 ac_cv_lib_zzip_zzip_file_open
=no
4794 rm -f core conftest.err conftest.
$ac_objext \
4795 conftest
$ac_exeext conftest.
$ac_ext
4796 LIBS
=$ac_check_lib_save_LIBS
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zzip_zzip_file_open" >&5
4799 $as_echo "$ac_cv_lib_zzip_zzip_file_open" >&6; }
4800 if test "x$ac_cv_lib_zzip_zzip_file_open" = x
""yes; then :
4801 cat >>confdefs.h
<<_ACEOF
4802 #define HAVE_LIBZZIP 1
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4813 $as_echo_n "checking target system type... " >&6; }
4814 if test "${ac_cv_target+set}" = set; then :
4815 $as_echo_n "(cached) " >&6
4817 if test "x$target_alias" = x
; then
4818 ac_cv_target
=$ac_cv_host
4820 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4821 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4826 $as_echo "$ac_cv_target" >&6; }
4827 case $ac_cv_target in
4829 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
4831 target
=$ac_cv_target
4832 ac_save_IFS
=$IFS; IFS
='-'
4838 # Remember, the first character of IFS is used to create $*,
4839 # except with old shells:
4842 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4845 # The aliases save the names the user supplied, while $host etc.
4846 # will get canonicalized.
4847 test -n "$target_alias" &&
4848 test "$program_prefix$program_suffix$program_transform_name" = \
4850 program_prefix
=${target_alias}-
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for byte order" >&5
4853 $as_echo_n "checking for byte order... " >&6; }
4854 if test "$cross_compiling" = yes; then :
4857 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4858 /* end confdefs.h. */
4860 int main (int argc, char *argv[])
4867 if ac_fn_c_try_run
"$LINENO"; then :
4872 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4873 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4878 if test "x${CROSSCOMPILE}" = "x1"; then
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: we are cross compiling- trying to guess from system type" >&5
4880 $as_echo "we are cross compiling- trying to guess from system type" >&6; }
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for byte order, try 2" >&5
4883 $as_echo_n "checking for byte order, try 2... " >&6; }
4888 *sparc
* |
*68* |
*88k
* |
*mac
* |
*Mac
* |
*sun
* |
*Sun
* |
*Amiga
* |
*amiga
* )
4895 if test "x${LITTLEENDIAN}" = "x1"; then
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: little endian" >&5
4897 $as_echo "little endian" >&6; }
4901 if test "x${BIGENDIAN}" = "x1"; then
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: big endian" >&5
4903 $as_echo "big endian" >&6; }
4906 export WORDS_BIGENDIAN
4908 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4911 if test "x${BYTEORDERCHECKOK}" != "x1"; then
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
4913 $as_echo "unknown" >&6; }
4914 echo Byte order could not determined.
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system() can handle command substitution" >&5
4921 $as_echo_n "checking whether system() can handle command substitution... " >&6; }
4922 if test "$cross_compiling" = yes; then :
4925 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4926 /* end confdefs.h. */
4929 int main (int argc, char*argv[])
4931 return system("test `touch config.tmp2`");
4935 if ac_fn_c_try_run
"$LINENO"; then :
4938 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4939 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4943 if test "x${OK}" = "xOK";then
4944 test -f config.tmp2 || OK
=
4947 if test "x${CROSSCOMPILE}" = "x1";then
4950 if test "x${OK}" = "xOK";then
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4953 $as_echo "yes" >&6; }
4955 export SYSTEM_BACKTICKS
4957 $as_echo "#define SYSTEM_BACKTICKS 1" >>confdefs.h
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4961 $as_echo "no" >&6; }
4966 test "$program_prefix" != NONE
&&
4967 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
4968 # Use a double $ so make ignores it.
4969 test "$program_suffix" != NONE
&&
4970 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
4971 # Double any \ or $.
4972 # By default was `s,x,x', remove it if useless.
4973 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
4974 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
4977 ac_config_headers
="$ac_config_headers config.h"
4980 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
4981 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4983 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4984 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
4985 $as_echo_n "(cached) " >&6
4987 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4988 /* end confdefs.h. */
4989 #include <sys/types.h>
5001 if ac_fn_c_try_compile
"$LINENO"; then :
5002 eval "$as_ac_Header=yes"
5004 eval "$as_ac_Header=no"
5006 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5008 eval ac_res
=\$
$as_ac_Header
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5010 $as_echo "$ac_res" >&6; }
5011 eval as_val
=\$
$as_ac_Header
5012 if test "x$as_val" = x
""yes; then :
5013 cat >>confdefs.h
<<_ACEOF
5014 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5017 ac_header_dirent
=$ac_hdr; break
5021 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5022 if test $ac_header_dirent = dirent.h
; then
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5024 $as_echo_n "checking for library containing opendir... " >&6; }
5025 if test "${ac_cv_search_opendir+set}" = set; then :
5026 $as_echo_n "(cached) " >&6
5028 ac_func_search_save_LIBS
=$LIBS
5029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5030 /* end confdefs.h. */
5032 /* Override any GCC internal prototype to avoid an error.
5033 Use char because int might match the return type of a GCC
5034 builtin and then its argument prototype would still apply. */
5047 for ac_lib
in '' dir
; do
5048 if test -z "$ac_lib"; then
5049 ac_res
="none required"
5052 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5054 if ac_fn_c_try_link
"$LINENO"; then :
5055 ac_cv_search_opendir
=$ac_res
5057 rm -f core conftest.err conftest.
$ac_objext \
5059 if test "${ac_cv_search_opendir+set}" = set; then :
5063 if test "${ac_cv_search_opendir+set}" = set; then :
5066 ac_cv_search_opendir
=no
5069 LIBS
=$ac_func_search_save_LIBS
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5072 $as_echo "$ac_cv_search_opendir" >&6; }
5073 ac_res
=$ac_cv_search_opendir
5074 if test "$ac_res" != no
; then :
5075 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5081 $as_echo_n "checking for library containing opendir... " >&6; }
5082 if test "${ac_cv_search_opendir+set}" = set; then :
5083 $as_echo_n "(cached) " >&6
5085 ac_func_search_save_LIBS
=$LIBS
5086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5087 /* end confdefs.h. */
5089 /* Override any GCC internal prototype to avoid an error.
5090 Use char because int might match the return type of a GCC
5091 builtin and then its argument prototype would still apply. */
5104 for ac_lib
in '' x
; do
5105 if test -z "$ac_lib"; then
5106 ac_res
="none required"
5109 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5111 if ac_fn_c_try_link
"$LINENO"; then :
5112 ac_cv_search_opendir
=$ac_res
5114 rm -f core conftest.err conftest.
$ac_objext \
5116 if test "${ac_cv_search_opendir+set}" = set; then :
5120 if test "${ac_cv_search_opendir+set}" = set; then :
5123 ac_cv_search_opendir
=no
5126 LIBS
=$ac_func_search_save_LIBS
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5129 $as_echo "$ac_cv_search_opendir" >&6; }
5130 ac_res
=$ac_cv_search_opendir
5131 if test "$ac_res" != no
; then :
5132 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5140 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5141 if test "${ac_cv_path_GREP+set}" = set; then :
5142 $as_echo_n "(cached) " >&6
5144 if test -z "$GREP"; then
5145 ac_path_GREP_found
=false
5146 # Loop through the user's path and test for each of PROGNAME-LIST
5147 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5148 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5151 test -z "$as_dir" && as_dir
=.
5152 for ac_prog
in grep ggrep
; do
5153 for ac_exec_ext
in '' $ac_executable_extensions; do
5154 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5155 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5156 # Check for GNU ac_path_GREP and select it if it is found.
5157 # Check for GNU $ac_path_GREP
5158 case `"$ac_path_GREP" --version 2>&1` in
5160 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5163 $as_echo_n 0123456789 >"conftest.in"
5166 cat "conftest.in" "conftest.in" >"conftest.tmp"
5167 mv "conftest.tmp" "conftest.in"
5168 cp "conftest.in" "conftest.nl"
5169 $as_echo 'GREP' >> "conftest.nl"
5170 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5171 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5172 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5173 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5174 # Best one so far, save it but keep looking for a better one
5175 ac_cv_path_GREP
="$ac_path_GREP"
5176 ac_path_GREP_max
=$ac_count
5178 # 10*(2^10) chars as input seems more than enough
5179 test $ac_count -gt 10 && break
5181 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5184 $ac_path_GREP_found && break 3
5189 if test -z "$ac_cv_path_GREP"; then
5190 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5193 ac_cv_path_GREP
=$GREP
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5198 $as_echo "$ac_cv_path_GREP" >&6; }
5199 GREP
="$ac_cv_path_GREP"
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5203 $as_echo_n "checking for egrep... " >&6; }
5204 if test "${ac_cv_path_EGREP+set}" = set; then :
5205 $as_echo_n "(cached) " >&6
5207 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5208 then ac_cv_path_EGREP
="$GREP -E"
5210 if test -z "$EGREP"; then
5211 ac_path_EGREP_found
=false
5212 # Loop through the user's path and test for each of PROGNAME-LIST
5213 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5214 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5217 test -z "$as_dir" && as_dir
=.
5218 for ac_prog
in egrep; do
5219 for ac_exec_ext
in '' $ac_executable_extensions; do
5220 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5221 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5222 # Check for GNU ac_path_EGREP and select it if it is found.
5223 # Check for GNU $ac_path_EGREP
5224 case `"$ac_path_EGREP" --version 2>&1` in
5226 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5229 $as_echo_n 0123456789 >"conftest.in"
5232 cat "conftest.in" "conftest.in" >"conftest.tmp"
5233 mv "conftest.tmp" "conftest.in"
5234 cp "conftest.in" "conftest.nl"
5235 $as_echo 'EGREP' >> "conftest.nl"
5236 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5237 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5238 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5239 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5240 # Best one so far, save it but keep looking for a better one
5241 ac_cv_path_EGREP
="$ac_path_EGREP"
5242 ac_path_EGREP_max
=$ac_count
5244 # 10*(2^10) chars as input seems more than enough
5245 test $ac_count -gt 10 && break
5247 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5250 $ac_path_EGREP_found && break 3
5255 if test -z "$ac_cv_path_EGREP"; then
5256 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5259 ac_cv_path_EGREP
=$EGREP
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5265 $as_echo "$ac_cv_path_EGREP" >&6; }
5266 EGREP
="$ac_cv_path_EGREP"
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5270 $as_echo_n "checking for ANSI C header files... " >&6; }
5271 if test "${ac_cv_header_stdc+set}" = set; then :
5272 $as_echo_n "(cached) " >&6
5274 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5275 /* end confdefs.h. */
5289 if ac_fn_c_try_compile
"$LINENO"; then :
5290 ac_cv_header_stdc
=yes
5292 ac_cv_header_stdc
=no
5294 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5296 if test $ac_cv_header_stdc = yes; then
5297 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5299 /* end confdefs.h. */
5303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5304 $EGREP "memchr" >/dev
/null
2>&1; then :
5307 ac_cv_header_stdc
=no
5313 if test $ac_cv_header_stdc = yes; then
5314 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5315 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5316 /* end confdefs.h. */
5320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5321 $EGREP "free" >/dev
/null
2>&1; then :
5324 ac_cv_header_stdc
=no
5330 if test $ac_cv_header_stdc = yes; then
5331 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5332 if test "$cross_compiling" = yes; then :
5335 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5336 /* end confdefs.h. */
5339 #if ((' ' & 0x0FF) == 0x020)
5340 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5341 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5343 # define ISLOWER(c) \
5344 (('a' <= (c) && (c) <= 'i') \
5345 || ('j' <= (c) && (c) <= 'r') \
5346 || ('s' <= (c) && (c) <= 'z'))
5347 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5350 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5355 for (i = 0; i < 256; i++)
5356 if (XOR (islower (i), ISLOWER (i))
5357 || toupper (i) != TOUPPER (i))
5362 if ac_fn_c_try_run
"$LINENO"; then :
5365 ac_cv_header_stdc
=no
5367 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5368 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5374 $as_echo "$ac_cv_header_stdc" >&6; }
5375 if test $ac_cv_header_stdc = yes; then
5377 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5382 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5383 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5384 inttypes.h stdint.h unistd.h
5386 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5387 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5389 eval as_val
=\$
$as_ac_Header
5390 if test "x$as_val" = x
""yes; then :
5391 cat >>confdefs.h
<<_ACEOF
5392 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5400 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
5402 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5403 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5404 eval as_val
=\$
$as_ac_Header
5405 if test "x$as_val" = x
""yes; then :
5406 cat >>confdefs.h
<<_ACEOF
5407 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5416 cat >>confdefs.h
<<_ACEOF
5417 #define PACKAGE "$PACKAGE"
5421 cat >>confdefs.h
<<_ACEOF
5422 #define VERSION "$VERSION"
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5432 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5433 if test "${ac_cv_c_const+set}" = set; then :
5434 $as_echo_n "(cached) " >&6
5436 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5437 /* end confdefs.h. */
5442 /* FIXME: Include the comments suggested by Paul. */
5444 /* Ultrix mips cc rejects this. */
5445 typedef int charset[2];
5447 /* SunOS 4.1.1 cc rejects this. */
5448 char const *const *pcpcc;
5450 /* NEC SVR4.0.2 mips cc rejects this. */
5451 struct point {int x, y;};
5452 static struct point const zero = {0,0};
5453 /* AIX XL C 1.02.0.0 rejects this.
5454 It does not let you subtract one const X* pointer from another in
5455 an arm of an if-expression whose if-part is not a constant
5457 const char *g = "string";
5458 pcpcc = &g + (g ? g-g : 0);
5459 /* HPUX 7.0 cc rejects these. */
5461 ppc = (char**) pcpcc;
5462 pcpcc = (char const *const *) ppc;
5463 { /* SCO 3.2v4 cc rejects this. */
5465 char const *s = 0 ? (char *) 0 : (char const *) 0;
5470 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5472 const int *foo = &x[0];
5475 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5476 typedef const int *iptr;
5480 { /* AIX XL C 1.02.0.0 rejects this saying
5481 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5482 struct s { int j; const int *ap[3]; };
5483 struct s *b; b->j = 5;
5485 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5489 return !cs[0] && !zero.x;
5496 if ac_fn_c_try_compile
"$LINENO"; then :
5501 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5504 $as_echo "$ac_cv_c_const" >&6; }
5505 if test $ac_cv_c_const = no
; then
5507 $as_echo "#define const /**/" >>confdefs.h
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5512 $as_echo_n "checking for inline... " >&6; }
5513 if test "${ac_cv_c_inline+set}" = set; then :
5514 $as_echo_n "(cached) " >&6
5517 for ac_kw
in inline __inline__ __inline
; do
5518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5519 /* end confdefs.h. */
5522 static $ac_kw foo_t static_foo () {return 0; }
5523 $ac_kw foo_t foo () {return 0; }
5527 if ac_fn_c_try_compile
"$LINENO"; then :
5528 ac_cv_c_inline
=$ac_kw
5530 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5531 test "$ac_cv_c_inline" != no
&& break
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5536 $as_echo "$ac_cv_c_inline" >&6; }
5538 case $ac_cv_c_inline in
5541 case $ac_cv_c_inline in
5543 *) ac_val
=$ac_cv_c_inline;;
5545 cat >>confdefs.h
<<_ACEOF
5547 #define inline $ac_val
5553 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5554 if test "x$ac_cv_type_off_t" = x
""yes; then :
5558 cat >>confdefs.h
<<_ACEOF
5559 #define off_t long int
5564 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5565 if test "x$ac_cv_type_size_t" = x
""yes; then :
5569 cat >>confdefs.h
<<_ACEOF
5570 #define size_t unsigned int
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5576 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5577 if test "${ac_cv_struct_tm+set}" = set; then :
5578 $as_echo_n "(cached) " >&6
5580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5581 /* end confdefs.h. */
5582 #include <sys/types.h>
5589 int *p = &tm.tm_sec;
5595 if ac_fn_c_try_compile
"$LINENO"; then :
5596 ac_cv_struct_tm
=time.h
5598 ac_cv_struct_tm
=sys
/time.h
5600 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5603 $as_echo "$ac_cv_struct_tm" >&6; }
5604 if test $ac_cv_struct_tm = sys
/time.h
; then
5606 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5610 ac_fn_c_check_type
"$LINENO" "boolean" "ac_cv_type_boolean" "$ac_includes_default"
5611 if test "x$ac_cv_type_boolean" = x
""yes; then :
5615 cat >>confdefs.h
<<_ACEOF
5621 for ac_func
in popen wcschr wcsdup mkstemp stat mmap lrand48 rand srand48 srand bcopy bzero
time getrusage mallinfo open64 calloc
5623 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5624 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5625 eval as_val
=\$
$as_ac_var
5626 if test "x$as_val" = x
""yes; then :
5627 cat >>confdefs.h
<<_ACEOF
5628 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5635 # The cast to long int works around a bug in the HP C Compiler
5636 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5637 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5638 # This bug is HP SR number 8606223364.
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5
5640 $as_echo_n "checking size of signed char... " >&6; }
5641 if test "${ac_cv_sizeof_signed_char+set}" = set; then :
5642 $as_echo_n "(cached) " >&6
5644 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char" "$ac_includes_default"; then :
5647 if test "$ac_cv_type_signed_char" = yes; then
5648 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5649 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5650 { as_fn_set_status
77
5651 as_fn_error
"cannot compute sizeof (signed char)
5652 See \`config.log' for more details." "$LINENO" 5; }; }
5654 ac_cv_sizeof_signed_char
=0
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5
5660 $as_echo "$ac_cv_sizeof_signed_char" >&6; }
5664 cat >>confdefs.h
<<_ACEOF
5665 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
5669 # The cast to long int works around a bug in the HP C Compiler
5670 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5671 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5672 # This bug is HP SR number 8606223364.
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
5674 $as_echo_n "checking size of signed short... " >&6; }
5675 if test "${ac_cv_sizeof_signed_short+set}" = set; then :
5676 $as_echo_n "(cached) " >&6
5678 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short" "$ac_includes_default"; then :
5681 if test "$ac_cv_type_signed_short" = yes; then
5682 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5683 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5684 { as_fn_set_status
77
5685 as_fn_error
"cannot compute sizeof (signed short)
5686 See \`config.log' for more details." "$LINENO" 5; }; }
5688 ac_cv_sizeof_signed_short
=0
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
5694 $as_echo "$ac_cv_sizeof_signed_short" >&6; }
5698 cat >>confdefs.h
<<_ACEOF
5699 #define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
5703 # The cast to long int works around a bug in the HP C Compiler
5704 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5705 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5706 # This bug is HP SR number 8606223364.
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed" >&5
5708 $as_echo_n "checking size of signed... " >&6; }
5709 if test "${ac_cv_sizeof_signed+set}" = set; then :
5710 $as_echo_n "(cached) " >&6
5712 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (signed))" "ac_cv_sizeof_signed" "$ac_includes_default"; then :
5715 if test "$ac_cv_type_signed" = yes; then
5716 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5717 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5718 { as_fn_set_status
77
5719 as_fn_error
"cannot compute sizeof (signed)
5720 See \`config.log' for more details." "$LINENO" 5; }; }
5722 ac_cv_sizeof_signed
=0
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed" >&5
5728 $as_echo "$ac_cv_sizeof_signed" >&6; }
5732 cat >>confdefs.h
<<_ACEOF
5733 #define SIZEOF_SIGNED $ac_cv_sizeof_signed
5737 # The cast to long int works around a bug in the HP C Compiler
5738 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5739 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5740 # This bug is HP SR number 8606223364.
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
5742 $as_echo_n "checking size of signed long long... " >&6; }
5743 if test "${ac_cv_sizeof_signed_long_long+set}" = set; then :
5744 $as_echo_n "(cached) " >&6
5746 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long" "$ac_includes_default"; then :
5749 if test "$ac_cv_type_signed_long_long" = yes; then
5750 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5751 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5752 { as_fn_set_status
77
5753 as_fn_error
"cannot compute sizeof (signed long long)
5754 See \`config.log' for more details." "$LINENO" 5; }; }
5756 ac_cv_sizeof_signed_long_long
=0
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
5762 $as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
5766 cat >>confdefs.h
<<_ACEOF
5767 #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
5771 # The cast to long int works around a bug in the HP C Compiler
5772 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5773 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5774 # This bug is HP SR number 8606223364.
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
5776 $as_echo_n "checking size of void*... " >&6; }
5777 if test "${ac_cv_sizeof_voidp+set}" = set; then :
5778 $as_echo_n "(cached) " >&6
5780 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
5783 if test "$ac_cv_type_voidp" = yes; then
5784 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5785 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5786 { as_fn_set_status
77
5787 as_fn_error
"cannot compute sizeof (void*)
5788 See \`config.log' for more details." "$LINENO" 5; }; }
5790 ac_cv_sizeof_voidp
=0
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
5796 $as_echo "$ac_cv_sizeof_voidp" >&6; }
5800 cat >>confdefs.h
<<_ACEOF
5801 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
5808 # Extract the first word of "freetype-config", so it can be a program name with args.
5809 set dummy freetype-config
; ac_word
=$2
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5811 $as_echo_n "checking for $ac_word... " >&6; }
5812 if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then :
5813 $as_echo_n "(cached) " >&6
5815 case $FREETYPE_CONFIG in
5817 ac_cv_path_FREETYPE_CONFIG
="$FREETYPE_CONFIG" # Let the user override the test with a path.
5820 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5821 as_dummy
=""$PATH:/usr
/local
/bin
:/sw
/bin
:/opt
/local
/bin
""
5822 for as_dir
in $as_dummy
5825 test -z "$as_dir" && as_dir
=.
5826 for ac_exec_ext
in '' $ac_executable_extensions; do
5827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5828 ac_cv_path_FREETYPE_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
5829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5839 FREETYPE_CONFIG
=$ac_cv_path_FREETYPE_CONFIG
5840 if test -n "$FREETYPE_CONFIG"; then
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_CONFIG" >&5
5842 $as_echo "$FREETYPE_CONFIG" >&6; }
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5845 $as_echo "no" >&6; }
5850 OLDCPPFLAGS
="${CPPFLAGS}"
5852 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
5853 CPPFLAGS
="$CPPFLAGS "`$FREETYPE_CONFIG --cflags`
5854 else if test -d /usr
/include
/freetype2
; then
5855 CPPFLAGS
="$CPPFLAGS -I/usr/include/freetype2"
5856 else if test -d /usr
/local
/include
/freetype2
; then
5857 CPPFLAGS
="$CPPFLAGS -I/usr/local/include/freetype2"
5862 if test "x${FREETYPE_CONFIG}" '=' "x";then
5863 # if we didn't find the freetype-config program, we won't
5864 # know where the libs are expected to be. So just blindly
5865 # try to link against them.
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
5867 $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
5868 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
5869 $as_echo_n "(cached) " >&6
5871 ac_check_lib_save_LIBS
=$LIBS
5872 LIBS
="-lfreetype $LIBS"
5873 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5874 /* end confdefs.h. */
5876 /* Override any GCC internal prototype to avoid an error.
5877 Use char because int might match the return type of a GCC
5878 builtin and then its argument prototype would still apply. */
5882 char FT_Init_FreeType ();
5886 return FT_Init_FreeType ();
5891 if ac_fn_c_try_link
"$LINENO"; then :
5892 ac_cv_lib_freetype_FT_Init_FreeType
=yes
5894 ac_cv_lib_freetype_FT_Init_FreeType
=no
5896 rm -f core conftest.err conftest.
$ac_objext \
5897 conftest
$ac_exeext conftest.
$ac_ext
5898 LIBS
=$ac_check_lib_save_LIBS
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
5901 $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
5902 if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x
""yes; then :
5908 for ac_header
in ft2build.h
5910 ac_fn_c_check_header_mongrel
"$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
5911 if test "x$ac_cv_header_ft2build_h" = x
""yes; then :
5912 cat >>confdefs.h
<<_ACEOF
5913 #define HAVE_FT2BUILD_H 1
5920 if test "x${HAVE_FT2BUILD_H}" '=' "x";then
5921 for ac_header
in freetype
/freetype.h
5923 ac_fn_c_check_header_mongrel
"$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$ac_includes_default"
5924 if test "x$ac_cv_header_freetype_freetype_h" = x
""yes; then :
5925 cat >>confdefs.h
<<_ACEOF
5926 #define HAVE_FREETYPE_FREETYPE_H 1
5928 HAVE_FREETYPE_FREETYPE_H
=1
5935 if test "x${HAVE_LIB_FREETYPE}" '!=' "x" -o \
5936 "x${FREETYPE_CONFIG}" '!=' "x";then
5937 if test "x${HAVE_FREETYPE_FREETYPE_H}" '!=' "x";then
5940 if test "x${HAVE_FT2BUILD_H}" '!=' "x";then
5945 if test "x${HAVE_FREETYPE}" = "x1"; then
5946 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
5947 LIBS
="$LIBS "`$FREETYPE_CONFIG --libs`
5949 LIBS
="$LIBS -lfreetype"
5952 if test "x${HAVE_FT2BUILD_H}" = "x1"; then
5953 HAVE_FT2BUILD_H_DEFINE
='#define HAVE_FT2BUILD_H'
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the freetype test program" >&5
5957 $as_echo_n "checking whether we can compile the freetype test program... " >&6; }
5959 cat > conftest.c
<< EOF
5960 $HAVE_FT2BUILD_H_DEFINE
5962 #ifdef HAVE_FT2BUILD_H
5963 #include <ft2build.h>
5964 #include FT_FREETYPE_H
5967 #include FT_SFNT_NAMES_H
5968 #include FT_TRUETYPE_IDS_H
5969 #include FT_OUTLINE_H
5971 #include <freetype/freetype.h>
5972 #include <freetype/ftglyph.h>
5973 #include <freetype/ftsizes.h>
5974 #include <freetype/ftsnames.h>
5975 #include <freetype/ttnameid.h>
5976 #include <freetype/ftoutln.h>
5981 FT_Library ftlibrary;
5993 FT_Init_FreeType(&ftlibrary);
5994 FT_New_Face(ftlibrary, "filename", 0, &face);
5995 i = face->num_glyphs - 1;
5996 italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
5997 bold = face->style_flags&FT_STYLE_FLAG_BOLD;
5998 FT_Get_Postscript_Name(face);
5999 FT_Get_Char_Index(face, 33);
6000 FT_Get_First_Char(face, &i);
6001 FT_Get_Next_Char(face, 33, &i);
6002 if(FT_HAS_GLYPH_NAMES(face)) {
6003 FT_Get_Glyph_Name(face, 33, name, 127);
6005 FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
6006 FT_Get_Glyph(face->glyph, &glyph);
6007 FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
6008 FT_Done_Glyph(glyph);
6010 FT_Done_FreeType(ftlibrary);
6015 ac_link
='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
6016 if { (eval echo freetype.
m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6018 $as_echo "yes" >&6; }
6020 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
6023 $as_echo "#define HAVE_FREETYPE_FREETYPE_H 1" >>confdefs.h
6026 $as_echo "#define USE_FREETYPE 1" >>confdefs.h
6029 echo "configure: failed program was:" >&5
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6033 $as_echo "no" >&6; }
6038 # if the above didn't work out, reset all changes to the compiler variables.
6039 if test "x${HAVE_FREETYPE}" '!=' "x1"; then
6040 CPPFLAGS
=$OLDCPPFLAGS
6046 OLDCPPFLAGS
="${CPPFLAGS}"
6049 if test -d /usr
/include
/fontconfig
; then
6050 CPPFLAGS
="$CPPFLAGS -I/usr/include/fontconfig"
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FcInit in -lfontconfig" >&5
6054 $as_echo_n "checking for FcInit in -lfontconfig... " >&6; }
6055 if test "${ac_cv_lib_fontconfig_FcInit+set}" = set; then :
6056 $as_echo_n "(cached) " >&6
6058 ac_check_lib_save_LIBS
=$LIBS
6059 LIBS
="-lfontconfig $LIBS"
6060 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6061 /* end confdefs.h. */
6063 /* Override any GCC internal prototype to avoid an error.
6064 Use char because int might match the return type of a GCC
6065 builtin and then its argument prototype would still apply. */
6078 if ac_fn_c_try_link
"$LINENO"; then :
6079 ac_cv_lib_fontconfig_FcInit
=yes
6081 ac_cv_lib_fontconfig_FcInit
=no
6083 rm -f core conftest.err conftest.
$ac_objext \
6084 conftest
$ac_exeext conftest.
$ac_ext
6085 LIBS
=$ac_check_lib_save_LIBS
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fontconfig_FcInit" >&5
6088 $as_echo "$ac_cv_lib_fontconfig_FcInit" >&6; }
6089 if test "x$ac_cv_lib_fontconfig_FcInit" = x
""yes; then :
6090 HAVE_LIB_FONTCONFIG
=1
6093 for ac_header
in fontconfig.h
6095 ac_fn_c_check_header_mongrel
"$LINENO" "fontconfig.h" "ac_cv_header_fontconfig_h" "$ac_includes_default"
6096 if test "x$ac_cv_header_fontconfig_h" = x
""yes; then :
6097 cat >>confdefs.h
<<_ACEOF
6098 #define HAVE_FONTCONFIG_H 1
6106 if test "x${HAVE_LIB_FONTCONFIG}" != "x";then
6107 if test "x${HAVE_FONTCONFIG_H}" != "x";then
6112 if test "x${HAVE_FONTCONFIG}" = "x1"; then
6113 LIBS
="$LIBS -lfontconfig"
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the fontconfig test program" >&5
6115 $as_echo_n "checking whether we can compile the fontconfig test program... " >&6; }
6117 if (echo $LIBS |
grep lfreetype
>/dev
/null
2>&1); then
6118 #move freetype library to the end of libraries, otherwise fontconfig
6120 LIBS
=`echo $LIBS | sed -e 's/-lfreetype//g' -e 's/$/ -lfreetype/'`
6123 cat > conftest.c
<< EOF
6125 #include <fontconfig.h>
6129 FcPattern *pattern, *match;
6132 char*s1="abc",*s2="ABC";
6135 pattern = FcPatternBuild(0, FC_FAMILY, FcTypeString, "", 0);
6136 FcPatternAddInteger(pattern, FC_SLANT, FC_SLANT_ITALIC);
6137 FcPatternAddInteger(pattern, FC_WEIGHT, FC_WEIGHT_BOLD);
6139 FcConfig*c = FcConfigCreate();
6140 FcConfigParseAndLoad(c, (FcChar8*)"", 1);
6141 FcConfigBuildFonts(c);
6142 FcConfigSetCurrent(c);
6144 FcFontSet * set = FcConfigGetFonts(c, FcSetSystem);
6145 FcFontSetDestroy(set);
6147 FcConfigSubstitute(0, pattern, FcMatchPattern);
6148 FcDefaultSubstitute(pattern);
6149 match = FcFontMatch(0, pattern, &result);
6150 FcPatternGetString(match, "family", 0, &v) == FcResultMatch;
6151 FcPatternGetBool(match, "family", 0, &v) == FcResultMatch;
6152 FcPatternPrint(pattern);
6153 FcPatternDestroy(pattern);
6154 FcPatternDestroy(match);
6160 ac_link
='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
6161 if { (eval echo freetype.
m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6163 $as_echo "yes" >&6; }
6165 $as_echo "#define HAVE_FONTCONFIG 1" >>confdefs.h
6168 echo "configure: failed program was:" >&5
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6172 $as_echo "no" >&6; }
6177 # if the above didn't work out, reset all changes to the compiler variables.
6178 if test "x${HAVE_FONTCONFIG}" "!=" "x1"; then
6179 CPPFLAGS
=$OLDCPPFLAGS
6185 OLDCPPFLAGS
="${CPPFLAGS}"
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftwf_plan_dft_r2c_2d in -lfftw3f" >&5
6189 $as_echo_n "checking for fftwf_plan_dft_r2c_2d in -lfftw3f... " >&6; }
6190 if test "${ac_cv_lib_fftw3f_fftwf_plan_dft_r2c_2d+set}" = set; then :
6191 $as_echo_n "(cached) " >&6
6193 ac_check_lib_save_LIBS
=$LIBS
6194 LIBS
="-lfftw3f $LIBS"
6195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6196 /* end confdefs.h. */
6198 /* Override any GCC internal prototype to avoid an error.
6199 Use char because int might match the return type of a GCC
6200 builtin and then its argument prototype would still apply. */
6204 char fftwf_plan_dft_r2c_2d ();
6208 return fftwf_plan_dft_r2c_2d ();
6213 if ac_fn_c_try_link
"$LINENO"; then :
6214 ac_cv_lib_fftw3f_fftwf_plan_dft_r2c_2d
=yes
6216 ac_cv_lib_fftw3f_fftwf_plan_dft_r2c_2d
=no
6218 rm -f core conftest.err conftest.
$ac_objext \
6219 conftest
$ac_exeext conftest.
$ac_ext
6220 LIBS
=$ac_check_lib_save_LIBS
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3f_fftwf_plan_dft_r2c_2d" >&5
6223 $as_echo "$ac_cv_lib_fftw3f_fftwf_plan_dft_r2c_2d" >&6; }
6224 if test "x$ac_cv_lib_fftw3f_fftwf_plan_dft_r2c_2d" = x
""yes; then :
6228 for ac_header
in fftw3.h
6230 ac_fn_c_check_header_mongrel
"$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
6231 if test "x$ac_cv_header_fftw3_h" = x
""yes; then :
6232 cat >>confdefs.h
<<_ACEOF
6233 #define HAVE_FFTW3_H 1
6241 if test "x${HAVE_LIBFFTW3}" != "x";then
6242 if test "x${HAVE_FFTW3_H}" != "x";then
6247 if test "x${HAVE_FFTW3}" = "x1"; then
6248 LIBS
="$LIBS -lfftw3f"
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the fftw3 test program" >&5
6250 $as_echo_n "checking whether we can compile the fftw3 test program... " >&6; }
6252 cat > conftest.c
<< EOF
6257 char*data = fftw_malloc(sizeof(fftwf_complex)*600*800);
6258 fftwf_plan plan = fftwf_plan_dft_2d(600, 800, (fftwf_complex*)data, (fftwf_complex*)data, FFTW_FORWARD, FFTW_ESTIMATE);
6259 plan = fftwf_plan_dft_r2c_2d(600, 800, (float*)data, (fftwf_complex*)data, FFTW_ESTIMATE);
6260 plan = fftwf_plan_dft_c2r_2d(600, 800, (fftwf_complex*)data, (float*)data, FFTW_ESTIMATE);
6261 fftwf_execute(plan);
6262 fftwf_destroy_plan(plan);
6266 ac_link
='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
6267 if { (eval echo fftw3.
m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6269 $as_echo "yes" >&6; }
6271 $as_echo "#define HAVE_FFTW3 1" >>confdefs.h
6274 echo "configure: failed program was:" >&5
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6278 $as_echo "no" >&6; }
6283 # if the above didn't work out, reset all changes to the compiler variables.
6284 if test "x${HAVE_FFTW3}" "!=" "x1"; then
6285 CPPFLAGS
=$OLDCPPFLAGS
6291 # if test "$HAVE_OPENGL";then
6292 # DEVICE_OPENGL='devices/opengl.$(O)'
6293 # AC_SUBST(DEVICE_OPENGL)
6299 if test "x${DISABLE_LAME}" = "xtrue"; then
6300 echo "*" Disabling lame support...
6302 # old lame code at lib/lame
6303 if test -f lib
/lame
/Makefile.
in; then
6304 lame_in_source
='$(lame_objects)'
6305 lame_makefile
="lib/lame/Makefile"
6306 CPPFLAGS
="$CPPFLAGS -Ilame -Ilib/lame"
6308 $as_echo "#define HAVE_LAME 1" >>confdefs.h
6311 if test -d /usr
/include
/lame
; then
6312 CPPFLAGS
="$CPPFLAGS -I /usr/include/lame"
6314 if test -d /usr
/local
/include
/lame
; then
6315 CPPFLAGS
="$CPPFLAGS -I /usr/local/include/lame"
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lame_init in -lmp3lame" >&5
6319 $as_echo_n "checking for lame_init in -lmp3lame... " >&6; }
6320 if test "${ac_cv_lib_mp3lame_lame_init+set}" = set; then :
6321 $as_echo_n "(cached) " >&6
6323 ac_check_lib_save_LIBS
=$LIBS
6324 LIBS
="-lmp3lame $LIBS"
6325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6326 /* end confdefs.h. */
6328 /* Override any GCC internal prototype to avoid an error.
6329 Use char because int might match the return type of a GCC
6330 builtin and then its argument prototype would still apply. */
6338 return lame_init ();
6343 if ac_fn_c_try_link
"$LINENO"; then :
6344 ac_cv_lib_mp3lame_lame_init
=yes
6346 ac_cv_lib_mp3lame_lame_init
=no
6348 rm -f core conftest.err conftest.
$ac_objext \
6349 conftest
$ac_exeext conftest.
$ac_ext
6350 LIBS
=$ac_check_lib_save_LIBS
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp3lame_lame_init" >&5
6353 $as_echo "$ac_cv_lib_mp3lame_lame_init" >&6; }
6354 if test "x$ac_cv_lib_mp3lame_lame_init" = x
""yes; then :
6355 cat >>confdefs.h
<<_ACEOF
6356 #define HAVE_LIBMP3LAME 1
6359 LIBS
="-lmp3lame $LIBS"
6366 for ac_header
in lame.h
6368 ac_fn_c_check_header_mongrel
"$LINENO" "lame.h" "ac_cv_header_lame_h" "$ac_includes_default"
6369 if test "x$ac_cv_header_lame_h" = x
""yes; then :
6370 cat >>confdefs.h
<<_ACEOF
6371 #define HAVE_LAME_H 1
6378 if test "x$NO_LIBMP3LAME" "!=" "x1" -a "x$HASLAMEHEADER" '!=' "x";then
6379 $as_echo "#define HAVE_LAME 1" >>confdefs.h
6390 if test "x$USE_POPPLER" = "xtrue"; then
6392 $as_echo "#define HAVE_POPPLER 1" >>confdefs.h
6396 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6397 if test -n "$ac_tool_prefix"; then
6398 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6399 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6401 $as_echo_n "checking for $ac_word... " >&6; }
6402 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
6403 $as_echo_n "(cached) " >&6
6407 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6410 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6414 test -z "$as_dir" && as_dir
=.
6415 for ac_exec_ext
in '' $ac_executable_extensions; do
6416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6417 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6428 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6429 if test -n "$PKG_CONFIG"; then
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6431 $as_echo "$PKG_CONFIG" >&6; }
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6434 $as_echo "no" >&6; }
6439 if test -z "$ac_cv_path_PKG_CONFIG"; then
6440 ac_pt_PKG_CONFIG
=$PKG_CONFIG
6441 # Extract the first word of "pkg-config", so it can be a program name with args.
6442 set dummy pkg-config
; ac_word
=$2
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6444 $as_echo_n "checking for $ac_word... " >&6; }
6445 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
6446 $as_echo_n "(cached) " >&6
6448 case $ac_pt_PKG_CONFIG in
6450 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6453 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6457 test -z "$as_dir" && as_dir
=.
6458 for ac_exec_ext
in '' $ac_executable_extensions; do
6459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6460 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6471 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
6472 if test -n "$ac_pt_PKG_CONFIG"; then
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6474 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6477 $as_echo "no" >&6; }
6480 if test "x$ac_pt_PKG_CONFIG" = x
; then
6483 case $cross_compiling:$ac_tool_warned in
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6486 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6487 ac_tool_warned
=yes ;;
6489 PKG_CONFIG
=$ac_pt_PKG_CONFIG
6492 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
6496 if test -n "$PKG_CONFIG"; then
6497 _pkg_min_version
=0.9.0
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6499 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6500 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6502 $as_echo "yes" >&6; }
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6505 $as_echo "no" >&6; }
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POPPLER" >&5
6513 $as_echo_n "checking for POPPLER... " >&6; }
6515 if test -n "$POPPLER_CFLAGS"; then
6516 pkg_cv_POPPLER_CFLAGS
="$POPPLER_CFLAGS"
6517 elif test -n "$PKG_CONFIG"; then
6518 if test -n "$PKG_CONFIG" && \
6519 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"poppler poppler-splash\""; } >&5
6520 ($PKG_CONFIG --exists --print-errors "poppler poppler-splash") 2>&5
6522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6523 test $ac_status = 0; }; then
6524 pkg_cv_POPPLER_CFLAGS
=`$PKG_CONFIG --cflags "poppler poppler-splash" 2>/dev/null`
6531 if test -n "$POPPLER_LIBS"; then
6532 pkg_cv_POPPLER_LIBS
="$POPPLER_LIBS"
6533 elif test -n "$PKG_CONFIG"; then
6534 if test -n "$PKG_CONFIG" && \
6535 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"poppler poppler-splash\""; } >&5
6536 ($PKG_CONFIG --exists --print-errors "poppler poppler-splash") 2>&5
6538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6539 test $ac_status = 0; }; then
6540 pkg_cv_POPPLER_LIBS
=`$PKG_CONFIG --libs "poppler poppler-splash" 2>/dev/null`
6550 if test $pkg_failed = yes; then
6552 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6553 _pkg_short_errors_supported
=yes
6555 _pkg_short_errors_supported
=no
6557 if test $_pkg_short_errors_supported = yes; then
6558 POPPLER_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "poppler poppler-splash" 2>&1`
6560 POPPLER_PKG_ERRORS
=`$PKG_CONFIG --print-errors "poppler poppler-splash" 2>&1`
6562 # Put the nasty error message in config.log where it belongs
6563 echo "$POPPLER_PKG_ERRORS" >&5
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6566 $as_echo "no" >&6; }
6567 poppler_pkgconfig
=no
6568 elif test $pkg_failed = untried
; then
6569 poppler_pkgconfig
=no
6571 POPPLER_CFLAGS
=$pkg_cv_POPPLER_CFLAGS
6572 POPPLER_LIBS
=$pkg_cv_POPPLER_LIBS
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6574 $as_echo "yes" >&6; }
6577 if test "x$poppler_pkgconfig" = "xno"; then
6579 ac_cpp
='$CXXCPP $CPPFLAGS'
6580 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6581 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6582 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6586 ac_cpp
='$CXXCPP $CPPFLAGS'
6587 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6588 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6589 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
6591 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
6592 if test -z "$CXXCPP"; then
6593 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
6594 $as_echo_n "(cached) " >&6
6596 # Double quotes because CXXCPP needs to be expanded
6597 for CXXCPP
in "$CXX -E" "/lib/cpp"
6600 for ac_cxx_preproc_warn_flag
in '' yes
6602 # Use a header file that comes with gcc, so configuring glibc
6603 # with a fresh cross-compiler works.
6604 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6605 # <limits.h> exists even on freestanding compilers.
6606 # On the NeXT, cc -E runs the code through the compiler's parser,
6607 # not just through cpp. "Syntax error" is here to catch this case.
6608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6609 /* end confdefs.h. */
6611 # include <limits.h>
6613 # include <assert.h>
6617 if ac_fn_cxx_try_cpp
"$LINENO"; then :
6620 # Broken: fails on valid input.
6623 rm -f conftest.err conftest.
$ac_ext
6625 # OK, works on sane cases. Now check whether nonexistent headers
6626 # can be detected and how.
6627 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6628 /* end confdefs.h. */
6629 #include <ac_nonexistent.h>
6631 if ac_fn_cxx_try_cpp
"$LINENO"; then :
6632 # Broken: success on invalid input.
6635 # Passes both tests.
6639 rm -f conftest.err conftest.
$ac_ext
6642 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6643 rm -f conftest.err conftest.
$ac_ext
6644 if $ac_preproc_ok; then :
6649 ac_cv_prog_CXXCPP
=$CXXCPP
6652 CXXCPP
=$ac_cv_prog_CXXCPP
6654 ac_cv_prog_CXXCPP
=$CXXCPP
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
6657 $as_echo "$CXXCPP" >&6; }
6659 for ac_cxx_preproc_warn_flag
in '' yes
6661 # Use a header file that comes with gcc, so configuring glibc
6662 # with a fresh cross-compiler works.
6663 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6664 # <limits.h> exists even on freestanding compilers.
6665 # On the NeXT, cc -E runs the code through the compiler's parser,
6666 # not just through cpp. "Syntax error" is here to catch this case.
6667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6668 /* end confdefs.h. */
6670 # include <limits.h>
6672 # include <assert.h>
6676 if ac_fn_cxx_try_cpp
"$LINENO"; then :
6679 # Broken: fails on valid input.
6682 rm -f conftest.err conftest.
$ac_ext
6684 # OK, works on sane cases. Now check whether nonexistent headers
6685 # can be detected and how.
6686 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6687 /* end confdefs.h. */
6688 #include <ac_nonexistent.h>
6690 if ac_fn_cxx_try_cpp
"$LINENO"; then :
6691 # Broken: success on invalid input.
6694 # Passes both tests.
6698 rm -f conftest.err conftest.
$ac_ext
6701 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6702 rm -f conftest.err conftest.
$ac_ext
6703 if $ac_preproc_ok; then :
6706 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6707 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6708 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
6709 See \`config.log' for more details." "$LINENO" 5; }
6713 ac_cpp
='$CXXCPP $CPPFLAGS'
6714 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6715 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6716 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6719 for ac_header
in OutputDev.h
6721 ac_fn_cxx_check_header_mongrel
"$LINENO" "OutputDev.h" "ac_cv_header_OutputDev_h" "$ac_includes_default"
6722 if test "x$ac_cv_header_OutputDev_h" = x
""yes; then :
6723 cat >>confdefs.h
<<_ACEOF
6724 #define HAVE_OUTPUTDEV_H 1
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpoppler" >&5
6728 $as_echo_n "checking for main in -lpoppler... " >&6; }
6729 if test "${ac_cv_lib_poppler_main+set}" = set; then :
6730 $as_echo_n "(cached) " >&6
6732 ac_check_lib_save_LIBS
=$LIBS
6733 LIBS
="-lpoppler $LIBS"
6734 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6735 /* end confdefs.h. */
6746 if ac_fn_cxx_try_link
"$LINENO"; then :
6747 ac_cv_lib_poppler_main
=yes
6749 ac_cv_lib_poppler_main
=no
6751 rm -f core conftest.err conftest.
$ac_objext \
6752 conftest
$ac_exeext conftest.
$ac_ext
6753 LIBS
=$ac_check_lib_save_LIBS
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poppler_main" >&5
6756 $as_echo "$ac_cv_lib_poppler_main" >&6; }
6757 if test "x$ac_cv_lib_poppler_main" = x
""yes; then :
6758 cat >>confdefs.h
<<_ACEOF
6759 #define HAVE_LIBPOPPLER 1
6762 LIBS
="-lpoppler $LIBS"
6768 as_fn_error
"No poppler library found. This library is required." "$LINENO" 5
6774 ac_cpp
='$CPP $CPPFLAGS'
6775 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6776 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6777 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6780 CPPFLAGS
="$CPPFLAGS $POPPLER_CFLAGS"
6781 LIBS
="$LIBS $POPPLER_LIBS"
6782 $as_echo "#define HAVE_POPPLER 1" >>confdefs.h
6786 splash_in_source
='$(splash_objects)'
6787 xpdf_in_source
='$(xpdf_objects)'
6788 xpdf_include
=' -I xpdf '
6795 # ------------------------------------------------------------------
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the filesystem normalizes file names" >&5
6799 $as_echo_n "checking whether the filesystem normalizes file names... " >&6; }
6801 echo test1
> __abcdefghijklmnopqrstuvwxyz.txt
6802 echo test2
> __ABCDEFGHIJKLMNOPQRSTUVWXYZ.txt
6803 if test `cat __abcdefghijklmnopqrstuvwxyz.txt` = "test2";then
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6805 $as_echo "yes" >&6; }
6807 $as_echo "#define LOWERCASE_UPPERCASE 1" >>confdefs.h
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6811 $as_echo "no" >&6; }
6814 rm -f __abcdefghijklmnopqrstuvwxyz.txt
6815 rm -f __ABCDEFGHIJKLMNOPQRSTUVWXYZ.txt
6819 for ac_prog
in avifile-config
6821 # Extract the first word of "$ac_prog", so it can be a program name with args.
6822 set dummy
$ac_prog; ac_word
=$2
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6824 $as_echo_n "checking for $ac_word... " >&6; }
6825 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then :
6826 $as_echo_n "(cached) " >&6
6828 if test -n "$AVIFILE_CONFIG"; then
6829 ac_cv_prog_AVIFILE_CONFIG
="$AVIFILE_CONFIG" # Let the user override the test.
6831 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6835 test -z "$as_dir" && as_dir
=.
6836 for ac_exec_ext
in '' $ac_executable_extensions; do
6837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6838 ac_cv_prog_AVIFILE_CONFIG
="$ac_prog"
6839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6848 AVIFILE_CONFIG
=$ac_cv_prog_AVIFILE_CONFIG
6849 if test -n "$AVIFILE_CONFIG"; then
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AVIFILE_CONFIG" >&5
6851 $as_echo "$AVIFILE_CONFIG" >&6; }
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6854 $as_echo "no" >&6; }
6858 test -n "$AVIFILE_CONFIG" && break
6862 if test "x$AVIFILE_CONFIG" '!=' "x";then
6863 OLDCPPFLAGS
="$CPPFLAGS"
6864 # temporarily add avifile paths to CPPFLAGS...
6865 CPPFLAGS
="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
6866 for ac_header
in avifile
/version.h version.h
6868 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6869 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6870 eval as_val
=\$
$as_ac_Header
6871 if test "x$as_val" = x
""yes; then :
6872 cat >>confdefs.h
<<_ACEOF
6873 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6881 CPPFLAGS
="$OLDCPPFLAGS"
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the avifile test program" >&5
6885 $as_echo_n "checking whether we can compile the avifile test program... " >&6; }
6887 if test "x${ac_cv_header_version_h}" '=' "xyes";then
6888 HAVE_VERSION_H_DEFINE
='#define HAVE_VERSION_H'
6890 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
6891 HAVE_AVIFILE_VERSION_H_DEFINE
='#define HAVE_AVIFILE_VERSION_H'
6894 cat > conftest.cpp
<< EOF
6896 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
6897 // so we have to introduce them this way
6898 $HAVE_VERSION_H_DEFINE
6899 $HAVE_AVIFILE_VERSION_H_DEFINE
6901 #ifdef HAVE_VERSION_H
6902 #include <version.h>
6904 #ifdef HAVE_AVIFILE_VERSION_H
6905 #include <avifile/version.h>
6908 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
6909 #include <avifile.h>
6910 #include <aviplay.h>
6911 #include <avm_fourcc.h>
6912 #include <avm_creators.h>
6913 #include <StreamInfo.h>
6916 #include <avifile.h>
6917 #include <aviplay.h>
6918 #include <aviutil.h>
6920 #define Height height
6927 IAviReadFile* player;
6928 IAviReadStream* astream;
6929 IAviReadStream* vstream;
6930 player = CreateIAviReadFile(0);
6931 astream = player->GetStream(0, AviStream::Audio);
6932 vstream = player->GetStream(0, AviStream::Video);
6933 vstream -> StartStreaming();
6934 astream -> StartStreaming();
6937 player->GetFileHeader(&head);
6938 head.dwMicroSecPerFrame;
6943 head.dwMicroSecPerFrame;
6944 astream->GetEndPos(),
6945 astream->GetEndTime());
6946 player->StreamCount();
6948 StreamInfo*audioinfo;
6949 StreamInfo*videoinfo;
6950 audioinfo = astream->GetStreamInfo();
6951 videoinfo = vstream->GetStreamInfo();
6952 videoinfo->GetVideoWidth();
6953 videoinfo->GetVideoHeight();
6954 audioinfo->GetAudioSamplesPerSec();
6955 videoinfo->GetFps();
6957 CImage*img = vstream->GetFrame();
6964 astream->GetAudioFormatInfo(&wave,0);
6966 astream->ReadFrames(0,0,0,a,b);
6968 int main (int argc, char*argv)
6974 if test "x$AVIFILE_CONFIG" '!=' "x";then
6975 AVIFILE_LIBS
=`$AVIFILE_CONFIG --libs`
6976 AVIFILE_CFLAGS
=`$AVIFILE_CONFIG --cflags`
6977 avifile_link
='$CXX $CPPFLAGS $CXXFLAGS $AVIFILE_CFLAGS conftest.cpp $AVIFILE_LIBS -o conftest${ac_exeext}'
6978 if { (eval echo avi2swf.
m4:71: \"$avifile_link\") 1>&5; (eval $avifile_link) 2>&5; } && test -s conftest
${ac_exeext} && .
/conftest
${ac_exeext}; then
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6980 $as_echo "yes" >&6; }
6984 $as_echo "#define AVIFILE true" >>confdefs.h
6987 echo "configure: failed program was:" >&5
6988 cat conftest.cpp
>&5
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6990 $as_echo "no" >&6; }
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6994 $as_echo "no" >&6; }
6998 if test "x${AVIFILE}" = "xtrue"; then
6999 VIDEO_LIBS
="$VIDEO_LIBS $AVIFILE_LIBS"
7000 VIDEO_CFLAGS
="$VIDEO_CFLAGS $AVIFILE_CFLAGS"
7002 $as_echo "#define HAVE_AVIFILE 1" >>confdefs.h
7006 if test "x${WIN32}" != "x"; then
7007 #AC_CHECK_LIB(avifil32, AVIFileInit,AVIFIL32=true)
7008 #if test "x${AVIFIL32}" != "x"; then
7009 # VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
7011 VIDEO_LIBS
="$VIDEO_LIBS -lavifil32"
7017 # ------------------------------------------------------------------
7019 if test "x${UNCOMPRESS}" = "xgzip"; then
7021 $as_echo "#define USE_GZIP 1" >>confdefs.h
7026 # ------------------------------------------------------------------
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python version" >&5
7030 $as_echo_n "checking for Python version... " >&6; }
7032 if test "x$PYTHON_LIB" '!=' "x" -a "x$PYTHON_INCLUDES" '!=' "x";then
7035 if test "x$PYTHON_LIB" '!=' "x" -o "x$PYTHON_INCLUDES" '!=' "x";then
7036 echo "Set both PYTHON_LIB and PYTHON_INCLUDES, or none at all"
7038 # iterate through version 2.2 to 3.2
7039 VERSIONS
="2.2 2.3 2.4 2.5 2.6 3.0 3.1 3.2"
7041 2*) VERSIONS
="2.2 2.3 2.4 2.5 2.6 2.7 $PYTHON"
7043 3*) VERSIONS
="3.1 3.2 3.3 $PYTHON"
7046 for v
in $VERSIONS; do
7048 if test -f "/usr/include/python$v/Python.h";then
7050 PYTHON_LIB
="-lpython$PY_VERSION"
7051 if test -f "/usr/lib/python$v/site-packages/PIL/_imaging.so";then
7052 PYTHON_LIB2
="$PYTHON_LIB /usr/lib/python$v/site-packages/PIL/_imaging.so"
7053 HAVE_PYTHON_IMAGING_LIB
=1
7055 PYTHON_LIB2
="$PYTHON_LIB"
7057 PYTHON_INCLUDES
="-I/usr/include/python$PY_VERSION"
7059 elif test -f "/Library/Frameworks/Python.framework/Versions/$v/include/python$v/Python.h";then
7061 PYTHON_LIB
="-framework Python"
7062 if test -f "/Library/Frameworks/Python.framework/Versions/$v/site-packages/PIL/_imaging.so";then
7063 PYTHON_LIB2
="$PYTHON_LIB /Library/Python/$v/PIL/_imaging.so"
7064 HAVE_PYTHON_IMAGING_LIB
=1
7066 PYTHON_LIB2
="$PYTHON_LIB"
7068 PYTHON_INCLUDES
="-I/Library/Frameworks/Python.framework/Versions/$v/include/python$v/"
7070 elif test "(" -f "/sw/lib/python$v/config/libpython$v.dylib" \
7071 -o -f "/sw/lib/python$v/config/libpython$v.a" \
7072 -o -f "/sw/lib/python$v/config/libpython$v.so" \
7074 -a -f "/sw/include/python$v/Python.h"; then
7076 PYTHON_LIB
="-L /sw/lib/python$v/config/ -lpython$PY_VERSION /sw/lib/python$v/site-packages/PIL/_imaging.so"
7077 if test -f "/sw/lib/python$v/site-packages/PIL/_imaging.so";then
7078 PYTHON_LIB2
="$PYTHON_LIB /sw/lib/python$v/site-packages/PIL/_imaging.so"
7079 HAVE_PYTHON_IMAGING_LIB
=1
7081 PYTHON_LIB2
="$PYTHON_LIB"
7083 PYTHON_INCLUDES
="-I /sw/include/python$v/"
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_VERSION" >&5
7088 $as_echo "$PY_VERSION" >&6; }
7090 if test "x$PY_VERSION" "!=" "x"; then
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python executable" >&5
7092 $as_echo_n "checking for Python executable... " >&6; }
7093 if python
$PY_VERSION -V 2>&5;then
7094 PYTHON_EXECUTABLE
=python
$PY_VERSION
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXECUTABLE" >&5
7097 $as_echo "$PYTHON_EXECUTABLE" >&6; }
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7100 $as_echo "failed" >&6; }
7104 if test "x$PY_VERSION" "!=" "x" -a "x$PYTHON_EXECUTABLE" "!=" "x"; then
7105 export PYTHON_INCLUDES PYTHON_LIB
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the Python test program" >&5
7109 $as_echo_n "checking whether we can compile the Python test program... " >&6; }
7111 cat > conftest.c
<< EOF
7112 # include <Python.h>
7117 ret = Py_Main(0, 0);
7118 int x; // check also for gcc 2.95.x incompatibilities
7123 ac_link
='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS $PYTHON_LIB $LIBS -o conftest${ac_exeext}'
7124 if { (eval echo python.
m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7126 $as_echo "yes" >&6; }
7129 echo "configure: failed program was:" >&5
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7132 $as_echo "no" >&6; }
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python install path" >&5
7137 $as_echo_n "checking for Python install path... " >&6; }
7138 cat > _pypath.py
<< EOF
7140 import distutils.sysconfig
7142 sys.stdout.write(distutils.sysconfig.get_python_lib(plat_specific=0,standard_lib=0))
7144 echo $PYTHON_EXECUTABLE _pypath.py
1>&5
7145 if $PYTHON_EXECUTABLE _pypath.py
>_pypath.txt
2>&5;then
7146 PYTHON_INSTALL_PATH
=`cat _pypath.txt`
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_INSTALL_PATH" >&5
7149 $as_echo "$PYTHON_INSTALL_PATH" >&6; }
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7152 $as_echo "failed" >&6; }
7154 #rm -f _pypath.txt _pypath.py
7156 if test "x$PYTHON_OK" = "xyes";then
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python-Imaging" >&5
7158 $as_echo_n "checking for Python-Imaging... " >&6; }
7159 cat > conftest.c
<< EOF
7160 # include <Python.h>
7161 # include <Imaging.h>
7169 if test "$HAVE_PYTHON_IMAGING_LIB"; then
7170 ac_link
='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS ${PYTHON_LIB2} $LIBS -o conftest${ac_exeext}'
7171 if { (eval echo python.
m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7172 PYTHON_LIB
="${PYTHON_LIB2}"
7174 $as_echo "#define HAVE_PYTHON_IMAGING 1" >>confdefs.h
7176 HAVE_PYTHON_IMAGING
=yes
7177 export HAVE_PYTHON_IMAGING
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7180 $as_echo "yes" >&6; }
7182 echo "configure: failed program was:" >&5
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7185 $as_echo "no" >&6; }
7188 echo "(didn't find the Python-Imaging libraries)" >&5
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7190 $as_echo "no" >&6; }
7197 if test "x$PYTHON_OK" '!=' "xyes";then
7198 echo all
install uninstall clean
: > lib
/python
/Makefile
7199 # fail silently- the most users won't have any need for the
7200 # python interface anyway
7202 pythongfx
="lib/python/Makefile"
7205 # ------------------------------------------------------------------
7208 # Extract the first word of "ruby", so it can be a program name with args.
7209 set dummy ruby
; ac_word
=$2
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7211 $as_echo_n "checking for $ac_word... " >&6; }
7212 if test "${ac_cv_path_RUBY+set}" = set; then :
7213 $as_echo_n "(cached) " >&6
7217 ac_cv_path_RUBY
="$RUBY" # Let the user override the test with a path.
7220 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7224 test -z "$as_dir" && as_dir
=.
7225 for ac_exec_ext
in '' $ac_executable_extensions; do
7226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7227 ac_cv_path_RUBY
="$as_dir/$ac_word$ac_exec_ext"
7228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7238 RUBY
=$ac_cv_path_RUBY
7239 if test -n "$RUBY"; then
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5
7241 $as_echo "$RUBY" >&6; }
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7244 $as_echo "no" >&6; }
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ruby's include directory" >&5
7256 $as_echo_n "checking for ruby's include directory... " >&6; }
7257 if test "x$RUBY" '!=' "x";then
7258 rubyinc
=`$RUBY -e 'require "rbconfig";puts Config::expand(Config::CONFIG.send("\x5b\x5d", "archdir"))' 2>/dev/null`
7259 if test -d $rubyinc;then
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rubyinc" >&5
7261 $as_echo "$rubyinc" >&6; }
7263 # If we got a sensible archdir, we also ask ruby to supply us with CPPFLAGS
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ruby's cpp flags" >&5
7266 $as_echo_n "checking for ruby's cpp flags... " >&6; }
7267 rubycpp
=`$RUBY -e 'require "rbconfig";puts Config::expand(Config::CONFIG.send("\x5b\x5d", "CPPFLAGS"))' 2>/dev/null`
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rubycpp" >&5
7269 $as_echo "$rubycpp" >&6; }
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ruby's ld flags" >&5
7272 $as_echo_n "checking for ruby's ld flags... " >&6; }
7273 rubyld
=`$RUBY -e 'require "rbconfig";puts Config::expand(Config::CONFIG.send("\x5b\x5d", "LIBRUBYARG_SHARED"))' 2>/dev/null`
7274 rubyld2
=`$RUBY -e 'require "rbconfig";v=Config::expand(Config::CONFIG.send("\x5b\x5d", "LIBRUBY_LDSHARED"));puts v.gsub(/^g?cc/,"")' 2>/dev/null`
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$rubyld $rubyld2\"" >&5
7276 $as_echo "\"$rubyld $rubyld2\"" >&6; }
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ruby library name" >&5
7279 $as_echo_n "checking for ruby library name... " >&6; }
7280 rubylib
=`$RUBY -e 'require "rbconfig";puts Config::expand(Config::CONFIG.send("\x5b\x5d", "RUBY_SO_NAME"))' 2>/dev/null`
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rubylib" >&5
7282 $as_echo "$rubylib" >&6; }
7284 RUBY_CPPFLAGS
="$rubycpp -I$rubyinc $RUBY_CPPFLAGS"
7285 RUBY_LDFLAGS
="$rubyld $rubyld2 $RUBY_LDFLAGS"
7286 RUBY_INSTALLDIR
="$rubyinc"
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 'unknown'" >&5
7289 $as_echo "'unknown'" >&6; }
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 'unknown'" >&5
7293 $as_echo "'unknown'" >&6; }
7296 #OLDLDFLAGS="$LDFLAGS"
7297 #LDFLAGS="$LDFLAGS $RUBY_LDFLAGS"
7298 #AC_CHECK_LIB($rubylib, rb_define_method, HAVE_RUBY_LIB=1,)
7299 #LDFLAGS="$OLDLDFLAGS"
7301 OLDCPPFLAGS
="$CPPFLAGS"
7302 CPPFLAGS
="$CPPFLAGS $RUBY_CPPFLAGS"
7303 for ac_header
in ruby.h
7305 ac_fn_c_check_header_mongrel
"$LINENO" "ruby.h" "ac_cv_header_ruby_h" "$ac_includes_default"
7306 if test "x$ac_cv_header_ruby_h" = x
""yes; then :
7307 cat >>confdefs.h
<<_ACEOF
7308 #define HAVE_RUBY_H 1
7315 CPPFLAGS
="$OLDCPPFLAGS"
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we should compile the ruby module" >&5
7318 $as_echo_n "checking whether we should compile the ruby module... " >&6; }
7319 if test "x${HAVE_RUBY_H}" '!=' "x";then
7320 #RUBY_LIBS="$RUBY_LIBS -l$rubylib"
7322 cat > conftest.c
<< EOF
7324 static VALUE foobar;
7325 VALUE foobar_set_foo(VALUE module, VALUE _key, VALUE _value)
7331 foobar = rb_define_module("foobar");
7332 rb_define_module_function(foobar, "set_foo", foobar_set_foo, 2);
7335 int main() {return 0;}
7337 ac_link
='$CC $SHARED $CPPFLAGS $RUBY_CPPFLAGS $CFLAGS conftest.c $LDFLAGS $RUBY_LDFLAGS $LIBS $RUBY_LIBS -o conftest${SLEXT}'
7338 if { (eval echo ruby.
m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${SLEXT}; then
7341 echo "configure: failed program was:" >&5
7347 if test "x${RUBY_OK}" '=' "xyes"; then
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7349 $as_echo "yes" >&6; }
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7356 $as_echo "no" >&6; }
7364 if test "x$RUBY_OK" '!=' "xyes";then
7365 if test -d "lib/ruby/";then
7366 echo all
install uninstall clean
: > lib
/ruby
/Makefile
7368 # fail silently- the most users won't have any need for the
7369 # ruby interface anyway
7371 if test -f "lib/ruby/Makefile.in";then
7372 rubygfx
="lib/ruby/Makefile"
7376 # ------------------------------------------------------------------
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for missing libraries" >&5
7379 $as_echo_n "checking for missing libraries... " >&6; }
7381 if test "x$ZLIBMISSING" = "xtrue";then
7382 MISSINGLIBS
="${MISSINGLIBS} zlib"
7386 if test "x$JPEGLIBMISSING" = "xtrue";then
7387 MISSINGLIBS
="${MISSINGLIBS} jpeglib"
7389 DISABLEJPEG2SWF
=true
7392 if test "x$PDFLIBMISSING" = "xtrue";then
7393 DISABLEPDF2PDF
=true
;
7395 #if test "x$T1LIBMISSING" = "xtrue";then
7396 # MISSINGLIBS="${MISSINGLIBS} t1lib"
7398 if test "x$UNGIFMISSING" = "xtrue";then
7400 MISSINGLIBS
="${MISSINGLIBS} ungif"
7404 if test "x${ac_cv_header_pdflib_h}" '!=' "xyes";then
7405 DISABLEPDF2PDF
=true
;
7407 if test "x${ac_cv_header_jpeglib_h}" '!=' "xyes"; then
7408 DISABLEPDF2SWF
=true
;
7409 DISABLEJPEG2SWF
=true
;
7410 MISSINGLIBS
="${MISSINGLIBS} jpeglib.h"
7413 if test "x$HAVE_FREETYPE" '!=' "x1"; then
7414 DISABLEPDF2SWF
=true
;
7415 MISSINGLIBS
="${MISSINGLIBS} freetype"
7418 #if test "x${ac_cv_header_t1lib_h}" '!=' "xyes"; then
7419 # MISSINGLIBS="${MISSINGLIBS} t1lib.h"
7421 if test "x${ac_cv_header_gif_lib_h}" '!=' "xyes"; then
7423 MISSINGLIBS
="${MISSINGLIBS} gif_lib.h"
7426 if test "x${ac_cv_header_zlib_h}" '!=' "xyes"; then
7427 DISABLEPNG2SWF
=true
;
7428 MISSINGLIBS
="${MISSINGLIBS} zlib.h"
7431 #if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
7432 # MISSINGLIBS="${MISSINGLIBS} avifile"
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${MISSINGLIBS}" >&5
7436 $as_echo "${MISSINGLIBS}" >&6; }
7438 # ------------------------------------------------------------------
7440 if test "x${MISSINGLIBS}" '!=' "x"; then
7441 echo "***************************************************"
7442 echo "* The following headers/libraries are missing: " ${MISSINGLIBS}
7445 avi2swf
="avi2swf/Makefile"
7446 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
7447 #don't whine, avi2swf is outdated anyway
7448 #echo "* Disabling avi2swf tool..."
7449 echo all
install uninstall clean
: > avi2swf
/Makefile
7453 pdf2swf_makefile
="lib/pdf/Makefile"
7454 PDF2SWF
='pdf2swf$(E)'
7457 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
7458 echo "* Disabling pdf2swf tool..."
7459 rm -f lib
/pdf
/Makefile
7460 echo all
install uninstall clean libpdf libgfxpdf
: > lib
/pdf
/Makefile
7468 PDF2PDF
='pdf2pdf$(E)'
7469 DEVICE_PDF
='devices/pdf.$(O)'
7470 if test "x${DISABLEPDF2PDF}" = "xtrue"; then
7471 #echo "* Disabling pdf2pdf tool..."
7478 if test "x${ZLIBMISSING}" = "xtrue"; then
7480 echo "* Warning! Without zlib, you will not be able to read"
7481 echo "* or write compressed Flash MX files!"
7484 JPEG2SWF
='jpeg2swf$(E)'
7485 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
7486 echo "* Disabling jpeg2swf tool..."
7492 GIF2SWF
='gif2swf$(E)'
7493 if test "x${DISABLEGIF2SWF}" = "xtrue"; then
7494 echo "* Disabling gif2swf tool..."
7500 PNG2SWF
='png2swf$(E)'
7501 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
7502 echo "* Disabling png2swf tool..."
7508 if test "x${MISSINGLIBS}" '!=' "x"; then
7509 if test "x${PARTIAL}" '=' "x"; then
7510 echo "* (never mind)"
7512 echo "***************************************************"
7515 # ------------------------------------------------------------------
7521 if test -f "release.in"; then release_in
="./release"; fi
7522 if test -f "Makefile.new.in"; then mk_in
="./Makefile.new"; fi
7523 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"
7524 ac_config_files
="$ac_config_files ${FILES}"
7526 cat >confcache
<<\_ACEOF
7527 # This file is a shell script that caches the results of configure
7528 # tests run on this system so they can be shared between configure
7529 # scripts and configure runs, see configure's option --config-cache.
7530 # It is not useful on other systems. If it contains results you don't
7531 # want to keep, you may remove or edit it.
7533 # config.status only pays attention to the cache file if you give it
7534 # the --recheck option to rerun configure.
7536 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7537 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7542 # The following way of writing the cache mishandles newlines in values,
7543 # but we know of no workaround that is simple, portable, and efficient.
7544 # So, we kill variables containing newlines.
7545 # Ultrix sh set writes to stderr and can't be redirected directly,
7546 # and sets the high bit in the cache file unless we assign to the vars.
7548 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7549 eval ac_val
=\$
$ac_var
7553 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7554 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7557 _ | IFS | as_nl
) ;; #(
7558 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
7559 *) { eval $ac_var=; unset $ac_var;} ;;
7565 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7566 *${as_nl}ac_space
=\
*)
7567 # `set' does not quote correctly, so add quotes: double-quote
7568 # substitution turns \\\\ into \\, and sed turns \\ into \.
7571 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7574 # `set' quotes correctly as required by POSIX, so do not add quotes.
7575 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7584 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7586 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7588 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
7589 if test -w "$cache_file"; then
7590 test "x$cache_file" != "x/dev/null" &&
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7592 $as_echo "$as_me: updating cache $cache_file" >&6;}
7593 cat confcache
>$cache_file
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7596 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7601 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7602 # Let make expand exec_prefix.
7603 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7605 DEFS
=-DHAVE_CONFIG_H
7609 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
7610 # 1. Remove the extension, and $U if already installed.
7611 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
7612 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
7613 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7614 # will be set to the directory where LIBOBJS objects are built.
7615 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7616 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
7620 LTLIBOBJS
=$ac_ltlibobjs
7624 : ${CONFIG_STATUS=./config.status}
7626 ac_clean_files_save
=$ac_clean_files
7627 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7629 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7631 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7633 # Generated by $as_me.
7634 # Run this file to recreate the current configuration.
7635 # Compiler output produced by configure, useful for debugging
7636 # configure, is in config.log if it exists.
7642 SHELL=\${CONFIG_SHELL-$SHELL}
7645 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
7646 ## -------------------- ##
7647 ## M4sh Initialization. ##
7648 ## -------------------- ##
7650 # Be more Bourne compatible
7651 DUALCASE
=1; export DUALCASE
# for MKS sh
7652 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
7655 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7656 # is contrary to our usage. Disable this feature.
7657 alias -g '${1+"$@"}'='"$@"'
7658 setopt NO_GLOB_SUBST
7660 case `(set -o) 2>/dev/null` in #(
7672 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7673 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7674 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7675 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7676 # Prefer a ksh shell builtin over an external printf program on Solaris,
7677 # but without wasting forks for bash or zsh.
7678 if test -z "$BASH_VERSION$ZSH_VERSION" \
7679 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7680 as_echo='print
-r --'
7681 as_echo_n='print
-rn --'
7682 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7683 as_echo='printf %s
\n'
7684 as_echo_n='printf %s
'
7686 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7687 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
7688 as_echo_n='/usr
/ucb
/echo -n'
7690 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7691 as_echo_n_body='eval
7695 expr "X$arg" : "X\\(.*\\)$as_nl";
7696 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7698 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
7700 export as_echo_n_body
7701 as_echo_n='sh
-c $as_echo_n_body as_echo
'
7704 as_echo='sh
-c $as_echo_body as_echo
'
7707 # The user is always right.
7708 if test "${PATH_SEPARATOR+set}" != set; then
7710 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7711 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7718 # We need space, tab and new line, in precisely that order. Quoting is
7719 # there to prevent editors from complaining about space-tab.
7720 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7721 # splitting by setting IFS to empty value.)
7724 # Find who we are. Look in the path if we contain no directory separator.
7726 *[\\/]* ) as_myself=$0 ;;
7727 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7731 test -z "$as_dir" && as_dir=.
7732 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7738 # We did not find ourselves, most probably we were run as `sh COMMAND'
7739 # in which case we are not to be found in the path.
7740 if test "x$as_myself" = x
; then
7743 if test ! -f "$as_myself"; then
7744 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7748 # Unset variables that we do not need and which cause bugs (e.g. in
7749 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7750 # suppresses any "Segmentation fault" message there. '((' could
7751 # trigger a bug in pdksh 5.2.14.
7752 for as_var
in BASH_ENV ENV MAIL MAILPATH
7753 do eval test x\
${$as_var+set} = xset \
7754 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
7767 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
7770 # as_fn_error ERROR [LINENO LOG_FD]
7771 # ---------------------------------
7772 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7773 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7774 # script with status $?, using 1 if that was 0.
7777 as_status
=$?
; test $as_status -eq 0 && as_status
=1
7779 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
7780 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
7782 $as_echo "$as_me: error: $1" >&2
7783 as_fn_exit
$as_status
7787 # as_fn_set_status STATUS
7788 # -----------------------
7789 # Set $? to STATUS, without forking.
7793 } # as_fn_set_status
7797 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7807 # Portably unset VAR.
7810 { eval $1=; unset $1;}
7812 as_unset
=as_fn_unset
7813 # as_fn_append VAR VALUE
7814 # ----------------------
7815 # Append the text in VALUE to the end of the definition contained in VAR. Take
7816 # advantage of any shell optimizations that allow amortized linear growth over
7817 # repeated appends, instead of the typical quadratic growth present in naive
7819 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
7820 eval 'as_fn_append ()
7831 # as_fn_arith ARG...
7832 # ------------------
7833 # Perform arithmetic evaluation on the ARGs, and store the result in the
7834 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7835 # must be portable across $(()) and expr.
7836 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
7837 eval 'as_fn_arith ()
7844 as_val
=`expr "$@" || test $? -eq 1`
7849 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
7850 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
7856 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7857 as_basename
=basename
7862 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
7868 as_me
=`$as_basename -- "$0" ||
7869 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7870 X"$0" : 'X\(//\)$' \| \
7871 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7873 sed '/^.*\/\([^/][^/]*\)\/*$/{
7887 # Avoid depending upon Character Ranges.
7888 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
7889 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7890 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
7891 as_cr_digits
='0123456789'
7892 as_cr_alnum
=$as_cr_Letters$as_cr_digits
7894 ECHO_C
= ECHO_N
= ECHO_T
=
7895 case `echo -n x` in #(((((
7897 case `echo 'xy\c'` in
7898 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
7900 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
7907 rm -f conf$$ conf$$.exe conf$$.
file
7908 if test -d conf$$.dir
; then
7909 rm -f conf$$.dir
/conf$$.
file
7912 mkdir conf$$.dir
2>/dev
/null
7914 if (echo >conf$$.
file) 2>/dev
/null
; then
7915 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
7917 # ... but there are two gotchas:
7918 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7919 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7920 # In both cases, we have to default to `cp -p'.
7921 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
7923 elif ln conf$$.
file conf$$
2>/dev
/null
; then
7931 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
7932 rmdir conf$$.dir
2>/dev
/null
7937 # Create "$as_dir" as a directory, including parents if necessary.
7942 -*) as_dir
=.
/$as_dir;;
7944 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
7948 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7949 *) as_qdir
=$as_dir;;
7951 as_dirs
="'$as_qdir' $as_dirs"
7952 as_dir
=`$as_dirname -- "$as_dir" ||
7953 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7954 X"$as_dir" : 'X\(//\)[^/]' \| \
7955 X"$as_dir" : 'X\(//\)$' \| \
7956 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7957 $as_echo X"$as_dir" |
7958 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7975 test -d "$as_dir" && break
7977 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
7978 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
7982 if mkdir
-p .
2>/dev
/null
; then
7983 as_mkdir_p
='mkdir -p "$as_dir"'
7985 test -d .
/-p && rmdir .
/-p
7989 if test -x / >/dev
/null
2>&1; then
7992 if ls -dL / >/dev
/null
2>&1; then
7999 if test -d "$1"; then
8005 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8006 ???[sx]*):;;*)false;;esac;fi
8010 as_executable_p
=$as_test_x
8012 # Sed expression to map a string onto a valid CPP name.
8013 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8015 # Sed expression to map a string onto a valid variable name.
8016 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8020 ## ----------------------------------- ##
8021 ## Main body of $CONFIG_STATUS script. ##
8022 ## ----------------------------------- ##
8024 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
8026 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8027 # Save the log message, to keep $0 and so on meaningful, and to
8028 # report actual input values of CONFIG_FILES etc. instead of their
8029 # values after options handling.
8031 This file was extended by $as_me, which was
8032 generated by GNU Autoconf 2.65. Invocation command line was
8034 CONFIG_FILES = $CONFIG_FILES
8035 CONFIG_HEADERS = $CONFIG_HEADERS
8036 CONFIG_LINKS = $CONFIG_LINKS
8037 CONFIG_COMMANDS = $CONFIG_COMMANDS
8040 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8045 case $ac_config_files in *"
8046 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
8049 case $ac_config_headers in *"
8050 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
8054 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8055 # Files that config.status was made for.
8056 config_files="$ac_config_files"
8057 config_headers="$ac_config_headers"
8061 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8063 \`$as_me' instantiates files and other configuration actions
8064 from templates according to the current configuration. Unless the files
8065 and actions are specified as TAGs, all are instantiated by default.
8067 Usage: $0 [OPTION]... [TAG]...
8069 -h, --help print this help, then exit
8070 -V, --version print version number and configuration settings, then exit
8071 --config print configuration, then exit
8072 -q, --quiet, --silent
8073 do not print progress messages
8074 -d, --debug don't remove temporary files
8075 --recheck update $as_me by reconfiguring in the same conditions
8076 --file=FILE[:TEMPLATE]
8077 instantiate the configuration file FILE
8078 --header=FILE[:TEMPLATE]
8079 instantiate the configuration header FILE
8081 Configuration files:
8084 Configuration headers:
8087 Report bugs to the package provider."
8090 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8091 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8094 configured by $0, generated by GNU Autoconf 2.65,
8095 with options \\"\$ac_cs_config\\"
8097 Copyright (C) 2009 Free Software Foundation, Inc.
8098 This config.status script is free software; the Free Software Foundation
8099 gives unlimited permission to copy, distribute and modify it."
8104 test -n "\$AWK" || AWK=awk
8107 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8108 # The default lists apply if the user does not specify any file.
8114 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8115 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
8126 # Handling of the options.
8127 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
8129 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
8130 $as_echo "$ac_cs_version"; exit ;;
8131 --config |
--confi |
--conf |
--con |
--co |
--c )
8132 $as_echo "$ac_cs_config"; exit ;;
8133 --debug |
--debu |
--deb |
--de |
--d |
-d )
8135 --file |
--fil |
--fi |
--f )
8138 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8140 as_fn_append CONFIG_FILES
" '$ac_optarg'"
8141 ac_need_defaults
=false
;;
8142 --header |
--heade |
--head |
--hea )
8145 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8147 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
8148 ac_need_defaults
=false
;;
8150 # Conflict between --help and --header
8151 as_fn_error
"ambiguous option: \`$1'
8152 Try \`$0 --help' for more information.";;
8153 --help |
--hel |
-h )
8154 $as_echo "$ac_cs_usage"; exit ;;
8155 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
8156 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
8160 -*) as_fn_error
"unrecognized option: \`$1'
8161 Try \`$0 --help' for more information." ;;
8163 *) as_fn_append ac_config_targets
" $1"
8164 ac_need_defaults
=false
;;
8170 ac_configure_extra_args
=
8172 if $ac_cs_silent; then
8174 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8178 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8179 if \$ac_cs_recheck; then
8180 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8182 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8183 CONFIG_SHELL='$SHELL'
8189 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8193 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8194 ## Running $as_me. ##
8200 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8203 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8205 # Handling of arguments.
8206 for ac_config_target
in $ac_config_targets
8208 case $ac_config_target in
8209 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
8210 "${FILES}") CONFIG_FILES
="$CONFIG_FILES ${FILES}" ;;
8212 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8217 # If the user did not use the arguments to specify the items to instantiate,
8218 # then the envvar interface is used. Set only those that are not.
8219 # We use the long form for the default assignment because of an extremely
8220 # bizarre bug on SunOS 4.1.3.
8221 if $ac_need_defaults; then
8222 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8223 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
8226 # Have a temporary directory for convenience. Make it in the build tree
8227 # simply because there is no reason against having it here, and in addition,
8228 # creating and moving files from /tmp can sometimes cause problems.
8229 # Hook for its removal unless debugging.
8230 # Note that there is a small window in which the directory will not be cleaned:
8231 # after its creation but before its name has been assigned to `$tmp'.
8235 trap 'exit_status=$?
8236 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8238 trap 'as_fn_exit 1' 1 2 13 15
8240 # Create a (secure) tmp directory for tmp files.
8243 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8244 test -n "$tmp" && test -d "$tmp"
8247 tmp
=.
/conf$$
-$RANDOM
8248 (umask 077 && mkdir
"$tmp")
8249 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
8251 # Set up the scripts for CONFIG_FILES section.
8252 # No need to generate them if there are no CONFIG_FILES.
8253 # This happens for instance with `./config.status config.h'.
8254 if test -n "$CONFIG_FILES"; then
8257 ac_cr
=`echo X | tr X '\015'`
8258 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8259 # But we know of no other shell where ac_cr would be empty at this
8260 # point, so we can use a bashism as a fallback.
8261 if test "x$ac_cr" = x
; then
8262 eval ac_cr
=\$
\'\\r
\'
8264 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8265 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8271 echo 'BEGIN {' >"$tmp/subs1.awk" &&
8276 echo "cat >conf$$subs.awk <<_ACEOF" &&
8277 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8280 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
8281 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
8283 for ac_last_try in false false false false false :; do
8284 . ./conf$$subs.sh ||
8285 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
8287 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
8288 if test $ac_delim_n = $ac_delim_num; then
8290 elif $ac_last_try; then
8291 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
8293 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8298 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8299 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
8303 s/^/S["/; s
/!.
*/"]=/
8313 s/\(.\{148\}\)..*/\1/
8315 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
8320 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8327 s/\(.\{148\}\)..*/\1/
8329 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
8333 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8338 ' <conf$$subs.awk | sed '
8343 ' >>$CONFIG_STATUS || ac_write_fail=1
8344 rm -f conf$$subs.awk
8345 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8347 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
8348 for (key in S) S_is_set[key] = 1
8354 nfields = split(line, field, "@
")
8356 len = length(field[1])
8357 for (i = 2; i < nfields; i++) {
8359 keylen = length(key)
8360 if (S_is_set[key]) {
8362 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8363 len += length(value) + length(field[++i])
8374 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8375 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8376 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
8379 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
8380 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
8383 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8384 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
8385 # trailing colons and then remove the whole line if VPATH becomes empty
8386 # (actually we leave an empty line to preserve line numbers).
8387 if test "x
$srcdir" = x.; then
8388 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8392 s/^\([^=]*=[ ]*\):*/\1/
8398 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8399 fi # test -n "$CONFIG_FILES"
8401 # Set up the scripts for CONFIG_HEADERS section.
8402 # No need to generate them if there are no CONFIG_HEADERS.
8403 # This happens for instance with `./config.status Makefile'.
8404 if test -n "$CONFIG_HEADERS"; then
8405 cat >"$tmp/defines.
awk" <<\_ACAWK ||
8409 # Transform confdefs.h into an awk script `defines.awk', embedded as
8410 # here-document in config.status, that substitutes the proper values into
8411 # config.h.in to produce config.h.
8413 # Create a delimiter string that does not exist in confdefs.h, to ease
8414 # handling of long lines.
8416 for ac_last_try in false false :; do
8417 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
8418 if test -z "$ac_t"; then
8420 elif $ac_last_try; then
8421 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
8423 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8427 # For the awk script, D is an array of macro values keyed by name,
8428 # likewise P contains macro parameters if any. Preserve backslash
8429 # newline sequences.
8431 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8433 s/.\{148\}/&'"$ac_delim"'/g
8436 s/^[ ]*#[ ]*define[ ][ ]*/ /
8443 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
8445 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
8449 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
8450 D["\
1"]=" \
3\\\\\\n
"\\/p
8452 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
8457 s/.\{148\}/&'"$ac_delim"'/g
8462 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
8465 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
8467 ' <confdefs.h | sed '
8468 s/'"$ac_delim"'/"\\\
8469 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8471 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8472 for (key in D) D_is_set[key] = 1
8475 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8477 split(line, arg, " ")
8478 if (arg[1] == "#") {
8482 defundef
= substr
(arg
[1], 2)
8485 split(mac1
, mac2
, "(") #)
8487 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
8488 if (D_is_set
[macro
]) {
8489 # Preserve the white space surrounding the "#".
8490 print prefix
"define", macro P
[macro
] D
[macro
]
8493 # Replace #undef with comments. This is necessary, for example,
8494 # in the case of _POSIX_SOURCE, which is predefined and required
8495 # on some systems where configure will not decide to define it.
8496 if (defundef
== "undef") {
8497 print
"/*", prefix defundef
, macro
, "*/"
8505 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8506 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
8507 fi # test -n "$CONFIG_HEADERS"
8510 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
8515 :[FHLC
]) ac_mode
=$ac_tag; continue;;
8517 case $ac_mode$ac_tag in
8519 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
8520 :[FH
]-) ac_tag
=-:-;;
8521 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
8538 -) ac_f
="$tmp/stdin";;
8539 *) # Look for the file first in the build tree, then in the source tree
8540 # (if the path is not absolute). The absolute path cannot be DOS-style,
8541 # because $ac_f cannot contain `:'.
8545 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
8547 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
8549 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8550 as_fn_append ac_file_inputs
" '$ac_f'"
8553 # Let's still pretend it is `configure' which instantiates (i.e., don't
8554 # use $as_me), people would be surprised to read:
8555 # /* config.h. Generated by config.status. */
8556 configure_input
='Generated from '`
8557 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8559 if test x
"$ac_file" != x-
; then
8560 configure_input
="$ac_file. $configure_input"
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8562 $as_echo "$as_me: creating $ac_file" >&6;}
8564 # Neutralize special characters interpreted by sed in replacement strings.
8565 case $configure_input in #(
8566 *\
&* |
*\|
* |
*\\* )
8567 ac_sed_conf_input
=`$as_echo "$configure_input" |
8568 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8569 *) ac_sed_conf_input
=$configure_input;;
8573 *:-:* |
*:-) cat >"$tmp/stdin" \
8574 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
8579 ac_dir
=`$as_dirname -- "$ac_file" ||
8580 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8581 X"$ac_file" : 'X\(//\)[^/]' \| \
8582 X"$ac_file" : 'X\(//\)$' \| \
8583 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8584 $as_echo X"$ac_file" |
8585 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8602 as_dir
="$ac_dir"; as_fn_mkdir_p
8606 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8608 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8609 # A ".." for each directory in $ac_dir_suffix.
8610 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8611 case $ac_top_builddir_sub in
8612 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8613 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
8616 ac_abs_top_builddir
=$ac_pwd
8617 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
8618 # for backward compatibility:
8619 ac_top_builddir
=$ac_top_build_prefix
8622 .
) # We are building in place.
8624 ac_top_srcdir
=$ac_top_builddir_sub
8625 ac_abs_top_srcdir
=$ac_pwd ;;
8626 [\\/]* | ?
:[\\/]* ) # Absolute name.
8627 ac_srcdir
=$srcdir$ac_dir_suffix;
8628 ac_top_srcdir
=$srcdir
8629 ac_abs_top_srcdir
=$srcdir ;;
8631 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
8632 ac_top_srcdir
=$ac_top_build_prefix$srcdir
8633 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
8635 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
8645 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
8646 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
8650 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8651 # If the template does not know about datarootdir, expand it.
8652 # FIXME: This hack should be removed a few years after 2.60.
8653 ac_datarootdir_hack
=; ac_datarootdir_seen
=
8664 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8665 *datarootdir
*) ac_datarootdir_seen
=yes;;
8666 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8668 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8670 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8671 ac_datarootdir_hack='
8672 s&@datadir@&$datadir&g
8673 s&@docdir@&$docdir&g
8674 s&@infodir@&$infodir&g
8675 s&@localedir@&$localedir&g
8676 s&@mandir@&$mandir&g
8677 s&\\\${datarootdir}&$datarootdir&g' ;;
8681 # Neutralize VPATH when `$srcdir' = `.'.
8682 # Shell code in configure.ac might set extrasub.
8683 # FIXME: do we really want to maintain this feature?
8684 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8685 ac_sed_extra="$ac_vpsub
8688 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8690 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
8691 s|@configure_input@|
$ac_sed_conf_input|
;t t
8692 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
8693 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
8694 s
&@srcdir@
&$ac_srcdir&;t t
8695 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
8696 s
&@top_srcdir@
&$ac_top_srcdir&;t t
8697 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
8698 s
&@builddir@
&$ac_builddir&;t t
8699 s
&@abs_builddir@
&$ac_abs_builddir&;t t
8700 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
8701 s
&@INSTALL@
&$ac_INSTALL&;t t
8702 $ac_datarootdir_hack
8704 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
8705 || as_fn_error "could not create
$ac_file" "$LINENO" 5
8707 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8708 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
8709 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
8711 which seems to be undefined. Please make sure it is defined." >&5
8712 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
8713 which seems to be undefined. Please make sure it is defined." >&2;}
8717 -) cat "$tmp/out" && rm -f "$tmp/out";;
8718 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8720 || as_fn_error "could not create $ac_file" "$LINENO" 5
8726 if test x"$ac_file" != x-; then
8728 $as_echo "/* $configure_input */" \
8729 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8730 } >"$tmp/config.h" \
8731 || as_fn_error "could not create $ac_file" "$LINENO" 5
8732 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8734 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8737 mv "$tmp/config.h" "$ac_file" \
8738 || as_fn_error "could not create $ac_file" "$LINENO" 5
8741 $as_echo "/* $configure_input */" \
8742 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8743 || as_fn_error "could not create -" "$LINENO" 5
8755 ac_clean_files=$ac_clean_files_save
8757 test $ac_write_fail = 0 ||
8758 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
8761 # configure is writing to config.log, and then calls config.status.
8762 # config.status does its own redirection, appending to config.log.
8763 # Unfortunately, on DOS this fails, as config.log is still kept open
8764 # by configure, so config.status won't be able to
write to it
; its
8765 # output is simply discarded. So we exec the FD to /dev/null,
8766 # effectively closing config.log, so it can be properly (re)opened and
8767 # appended to by config.status. When coming back to configure, we
8768 # need to make the FD available again.
8769 if test "$no_create" != yes; then
8771 ac_config_status_args
=
8772 test "$silent" = yes &&
8773 ac_config_status_args
="$ac_config_status_args --quiet"
8775 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
8777 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8778 # would make configure fail if this is the last instruction.
8779 $ac_cs_success || as_fn_exit $?
8781 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8783 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8789 # On development trees, create snapshots of config.status
8791 if test -f snapshot
-a "x$CHECKMEM" = "x" -a "x$PROFILING" = "x";then
8792 if test "x${MINGW}" = "xyes"; then
8793 echo cp config.status config.status.win32
8794 cp config.status config.status.win32
8796 if test "x$DEBUG" '=' "x" -a "x$OPTIMIZE" '=' "x";then
8797 echo cp config.status config.status.linux
8798 cp config.status config.status.linux
8800 if test "x$DEBUG" '!=' "x" -a "x$OPTIMIZE" '=' "x";then
8801 echo cp config.status config.status.debug
8802 cp config.status config.status.debug
8804 if test "x$DEBUG" = "x" -a "x$OPTIMIZE" '!=' "x"; then
8805 echo cp config.status config.status.optimize
8806 cp config.status config.status.optimize