more bugfixes in jpegless compilation
[swftools.git] / configure
blob767cdd3ae0e7b543248d24cb1769988a5f55b211
1 #! /bin/sh
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,
8 # Inc.
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 :
20 emulate sh
21 NULLCMD=:
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+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
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
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
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'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
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.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
104 esac
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
108 as_myself=$0
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
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 || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
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 :
138 emulate sh
139 NULLCMD=:
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+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
150 esac
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; }
159 exitcode=0
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 :
166 else
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 :
176 as_have_required=yes
177 else
178 as_have_required=no
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
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 :
199 break 2
202 done;;
203 esac
204 as_found=false
205 done
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
209 fi; }
210 IFS=$as_save_IFS
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.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
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."
230 else
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."
236 exit 1
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
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 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
254 { eval $1=; unset $1;}
256 as_unset=as_fn_unset
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
263 return $1
264 } # as_fn_set_status
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
307 /^X\(\/\/\)$/{
308 s//\1/
311 /^X\(\/\).*/{
312 s//\1/
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
322 } # as_fn_mkdir_p
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
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
332 eval $1+=\$2
334 else
335 as_fn_append ()
337 eval $1=\$$1\$2
339 fi # as_fn_append
341 # as_fn_arith ARG...
342 # ------------------
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 :
347 eval 'as_fn_arith ()
349 as_val=$(( $* ))
351 else
352 as_fn_arith ()
354 as_val=`expr "$@" || test $? -eq 1`
356 fi # as_fn_arith
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.
364 as_fn_error ()
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
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
373 } # as_fn_error
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
403 /^X\/\(\/\/\)$/{
404 s//\1/
407 /^X\/\(\/\).*/{
408 s//\1/
411 s/.*/./; q'`
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. :-)
426 sed -n '
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
434 :lineno
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
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).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
462 ECHO_N='-n';;
463 esac
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
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
474 as_ln_s='ln -s'
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 ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
486 else
487 as_ln_s='cp -p'
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"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
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
530 exec 6>&1
532 # Name of the host.
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`
538 # Initializations.
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
549 # Identity of this package.
550 PACKAGE_NAME=
551 PACKAGE_TARNAME=
552 PACKAGE_VERSION=
553 PACKAGE_STRING=
554 PACKAGE_BUGREPORT=
555 PACKAGE_URL=
557 ac_unique_file="src/"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
594 ac_subst_vars='LTLIBOBJS
595 LIBOBJS
596 PNG2SWF
597 GIF2SWF
598 JPEG2SWF
599 PDF2PDF
600 DEVICE_PDF
601 LIBPDF
602 PDF2SWF
603 RUBY_INSTALLDIR
604 RUBY_LDFLAGS
605 RUBY_CPPFLAGS
606 RUBY_LIBS
607 RUBY
608 HAVE_PYTHON_IMAGING
609 PYTHON_INSTALL_PATH
610 PYTHON_INCLUDES
611 PYTHON_LIB
612 PYTHON_EXECUTABLE
613 USE_GZIP
614 VIDEO_CFLAGS
615 VIDEO_LIBS
616 AVIFILE_CONFIG
617 xpdf_include
618 splash_in_source
619 xpdf_in_source
620 CXXCPP
621 POPPLER_LIBS
622 POPPLER_CFLAGS
623 PKG_CONFIG
624 lame_in_source
625 DEVICE_OPENGL
626 FREETYPE_CONFIG
627 HAVE_UNISTD_H
628 VERSION
629 PACKAGE
630 EGREP
631 GREP
632 SYSTEM_BACKTICKS
633 WORDS_BIGENDIAN
634 target_os
635 target_vendor
636 target_cpu
637 target
638 STRIP
639 CXXLIBS
640 SLEXT
642 AREXT
643 UNCOMPRESS
644 LN_S
645 INSTALL_DATA
646 INSTALL_SCRIPT
647 INSTALL_PROGRAM
648 SET_MAKE
649 RANLIB
651 ac_ct_CXX
652 CXXFLAGS
654 OBJEXT
655 EXEEXT
656 ac_ct_CC
657 CPPFLAGS
658 LDFLAGS
659 CFLAGS
661 SHARED
662 host_os
663 host_vendor
664 host_cpu
665 host
666 build_os
667 build_vendor
668 build_cpu
669 build
670 target_alias
671 host_alias
672 build_alias
673 LIBS
674 ECHO_T
675 ECHO_N
676 ECHO_C
677 DEFS
678 mandir
679 localedir
680 libdir
681 psdir
682 pdfdir
683 dvidir
684 htmldir
685 infodir
686 docdir
687 oldincludedir
688 includedir
689 localstatedir
690 sharedstatedir
691 sysconfdir
692 datadir
693 datarootdir
694 libexecdir
695 sbindir
696 bindir
697 program_transform_name
698 prefix
699 exec_prefix
700 PACKAGE_URL
701 PACKAGE_BUGREPORT
702 PACKAGE_STRING
703 PACKAGE_VERSION
704 PACKAGE_TARNAME
705 PACKAGE_NAME
706 PATH_SEPARATOR
707 SHELL'
708 ac_subst_files=''
709 ac_user_opts='
710 enable_option_checking
711 enable_checkmem
712 enable_debug
713 enable_profiling
714 enable_warnings
715 enable_optimizations
716 enable_poppler
717 enable_lame
719 ac_precious_vars='build_alias
720 host_alias
721 target_alias
723 CFLAGS
724 LDFLAGS
725 LIBS
726 CPPFLAGS
728 CXXFLAGS
731 PKG_CONFIG
732 POPPLER_CFLAGS
733 POPPLER_LIBS
734 CXXCPP'
737 # Initialize some variables set by options.
738 ac_init_help=
739 ac_init_version=false
740 ac_unrecognized_opts=
741 ac_unrecognized_sep=
742 # The variables have the same names as the options, with
743 # dashes changed to underlines.
744 cache_file=/dev/null
745 exec_prefix=NONE
746 no_create=
747 no_recursion=
748 prefix=NONE
749 program_prefix=NONE
750 program_suffix=NONE
751 program_transform_name=s,x,x,
752 silent=
753 site=
754 srcdir=
755 verbose=
756 x_includes=NONE
757 x_libraries=NONE
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'
777 htmldir='${docdir}'
778 dvidir='${docdir}'
779 pdfdir='${docdir}'
780 psdir='${docdir}'
781 libdir='${exec_prefix}/lib'
782 localedir='${datarootdir}/locale'
783 mandir='${datarootdir}/man'
785 ac_prev=
786 ac_dashdash=
787 for ac_option
789 # If the previous option needs an argument, assign it.
790 if test -n "$ac_prev"; then
791 eval $ac_prev=\$ac_option
792 ac_prev=
793 continue
796 case $ac_option in
797 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
798 *) ac_optarg=yes ;;
799 esac
801 # Accept the important Cygnus configure options, so we can diagnose typos.
803 case $ac_dashdash$ac_option in
805 ac_dashdash=yes ;;
807 -bindir | --bindir | --bindi | --bind | --bin | --bi)
808 ac_prev=bindir ;;
809 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
810 bindir=$ac_optarg ;;
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 ;;
824 --config-cache | -C)
825 cache_file=config.cache ;;
827 -datadir | --datadir | --datadi | --datad)
828 ac_prev=datadir ;;
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
848 "enable_$ac_useropt"
849 "*) ;;
850 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
851 ac_unrecognized_sep=', ';;
852 esac
853 eval enable_$ac_useropt=no ;;
855 -docdir | --docdir | --docdi | --doc | --do)
856 ac_prev=docdir ;;
857 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
858 docdir=$ac_optarg ;;
860 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
861 ac_prev=dvidir ;;
862 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
863 dvidir=$ac_optarg ;;
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
874 "enable_$ac_useropt"
875 "*) ;;
876 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
877 ac_unrecognized_sep=', ';;
878 esac
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.
892 with_gas=yes ;;
894 -help | --help | --hel | --he | -h)
895 ac_init_help=long ;;
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)
907 ac_prev=htmldir ;;
908 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
909 | --ht=*)
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)
920 ac_prev=infodir ;;
921 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
922 infodir=$ac_optarg ;;
924 -libdir | --libdir | --libdi | --libd)
925 ac_prev=libdir ;;
926 -libdir=* | --libdir=* | --libdi=* | --libd=*)
927 libdir=$ac_optarg ;;
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)
937 ac_prev=localedir ;;
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)
949 ac_prev=mandir ;;
950 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
951 mandir=$ac_optarg ;;
953 -nfp | --nfp | --nf)
954 # Obsolete; use --without-fp.
955 with_fp=no ;;
957 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
958 | --no-cr | --no-c | -n)
959 no_create=yes ;;
961 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
962 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
963 no_recursion=yes ;;
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)
975 ac_prev=prefix ;;
976 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
977 prefix=$ac_optarg ;;
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)
1011 ac_prev=pdfdir ;;
1012 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1013 pdfdir=$ac_optarg ;;
1015 -psdir | --psdir | --psdi | --psd | --ps)
1016 ac_prev=psdir ;;
1017 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1018 psdir=$ac_optarg ;;
1020 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1021 | -silent | --silent | --silen | --sile | --sil)
1022 silent=yes ;;
1024 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1025 ac_prev=sbindir ;;
1026 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1027 | --sbi=* | --sb=*)
1028 sbindir=$ac_optarg ;;
1030 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1031 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1032 | --sharedst | --shareds | --shared | --share | --shar \
1033 | --sha | --sh)
1034 ac_prev=sharedstatedir ;;
1035 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1036 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1037 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1038 | --sha=* | --sh=*)
1039 sharedstatedir=$ac_optarg ;;
1041 -site | --site | --sit)
1042 ac_prev=site ;;
1043 -site=* | --site=* | --sit=*)
1044 site=$ac_optarg ;;
1046 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1047 ac_prev=srcdir ;;
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)
1064 verbose=yes ;;
1066 -version | --version | --versio | --versi | --vers | -V)
1067 ac_init_version=: ;;
1069 -with-* | --with-*)
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
1078 "with_$ac_useropt"
1079 "*) ;;
1080 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1081 ac_unrecognized_sep=', ';;
1082 esac
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
1094 "with_$ac_useropt"
1095 "*) ;;
1096 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1097 ac_unrecognized_sep=', ';;
1098 esac
1099 eval with_$ac_useropt=no ;;
1101 --x)
1102 # Obsolete; use --with-x.
1103 with_x=yes ;;
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."
1123 *=*)
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'" ;;
1129 esac
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}
1141 esac
1142 done
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
1151 no) ;;
1152 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1153 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1154 esac
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.
1165 case $ac_val in
1166 */ )
1167 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1168 eval $ac_var=\$ac_val;;
1169 esac
1170 # Be sure to have absolute directory names.
1171 case $ac_val in
1172 [\\/$]* | ?:[\\/]* ) continue;;
1173 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1174 esac
1175 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1176 done
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.
1181 build=$build_alias
1182 host=$host_alias
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
1192 cross_compiling=yes
1196 ac_tool_prefix=
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1221 s//\1/
1224 /^X\(\/\/\)[^/].*/{
1225 s//\1/
1228 /^X\(\/\/\)$/{
1229 s//\1/
1232 /^X\(\/\).*/{
1233 s//\1/
1236 s/.*/./; q'`
1237 srcdir=$ac_confdir
1238 if test ! -r "$srcdir/$ac_unique_file"; then
1239 srcdir=..
1241 else
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"
1249 ac_abs_confdir=`(
1250 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1251 pwd)`
1252 # When building in place, set srcdir=.
1253 if test "$ac_abs_confdir" = "$ac_pwd"; then
1254 srcdir=.
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.
1259 case $srcdir in
1260 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1261 esac
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}
1267 done
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.
1275 cat <<_ACEOF
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.
1285 Configuration:
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
1300 [PREFIX]
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]
1329 _ACEOF
1331 cat <<\_ACEOF
1333 Program names:
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
1338 System types:
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]
1342 _ACEOF
1345 if test -n "$ac_init_help"; then
1347 cat <<\_ACEOF
1349 Optional Features:
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
1371 CPP C preprocessor
1372 PKG_CONFIG path to pkg-config utility
1373 POPPLER_CFLAGS
1374 C compiler flags for POPPLER, overriding pkg-config
1375 POPPLER_LIBS
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.
1383 _ACEOF
1384 ac_status=$?
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"; } ||
1392 continue
1393 ac_builddir=.
1395 case "$ac_dir" in
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/ ;;
1404 esac ;;
1405 esac
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
1411 case $srcdir in
1412 .) # We are building in place.
1413 ac_srcdir=.
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 ;;
1420 *) # Relative name.
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 ;;
1424 esac
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
1430 echo &&
1431 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1432 elif test -f "$ac_srcdir/configure"; then
1433 echo &&
1434 $SHELL "$ac_srcdir/configure" --help=recursive
1435 else
1436 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1437 fi || ac_status=$?
1438 cd "$ac_pwd" || { ac_status=$?; break; }
1439 done
1442 test -n "$ac_init_help" && exit $ac_status
1443 if $ac_init_version; then
1444 cat <<\_ACEOF
1445 configure
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.
1451 _ACEOF
1452 exit
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"
1467 case "(($ac_try" in
1468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1469 *) ac_try_echo=$ac_try;;
1470 esac
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
1474 ac_status=$?
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 :
1485 ac_retval=0
1486 else
1487 $as_echo "$as_me: failed program was:" >&5
1488 sed 's/^/| /' conftest.$ac_ext >&5
1490 ac_retval=1
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"
1505 case "(($ac_try" in
1506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1507 *) ac_try_echo=$ac_try;;
1508 esac
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
1512 ac_status=$?
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 :
1523 ac_retval=0
1524 else
1525 $as_echo "$as_me: failed program was:" >&5
1526 sed 's/^/| /' conftest.$ac_ext >&5
1528 ac_retval=1
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.
1538 ac_fn_c_try_cpp ()
1540 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1541 if { { ac_try="$ac_cpp conftest.$ac_ext"
1542 case "(($ac_try" in
1543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1544 *) ac_try_echo=$ac_try;;
1545 esac
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
1549 ac_status=$?
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
1559 }; then :
1560 ac_retval=0
1561 else
1562 $as_echo "$as_me: failed program was:" >&5
1563 sed 's/^/| /' conftest.$ac_ext >&5
1565 ac_retval=1
1567 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1568 as_fn_set_status $ac_retval
1570 } # ac_fn_c_try_cpp
1572 # ac_fn_c_try_link LINENO
1573 # -----------------------
1574 # Try to link conftest.$ac_ext, and return whether this succeeded.
1575 ac_fn_c_try_link ()
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"
1580 case "(($ac_try" in
1581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1582 *) ac_try_echo=$ac_try;;
1583 esac
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
1587 ac_status=$?
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
1600 }; then :
1601 ac_retval=0
1602 else
1603 $as_echo "$as_me: failed program was:" >&5
1604 sed 's/^/| /' conftest.$ac_ext >&5
1606 ac_retval=1
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.
1622 ac_fn_c_try_run ()
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 if { { ac_try="$ac_link"
1626 case "(($ac_try" in
1627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1628 *) ac_try_echo=$ac_try;;
1629 esac
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
1633 ac_status=$?
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;;
1639 esac
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
1643 ac_status=$?
1644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1645 test $ac_status = 0; }; }; then :
1646 ac_retval=0
1647 else
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
1658 } # ac_fn_c_try_run
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
1664 # accordingly.
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
1674 eval ac_res=\$$3
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1676 $as_echo "$ac_res" >&6; }
1677 else
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. */
1684 #include <$2>
1685 _ACEOF
1686 if ac_fn_c_try_compile "$LINENO"; then :
1687 ac_header_compiler=yes
1688 else
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. */
1700 #include <$2>
1701 _ACEOF
1702 if ac_fn_c_try_cpp "$LINENO"; then :
1703 ac_header_preproc=yes
1704 else
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 #((
1713 yes:no: )
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;}
1719 no:yes:* )
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;}
1731 esac
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
1736 else
1737 eval "$3=\$ac_header_compiler"
1739 eval ac_res=\$$3
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
1758 else
1759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1760 /* end confdefs.h. */
1762 #include <$2>
1763 _ACEOF
1764 if ac_fn_c_try_compile "$LINENO"; then :
1765 eval "$3=yes"
1766 else
1767 eval "$3=no"
1769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1771 eval ac_res=\$$3
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
1789 else
1790 eval "$3=no"
1791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1792 /* end confdefs.h. */
1795 main ()
1797 if (sizeof ($2))
1798 return 0;
1800 return 0;
1802 _ACEOF
1803 if ac_fn_c_try_compile "$LINENO"; then :
1804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1805 /* end confdefs.h. */
1808 main ()
1810 if (sizeof (($2)))
1811 return 0;
1813 return 0;
1815 _ACEOF
1816 if ac_fn_c_try_compile "$LINENO"; then :
1818 else
1819 eval "$3=yes"
1821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1825 eval ac_res=\$$3
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
1842 else
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. */
1854 #ifdef __STDC__
1855 # include <limits.h>
1856 #else
1857 # include <assert.h>
1858 #endif
1860 #undef $2
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. */
1865 #ifdef __cplusplus
1866 extern "C"
1867 #endif
1868 char $2 ();
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
1873 choke me
1874 #endif
1877 main ()
1879 return $2 ();
1881 return 0;
1883 _ACEOF
1884 if ac_fn_c_try_link "$LINENO"; then :
1885 eval "$3=yes"
1886 else
1887 eval "$3=no"
1889 rm -f core conftest.err conftest.$ac_objext \
1890 conftest$ac_exeext conftest.$ac_ext
1892 eval ac_res=\$$3
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
1903 # computed
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. */
1913 main ()
1915 static int test_array [1 - 2 * !(($2) >= 0)];
1916 test_array [0] = 0
1919 return 0;
1921 _ACEOF
1922 if ac_fn_c_try_compile "$LINENO"; then :
1923 ac_lo=0 ac_mid=0
1924 while :; do
1925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1926 /* end confdefs.h. */
1929 main ()
1931 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1932 test_array [0] = 0
1935 return 0;
1937 _ACEOF
1938 if ac_fn_c_try_compile "$LINENO"; then :
1939 ac_hi=$ac_mid; break
1940 else
1941 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1942 if test $ac_lo -le $ac_mid; then
1943 ac_lo= ac_hi=
1944 break
1946 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1949 done
1950 else
1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952 /* end confdefs.h. */
1955 main ()
1957 static int test_array [1 - 2 * !(($2) < 0)];
1958 test_array [0] = 0
1961 return 0;
1963 _ACEOF
1964 if ac_fn_c_try_compile "$LINENO"; then :
1965 ac_hi=-1 ac_mid=-1
1966 while :; do
1967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1968 /* end confdefs.h. */
1971 main ()
1973 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1974 test_array [0] = 0
1977 return 0;
1979 _ACEOF
1980 if ac_fn_c_try_compile "$LINENO"; then :
1981 ac_lo=$ac_mid; break
1982 else
1983 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1984 if test $ac_mid -le $ac_hi; then
1985 ac_lo= ac_hi=
1986 break
1988 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1991 done
1992 else
1993 ac_lo= ac_hi=
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. */
2005 main ()
2007 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2008 test_array [0] = 0
2011 return 0;
2013 _ACEOF
2014 if ac_fn_c_try_compile "$LINENO"; then :
2015 ac_hi=$ac_mid
2016 else
2017 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2020 done
2021 case $ac_lo in #((
2022 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2023 '') ac_retval=1 ;;
2024 esac
2025 else
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; }
2031 #include <stdio.h>
2032 #include <stdlib.h>
2034 main ()
2037 FILE *f = fopen ("conftest.val", "w");
2038 if (! f)
2039 return 1;
2040 if (($2) < 0)
2042 long int i = longval ();
2043 if (i != ($2))
2044 return 1;
2045 fprintf (f, "%ld", i);
2047 else
2049 unsigned long int i = ulongval ();
2050 if (i != ($2))
2051 return 1;
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;
2059 return 0;
2061 _ACEOF
2062 if ac_fn_c_try_run "$LINENO"; then :
2063 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2064 else
2065 ac_retval=1
2067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2068 conftest.$ac_objext conftest.beam conftest.$ac_ext
2069 rm -f conftest.val
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"
2084 case "(($ac_try" in
2085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2086 *) ac_try_echo=$ac_try;;
2087 esac
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
2091 ac_status=$?
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
2101 }; then :
2102 ac_retval=0
2103 else
2104 $as_echo "$as_me: failed program was:" >&5
2105 sed 's/^/| /' conftest.$ac_ext >&5
2107 ac_retval=1
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
2118 # accordingly.
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
2128 eval ac_res=\$$3
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2130 $as_echo "$ac_res" >&6; }
2131 else
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. */
2138 #include <$2>
2139 _ACEOF
2140 if ac_fn_cxx_try_compile "$LINENO"; then :
2141 ac_header_compiler=yes
2142 else
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. */
2154 #include <$2>
2155 _ACEOF
2156 if ac_fn_cxx_try_cpp "$LINENO"; then :
2157 ac_header_preproc=yes
2158 else
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 #((
2167 yes:no: )
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;}
2173 no:yes:* )
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;}
2185 esac
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
2190 else
2191 eval "$3=\$ac_header_compiler"
2193 eval ac_res=\$$3
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"
2209 case "(($ac_try" in
2210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2211 *) ac_try_echo=$ac_try;;
2212 esac
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
2216 ac_status=$?
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
2229 }; then :
2230 ac_retval=0
2231 else
2232 $as_echo "$as_me: failed program was:" >&5
2233 sed 's/^/| /' conftest.$ac_ext >&5
2235 ac_retval=1
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
2253 $ $0 $@
2255 _ACEOF
2256 exec 5>>config.log
2258 cat <<_ASUNAME
2259 ## --------- ##
2260 ## Platform. ##
2261 ## --------- ##
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`
2280 _ASUNAME
2282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2283 for as_dir in $PATH
2285 IFS=$as_save_IFS
2286 test -z "$as_dir" && as_dir=.
2287 $as_echo "PATH: $as_dir"
2288 done
2289 IFS=$as_save_IFS
2291 } >&5
2293 cat >&5 <<_ACEOF
2296 ## ----------- ##
2297 ## Core tests. ##
2298 ## ----------- ##
2300 _ACEOF
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.
2308 ac_configure_args=
2309 ac_configure_args0=
2310 ac_configure_args1=
2311 ac_must_keep_next=false
2312 for ac_pass in 1 2
2314 for ac_arg
2316 case $ac_arg in
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)
2320 continue ;;
2321 *\'*)
2322 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2323 esac
2324 case $ac_pass in
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.
2330 else
2331 case $ac_arg in
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 ;;
2338 esac
2340 -* ) ac_must_keep_next=true ;;
2341 esac
2343 as_fn_append ac_configure_args " '$ac_arg'"
2345 esac
2346 done
2347 done
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.
2359 echo
2361 cat <<\_ASBOX
2362 ## ---------------- ##
2363 ## Cache variables. ##
2364 ## ---------------- ##
2365 _ASBOX
2366 echo
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
2371 case $ac_val in #(
2372 *${as_nl}*)
2373 case $ac_var in #(
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;} ;;
2376 esac
2377 case $ac_var in #(
2378 _ | IFS | as_nl) ;; #(
2379 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2380 *) { eval $ac_var=; unset $ac_var;} ;;
2381 esac ;;
2382 esac
2383 done
2384 (set) 2>&1 |
2385 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2386 *${as_nl}ac_space=\ *)
2387 sed -n \
2388 "s/'\''/'\''\\\\'\'''\''/g;
2389 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2390 ;; #(
2392 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2394 esac |
2395 sort
2397 echo
2399 cat <<\_ASBOX
2400 ## ----------------- ##
2401 ## Output variables. ##
2402 ## ----------------- ##
2403 _ASBOX
2404 echo
2405 for ac_var in $ac_subst_vars
2407 eval ac_val=\$$ac_var
2408 case $ac_val in
2409 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2410 esac
2411 $as_echo "$ac_var='\''$ac_val'\''"
2412 done | sort
2413 echo
2415 if test -n "$ac_subst_files"; then
2416 cat <<\_ASBOX
2417 ## ------------------- ##
2418 ## File substitutions. ##
2419 ## ------------------- ##
2420 _ASBOX
2421 echo
2422 for ac_var in $ac_subst_files
2424 eval ac_val=\$$ac_var
2425 case $ac_val in
2426 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2427 esac
2428 $as_echo "$ac_var='\''$ac_val'\''"
2429 done | sort
2430 echo
2433 if test -s confdefs.h; then
2434 cat <<\_ASBOX
2435 ## ----------- ##
2436 ## confdefs.h. ##
2437 ## ----------- ##
2438 _ASBOX
2439 echo
2440 cat confdefs.h
2441 echo
2443 test "$ac_signal" != 0 &&
2444 $as_echo "$as_me: caught signal $ac_signal"
2445 $as_echo "$as_me: exit $exit_status"
2446 } >&5
2447 rm -f core *.core core.conftest.* &&
2448 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2449 exit $exit_status
2451 for ac_signal in 1 2 13 15; do
2452 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2453 done
2454 ac_signal=0
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"
2465 _ACEOF
2467 cat >>confdefs.h <<_ACEOF
2468 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2469 _ACEOF
2471 cat >>confdefs.h <<_ACEOF
2472 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2473 _ACEOF
2475 cat >>confdefs.h <<_ACEOF
2476 #define PACKAGE_STRING "$PACKAGE_STRING"
2477 _ACEOF
2479 cat >>confdefs.h <<_ACEOF
2480 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2481 _ACEOF
2483 cat >>confdefs.h <<_ACEOF
2484 #define PACKAGE_URL "$PACKAGE_URL"
2485 _ACEOF
2488 # Let the site file select an alternate cache file if it wants to.
2489 # Prefer an explicitly selected file to automatically selected ones.
2490 ac_site_file1=NONE
2491 ac_site_file2=NONE
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
2497 else
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
2508 . "$ac_site_file"
2510 done
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;}
2518 case $cache_file in
2519 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2520 *) . "./$cache_file";;
2521 esac
2523 else
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2525 $as_echo "$as_me: creating cache $cache_file" >&6;}
2526 >$cache_file
2529 # Check that the precious variables saved in the cache have kept the same
2530 # value.
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
2538 set,)
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=: ;;
2542 ,set)
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=: ;;
2546 ,);;
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=:
2556 else
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;}
2565 fi;;
2566 esac
2567 # Pass precious variables to config.status.
2568 if test "$ac_new_set" = set; then
2569 case $ac_new_val in
2570 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2571 *) ac_arg=$ac_var=$ac_new_val ;;
2572 esac
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'" ;;
2576 esac
2578 done
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 ## -------------------- ##
2590 ac_ext=c
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 -------------------------------
2601 DEBUG=
2602 CHECKMEM=
2603 PROFILING=
2604 ENABLE_WARNINGS=
2605 OPTIMIZE=
2606 USE_POPPLER=
2607 DISABLE_LAME=
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
2642 DISABLE_LAME=yes
2644 else
2645 DISABLE_LAME=
2649 PACKAGE=swftools
2650 VERSION=2010-08-05-2217
2652 # ------------------------------------------------------------------
2654 if test "x${srcdir}" != "x."; then
2655 echo "--srcdir is not supported"
2656 exit 1
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
2665 DEBUG=yes
2667 if test "x$PROFILING" '!=' "x";then
2668 DEBUG=yes
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"
2675 else
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"
2683 else
2684 CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
2685 CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
2689 CFLAGS="-fPIC $CFLAGS"
2690 CXXFLAGS="-fPIC $CFLAGS"
2692 #OLDGCC=1
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
2703 ac_aux_dir=
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
2707 ac_aux_dir=$ac_dir
2708 ac_install_sh="$ac_aux_dir/$ac_t -c"
2709 break 2
2711 done
2712 done
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
2734 else
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
2747 *-*-*) ;;
2748 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2749 esac
2750 build=$ac_cv_build
2751 ac_save_IFS=$IFS; IFS='-'
2752 set x $ac_cv_build
2753 shift
2754 build_cpu=$1
2755 build_vendor=$2
2756 shift; shift
2757 # Remember, the first character of IFS is used to create $*,
2758 # except with old shells:
2759 build_os=$*
2760 IFS=$ac_save_IFS
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
2768 else
2769 if test "x$host_alias" = x; then
2770 ac_cv_host=$ac_cv_build
2771 else
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; }
2779 case $ac_cv_host in
2780 *-*-*) ;;
2781 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2782 esac
2783 host=$ac_cv_host
2784 ac_save_IFS=$IFS; IFS='-'
2785 set x $ac_cv_host
2786 shift
2787 host_cpu=$1
2788 host_vendor=$2
2789 shift; shift
2790 # Remember, the first character of IFS is used to create $*,
2791 # except with old shells:
2792 host_os=$*
2793 IFS=$ac_save_IFS
2794 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2798 SLEXT="so"
2799 SHARED="-shared"
2800 MACOSX=
2801 case $host_os in
2802 *darwin* )
2803 MACOSX=yes
2804 CFLAGS="$CFLAGS"
2805 CXXFLAGS="$CXXFLAGS -fno-rtti"
2806 SHARED="-bundle"
2807 SLEXT="bundle"
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"
2818 esac
2822 ac_ext=c
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
2834 else
2835 if test -n "$CC"; then
2836 ac_cv_prog_CC="$CC" # Let the user override the test.
2837 else
2838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2839 for as_dir in $PATH
2841 IFS=$as_save_IFS
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
2847 break 2
2849 done
2850 done
2851 IFS=$as_save_IFS
2855 CC=$ac_cv_prog_CC
2856 if test -n "$CC"; then
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2858 $as_echo "$CC" >&6; }
2859 else
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
2867 ac_ct_CC=$CC
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
2874 else
2875 if test -n "$ac_ct_CC"; then
2876 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2877 else
2878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879 for as_dir in $PATH
2881 IFS=$as_save_IFS
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
2887 break 2
2889 done
2890 done
2891 IFS=$as_save_IFS
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; }
2899 else
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
2905 CC=""
2906 else
2907 case $cross_compiling:$ac_tool_warned in
2908 yes:)
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 ;;
2912 esac
2913 CC=$ac_ct_CC
2915 else
2916 CC="$ac_cv_prog_CC"
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
2927 else
2928 if test -n "$CC"; then
2929 ac_cv_prog_CC="$CC" # Let the user override the test.
2930 else
2931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2932 for as_dir in $PATH
2934 IFS=$as_save_IFS
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
2940 break 2
2942 done
2943 done
2944 IFS=$as_save_IFS
2948 CC=$ac_cv_prog_CC
2949 if test -n "$CC"; then
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2951 $as_echo "$CC" >&6; }
2952 else
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
2967 else
2968 if test -n "$CC"; then
2969 ac_cv_prog_CC="$CC" # Let the user override the test.
2970 else
2971 ac_prog_rejected=no
2972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973 for as_dir in $PATH
2975 IFS=$as_save_IFS
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
2981 continue
2983 ac_cv_prog_CC="cc"
2984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2985 break 2
2987 done
2988 done
2989 IFS=$as_save_IFS
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
2994 shift
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.
2999 shift
3000 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3005 CC=$ac_cv_prog_CC
3006 if test -n "$CC"; then
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3008 $as_echo "$CC" >&6; }
3009 else
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
3026 else
3027 if test -n "$CC"; then
3028 ac_cv_prog_CC="$CC" # Let the user override the test.
3029 else
3030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3031 for as_dir in $PATH
3033 IFS=$as_save_IFS
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
3039 break 2
3041 done
3042 done
3043 IFS=$as_save_IFS
3047 CC=$ac_cv_prog_CC
3048 if test -n "$CC"; then
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3050 $as_echo "$CC" >&6; }
3051 else
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3053 $as_echo "no" >&6; }
3057 test -n "$CC" && break
3058 done
3060 if test -z "$CC"; then
3061 ac_ct_CC=$CC
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
3070 else
3071 if test -n "$ac_ct_CC"; then
3072 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3073 else
3074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075 for as_dir in $PATH
3077 IFS=$as_save_IFS
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
3083 break 2
3085 done
3086 done
3087 IFS=$as_save_IFS
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; }
3095 else
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3097 $as_echo "no" >&6; }
3101 test -n "$ac_ct_CC" && break
3102 done
3104 if test "x$ac_ct_CC" = x; then
3105 CC=""
3106 else
3107 case $cross_compiling:$ac_tool_warned in
3108 yes:)
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 ;;
3112 esac
3113 CC=$ac_ct_CC
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
3127 set X $ac_compile
3128 ac_compiler=$2
3129 for ac_option in --version -v -V -qversion; do
3130 { { ac_try="$ac_compiler $ac_option >&5"
3131 case "(($ac_try" in
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3134 esac
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
3138 ac_status=$?
3139 if test -s conftest.err; then
3140 sed '10a\
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; }
3148 done
3150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3151 /* end confdefs.h. */
3154 main ()
3158 return 0;
3160 _ACEOF
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
3165 # of exeext.
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.*"
3173 ac_rmfiles=
3174 for ac_file in $ac_files
3176 case $ac_file in
3177 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3178 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3179 esac
3180 done
3181 rm -f $ac_rmfiles
3183 if { { ac_try="$ac_link_default"
3184 case "(($ac_try" in
3185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186 *) ac_try_echo=$ac_try;;
3187 esac
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
3191 ac_status=$?
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
3198 # Autoconf.
3199 for ac_file in $ac_files ''
3201 test -f "$ac_file" || continue
3202 case $ac_file in
3203 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3205 [ab].out )
3206 # We found the default executable, but exeext='' is most
3207 # certainly right.
3208 break;;
3209 *.* )
3210 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3211 then :; else
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
3218 # actually working.
3219 break;;
3221 break;;
3222 esac
3223 done
3224 test "$ac_cv_exeext" = no && ac_cv_exeext=
3226 else
3227 ac_file=''
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; }; }
3240 else
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"
3255 case "(($ac_try" in
3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257 *) ac_try_echo=$ac_try;;
3258 esac
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
3262 ac_status=$?
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
3268 # `rm'.
3269 for ac_file in conftest.exe conftest conftest.*; do
3270 test -f "$ac_file" || continue
3271 case $ac_file in
3272 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3273 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3274 break;;
3275 * ) break;;
3276 esac
3277 done
3278 else
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
3290 ac_exeext=$EXEEXT
3291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3292 /* end confdefs.h. */
3293 #include <stdio.h>
3295 main ()
3297 FILE *f = fopen ("conftest.out", "w");
3298 return ferror (f) || fclose (f) != 0;
3301 return 0;
3303 _ACEOF
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"
3311 case "(($ac_try" in
3312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313 *) ac_try_echo=$ac_try;;
3314 esac
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
3318 ac_status=$?
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;;
3325 esac
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
3329 ac_status=$?
3330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3331 test $ac_status = 0; }; }; then
3332 cross_compiling=no
3333 else
3334 if test "$cross_compiling" = maybe; then
3335 cross_compiling=yes
3336 else
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
3354 else
3355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3356 /* end confdefs.h. */
3359 main ()
3363 return 0;
3365 _ACEOF
3366 rm -f conftest.o conftest.obj
3367 if { { ac_try="$ac_compile"
3368 case "(($ac_try" in
3369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3370 *) ac_try_echo=$ac_try;;
3371 esac
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
3375 ac_status=$?
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;
3380 case $ac_file in
3381 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3382 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3383 break;;
3384 esac
3385 done
3386 else
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
3400 ac_objext=$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
3405 else
3406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3407 /* end confdefs.h. */
3410 main ()
3412 #ifndef __GNUC__
3413 choke me
3414 #endif
3417 return 0;
3419 _ACEOF
3420 if ac_fn_c_try_compile "$LINENO"; then :
3421 ac_compiler_gnu=yes
3422 else
3423 ac_compiler_gnu=no
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
3432 GCC=yes
3433 else
3434 GCC=
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
3442 else
3443 ac_save_c_werror_flag=$ac_c_werror_flag
3444 ac_c_werror_flag=yes
3445 ac_cv_prog_cc_g=no
3446 CFLAGS="-g"
3447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3448 /* end confdefs.h. */
3451 main ()
3455 return 0;
3457 _ACEOF
3458 if ac_fn_c_try_compile "$LINENO"; then :
3459 ac_cv_prog_cc_g=yes
3460 else
3461 CFLAGS=""
3462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3463 /* end confdefs.h. */
3466 main ()
3470 return 0;
3472 _ACEOF
3473 if ac_fn_c_try_compile "$LINENO"; then :
3475 else
3476 ac_c_werror_flag=$ac_save_c_werror_flag
3477 CFLAGS="-g"
3478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3479 /* end confdefs.h. */
3482 main ()
3486 return 0;
3488 _ACEOF
3489 if ac_fn_c_try_compile "$LINENO"; then :
3490 ac_cv_prog_cc_g=yes
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
3505 CFLAGS="-g -O2"
3506 else
3507 CFLAGS="-g"
3509 else
3510 if test "$GCC" = yes; then
3511 CFLAGS="-O2"
3512 else
3513 CFLAGS=
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
3520 else
3521 ac_cv_prog_cc_c89=no
3522 ac_save_CC=$CC
3523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3524 /* end confdefs.h. */
3525 #include <stdarg.h>
3526 #include <stdio.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)
3533 char **p;
3534 int i;
3536 return p[i];
3538 static char *f (char * (*g) (char **, int), char **p, ...)
3540 char *s;
3541 va_list v;
3542 va_start (v,p);
3543 s = g (p, va_arg (v,int));
3544 va_end (v);
3545 return s;
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. */
3559 #define FOO(x) 'x'
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);
3566 int argc;
3567 char **argv;
3569 main ()
3571 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3573 return 0;
3575 _ACEOF
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
3585 done
3586 rm -f conftest.$ac_ext
3587 CC=$ac_save_CC
3590 # AC_CACHE_VAL
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; } ;;
3595 xno)
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; } ;;
3602 esac
3603 if test "x$ac_cv_prog_cc_c89" != xno; then :
3607 ac_ext=c
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
3613 ac_ext=cpp
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
3620 CXX=$CCC
3621 else
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
3631 else
3632 if test -n "$CXX"; then
3633 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3634 else
3635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3636 for as_dir in $PATH
3638 IFS=$as_save_IFS
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
3644 break 2
3646 done
3647 done
3648 IFS=$as_save_IFS
3652 CXX=$ac_cv_prog_CXX
3653 if test -n "$CXX"; then
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3655 $as_echo "$CXX" >&6; }
3656 else
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3658 $as_echo "no" >&6; }
3662 test -n "$CXX" && break
3663 done
3665 if test -z "$CXX"; then
3666 ac_ct_CXX=$CXX
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
3675 else
3676 if test -n "$ac_ct_CXX"; then
3677 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3678 else
3679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3680 for as_dir in $PATH
3682 IFS=$as_save_IFS
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
3688 break 2
3690 done
3691 done
3692 IFS=$as_save_IFS
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; }
3700 else
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3702 $as_echo "no" >&6; }
3706 test -n "$ac_ct_CXX" && break
3707 done
3709 if test "x$ac_ct_CXX" = x; then
3710 CXX="g++"
3711 else
3712 case $cross_compiling:$ac_tool_warned in
3713 yes:)
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 ;;
3717 esac
3718 CXX=$ac_ct_CXX
3724 # Provide some information about the compiler.
3725 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3726 set X $ac_compile
3727 ac_compiler=$2
3728 for ac_option in --version -v -V -qversion; do
3729 { { ac_try="$ac_compiler $ac_option >&5"
3730 case "(($ac_try" in
3731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3732 *) ac_try_echo=$ac_try;;
3733 esac
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
3737 ac_status=$?
3738 if test -s conftest.err; then
3739 sed '10a\
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; }
3747 done
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
3753 else
3754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3755 /* end confdefs.h. */
3758 main ()
3760 #ifndef __GNUC__
3761 choke me
3762 #endif
3765 return 0;
3767 _ACEOF
3768 if ac_fn_cxx_try_compile "$LINENO"; then :
3769 ac_compiler_gnu=yes
3770 else
3771 ac_compiler_gnu=no
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
3780 GXX=yes
3781 else
3782 GXX=
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
3790 else
3791 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3792 ac_cxx_werror_flag=yes
3793 ac_cv_prog_cxx_g=no
3794 CXXFLAGS="-g"
3795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3796 /* end confdefs.h. */
3799 main ()
3803 return 0;
3805 _ACEOF
3806 if ac_fn_cxx_try_compile "$LINENO"; then :
3807 ac_cv_prog_cxx_g=yes
3808 else
3809 CXXFLAGS=""
3810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3811 /* end confdefs.h. */
3814 main ()
3818 return 0;
3820 _ACEOF
3821 if ac_fn_cxx_try_compile "$LINENO"; then :
3823 else
3824 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3825 CXXFLAGS="-g"
3826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3827 /* end confdefs.h. */
3830 main ()
3834 return 0;
3836 _ACEOF
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
3853 CXXFLAGS="-g -O2"
3854 else
3855 CXXFLAGS="-g"
3857 else
3858 if test "$GXX" = yes; then
3859 CXXFLAGS="-O2"
3860 else
3861 CXXFLAGS=
3864 ac_ext=c
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
3877 #include <stdlib.h>
3878 #include <stdio.h>
3880 int main (int argc, char*argv)
3882 int a,b;
3883 b=3;
3884 int c;
3885 c=4;
3886 return 0;
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; }
3894 GCC_IS_OK=true
3895 export GCC_IS_OK
3896 else
3897 echo "configure: failed program was:" >&5
3898 cat conftest.c >&5
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3900 $as_echo "no" >&6; }
3902 rm -f conftest*
3905 if test "x$GCC_IS_OK" '=' "x";then
3906 echo "***************************************************"
3907 echo "* Your gcc is too old to compile this!"
3908 echo "* "
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 "
3912 echo "* ."
3913 echo "* Newer versions require at least gcc 3.0.0 "
3914 echo "***************************************************"
3915 exit 1
3918 if test "x$CHECKMEM" '!=' "x";then
3919 CC="ccmalloc $CC"
3920 CXX="ccmalloc $CXX"
3921 #echo running again
3922 #unset ac_cv_prog_CC
3923 #unset ac_cv_prog_CXX
3924 #AC_PROG_CC
3925 #AC_PROG_CXX
3927 ac_ext=c
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
3936 CPP=
3938 if test -z "$CPP"; then
3939 if test "${ac_cv_prog_CPP+set}" = set; then :
3940 $as_echo_n "(cached) " >&6
3941 else
3942 # Double quotes because CPP needs to be expanded
3943 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3945 ac_preproc_ok=false
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. */
3956 #ifdef __STDC__
3957 # include <limits.h>
3958 #else
3959 # include <assert.h>
3960 #endif
3961 Syntax error
3962 _ACEOF
3963 if ac_fn_c_try_cpp "$LINENO"; then :
3965 else
3966 # Broken: fails on valid input.
3967 continue
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>
3976 _ACEOF
3977 if ac_fn_c_try_cpp "$LINENO"; then :
3978 # Broken: success on invalid input.
3979 continue
3980 else
3981 # Passes both tests.
3982 ac_preproc_ok=:
3983 break
3985 rm -f conftest.err conftest.$ac_ext
3987 done
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 :
3991 break
3994 done
3995 ac_cv_prog_CPP=$CPP
3998 CPP=$ac_cv_prog_CPP
3999 else
4000 ac_cv_prog_CPP=$CPP
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4003 $as_echo "$CPP" >&6; }
4004 ac_preproc_ok=false
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. */
4015 #ifdef __STDC__
4016 # include <limits.h>
4017 #else
4018 # include <assert.h>
4019 #endif
4020 Syntax error
4021 _ACEOF
4022 if ac_fn_c_try_cpp "$LINENO"; then :
4024 else
4025 # Broken: fails on valid input.
4026 continue
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>
4035 _ACEOF
4036 if ac_fn_c_try_cpp "$LINENO"; then :
4037 # Broken: success on invalid input.
4038 continue
4039 else
4040 # Passes both tests.
4041 ac_preproc_ok=:
4042 break
4044 rm -f conftest.err conftest.$ac_ext
4046 done
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 :
4051 else
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; }
4058 ac_ext=c
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
4072 else
4073 if test -n "$RANLIB"; then
4074 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4075 else
4076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077 for as_dir in $PATH
4079 IFS=$as_save_IFS
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
4085 break 2
4087 done
4088 done
4089 IFS=$as_save_IFS
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; }
4097 else
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
4112 else
4113 if test -n "$ac_ct_RANLIB"; then
4114 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4115 else
4116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4117 for as_dir in $PATH
4119 IFS=$as_save_IFS
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
4125 break 2
4127 done
4128 done
4129 IFS=$as_save_IFS
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; }
4137 else
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
4143 RANLIB=":"
4144 else
4145 case $cross_compiling:$ac_tool_warned in
4146 yes:)
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 ;;
4150 esac
4151 RANLIB=$ac_ct_RANLIB
4153 else
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; }
4159 set x ${MAKE-make}
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
4163 else
4164 cat >conftest.make <<\_ACEOF
4165 SHELL = /bin/sh
4166 all:
4167 @echo '@@@%%%=$(MAKE)=@@@%%%'
4168 _ACEOF
4169 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4170 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4171 *@@@%%%=?*=@@@%%%*)
4172 eval ac_cv_prog_make_${ac_make}_set=yes;;
4174 eval ac_cv_prog_make_${ac_make}_set=no;;
4175 esac
4176 rm -f conftest.make
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; }
4181 SET_MAKE=
4182 else
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
4194 # AIX /bin/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
4207 else
4208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209 for as_dir in $PATH
4211 IFS=$as_save_IFS
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[\\/]* | \
4218 /usr/ucb/* ) ;;
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
4222 # by default.
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.
4234 else
4235 rm -rf conftest.one conftest.two conftest.dir
4236 echo one > conftest.one
4237 echo two > conftest.two
4238 mkdir conftest.dir
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
4243 then
4244 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4245 break 3
4249 done
4250 done
4252 esac
4254 done
4255 IFS=$as_save_IFS
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
4262 else
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; }
4283 LN_S=$as_ln_s
4284 if test "$LN_S" = "ln -s"; then
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4286 $as_echo "yes" >&6; }
4287 else
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
4300 else
4301 if test -n "$UNCOMPRESS"; then
4302 ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
4303 else
4304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4305 for as_dir in $PATH
4307 IFS=$as_save_IFS
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
4313 break 2
4315 done
4316 done
4317 IFS=$as_save_IFS
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; }
4325 else
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4327 $as_echo "no" >&6; }
4331 test -n "$UNCOMPRESS" && break
4332 done
4336 OBJEXT="o"
4337 AREXT=".a"
4338 CXXLIBS="-lstdc++"
4342 if test "x$EXEEXT" = "x.exe";then
4343 OBJEXT="obj"
4344 AREXT=".lib"
4345 CXXLIBS=""
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system" >&5
4355 $as_echo_n "checking for target system... " >&6; }
4356 CYGWIN=
4357 MINGW=
4358 case $host_os in
4359 *cygwin* ) CYGWIN=yes;;
4360 *mingw* ) MINGW=yes;;
4361 esac
4363 AR=ar
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; }
4392 else
4393 if test "x${MINGW}" = "xyes"; then
4395 $as_echo "#define MINGW 1" >>confdefs.h
4397 WIN32=1
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; }
4404 else
4405 LINUX=1
4406 export LINUX
4408 $as_echo "#define LINUX 1" >>confdefs.h
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
4411 $as_echo "" >&6; }
4416 if test "x${MINGW}" != "xyes"; then
4417 # no mingW
4419 $as_echo "#define O_BINARY 0" >>confdefs.h
4421 else
4422 # mingW
4423 SLEXT="dll"
4424 CXXLIBS=""
4426 export SLEXT
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"
4441 echo > /dev/null
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
4446 # and includes.
4447 LDFLAGS="$LDFLAGS -L${libdir}"
4448 CPPFLAGS="$CPPFLAGS -I${includedir}"
4449 # TODO- test whether gcc still works after this
4452 #Mac OS:
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
4459 STRIP=dsymutil
4460 else
4461 STRIP="@echo debug enabled, not stripping "
4463 export STRIP
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
4472 else
4473 ac_check_lib_save_LIBS=$LIBS
4474 LIBS="-lm $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. */
4481 #ifdef __cplusplus
4482 extern "C"
4483 #endif
4484 char sin ();
4486 main ()
4488 return sin ();
4490 return 0;
4492 _ACEOF
4493 if ac_fn_c_try_link "$LINENO"; then :
4494 ac_cv_lib_m_sin=yes
4495 else
4496 ac_cv_lib_m_sin=no
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
4506 #define HAVE_LIBM 1
4507 _ACEOF
4509 LIBS="-lm $LIBS"
4511 else
4512 echo "Error: Math library not found.";
4513 exit;
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
4521 else
4522 ac_check_lib_save_LIBS=$LIBS
4523 LIBS="-lz $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. */
4530 #ifdef __cplusplus
4531 extern "C"
4532 #endif
4533 char deflate ();
4535 main ()
4537 return deflate ();
4539 return 0;
4541 _ACEOF
4542 if ac_fn_c_try_link "$LINENO"; then :
4543 ac_cv_lib_z_deflate=yes
4544 else
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
4555 #define HAVE_LIBZ 1
4556 _ACEOF
4558 LIBS="-lz $LIBS"
4560 else
4561 ZLIBMISSING=true
4565 if test "x$ZLIBMISSING" = "xtrue";then
4566 echo
4567 echo "ERROR:"
4568 echo "You need zlib to compile swftools"
4569 echo
4570 exit
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
4577 else
4578 ac_check_lib_save_LIBS=$LIBS
4579 LIBS="-lpdf $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. */
4586 #ifdef __cplusplus
4587 extern "C"
4588 #endif
4589 char PDF_open_file ();
4591 main ()
4593 return PDF_open_file ();
4595 return 0;
4597 _ACEOF
4598 if ac_fn_c_try_link "$LINENO"; then :
4599 ac_cv_lib_pdf_PDF_open_file=yes
4600 else
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
4612 _ACEOF
4614 LIBS="-lpdf $LIBS"
4616 else
4617 PDFLIBMISSING=true
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
4624 else
4625 ac_check_lib_save_LIBS=$LIBS
4626 LIBS="-ljpeg $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. */
4633 #ifdef __cplusplus
4634 extern "C"
4635 #endif
4636 char jpeg_write_raw_data ();
4638 main ()
4640 return jpeg_write_raw_data ();
4642 return 0;
4644 _ACEOF
4645 if ac_fn_c_try_link "$LINENO"; then :
4646 ac_cv_lib_jpeg_jpeg_write_raw_data=yes
4647 else
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
4659 _ACEOF
4661 LIBS="-ljpeg $LIBS"
4663 else
4664 JPEGLIBMISSING=true
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
4671 else
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. */
4680 #ifdef __cplusplus
4681 extern "C"
4682 #endif
4683 char DGifOpen ();
4685 main ()
4687 return DGifOpen ();
4689 return 0;
4691 _ACEOF
4692 if ac_fn_c_try_link "$LINENO"; then :
4693 ac_cv_lib_ungif_DGifOpen=yes
4694 else
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
4706 _ACEOF
4708 LIBS="-lungif $LIBS"
4710 else
4711 UNGIFMISSING=true
4714 if test "$UNGIFMISSING";then
4715 UNGIFMISSING=
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
4720 else
4721 ac_check_lib_save_LIBS=$LIBS
4722 LIBS="-lgif $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. */
4729 #ifdef __cplusplus
4730 extern "C"
4731 #endif
4732 char DGifOpen ();
4734 main ()
4736 return DGifOpen ();
4738 return 0;
4740 _ACEOF
4741 if ac_fn_c_try_link "$LINENO"; then :
4742 ac_cv_lib_gif_DGifOpen=yes
4743 else
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
4755 _ACEOF
4757 LIBS="-lgif $LIBS"
4759 else
4760 UNGIFMISSING=true
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
4768 else
4769 ac_check_lib_save_LIBS=$LIBS
4770 LIBS="-lzzip $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. */
4777 #ifdef __cplusplus
4778 extern "C"
4779 #endif
4780 char zzip_file_open ();
4782 main ()
4784 return zzip_file_open ();
4786 return 0;
4788 _ACEOF
4789 if ac_fn_c_try_link "$LINENO"; then :
4790 ac_cv_lib_zzip_zzip_file_open=yes
4791 else
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
4803 _ACEOF
4805 LIBS="-lzzip $LIBS"
4807 else
4808 ZZIPMISSING=true
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
4816 else
4817 if test "x$target_alias" = x; then
4818 ac_cv_target=$ac_cv_host
4819 else
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
4828 *-*-*) ;;
4829 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4830 esac
4831 target=$ac_cv_target
4832 ac_save_IFS=$IFS; IFS='-'
4833 set x $ac_cv_target
4834 shift
4835 target_cpu=$1
4836 target_vendor=$2
4837 shift; shift
4838 # Remember, the first character of IFS is used to create $*,
4839 # except with old shells:
4840 target_os=$*
4841 IFS=$ac_save_IFS
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" = \
4849 NONENONEs,x,x, &&
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 :
4855 CROSSCOMPILE=1
4856 else
4857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4858 /* end confdefs.h. */
4860 int main (int argc, char *argv[])
4862 int i = 1;
4863 return *(char*)&i;
4866 _ACEOF
4867 if ac_fn_c_try_run "$LINENO"; then :
4868 BIGENDIAN=1
4869 else
4870 LITTLEENDIAN=1
4872 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4873 conftest.$ac_objext conftest.beam conftest.$ac_ext
4876 export CROSSCOMPILE
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; }
4884 case "${target}" in
4885 *86* | *-pc-* )
4886 LITTLEENDIAN=1
4888 *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
4889 BIGENDIAN=1
4891 esac
4894 export LITTLEENDIAN
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; }
4898 BYTEORDERCHECKOK=1
4900 export BIGENDIAN
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; }
4904 BYTEORDERCHECKOK=1
4905 WORDS_BIGENDIAN=1
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.
4915 exit 1
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 :
4923 CROSSCOMPILE=1
4924 else
4925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4926 /* end confdefs.h. */
4928 #include "stdlib.h"
4929 int main (int argc, char*argv[])
4931 return system("test `touch config.tmp2`");
4934 _ACEOF
4935 if ac_fn_c_try_run "$LINENO"; then :
4936 OK=OK
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
4948 OK=no;
4950 if test "x${OK}" = "xOK";then
4951 rm -f config.tmp2
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4953 $as_echo "yes" >&6; }
4954 SYSTEM_BACKTICKS=1
4955 export SYSTEM_BACKTICKS
4957 $as_echo "#define SYSTEM_BACKTICKS 1" >>confdefs.h
4959 else
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"
4979 ac_header_dirent=no
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
4986 else
4987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4988 /* end confdefs.h. */
4989 #include <sys/types.h>
4990 #include <$ac_hdr>
4993 main ()
4995 if ((DIR *) 0)
4996 return 0;
4998 return 0;
5000 _ACEOF
5001 if ac_fn_c_try_compile "$LINENO"; then :
5002 eval "$as_ac_Header=yes"
5003 else
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
5015 _ACEOF
5017 ac_header_dirent=$ac_hdr; break
5020 done
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
5027 else
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. */
5035 #ifdef __cplusplus
5036 extern "C"
5037 #endif
5038 char opendir ();
5040 main ()
5042 return opendir ();
5044 return 0;
5046 _ACEOF
5047 for ac_lib in '' dir; do
5048 if test -z "$ac_lib"; then
5049 ac_res="none required"
5050 else
5051 ac_res=-l$ac_lib
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 \
5058 conftest$ac_exeext
5059 if test "${ac_cv_search_opendir+set}" = set; then :
5060 break
5062 done
5063 if test "${ac_cv_search_opendir+set}" = set; then :
5065 else
5066 ac_cv_search_opendir=no
5068 rm conftest.$ac_ext
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"
5079 else
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
5084 else
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. */
5092 #ifdef __cplusplus
5093 extern "C"
5094 #endif
5095 char opendir ();
5097 main ()
5099 return opendir ();
5101 return 0;
5103 _ACEOF
5104 for ac_lib in '' x; do
5105 if test -z "$ac_lib"; then
5106 ac_res="none required"
5107 else
5108 ac_res=-l$ac_lib
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 \
5115 conftest$ac_exeext
5116 if test "${ac_cv_search_opendir+set}" = set; then :
5117 break
5119 done
5120 if test "${ac_cv_search_opendir+set}" = set; then :
5122 else
5123 ac_cv_search_opendir=no
5125 rm conftest.$ac_ext
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
5143 else
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/xpg4/bin
5150 IFS=$as_save_IFS
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
5159 *GNU*)
5160 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5162 ac_count=0
5163 $as_echo_n 0123456789 >"conftest.in"
5164 while :
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
5180 done
5181 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5182 esac
5184 $ac_path_GREP_found && break 3
5185 done
5186 done
5187 done
5188 IFS=$as_save_IFS
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
5192 else
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
5206 else
5207 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5208 then ac_cv_path_EGREP="$GREP -E"
5209 else
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/xpg4/bin
5216 IFS=$as_save_IFS
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
5225 *GNU*)
5226 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5228 ac_count=0
5229 $as_echo_n 0123456789 >"conftest.in"
5230 while :
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
5246 done
5247 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5248 esac
5250 $ac_path_EGREP_found && break 3
5251 done
5252 done
5253 done
5254 IFS=$as_save_IFS
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
5258 else
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
5273 else
5274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5275 /* end confdefs.h. */
5276 #include <stdlib.h>
5277 #include <stdarg.h>
5278 #include <string.h>
5279 #include <float.h>
5282 main ()
5286 return 0;
5288 _ACEOF
5289 if ac_fn_c_try_compile "$LINENO"; then :
5290 ac_cv_header_stdc=yes
5291 else
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. */
5300 #include <string.h>
5302 _ACEOF
5303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5304 $EGREP "memchr" >/dev/null 2>&1; then :
5306 else
5307 ac_cv_header_stdc=no
5309 rm -f conftest*
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. */
5317 #include <stdlib.h>
5319 _ACEOF
5320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5321 $EGREP "free" >/dev/null 2>&1; then :
5323 else
5324 ac_cv_header_stdc=no
5326 rm -f conftest*
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 :
5334 else
5335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5336 /* end confdefs.h. */
5337 #include <ctype.h>
5338 #include <stdlib.h>
5339 #if ((' ' & 0x0FF) == 0x020)
5340 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5341 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5342 #else
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))
5348 #endif
5350 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5352 main ()
5354 int i;
5355 for (i = 0; i < 256; i++)
5356 if (XOR (islower (i), ISLOWER (i))
5357 || toupper (i) != TOUPPER (i))
5358 return 2;
5359 return 0;
5361 _ACEOF
5362 if ac_fn_c_try_run "$LINENO"; then :
5364 else
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
5385 do :
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
5393 _ACEOF
5397 done
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
5401 do :
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
5408 _ACEOF
5412 done
5416 cat >>confdefs.h <<_ACEOF
5417 #define PACKAGE "$PACKAGE"
5418 _ACEOF
5421 cat >>confdefs.h <<_ACEOF
5422 #define VERSION "$VERSION"
5423 _ACEOF
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
5435 else
5436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5437 /* end confdefs.h. */
5440 main ()
5442 /* FIXME: Include the comments suggested by Paul. */
5443 #ifndef __cplusplus
5444 /* Ultrix mips cc rejects this. */
5445 typedef int charset[2];
5446 const charset cs;
5447 /* SunOS 4.1.1 cc rejects this. */
5448 char const *const *pcpcc;
5449 char **ppc;
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
5456 expression */
5457 const char *g = "string";
5458 pcpcc = &g + (g ? g-g : 0);
5459 /* HPUX 7.0 cc rejects these. */
5460 ++pcpcc;
5461 ppc = (char**) pcpcc;
5462 pcpcc = (char const *const *) ppc;
5463 { /* SCO 3.2v4 cc rejects this. */
5464 char *t;
5465 char const *s = 0 ? (char *) 0 : (char const *) 0;
5467 *t++ = 0;
5468 if (s) return 0;
5470 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5471 int x[] = {25, 17};
5472 const int *foo = &x[0];
5473 ++foo;
5475 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5476 typedef const int *iptr;
5477 iptr p = 0;
5478 ++p;
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 */
5486 const int foo = 10;
5487 if (!foo) return 0;
5489 return !cs[0] && !zero.x;
5490 #endif
5493 return 0;
5495 _ACEOF
5496 if ac_fn_c_try_compile "$LINENO"; then :
5497 ac_cv_c_const=yes
5498 else
5499 ac_cv_c_const=no
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
5515 else
5516 ac_cv_c_inline=no
5517 for ac_kw in inline __inline__ __inline; do
5518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5519 /* end confdefs.h. */
5520 #ifndef __cplusplus
5521 typedef int foo_t;
5522 static $ac_kw foo_t static_foo () {return 0; }
5523 $ac_kw foo_t foo () {return 0; }
5524 #endif
5526 _ACEOF
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
5532 done
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
5539 inline | yes) ;;
5541 case $ac_cv_c_inline in
5542 no) ac_val=;;
5543 *) ac_val=$ac_cv_c_inline;;
5544 esac
5545 cat >>confdefs.h <<_ACEOF
5546 #ifndef __cplusplus
5547 #define inline $ac_val
5548 #endif
5549 _ACEOF
5551 esac
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 :
5556 else
5558 cat >>confdefs.h <<_ACEOF
5559 #define off_t long int
5560 _ACEOF
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 :
5567 else
5569 cat >>confdefs.h <<_ACEOF
5570 #define size_t unsigned int
5571 _ACEOF
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
5579 else
5580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5581 /* end confdefs.h. */
5582 #include <sys/types.h>
5583 #include <time.h>
5586 main ()
5588 struct tm tm;
5589 int *p = &tm.tm_sec;
5590 return !p;
5592 return 0;
5594 _ACEOF
5595 if ac_fn_c_try_compile "$LINENO"; then :
5596 ac_cv_struct_tm=time.h
5597 else
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 :
5613 else
5615 cat >>confdefs.h <<_ACEOF
5616 #define boolean int
5617 _ACEOF
5620 #needed for jpeglib
5621 for ac_func in popen wcschr wcsdup mkstemp stat mmap lrand48 rand srand48 srand bcopy bzero time getrusage mallinfo open64 calloc
5622 do :
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
5629 _ACEOF
5632 done
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
5643 else
5644 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char" "$ac_includes_default"; then :
5646 else
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; }; }
5653 else
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
5666 _ACEOF
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
5677 else
5678 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short" "$ac_includes_default"; then :
5680 else
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; }; }
5687 else
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
5700 _ACEOF
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
5711 else
5712 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed))" "ac_cv_sizeof_signed" "$ac_includes_default"; then :
5714 else
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; }; }
5721 else
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
5734 _ACEOF
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
5745 else
5746 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long" "$ac_includes_default"; then :
5748 else
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; }; }
5755 else
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
5768 _ACEOF
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
5779 else
5780 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
5782 else
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; }; }
5789 else
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
5802 _ACEOF
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
5814 else
5815 case $FREETYPE_CONFIG in
5816 [\\/]* | ?:[\\/]*)
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
5824 IFS=$as_save_IFS
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
5830 break 2
5832 done
5833 done
5834 IFS=$as_save_IFS
5837 esac
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; }
5843 else
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5845 $as_echo "no" >&6; }
5850 OLDCPPFLAGS="${CPPFLAGS}"
5851 OLDLIBS="${LIBS}"
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
5870 else
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. */
5879 #ifdef __cplusplus
5880 extern "C"
5881 #endif
5882 char FT_Init_FreeType ();
5884 main ()
5886 return FT_Init_FreeType ();
5888 return 0;
5890 _ACEOF
5891 if ac_fn_c_try_link "$LINENO"; then :
5892 ac_cv_lib_freetype_FT_Init_FreeType=yes
5893 else
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 :
5903 HAVE_LIB_FREETYPE=1
5908 for ac_header in ft2build.h
5909 do :
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
5914 _ACEOF
5915 HAVE_FT2BUILD_H=1
5918 done
5920 if test "x${HAVE_FT2BUILD_H}" '=' "x";then
5921 for ac_header in freetype/freetype.h
5922 do :
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
5927 _ACEOF
5928 HAVE_FREETYPE_FREETYPE_H=1
5931 done
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
5938 HAVE_FREETYPE=1
5940 if test "x${HAVE_FT2BUILD_H}" '!=' "x";then
5941 HAVE_FREETYPE=1
5945 if test "x${HAVE_FREETYPE}" = "x1"; then
5946 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
5947 LIBS="$LIBS "`$FREETYPE_CONFIG --libs`
5948 else
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
5965 #include FT_GLYPH_H
5966 #include FT_SIZES_H
5967 #include FT_SFNT_NAMES_H
5968 #include FT_TRUETYPE_IDS_H
5969 #include FT_OUTLINE_H
5970 #else
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>
5977 #endif
5979 int main()
5981 FT_Library ftlibrary;
5982 FT_Face face;
5983 FT_Error error;
5984 FT_ULong charcode;
5985 FT_UInt gindex;
5986 FT_Glyph glyph;
5987 FT_BBox bbox;
5988 FT_Matrix matrix;
5989 FT_UInt i;
5990 char* name = 0;
5991 char italic, bold;
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);
6009 FT_Done_Face(face);
6010 FT_Done_FreeType(ftlibrary);
6011 return 0;
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
6027 # for ttf2tp1
6028 else
6029 echo "configure: failed program was:" >&5
6030 cat conftest.c >&5
6031 HAVE_FREETYPE=0
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6033 $as_echo "no" >&6; }
6035 rm -f conftest*
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
6041 LIBS=$OLDLIBS
6046 OLDCPPFLAGS="${CPPFLAGS}"
6047 OLDLIBS="${LIBS}"
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
6057 else
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. */
6066 #ifdef __cplusplus
6067 extern "C"
6068 #endif
6069 char FcInit ();
6071 main ()
6073 return FcInit ();
6075 return 0;
6077 _ACEOF
6078 if ac_fn_c_try_link "$LINENO"; then :
6079 ac_cv_lib_fontconfig_FcInit=yes
6080 else
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
6094 do :
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
6099 _ACEOF
6100 HAVE_FONTCONFIG_H=1
6103 done
6106 if test "x${HAVE_LIB_FONTCONFIG}" != "x";then
6107 if test "x${HAVE_FONTCONFIG_H}" != "x";then
6108 HAVE_FONTCONFIG=1
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
6119 #won't compile.
6120 LIBS=`echo $LIBS | sed -e 's/-lfreetype//g' -e 's/$/ -lfreetype/'`
6123 cat > conftest.c << EOF
6124 #include <string.h>
6125 #include <fontconfig.h>
6127 int main()
6129 FcPattern *pattern, *match;
6130 FcResult result;
6131 FcChar8 *v;
6132 char*s1="abc",*s2="ABC";
6133 strcasecmp(s1,s2);
6134 FcInit();
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);
6155 FcFini();
6156 return 0;
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
6167 else
6168 echo "configure: failed program was:" >&5
6169 cat conftest.c >&5
6170 HAVE_FONTCONFIG=0
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6172 $as_echo "no" >&6; }
6174 rm -f conftest*
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
6180 LIBS=$OLDLIBS
6185 OLDCPPFLAGS="${CPPFLAGS}"
6186 OLDLIBS="${LIBS}"
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
6192 else
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. */
6201 #ifdef __cplusplus
6202 extern "C"
6203 #endif
6204 char fftwf_plan_dft_r2c_2d ();
6206 main ()
6208 return fftwf_plan_dft_r2c_2d ();
6210 return 0;
6212 _ACEOF
6213 if ac_fn_c_try_link "$LINENO"; then :
6214 ac_cv_lib_fftw3f_fftwf_plan_dft_r2c_2d=yes
6215 else
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 :
6225 HAVE_LIBFFTW3=1
6228 for ac_header in fftw3.h
6229 do :
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
6234 _ACEOF
6235 HAVE_FFTW3_H=1
6238 done
6241 if test "x${HAVE_LIBFFTW3}" != "x";then
6242 if test "x${HAVE_FFTW3_H}" != "x";then
6243 HAVE_FFTW3=1
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
6253 #include <fftw3.h>
6255 int main()
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
6273 else
6274 echo "configure: failed program was:" >&5
6275 cat conftest.c >&5
6276 HAVE_FFTW3=0
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6278 $as_echo "no" >&6; }
6280 rm -f conftest*
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
6286 LIBS=$OLDLIBS
6290 # RFX_CHECK_OPENGL
6291 # if test "$HAVE_OPENGL";then
6292 # DEVICE_OPENGL='devices/opengl.$(O)'
6293 # AC_SUBST(DEVICE_OPENGL)
6294 # fi
6297 lame_in_source=
6298 lame_makefile=
6299 if test "x${DISABLE_LAME}" = "xtrue"; then
6300 echo "*" Disabling lame support...
6301 else
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
6310 else
6311 if test -d /usr/include/lame; then
6312 CPPFLAGS="$CPPFLAGS -I /usr/include/lame"
6313 else
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
6322 else
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. */
6331 #ifdef __cplusplus
6332 extern "C"
6333 #endif
6334 char lame_init ();
6336 main ()
6338 return lame_init ();
6340 return 0;
6342 _ACEOF
6343 if ac_fn_c_try_link "$LINENO"; then :
6344 ac_cv_lib_mp3lame_lame_init=yes
6345 else
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
6357 _ACEOF
6359 LIBS="-lmp3lame $LIBS"
6361 else
6362 NO_LIBMP3LAME=1
6365 HASLAMEHEADER=
6366 for ac_header in lame.h
6367 do :
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
6372 _ACEOF
6373 HASLAMEHEADER=1
6376 done
6378 if test "x$NO_LIBMP3LAME" "!=" "x1" -a "x$HASLAMEHEADER" '!=' "x";then
6379 $as_echo "#define HAVE_LAME 1" >>confdefs.h
6386 xpdf_in_source=
6387 splash_in_source=
6388 xpdf_include=
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
6404 else
6405 case $PKG_CONFIG in
6406 [\\/]* | ?:[\\/]*)
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
6411 for as_dir in $PATH
6413 IFS=$as_save_IFS
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
6419 break 2
6421 done
6422 done
6423 IFS=$as_save_IFS
6426 esac
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; }
6432 else
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
6447 else
6448 case $ac_pt_PKG_CONFIG in
6449 [\\/]* | ?:[\\/]*)
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
6454 for as_dir in $PATH
6456 IFS=$as_save_IFS
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
6462 break 2
6464 done
6465 done
6466 IFS=$as_save_IFS
6469 esac
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; }
6475 else
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
6481 PKG_CONFIG=""
6482 else
6483 case $cross_compiling:$ac_tool_warned in
6484 yes:)
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 ;;
6488 esac
6489 PKG_CONFIG=$ac_pt_PKG_CONFIG
6491 else
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; }
6503 else
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6505 $as_echo "no" >&6; }
6506 PKG_CONFIG=""
6511 pkg_failed=no
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
6521 ac_status=$?
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`
6525 else
6526 pkg_failed=yes
6528 else
6529 pkg_failed=untried
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
6537 ac_status=$?
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`
6541 else
6542 pkg_failed=yes
6544 else
6545 pkg_failed=untried
6550 if test $pkg_failed = yes; then
6552 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6553 _pkg_short_errors_supported=yes
6554 else
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`
6559 else
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
6570 else
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
6578 ac_ext=cpp
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
6585 ac_ext=cpp
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
6595 else
6596 # Double quotes because CXXCPP needs to be expanded
6597 for CXXCPP in "$CXX -E" "/lib/cpp"
6599 ac_preproc_ok=false
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. */
6610 #ifdef __STDC__
6611 # include <limits.h>
6612 #else
6613 # include <assert.h>
6614 #endif
6615 Syntax error
6616 _ACEOF
6617 if ac_fn_cxx_try_cpp "$LINENO"; then :
6619 else
6620 # Broken: fails on valid input.
6621 continue
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>
6630 _ACEOF
6631 if ac_fn_cxx_try_cpp "$LINENO"; then :
6632 # Broken: success on invalid input.
6633 continue
6634 else
6635 # Passes both tests.
6636 ac_preproc_ok=:
6637 break
6639 rm -f conftest.err conftest.$ac_ext
6641 done
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 :
6645 break
6648 done
6649 ac_cv_prog_CXXCPP=$CXXCPP
6652 CXXCPP=$ac_cv_prog_CXXCPP
6653 else
6654 ac_cv_prog_CXXCPP=$CXXCPP
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
6657 $as_echo "$CXXCPP" >&6; }
6658 ac_preproc_ok=false
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. */
6669 #ifdef __STDC__
6670 # include <limits.h>
6671 #else
6672 # include <assert.h>
6673 #endif
6674 Syntax error
6675 _ACEOF
6676 if ac_fn_cxx_try_cpp "$LINENO"; then :
6678 else
6679 # Broken: fails on valid input.
6680 continue
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>
6689 _ACEOF
6690 if ac_fn_cxx_try_cpp "$LINENO"; then :
6691 # Broken: success on invalid input.
6692 continue
6693 else
6694 # Passes both tests.
6695 ac_preproc_ok=:
6696 break
6698 rm -f conftest.err conftest.$ac_ext
6700 done
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 :
6705 else
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; }
6712 ac_ext=cpp
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
6720 do :
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
6725 _ACEOF
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
6731 else
6732 ac_check_lib_save_LIBS=$LIBS
6733 LIBS="-lpoppler $LIBS"
6734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6735 /* end confdefs.h. */
6739 main ()
6741 return main ();
6743 return 0;
6745 _ACEOF
6746 if ac_fn_cxx_try_link "$LINENO"; then :
6747 ac_cv_lib_poppler_main=yes
6748 else
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
6760 _ACEOF
6762 LIBS="-lpoppler $LIBS"
6767 else
6768 as_fn_error "No poppler library found. This library is required." "$LINENO" 5
6771 done
6773 ac_ext=c
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
6779 else
6780 CPPFLAGS="$CPPFLAGS $POPPLER_CFLAGS"
6781 LIBS="$LIBS $POPPLER_LIBS"
6782 $as_echo "#define HAVE_POPPLER 1" >>confdefs.h
6785 else
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
6809 else
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
6827 else
6828 if test -n "$AVIFILE_CONFIG"; then
6829 ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
6830 else
6831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6832 for as_dir in $PATH
6834 IFS=$as_save_IFS
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
6840 break 2
6842 done
6843 done
6844 IFS=$as_save_IFS
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; }
6852 else
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6854 $as_echo "no" >&6; }
6858 test -n "$AVIFILE_CONFIG" && break
6859 done
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
6867 do :
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
6874 _ACEOF
6878 done
6880 # ... and reset
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>
6903 #endif
6904 #ifdef HAVE_AVIFILE_VERSION_H
6905 #include <avifile/version.h>
6906 #endif
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>
6914 #define VERSION6
6915 #else
6916 #include <avifile.h>
6917 #include <aviplay.h>
6918 #include <aviutil.h>
6919 #define Width width
6920 #define Height height
6921 #define Data data
6922 #define Bpp bpp
6923 #endif
6925 void test()
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();
6935 #ifndef VERSION6
6936 MainAVIHeader head;
6937 player->GetFileHeader(&head);
6938 head.dwMicroSecPerFrame;
6939 head.dwTotalFrames;
6940 head.dwStreams;
6941 head.dwWidth;
6942 head.dwHeight;
6943 head.dwMicroSecPerFrame;
6944 astream->GetEndPos(),
6945 astream->GetEndTime());
6946 player->StreamCount();
6947 #else
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();
6956 #endif
6957 CImage*img = vstream->GetFrame();
6958 img->ToRGB();
6959 img->Data();
6960 img->Bpp();
6961 img->Width();
6962 img->Height();
6963 WAVEFORMATEX wave;
6964 astream->GetAudioFormatInfo(&wave,0);
6965 uint_t a,b;
6966 astream->ReadFrames(0,0,0,a,b);
6968 int main (int argc, char*argv)
6970 return 0;
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; }
6981 AVIFILE=true
6982 export AVIFILE
6984 $as_echo "#define AVIFILE true" >>confdefs.h
6986 else
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; }
6992 else
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6994 $as_echo "no" >&6; }
6996 rm -f conftest*
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"
7012 AVIFIL32=true
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
7033 PY_VERSION=unknown
7034 else
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"
7040 case "$PYTHON" in
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"
7045 esac
7046 for v in $VERSIONS; do
7047 # Linux
7048 if test -f "/usr/include/python$v/Python.h";then
7049 PY_VERSION=$v
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
7054 else
7055 PYTHON_LIB2="$PYTHON_LIB"
7057 PYTHON_INCLUDES="-I/usr/include/python$PY_VERSION"
7058 # Mac OS X
7059 elif test -f "/Library/Frameworks/Python.framework/Versions/$v/include/python$v/Python.h";then
7060 PY_VERSION=$v
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
7065 else
7066 PYTHON_LIB2="$PYTHON_LIB"
7068 PYTHON_INCLUDES="-I/Library/Frameworks/Python.framework/Versions/$v/include/python$v/"
7069 # Mac OS X [Fink]:
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" \
7073 ")" \
7074 -a -f "/sw/include/python$v/Python.h"; then
7075 PY_VERSION=$v
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
7080 else
7081 PYTHON_LIB2="$PYTHON_LIB"
7083 PYTHON_INCLUDES="-I /sw/include/python$v/"
7085 done
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; }
7098 else
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>
7114 int main()
7116 int ret;
7117 ret = Py_Main(0, 0);
7118 int x; // check also for gcc 2.95.x incompatibilities
7119 return ret;
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; }
7127 PYTHON_OK=yes
7128 else
7129 echo "configure: failed program was:" >&5
7130 cat conftest.c >&5
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7132 $as_echo "no" >&6; }
7134 rm -f conftest*
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
7139 import distutils
7140 import distutils.sysconfig
7141 import sys
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; }
7150 else
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>
7163 int main()
7165 Py_Main(0, 0);
7166 return 0;
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; }
7181 else
7182 echo "configure: failed program was:" >&5
7183 cat conftest.c >&5
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7185 $as_echo "no" >&6; }
7187 else
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; }
7193 rm -f conftest*
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
7201 else
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
7214 else
7215 case $RUBY in
7216 [\\/]* | ?:[\\/]*)
7217 ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
7220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7221 for as_dir in $PATH
7223 IFS=$as_save_IFS
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
7229 break 2
7231 done
7232 done
7233 IFS=$as_save_IFS
7236 esac
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; }
7242 else
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7244 $as_echo "no" >&6; }
7249 RUBY_CPPFLAGS=""
7250 RUBY_LDFLAGS=""
7251 RUBY_LIBS=""
7253 rubylib=ruby18
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
7264 # and LDFLAGS.
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"
7287 else
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 'unknown'" >&5
7289 $as_echo "'unknown'" >&6; }
7291 else
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
7304 do :
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
7309 _ACEOF
7310 HAVE_RUBY_H=1
7313 done
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
7323 #include <ruby.h>
7324 static VALUE foobar;
7325 VALUE foobar_set_foo(VALUE module, VALUE _key, VALUE _value)
7327 return Qnil;
7329 int Init_foobar()
7331 foobar = rb_define_module("foobar");
7332 rb_define_module_function(foobar, "set_foo", foobar_set_foo, 2);
7333 return 0;
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
7339 RUBY_OK=yes
7340 else
7341 echo "configure: failed program was:" >&5
7342 cat conftest.c >&5
7344 rm -f conftest*
7347 if test "x${RUBY_OK}" '=' "xyes"; then
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7349 $as_echo "yes" >&6; }
7354 else
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7356 $as_echo "no" >&6; }
7357 RUBY_CPPFLAGS=""
7358 RUBY_LDFLAGS=""
7359 RUBY_LIBS=""
7360 RUBY_INSTALLDIR=""
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
7370 else
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"
7383 DISABLEPNG2SWF=true
7384 PARTIAL=true
7386 if test "x$JPEGLIBMISSING" = "xtrue";then
7387 MISSINGLIBS="${MISSINGLIBS} jpeglib"
7388 DISABLEPDF2SWF=true
7389 DISABLEJPEG2SWF=true
7390 PARTIAL=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
7399 DISABLEGIF2SWF=true
7400 MISSINGLIBS="${MISSINGLIBS} ungif"
7401 PARTIAL=true
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"
7411 PARTIAL=true
7413 if test "x$HAVE_FREETYPE" '!=' "x1"; then
7414 DISABLEPDF2SWF=true;
7415 MISSINGLIBS="${MISSINGLIBS} freetype"
7416 PARTIAL=true
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
7422 DISABLEGIF2SWF=true
7423 MISSINGLIBS="${MISSINGLIBS} gif_lib.h"
7424 PARTIAL=true
7426 if test "x${ac_cv_header_zlib_h}" '!=' "xyes"; then
7427 DISABLEPNG2SWF=true;
7428 MISSINGLIBS="${MISSINGLIBS} zlib.h"
7429 PARTIAL=true
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
7450 avi2swf=
7453 pdf2swf_makefile="lib/pdf/Makefile"
7454 PDF2SWF='pdf2swf$(E)'
7455 LIBPDF='libpdf$(A)'
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
7461 pdf2swf_makefile=""
7462 PDF2SWF=
7463 LIBPDF=
7468 PDF2PDF='pdf2pdf$(E)'
7469 DEVICE_PDF='devices/pdf.$(O)'
7470 if test "x${DISABLEPDF2PDF}" = "xtrue"; then
7471 #echo "* Disabling pdf2pdf tool..."
7472 PDF2PDF=
7473 DEVICE_PDF=
7478 if test "x${ZLIBMISSING}" = "xtrue"; then
7479 echo
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..."
7487 JPEG2SWF=
7489 export JPEG2SWF
7492 GIF2SWF='gif2swf$(E)'
7493 if test "x${DISABLEGIF2SWF}" = "xtrue"; then
7494 echo "* Disabling gif2swf tool..."
7495 GIF2SWF=
7497 export GIF2SWF
7500 PNG2SWF='png2swf$(E)'
7501 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
7502 echo "* Disabling png2swf tool..."
7503 PNG2SWF=
7505 export PNG2SWF
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
7538 # following values.
7540 _ACEOF
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
7550 case $ac_val in #(
7551 *${as_nl}*)
7552 case $ac_var in #(
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;} ;;
7555 esac
7556 case $ac_var in #(
7557 _ | IFS | as_nl) ;; #(
7558 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7559 *) { eval $ac_var=; unset $ac_var;} ;;
7560 esac ;;
7561 esac
7562 done
7564 (set) 2>&1 |
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 \.
7569 sed -n \
7570 "s/'/'\\\\''/g;
7571 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7572 ;; #(
7574 # `set' quotes correctly as required by POSIX, so do not add quotes.
7575 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7577 esac |
7578 sort
7580 sed '
7581 /^ac_cv_env_/b end
7582 t clear
7583 :clear
7584 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7585 t end
7586 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7587 :end' >>confcache
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
7594 else
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;}
7599 rm -f confcache
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
7607 ac_libobjs=
7608 ac_ltlibobjs=
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'
7617 done
7618 LIBOBJS=$ac_libobjs
7620 LTLIBOBJS=$ac_ltlibobjs
7624 : ${CONFIG_STATUS=./config.status}
7625 ac_write_fail=0
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;}
7630 as_write_fail=0
7631 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7632 #! $SHELL
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.
7638 debug=false
7639 ac_cs_recheck=false
7640 ac_cs_silent=false
7642 SHELL=\${CONFIG_SHELL-$SHELL}
7643 export SHELL
7644 _ASEOF
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 :
7653 emulate sh
7654 NULLCMD=:
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
7659 else
7660 case `(set -o) 2>/dev/null` in #(
7661 *posix*) :
7662 set -o posix ;; #(
7663 *) :
7665 esac
7669 as_nl='
7671 export as_nl
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'
7685 else
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'
7689 else
7690 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7691 as_echo_n_body='eval
7692 arg=$1;
7693 case $arg in #(
7694 *"$as_nl"*)
7695 expr "X$arg" : "X\\(.*\\)$as_nl";
7696 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7697 esac;
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'
7703 export as_echo_body
7704 as_echo='sh -c $as_echo_body as_echo'
7707 # The user is always right.
7708 if test "${PATH_SEPARATOR+set}" != set; then
7709 PATH_SEPARATOR=:
7710 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7711 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7712 PATH_SEPARATOR=';'
7717 # IFS
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.)
7722 IFS=" "" $as_nl"
7724 # Find who we are. Look in the path if we contain no directory separator.
7725 case $0 in #((
7726 *[\\/]* ) as_myself=$0 ;;
7727 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7728 for as_dir in $PATH
7730 IFS=$as_save_IFS
7731 test -z "$as_dir" && as_dir=.
7732 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7733 done
7734 IFS=$as_save_IFS
7737 esac
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
7741 as_myself=$0
7743 if test ! -f "$as_myself"; then
7744 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7745 exit 1
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 || :
7755 done
7756 PS1='$ '
7757 PS2='> '
7758 PS4='+ '
7760 # NLS nuisances.
7761 LC_ALL=C
7762 export LC_ALL
7763 LANGUAGE=C
7764 export LANGUAGE
7766 # CDPATH.
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.
7775 as_fn_error ()
7777 as_status=$?; test $as_status -eq 0 && as_status=1
7778 if test "$3"; then
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
7784 } # as_fn_error
7787 # as_fn_set_status STATUS
7788 # -----------------------
7789 # Set $? to STATUS, without forking.
7790 as_fn_set_status ()
7792 return $1
7793 } # as_fn_set_status
7795 # as_fn_exit STATUS
7796 # -----------------
7797 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7798 as_fn_exit ()
7800 set +e
7801 as_fn_set_status $1
7802 exit $1
7803 } # as_fn_exit
7805 # as_fn_unset VAR
7806 # ---------------
7807 # Portably unset VAR.
7808 as_fn_unset ()
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
7818 # implementations.
7819 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7820 eval 'as_fn_append ()
7822 eval $1+=\$2
7824 else
7825 as_fn_append ()
7827 eval $1=\$$1\$2
7829 fi # 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 ()
7839 as_val=$(( $* ))
7841 else
7842 as_fn_arith ()
7844 as_val=`expr "$@" || test $? -eq 1`
7846 fi # as_fn_arith
7849 if expr a : '\(a\)' >/dev/null 2>&1 &&
7850 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7851 as_expr=expr
7852 else
7853 as_expr=false
7856 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7857 as_basename=basename
7858 else
7859 as_basename=false
7862 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7863 as_dirname=dirname
7864 else
7865 as_dirname=false
7868 as_me=`$as_basename -- "$0" ||
7869 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7870 X"$0" : 'X\(//\)$' \| \
7871 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7872 $as_echo X/"$0" |
7873 sed '/^.*\/\([^/][^/]*\)\/*$/{
7874 s//\1/
7877 /^X\/\(\/\/\)$/{
7878 s//\1/
7881 /^X\/\(\/\).*/{
7882 s//\1/
7885 s/.*/./; q'`
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 #(((((
7896 -n*)
7897 case `echo 'xy\c'` in
7898 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7899 xy) ECHO_C='\c';;
7900 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7901 ECHO_T=' ';;
7902 esac;;
7904 ECHO_N='-n';;
7905 esac
7907 rm -f conf$$ conf$$.exe conf$$.file
7908 if test -d conf$$.dir; then
7909 rm -f conf$$.dir/conf$$.file
7910 else
7911 rm -f conf$$.dir
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
7916 as_ln_s='ln -s'
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 ||
7922 as_ln_s='cp -p'
7923 elif ln conf$$.file conf$$ 2>/dev/null; then
7924 as_ln_s=ln
7925 else
7926 as_ln_s='cp -p'
7928 else
7929 as_ln_s='cp -p'
7931 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7932 rmdir conf$$.dir 2>/dev/null
7935 # as_fn_mkdir_p
7936 # -------------
7937 # Create "$as_dir" as a directory, including parents if necessary.
7938 as_fn_mkdir_p ()
7941 case $as_dir in #(
7942 -*) as_dir=./$as_dir;;
7943 esac
7944 test -d "$as_dir" || eval $as_mkdir_p || {
7945 as_dirs=
7946 while :; do
7947 case $as_dir in #(
7948 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7949 *) as_qdir=$as_dir;;
7950 esac
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7959 s//\1/
7962 /^X\(\/\/\)[^/].*/{
7963 s//\1/
7966 /^X\(\/\/\)$/{
7967 s//\1/
7970 /^X\(\/\).*/{
7971 s//\1/
7974 s/.*/./; q'`
7975 test -d "$as_dir" && break
7976 done
7977 test -z "$as_dirs" || eval "mkdir $as_dirs"
7978 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
7981 } # as_fn_mkdir_p
7982 if mkdir -p . 2>/dev/null; then
7983 as_mkdir_p='mkdir -p "$as_dir"'
7984 else
7985 test -d ./-p && rmdir ./-p
7986 as_mkdir_p=false
7989 if test -x / >/dev/null 2>&1; then
7990 as_test_x='test -x'
7991 else
7992 if ls -dL / >/dev/null 2>&1; then
7993 as_ls_L_option=L
7994 else
7995 as_ls_L_option=
7997 as_test_x='
7998 eval sh -c '\''
7999 if test -d "$1"; then
8000 test -d "$1/.";
8001 else
8002 case $1 in #(
8003 -*)set "./$1";;
8004 esac;
8005 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8006 ???[sx]*):;;*)false;;esac;fi
8007 '\'' sh
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'"
8019 exec 6>&1
8020 ## ----------------------------------- ##
8021 ## Main body of $CONFIG_STATUS script. ##
8022 ## ----------------------------------- ##
8023 _ASEOF
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.
8030 ac_log="
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
8038 $ $0 $@
8040 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8043 _ACEOF
8045 case $ac_config_files in *"
8046 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8047 esac
8049 case $ac_config_headers in *"
8050 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8051 esac
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"
8059 _ACEOF
8061 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8062 ac_cs_usage="\
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:
8082 $config_files
8084 Configuration headers:
8085 $config_headers
8087 Report bugs to the package provider."
8089 _ACEOF
8090 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8091 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8092 ac_cs_version="\\
8093 config.status
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."
8101 ac_pwd='$ac_pwd'
8102 srcdir='$srcdir'
8103 INSTALL='$INSTALL'
8104 test -n "\$AWK" || AWK=awk
8105 _ACEOF
8107 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8108 # The default lists apply if the user does not specify any file.
8109 ac_need_defaults=:
8110 while test $# != 0
8112 case $1 in
8113 --*=*)
8114 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8115 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8116 ac_shift=:
8119 ac_option=$1
8120 ac_optarg=$2
8121 ac_shift=shift
8123 esac
8125 case $ac_option in
8126 # Handling of the options.
8127 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8128 ac_cs_recheck=: ;;
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 )
8134 debug=: ;;
8135 --file | --fil | --fi | --f )
8136 $ac_shift
8137 case $ac_optarg in
8138 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8139 esac
8140 as_fn_append CONFIG_FILES " '$ac_optarg'"
8141 ac_need_defaults=false;;
8142 --header | --heade | --head | --hea )
8143 $ac_shift
8144 case $ac_optarg in
8145 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8146 esac
8147 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8148 ac_need_defaults=false;;
8149 --he | --h)
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)
8157 ac_cs_silent=: ;;
8159 # This is an error.
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 ;;
8166 esac
8167 shift
8168 done
8170 ac_configure_extra_args=
8172 if $ac_cs_silent; then
8173 exec 6>/dev/null
8174 ac_configure_extra_args="$ac_configure_extra_args --silent"
8177 _ACEOF
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
8181 shift
8182 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8183 CONFIG_SHELL='$SHELL'
8184 export CONFIG_SHELL
8185 exec "\$@"
8188 _ACEOF
8189 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8190 exec 5>>config.log
8192 echo
8193 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8194 ## Running $as_me. ##
8195 _ASBOX
8196 $as_echo "$ac_log"
8197 } >&5
8199 _ACEOF
8200 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8201 _ACEOF
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;;
8213 esac
8214 done
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'.
8232 $debug ||
8234 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"
8245 } ||
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
8266 ac_cs_awk_cr='\r'
8267 else
8268 ac_cs_awk_cr=$ac_cr
8271 echo 'BEGIN {' >"$tmp/subs1.awk" &&
8272 _ACEOF
8276 echo "cat >conf$$subs.awk <<_ACEOF" &&
8277 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8278 echo "_ACEOF"
8279 } >conf$$subs.sh ||
8280 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8281 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
8282 ac_delim='%!_!# '
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
8289 break
8290 elif $ac_last_try; then
8291 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8292 else
8293 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8295 done
8296 rm -f conf$$subs.sh
8298 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8299 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
8300 _ACEOF
8301 sed -n '
8303 s/^/S["/; s/!.*/"]=/
8306 s/^[^!]*!//
8307 :repl
8308 t repl
8309 s/'"$ac_delim"'$//
8310 t delim
8313 s/\(.\{148\}\)..*/\1/
8314 t more1
8315 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8318 b repl
8319 :more1
8320 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8323 s/.\{148\}//
8324 t nl
8325 :delim
8327 s/\(.\{148\}\)..*/\1/
8328 t more2
8329 s/["\\]/\\&/g; s/^/"/; s/$/"/
8332 :more2
8333 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8336 s/.\{148\}//
8337 t delim
8338 ' <conf$$subs.awk | sed '
8339 /^[^""]/{
8341 s/\n//
8343 ' >>$CONFIG_STATUS || ac_write_fail=1
8344 rm -f conf$$subs.awk
8345 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8346 _ACAWK
8347 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
8348 for (key in S) S_is_set[key] = 1
8349 FS = "\a"
8353 line = $ 0
8354 nfields = split(line, field, "@")
8355 substed = 0
8356 len = length(field[1])
8357 for (i = 2; i < nfields; i++) {
8358 key = field[i]
8359 keylen = length(key)
8360 if (S_is_set[key]) {
8361 value = S[key]
8362 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8363 len += length(value) + length(field[++i])
8364 substed = 1
8365 } else
8366 len += 1 + keylen
8369 print line
8372 _ACAWK
8373 _ACEOF
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"
8377 else
8379 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
8380 || as_fn_error "could not setup config files machinery" "$LINENO" 5
8381 _ACEOF
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[ ]*=/{
8389 s/:*\$(srcdir):*/:/
8390 s/:*\${srcdir}:*/:/
8391 s/:*@srcdir@:*/:/
8392 s/^\([^=]*=[ ]*\):*/\1/
8393 s/:*$//
8394 s/^[^=]*=[ ]*$//
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 ||
8406 BEGIN {
8407 _ACEOF
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.
8415 ac_delim='%!_!# '
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
8419 break
8420 elif $ac_last_try; then
8421 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
8422 else
8423 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8425 done
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]*
8432 sed -n '
8433 s/.\{148\}/&'"$ac_delim"'/g
8434 t rset
8435 :rset
8436 s/^[ ]*#[ ]*define[ ][ ]*/ /
8437 t def
8439 :def
8440 s/\\$//
8441 t bsnl
8442 s/["\\]/\\&/g
8443 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8444 D["\1"]=" \3"/p
8445 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8447 :bsnl
8448 s/["\\]/\\&/g
8449 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8450 D["\1"]=" \3\\\\\\n"\\/p
8451 t cont
8452 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8453 t cont
8455 :cont
8457 s/.\{148\}/&'"$ac_delim"'/g
8458 t clear
8459 :clear
8460 s/\\$//
8461 t bsnlc
8462 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8464 :bsnlc
8465 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8466 b cont
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
8473 FS = "\a"
8475 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8476 line = \$ 0
8477 split(line, arg, " ")
8478 if (arg[1] == "#") {
8479 defundef = arg[2]
8480 mac1 = arg[3]
8481 } else {
8482 defundef = substr(arg[1], 2)
8483 mac1 = arg[2]
8485 split(mac1, mac2, "(") #)
8486 macro = mac2[1]
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]
8491 next
8492 } else {
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, "*/"
8498 next
8502 { print }
8503 _ACAWK
8504 _ACEOF
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 "
8511 shift
8512 for ac_tag
8514 case $ac_tag in
8515 :[FHLC]) ac_mode=$ac_tag; continue;;
8516 esac
8517 case $ac_mode$ac_tag in
8518 :[FHL]*:*);;
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;;
8522 esac
8523 ac_save_IFS=$IFS
8524 IFS=:
8525 set x $ac_tag
8526 IFS=$ac_save_IFS
8527 shift
8528 ac_file=$1
8529 shift
8531 case $ac_mode in
8532 :L) ac_source=$1;;
8533 :[FH])
8534 ac_file_inputs=
8535 for ac_f
8537 case $ac_f 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 `:'.
8542 test -f "$ac_f" ||
8543 case $ac_f in
8544 [\\/$]*) false;;
8545 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8546 esac ||
8547 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8548 esac
8549 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8550 as_fn_append ac_file_inputs " '$ac_f'"
8551 done
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'
8558 `' by configure.'
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;;
8570 esac
8572 case $ac_tag in
8573 *:-:* | *:-) cat >"$tmp/stdin" \
8574 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
8575 esac
8577 esac
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8586 s//\1/
8589 /^X\(\/\/\)[^/].*/{
8590 s//\1/
8593 /^X\(\/\/\)$/{
8594 s//\1/
8597 /^X\(\/\).*/{
8598 s//\1/
8601 s/.*/./; q'`
8602 as_dir="$ac_dir"; as_fn_mkdir_p
8603 ac_builddir=.
8605 case "$ac_dir" in
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/ ;;
8614 esac ;;
8615 esac
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
8621 case $srcdir in
8622 .) # We are building in place.
8623 ac_srcdir=.
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 ;;
8630 *) # Relative name.
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 ;;
8634 esac
8635 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8638 case $ac_mode in
8641 # CONFIG_FILE
8644 case $INSTALL in
8645 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8646 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8647 esac
8648 _ACEOF
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=
8654 ac_sed_dataroot='
8655 /datarootdir/ {
8659 /@datadir@/p
8660 /@docdir@/p
8661 /@infodir@/p
8662 /@localedir@/p
8663 /@mandir@/p'
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;}
8669 _ACEOF
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' ;;
8678 esac
8679 _ACEOF
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
8686 $extrasub
8687 _ACEOF
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;}
8715 rm -f "$tmp/stdin"
8716 case $ac_file in
8717 -) cat "$tmp/out" && rm -f "$tmp/out";;
8718 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8719 esac \
8720 || as_fn_error "could not create $ac_file" "$LINENO" 5
8724 # CONFIG_HEADER
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;}
8735 else
8736 rm -f "$ac_file"
8737 mv "$tmp/config.h" "$ac_file" \
8738 || as_fn_error "could not create $ac_file" "$LINENO" 5
8740 else
8741 $as_echo "/* $configure_input */" \
8742 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8743 || as_fn_error "could not create -" "$LINENO" 5
8748 esac
8750 done # for ac_tag
8753 as_fn_exit 0
8754 _ACEOF
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
8770 ac_cs_success=:
8771 ac_config_status_args=
8772 test "$silent" = yes &&
8773 ac_config_status_args="$ac_config_status_args --quiet"
8774 exec 5>/dev/null
8775 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8776 exec 5>>config.log
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
8795 else
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