fixed symlink install issue, bumped version to 0.9.2
[swftools.git] / configure
blobc95664494626ca5920b70704f970e5f5e702c5e3
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 HAVE_PYTHON_IMAGING
604 PYTHON_INSTALL_PATH
605 PYTHON_INCLUDES
606 PYTHON_LIB
607 PYTHON_EXECUTABLE
608 RUBY_INSTALLDIR
609 RUBY_LDFLAGS
610 RUBY_CPPFLAGS
611 RUBY_LIBS
612 RUBY
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 lame_in_source
622 DEVICE_OPENGL
623 FREETYPE_CONFIG
624 HAVE_UNISTD_H
625 VERSION
626 PACKAGE
627 EGREP
628 GREP
629 SYSTEM_BACKTICKS
630 WORDS_BIGENDIAN
631 target_os
632 target_vendor
633 target_cpu
634 target
635 STRIP
636 CXXLIBS
637 SLEXT
639 AREXT
640 UNCOMPRESS
641 LN_S
642 INSTALL_DATA
643 INSTALL_SCRIPT
644 INSTALL_PROGRAM
645 SET_MAKE
646 RANLIB
648 ac_ct_CXX
649 CXXFLAGS
651 OBJEXT
652 EXEEXT
653 ac_ct_CC
654 CPPFLAGS
655 LDFLAGS
656 CFLAGS
658 SHARED
659 host_os
660 host_vendor
661 host_cpu
662 host
663 build_os
664 build_vendor
665 build_cpu
666 build
667 target_alias
668 host_alias
669 build_alias
670 LIBS
671 ECHO_T
672 ECHO_N
673 ECHO_C
674 DEFS
675 mandir
676 localedir
677 libdir
678 psdir
679 pdfdir
680 dvidir
681 htmldir
682 infodir
683 docdir
684 oldincludedir
685 includedir
686 localstatedir
687 sharedstatedir
688 sysconfdir
689 datadir
690 datarootdir
691 libexecdir
692 sbindir
693 bindir
694 program_transform_name
695 prefix
696 exec_prefix
697 PACKAGE_URL
698 PACKAGE_BUGREPORT
699 PACKAGE_STRING
700 PACKAGE_VERSION
701 PACKAGE_TARNAME
702 PACKAGE_NAME
703 PATH_SEPARATOR
704 SHELL'
705 ac_subst_files=''
706 ac_user_opts='
707 enable_option_checking
708 enable_checkmem
709 enable_debug
710 enable_profiling
711 enable_warnings
712 enable_optimizations
713 enable_poppler
714 enable_lame
716 ac_precious_vars='build_alias
717 host_alias
718 target_alias
720 CFLAGS
721 LDFLAGS
722 LIBS
723 CPPFLAGS
725 CXXFLAGS
728 CXXCPP'
731 # Initialize some variables set by options.
732 ac_init_help=
733 ac_init_version=false
734 ac_unrecognized_opts=
735 ac_unrecognized_sep=
736 # The variables have the same names as the options, with
737 # dashes changed to underlines.
738 cache_file=/dev/null
739 exec_prefix=NONE
740 no_create=
741 no_recursion=
742 prefix=NONE
743 program_prefix=NONE
744 program_suffix=NONE
745 program_transform_name=s,x,x,
746 silent=
747 site=
748 srcdir=
749 verbose=
750 x_includes=NONE
751 x_libraries=NONE
753 # Installation directory options.
754 # These are left unexpanded so users can "make install exec_prefix=/foo"
755 # and all the variables that are supposed to be based on exec_prefix
756 # by default will actually change.
757 # Use braces instead of parens because sh, perl, etc. also accept them.
758 # (The list follows the same order as the GNU Coding Standards.)
759 bindir='${exec_prefix}/bin'
760 sbindir='${exec_prefix}/sbin'
761 libexecdir='${exec_prefix}/libexec'
762 datarootdir='${prefix}/share'
763 datadir='${datarootdir}'
764 sysconfdir='${prefix}/etc'
765 sharedstatedir='${prefix}/com'
766 localstatedir='${prefix}/var'
767 includedir='${prefix}/include'
768 oldincludedir='/usr/include'
769 docdir='${datarootdir}/doc/${PACKAGE}'
770 infodir='${datarootdir}/info'
771 htmldir='${docdir}'
772 dvidir='${docdir}'
773 pdfdir='${docdir}'
774 psdir='${docdir}'
775 libdir='${exec_prefix}/lib'
776 localedir='${datarootdir}/locale'
777 mandir='${datarootdir}/man'
779 ac_prev=
780 ac_dashdash=
781 for ac_option
783 # If the previous option needs an argument, assign it.
784 if test -n "$ac_prev"; then
785 eval $ac_prev=\$ac_option
786 ac_prev=
787 continue
790 case $ac_option in
791 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
792 *) ac_optarg=yes ;;
793 esac
795 # Accept the important Cygnus configure options, so we can diagnose typos.
797 case $ac_dashdash$ac_option in
799 ac_dashdash=yes ;;
801 -bindir | --bindir | --bindi | --bind | --bin | --bi)
802 ac_prev=bindir ;;
803 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
804 bindir=$ac_optarg ;;
806 -build | --build | --buil | --bui | --bu)
807 ac_prev=build_alias ;;
808 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
809 build_alias=$ac_optarg ;;
811 -cache-file | --cache-file | --cache-fil | --cache-fi \
812 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
813 ac_prev=cache_file ;;
814 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
815 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
816 cache_file=$ac_optarg ;;
818 --config-cache | -C)
819 cache_file=config.cache ;;
821 -datadir | --datadir | --datadi | --datad)
822 ac_prev=datadir ;;
823 -datadir=* | --datadir=* | --datadi=* | --datad=*)
824 datadir=$ac_optarg ;;
826 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
827 | --dataroo | --dataro | --datar)
828 ac_prev=datarootdir ;;
829 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
830 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
831 datarootdir=$ac_optarg ;;
833 -disable-* | --disable-*)
834 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
835 # Reject names that are not valid shell variable names.
836 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
837 as_fn_error "invalid feature name: $ac_useropt"
838 ac_useropt_orig=$ac_useropt
839 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
840 case $ac_user_opts in
842 "enable_$ac_useropt"
843 "*) ;;
844 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
845 ac_unrecognized_sep=', ';;
846 esac
847 eval enable_$ac_useropt=no ;;
849 -docdir | --docdir | --docdi | --doc | --do)
850 ac_prev=docdir ;;
851 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
852 docdir=$ac_optarg ;;
854 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
855 ac_prev=dvidir ;;
856 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
857 dvidir=$ac_optarg ;;
859 -enable-* | --enable-*)
860 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
861 # Reject names that are not valid shell variable names.
862 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
863 as_fn_error "invalid feature name: $ac_useropt"
864 ac_useropt_orig=$ac_useropt
865 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
866 case $ac_user_opts in
868 "enable_$ac_useropt"
869 "*) ;;
870 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
871 ac_unrecognized_sep=', ';;
872 esac
873 eval enable_$ac_useropt=\$ac_optarg ;;
875 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
876 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
877 | --exec | --exe | --ex)
878 ac_prev=exec_prefix ;;
879 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
880 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
881 | --exec=* | --exe=* | --ex=*)
882 exec_prefix=$ac_optarg ;;
884 -gas | --gas | --ga | --g)
885 # Obsolete; use --with-gas.
886 with_gas=yes ;;
888 -help | --help | --hel | --he | -h)
889 ac_init_help=long ;;
890 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
891 ac_init_help=recursive ;;
892 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
893 ac_init_help=short ;;
895 -host | --host | --hos | --ho)
896 ac_prev=host_alias ;;
897 -host=* | --host=* | --hos=* | --ho=*)
898 host_alias=$ac_optarg ;;
900 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
901 ac_prev=htmldir ;;
902 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
903 | --ht=*)
904 htmldir=$ac_optarg ;;
906 -includedir | --includedir | --includedi | --included | --include \
907 | --includ | --inclu | --incl | --inc)
908 ac_prev=includedir ;;
909 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
910 | --includ=* | --inclu=* | --incl=* | --inc=*)
911 includedir=$ac_optarg ;;
913 -infodir | --infodir | --infodi | --infod | --info | --inf)
914 ac_prev=infodir ;;
915 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
916 infodir=$ac_optarg ;;
918 -libdir | --libdir | --libdi | --libd)
919 ac_prev=libdir ;;
920 -libdir=* | --libdir=* | --libdi=* | --libd=*)
921 libdir=$ac_optarg ;;
923 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
924 | --libexe | --libex | --libe)
925 ac_prev=libexecdir ;;
926 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
927 | --libexe=* | --libex=* | --libe=*)
928 libexecdir=$ac_optarg ;;
930 -localedir | --localedir | --localedi | --localed | --locale)
931 ac_prev=localedir ;;
932 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
933 localedir=$ac_optarg ;;
935 -localstatedir | --localstatedir | --localstatedi | --localstated \
936 | --localstate | --localstat | --localsta | --localst | --locals)
937 ac_prev=localstatedir ;;
938 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
939 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
940 localstatedir=$ac_optarg ;;
942 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
943 ac_prev=mandir ;;
944 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
945 mandir=$ac_optarg ;;
947 -nfp | --nfp | --nf)
948 # Obsolete; use --without-fp.
949 with_fp=no ;;
951 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
952 | --no-cr | --no-c | -n)
953 no_create=yes ;;
955 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
956 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
957 no_recursion=yes ;;
959 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
960 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
961 | --oldin | --oldi | --old | --ol | --o)
962 ac_prev=oldincludedir ;;
963 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
964 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
965 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
966 oldincludedir=$ac_optarg ;;
968 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
969 ac_prev=prefix ;;
970 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
971 prefix=$ac_optarg ;;
973 -program-prefix | --program-prefix | --program-prefi | --program-pref \
974 | --program-pre | --program-pr | --program-p)
975 ac_prev=program_prefix ;;
976 -program-prefix=* | --program-prefix=* | --program-prefi=* \
977 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
978 program_prefix=$ac_optarg ;;
980 -program-suffix | --program-suffix | --program-suffi | --program-suff \
981 | --program-suf | --program-su | --program-s)
982 ac_prev=program_suffix ;;
983 -program-suffix=* | --program-suffix=* | --program-suffi=* \
984 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
985 program_suffix=$ac_optarg ;;
987 -program-transform-name | --program-transform-name \
988 | --program-transform-nam | --program-transform-na \
989 | --program-transform-n | --program-transform- \
990 | --program-transform | --program-transfor \
991 | --program-transfo | --program-transf \
992 | --program-trans | --program-tran \
993 | --progr-tra | --program-tr | --program-t)
994 ac_prev=program_transform_name ;;
995 -program-transform-name=* | --program-transform-name=* \
996 | --program-transform-nam=* | --program-transform-na=* \
997 | --program-transform-n=* | --program-transform-=* \
998 | --program-transform=* | --program-transfor=* \
999 | --program-transfo=* | --program-transf=* \
1000 | --program-trans=* | --program-tran=* \
1001 | --progr-tra=* | --program-tr=* | --program-t=*)
1002 program_transform_name=$ac_optarg ;;
1004 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1005 ac_prev=pdfdir ;;
1006 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1007 pdfdir=$ac_optarg ;;
1009 -psdir | --psdir | --psdi | --psd | --ps)
1010 ac_prev=psdir ;;
1011 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1012 psdir=$ac_optarg ;;
1014 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1015 | -silent | --silent | --silen | --sile | --sil)
1016 silent=yes ;;
1018 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1019 ac_prev=sbindir ;;
1020 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1021 | --sbi=* | --sb=*)
1022 sbindir=$ac_optarg ;;
1024 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1025 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1026 | --sharedst | --shareds | --shared | --share | --shar \
1027 | --sha | --sh)
1028 ac_prev=sharedstatedir ;;
1029 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1030 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1031 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1032 | --sha=* | --sh=*)
1033 sharedstatedir=$ac_optarg ;;
1035 -site | --site | --sit)
1036 ac_prev=site ;;
1037 -site=* | --site=* | --sit=*)
1038 site=$ac_optarg ;;
1040 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1041 ac_prev=srcdir ;;
1042 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1043 srcdir=$ac_optarg ;;
1045 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1046 | --syscon | --sysco | --sysc | --sys | --sy)
1047 ac_prev=sysconfdir ;;
1048 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1049 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1050 sysconfdir=$ac_optarg ;;
1052 -target | --target | --targe | --targ | --tar | --ta | --t)
1053 ac_prev=target_alias ;;
1054 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1055 target_alias=$ac_optarg ;;
1057 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1058 verbose=yes ;;
1060 -version | --version | --versio | --versi | --vers | -V)
1061 ac_init_version=: ;;
1063 -with-* | --with-*)
1064 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1065 # Reject names that are not valid shell variable names.
1066 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1067 as_fn_error "invalid package name: $ac_useropt"
1068 ac_useropt_orig=$ac_useropt
1069 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1070 case $ac_user_opts in
1072 "with_$ac_useropt"
1073 "*) ;;
1074 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1075 ac_unrecognized_sep=', ';;
1076 esac
1077 eval with_$ac_useropt=\$ac_optarg ;;
1079 -without-* | --without-*)
1080 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1081 # Reject names that are not valid shell variable names.
1082 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1083 as_fn_error "invalid package name: $ac_useropt"
1084 ac_useropt_orig=$ac_useropt
1085 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1086 case $ac_user_opts in
1088 "with_$ac_useropt"
1089 "*) ;;
1090 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1091 ac_unrecognized_sep=', ';;
1092 esac
1093 eval with_$ac_useropt=no ;;
1095 --x)
1096 # Obsolete; use --with-x.
1097 with_x=yes ;;
1099 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1100 | --x-incl | --x-inc | --x-in | --x-i)
1101 ac_prev=x_includes ;;
1102 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1103 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1104 x_includes=$ac_optarg ;;
1106 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1107 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1108 ac_prev=x_libraries ;;
1109 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1110 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1111 x_libraries=$ac_optarg ;;
1113 -*) as_fn_error "unrecognized option: \`$ac_option'
1114 Try \`$0 --help' for more information."
1117 *=*)
1118 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1119 # Reject names that are not valid shell variable names.
1120 case $ac_envvar in #(
1121 '' | [0-9]* | *[!_$as_cr_alnum]* )
1122 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1123 esac
1124 eval $ac_envvar=\$ac_optarg
1125 export $ac_envvar ;;
1128 # FIXME: should be removed in autoconf 3.0.
1129 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1130 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1131 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1132 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1135 esac
1136 done
1138 if test -n "$ac_prev"; then
1139 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1140 as_fn_error "missing argument to $ac_option"
1143 if test -n "$ac_unrecognized_opts"; then
1144 case $enable_option_checking in
1145 no) ;;
1146 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1147 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1148 esac
1151 # Check all directory arguments for consistency.
1152 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1153 datadir sysconfdir sharedstatedir localstatedir includedir \
1154 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1155 libdir localedir mandir
1157 eval ac_val=\$$ac_var
1158 # Remove trailing slashes.
1159 case $ac_val in
1160 */ )
1161 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1162 eval $ac_var=\$ac_val;;
1163 esac
1164 # Be sure to have absolute directory names.
1165 case $ac_val in
1166 [\\/$]* | ?:[\\/]* ) continue;;
1167 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1168 esac
1169 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1170 done
1172 # There might be people who depend on the old broken behavior: `$host'
1173 # used to hold the argument of --host etc.
1174 # FIXME: To remove some day.
1175 build=$build_alias
1176 host=$host_alias
1177 target=$target_alias
1179 # FIXME: To remove some day.
1180 if test "x$host_alias" != x; then
1181 if test "x$build_alias" = x; then
1182 cross_compiling=maybe
1183 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1184 If a cross compiler is detected then cross compile mode will be used." >&2
1185 elif test "x$build_alias" != "x$host_alias"; then
1186 cross_compiling=yes
1190 ac_tool_prefix=
1191 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1193 test "$silent" = yes && exec 6>/dev/null
1196 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1197 ac_ls_di=`ls -di .` &&
1198 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1199 as_fn_error "working directory cannot be determined"
1200 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1201 as_fn_error "pwd does not report name of working directory"
1204 # Find the source files, if location was not specified.
1205 if test -z "$srcdir"; then
1206 ac_srcdir_defaulted=yes
1207 # Try the directory containing this script, then the parent directory.
1208 ac_confdir=`$as_dirname -- "$as_myself" ||
1209 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1210 X"$as_myself" : 'X\(//\)[^/]' \| \
1211 X"$as_myself" : 'X\(//\)$' \| \
1212 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1213 $as_echo X"$as_myself" |
1214 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1215 s//\1/
1218 /^X\(\/\/\)[^/].*/{
1219 s//\1/
1222 /^X\(\/\/\)$/{
1223 s//\1/
1226 /^X\(\/\).*/{
1227 s//\1/
1230 s/.*/./; q'`
1231 srcdir=$ac_confdir
1232 if test ! -r "$srcdir/$ac_unique_file"; then
1233 srcdir=..
1235 else
1236 ac_srcdir_defaulted=no
1238 if test ! -r "$srcdir/$ac_unique_file"; then
1239 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1240 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1242 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1243 ac_abs_confdir=`(
1244 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1245 pwd)`
1246 # When building in place, set srcdir=.
1247 if test "$ac_abs_confdir" = "$ac_pwd"; then
1248 srcdir=.
1250 # Remove unnecessary trailing slashes from srcdir.
1251 # Double slashes in file names in object file debugging info
1252 # mess up M-x gdb in Emacs.
1253 case $srcdir in
1254 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1255 esac
1256 for ac_var in $ac_precious_vars; do
1257 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1258 eval ac_env_${ac_var}_value=\$${ac_var}
1259 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1260 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1261 done
1264 # Report the --help message.
1266 if test "$ac_init_help" = "long"; then
1267 # Omit some internal or obsolete options to make the list less imposing.
1268 # This message is too long to be a string in the A/UX 3.1 sh.
1269 cat <<_ACEOF
1270 \`configure' configures this package to adapt to many kinds of systems.
1272 Usage: $0 [OPTION]... [VAR=VALUE]...
1274 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1275 VAR=VALUE. See below for descriptions of some of the useful variables.
1277 Defaults for the options are specified in brackets.
1279 Configuration:
1280 -h, --help display this help and exit
1281 --help=short display options specific to this package
1282 --help=recursive display the short help of all the included packages
1283 -V, --version display version information and exit
1284 -q, --quiet, --silent do not print \`checking...' messages
1285 --cache-file=FILE cache test results in FILE [disabled]
1286 -C, --config-cache alias for \`--cache-file=config.cache'
1287 -n, --no-create do not create output files
1288 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1290 Installation directories:
1291 --prefix=PREFIX install architecture-independent files in PREFIX
1292 [$ac_default_prefix]
1293 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1294 [PREFIX]
1296 By default, \`make install' will install all the files in
1297 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1298 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1299 for instance \`--prefix=\$HOME'.
1301 For better control, use the options below.
1303 Fine tuning of the installation directories:
1304 --bindir=DIR user executables [EPREFIX/bin]
1305 --sbindir=DIR system admin executables [EPREFIX/sbin]
1306 --libexecdir=DIR program executables [EPREFIX/libexec]
1307 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1308 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1309 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1310 --libdir=DIR object code libraries [EPREFIX/lib]
1311 --includedir=DIR C header files [PREFIX/include]
1312 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1313 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1314 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1315 --infodir=DIR info documentation [DATAROOTDIR/info]
1316 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1317 --mandir=DIR man documentation [DATAROOTDIR/man]
1318 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1319 --htmldir=DIR html documentation [DOCDIR]
1320 --dvidir=DIR dvi documentation [DOCDIR]
1321 --pdfdir=DIR pdf documentation [DOCDIR]
1322 --psdir=DIR ps documentation [DOCDIR]
1323 _ACEOF
1325 cat <<\_ACEOF
1327 Program names:
1328 --program-prefix=PREFIX prepend PREFIX to installed program names
1329 --program-suffix=SUFFIX append SUFFIX to installed program names
1330 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1332 System types:
1333 --build=BUILD configure for building on BUILD [guessed]
1334 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1335 --target=TARGET configure for building compilers for TARGET [HOST]
1336 _ACEOF
1339 if test -n "$ac_init_help"; then
1341 cat <<\_ACEOF
1343 Optional Features:
1344 --disable-option-checking ignore unrecognized --enable/--with options
1345 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1346 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1347 --enable-checkmem turn on ccmalloc debugging
1348 --enable-debug turn on debugging
1349 --enable-profiling turn on profiling
1350 --enable-warnings turn on compiler warnings
1351 --enable-optimizations turn on compiler optimizations (recommended for avi2swf)
1352 --enable-poppler link againist libpoppler
1353 --disable-lame "don't compile any L.A.M.E. mp3 encoding code in"
1355 Some influential environment variables:
1356 CC C compiler command
1357 CFLAGS C compiler flags
1358 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1359 nonstandard directory <lib dir>
1360 LIBS libraries to pass to the linker, e.g. -l<library>
1361 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1362 you have headers in a nonstandard directory <include dir>
1363 CXX C++ compiler command
1364 CXXFLAGS C++ compiler flags
1365 CPP C preprocessor
1366 CXXCPP C++ preprocessor
1368 Use these variables to override the choices made by `configure' or to help
1369 it to find libraries and programs with nonstandard names/locations.
1371 Report bugs to the package provider.
1372 _ACEOF
1373 ac_status=$?
1376 if test "$ac_init_help" = "recursive"; then
1377 # If there are subdirs, report their specific --help.
1378 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1379 test -d "$ac_dir" ||
1380 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1381 continue
1382 ac_builddir=.
1384 case "$ac_dir" in
1385 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1387 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1388 # A ".." for each directory in $ac_dir_suffix.
1389 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1390 case $ac_top_builddir_sub in
1391 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1392 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1393 esac ;;
1394 esac
1395 ac_abs_top_builddir=$ac_pwd
1396 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1397 # for backward compatibility:
1398 ac_top_builddir=$ac_top_build_prefix
1400 case $srcdir in
1401 .) # We are building in place.
1402 ac_srcdir=.
1403 ac_top_srcdir=$ac_top_builddir_sub
1404 ac_abs_top_srcdir=$ac_pwd ;;
1405 [\\/]* | ?:[\\/]* ) # Absolute name.
1406 ac_srcdir=$srcdir$ac_dir_suffix;
1407 ac_top_srcdir=$srcdir
1408 ac_abs_top_srcdir=$srcdir ;;
1409 *) # Relative name.
1410 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1411 ac_top_srcdir=$ac_top_build_prefix$srcdir
1412 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1413 esac
1414 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1416 cd "$ac_dir" || { ac_status=$?; continue; }
1417 # Check for guested configure.
1418 if test -f "$ac_srcdir/configure.gnu"; then
1419 echo &&
1420 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1421 elif test -f "$ac_srcdir/configure"; then
1422 echo &&
1423 $SHELL "$ac_srcdir/configure" --help=recursive
1424 else
1425 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1426 fi || ac_status=$?
1427 cd "$ac_pwd" || { ac_status=$?; break; }
1428 done
1431 test -n "$ac_init_help" && exit $ac_status
1432 if $ac_init_version; then
1433 cat <<\_ACEOF
1434 configure
1435 generated by GNU Autoconf 2.65
1437 Copyright (C) 2009 Free Software Foundation, Inc.
1438 This configure script is free software; the Free Software Foundation
1439 gives unlimited permission to copy, distribute and modify it.
1440 _ACEOF
1441 exit
1444 ## ------------------------ ##
1445 ## Autoconf initialization. ##
1446 ## ------------------------ ##
1448 # ac_fn_c_try_compile LINENO
1449 # --------------------------
1450 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1451 ac_fn_c_try_compile ()
1453 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1454 rm -f conftest.$ac_objext
1455 if { { ac_try="$ac_compile"
1456 case "(($ac_try" in
1457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1458 *) ac_try_echo=$ac_try;;
1459 esac
1460 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1461 $as_echo "$ac_try_echo"; } >&5
1462 (eval "$ac_compile") 2>conftest.err
1463 ac_status=$?
1464 if test -s conftest.err; then
1465 grep -v '^ *+' conftest.err >conftest.er1
1466 cat conftest.er1 >&5
1467 mv -f conftest.er1 conftest.err
1469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1470 test $ac_status = 0; } && {
1471 test -z "$ac_c_werror_flag" ||
1472 test ! -s conftest.err
1473 } && test -s conftest.$ac_objext; then :
1474 ac_retval=0
1475 else
1476 $as_echo "$as_me: failed program was:" >&5
1477 sed 's/^/| /' conftest.$ac_ext >&5
1479 ac_retval=1
1481 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1482 as_fn_set_status $ac_retval
1484 } # ac_fn_c_try_compile
1486 # ac_fn_cxx_try_compile LINENO
1487 # ----------------------------
1488 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1489 ac_fn_cxx_try_compile ()
1491 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1492 rm -f conftest.$ac_objext
1493 if { { ac_try="$ac_compile"
1494 case "(($ac_try" in
1495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1496 *) ac_try_echo=$ac_try;;
1497 esac
1498 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1499 $as_echo "$ac_try_echo"; } >&5
1500 (eval "$ac_compile") 2>conftest.err
1501 ac_status=$?
1502 if test -s conftest.err; then
1503 grep -v '^ *+' conftest.err >conftest.er1
1504 cat conftest.er1 >&5
1505 mv -f conftest.er1 conftest.err
1507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1508 test $ac_status = 0; } && {
1509 test -z "$ac_cxx_werror_flag" ||
1510 test ! -s conftest.err
1511 } && test -s conftest.$ac_objext; then :
1512 ac_retval=0
1513 else
1514 $as_echo "$as_me: failed program was:" >&5
1515 sed 's/^/| /' conftest.$ac_ext >&5
1517 ac_retval=1
1519 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1520 as_fn_set_status $ac_retval
1522 } # ac_fn_cxx_try_compile
1524 # ac_fn_c_try_cpp LINENO
1525 # ----------------------
1526 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1527 ac_fn_c_try_cpp ()
1529 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1530 if { { ac_try="$ac_cpp conftest.$ac_ext"
1531 case "(($ac_try" in
1532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1533 *) ac_try_echo=$ac_try;;
1534 esac
1535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1536 $as_echo "$ac_try_echo"; } >&5
1537 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1538 ac_status=$?
1539 if test -s conftest.err; then
1540 grep -v '^ *+' conftest.err >conftest.er1
1541 cat conftest.er1 >&5
1542 mv -f conftest.er1 conftest.err
1544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1545 test $ac_status = 0; } >/dev/null && {
1546 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1547 test ! -s conftest.err
1548 }; then :
1549 ac_retval=0
1550 else
1551 $as_echo "$as_me: failed program was:" >&5
1552 sed 's/^/| /' conftest.$ac_ext >&5
1554 ac_retval=1
1556 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1557 as_fn_set_status $ac_retval
1559 } # ac_fn_c_try_cpp
1561 # ac_fn_c_try_link LINENO
1562 # -----------------------
1563 # Try to link conftest.$ac_ext, and return whether this succeeded.
1564 ac_fn_c_try_link ()
1566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1567 rm -f conftest.$ac_objext conftest$ac_exeext
1568 if { { ac_try="$ac_link"
1569 case "(($ac_try" in
1570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1571 *) ac_try_echo=$ac_try;;
1572 esac
1573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1574 $as_echo "$ac_try_echo"; } >&5
1575 (eval "$ac_link") 2>conftest.err
1576 ac_status=$?
1577 if test -s conftest.err; then
1578 grep -v '^ *+' conftest.err >conftest.er1
1579 cat conftest.er1 >&5
1580 mv -f conftest.er1 conftest.err
1582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1583 test $ac_status = 0; } && {
1584 test -z "$ac_c_werror_flag" ||
1585 test ! -s conftest.err
1586 } && test -s conftest$ac_exeext && {
1587 test "$cross_compiling" = yes ||
1588 $as_test_x conftest$ac_exeext
1589 }; then :
1590 ac_retval=0
1591 else
1592 $as_echo "$as_me: failed program was:" >&5
1593 sed 's/^/| /' conftest.$ac_ext >&5
1595 ac_retval=1
1597 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1598 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1599 # interfere with the next link command; also delete a directory that is
1600 # left behind by Apple's compiler. We do this before executing the actions.
1601 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1602 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1603 as_fn_set_status $ac_retval
1605 } # ac_fn_c_try_link
1607 # ac_fn_c_try_run LINENO
1608 # ----------------------
1609 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1610 # that executables *can* be run.
1611 ac_fn_c_try_run ()
1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614 if { { ac_try="$ac_link"
1615 case "(($ac_try" in
1616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1617 *) ac_try_echo=$ac_try;;
1618 esac
1619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1620 $as_echo "$ac_try_echo"; } >&5
1621 (eval "$ac_link") 2>&5
1622 ac_status=$?
1623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1624 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1625 { { case "(($ac_try" in
1626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1627 *) ac_try_echo=$ac_try;;
1628 esac
1629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1630 $as_echo "$ac_try_echo"; } >&5
1631 (eval "$ac_try") 2>&5
1632 ac_status=$?
1633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1634 test $ac_status = 0; }; }; then :
1635 ac_retval=0
1636 else
1637 $as_echo "$as_me: program exited with status $ac_status" >&5
1638 $as_echo "$as_me: failed program was:" >&5
1639 sed 's/^/| /' conftest.$ac_ext >&5
1641 ac_retval=$ac_status
1643 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1644 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1645 as_fn_set_status $ac_retval
1647 } # ac_fn_c_try_run
1649 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1650 # -------------------------------------------------------
1651 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1652 # the include files in INCLUDES and setting the cache variable VAR
1653 # accordingly.
1654 ac_fn_c_check_header_mongrel ()
1656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1659 $as_echo_n "checking for $2... " >&6; }
1660 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1661 $as_echo_n "(cached) " >&6
1663 eval ac_res=\$$3
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1665 $as_echo "$ac_res" >&6; }
1666 else
1667 # Is the header compilable?
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1669 $as_echo_n "checking $2 usability... " >&6; }
1670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1671 /* end confdefs.h. */
1673 #include <$2>
1674 _ACEOF
1675 if ac_fn_c_try_compile "$LINENO"; then :
1676 ac_header_compiler=yes
1677 else
1678 ac_header_compiler=no
1680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1682 $as_echo "$ac_header_compiler" >&6; }
1684 # Is the header present?
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1686 $as_echo_n "checking $2 presence... " >&6; }
1687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1688 /* end confdefs.h. */
1689 #include <$2>
1690 _ACEOF
1691 if ac_fn_c_try_cpp "$LINENO"; then :
1692 ac_header_preproc=yes
1693 else
1694 ac_header_preproc=no
1696 rm -f conftest.err conftest.$ac_ext
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1698 $as_echo "$ac_header_preproc" >&6; }
1700 # So? What about this header?
1701 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1702 yes:no: )
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1704 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1706 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1708 no:yes:* )
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1710 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1712 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1714 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1716 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1718 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1720 esac
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1722 $as_echo_n "checking for $2... " >&6; }
1723 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1724 $as_echo_n "(cached) " >&6
1725 else
1726 eval "$3=\$ac_header_compiler"
1728 eval ac_res=\$$3
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1730 $as_echo "$ac_res" >&6; }
1732 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1734 } # ac_fn_c_check_header_mongrel
1736 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1737 # -------------------------------------------------------
1738 # Tests whether HEADER exists and can be compiled using the include files in
1739 # INCLUDES, setting the cache variable VAR accordingly.
1740 ac_fn_c_check_header_compile ()
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1744 $as_echo_n "checking for $2... " >&6; }
1745 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1746 $as_echo_n "(cached) " >&6
1747 else
1748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749 /* end confdefs.h. */
1751 #include <$2>
1752 _ACEOF
1753 if ac_fn_c_try_compile "$LINENO"; then :
1754 eval "$3=yes"
1755 else
1756 eval "$3=no"
1758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1760 eval ac_res=\$$3
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1762 $as_echo "$ac_res" >&6; }
1763 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1765 } # ac_fn_c_check_header_compile
1767 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1768 # -------------------------------------------
1769 # Tests whether TYPE exists after having included INCLUDES, setting cache
1770 # variable VAR accordingly.
1771 ac_fn_c_check_type ()
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1775 $as_echo_n "checking for $2... " >&6; }
1776 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1777 $as_echo_n "(cached) " >&6
1778 else
1779 eval "$3=no"
1780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1781 /* end confdefs.h. */
1784 main ()
1786 if (sizeof ($2))
1787 return 0;
1789 return 0;
1791 _ACEOF
1792 if ac_fn_c_try_compile "$LINENO"; then :
1793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1794 /* end confdefs.h. */
1797 main ()
1799 if (sizeof (($2)))
1800 return 0;
1802 return 0;
1804 _ACEOF
1805 if ac_fn_c_try_compile "$LINENO"; then :
1807 else
1808 eval "$3=yes"
1810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1814 eval ac_res=\$$3
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1816 $as_echo "$ac_res" >&6; }
1817 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1819 } # ac_fn_c_check_type
1821 # ac_fn_c_check_func LINENO FUNC VAR
1822 # ----------------------------------
1823 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1824 ac_fn_c_check_func ()
1826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1828 $as_echo_n "checking for $2... " >&6; }
1829 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1830 $as_echo_n "(cached) " >&6
1831 else
1832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1833 /* end confdefs.h. */
1834 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1836 #define $2 innocuous_$2
1838 /* System header to define __stub macros and hopefully few prototypes,
1839 which can conflict with char $2 (); below.
1840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1841 <limits.h> exists even on freestanding compilers. */
1843 #ifdef __STDC__
1844 # include <limits.h>
1845 #else
1846 # include <assert.h>
1847 #endif
1849 #undef $2
1851 /* Override any GCC internal prototype to avoid an error.
1852 Use char because int might match the return type of a GCC
1853 builtin and then its argument prototype would still apply. */
1854 #ifdef __cplusplus
1855 extern "C"
1856 #endif
1857 char $2 ();
1858 /* The GNU C library defines this for functions which it implements
1859 to always fail with ENOSYS. Some functions are actually named
1860 something starting with __ and the normal name is an alias. */
1861 #if defined __stub_$2 || defined __stub___$2
1862 choke me
1863 #endif
1866 main ()
1868 return $2 ();
1870 return 0;
1872 _ACEOF
1873 if ac_fn_c_try_link "$LINENO"; then :
1874 eval "$3=yes"
1875 else
1876 eval "$3=no"
1878 rm -f core conftest.err conftest.$ac_objext \
1879 conftest$ac_exeext conftest.$ac_ext
1881 eval ac_res=\$$3
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1883 $as_echo "$ac_res" >&6; }
1884 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1886 } # ac_fn_c_check_func
1888 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1889 # --------------------------------------------
1890 # Tries to find the compile-time value of EXPR in a program that includes
1891 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1892 # computed
1893 ac_fn_c_compute_int ()
1895 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1896 if test "$cross_compiling" = yes; then
1897 # Depending upon the size, compute the lo and hi bounds.
1898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1899 /* end confdefs.h. */
1902 main ()
1904 static int test_array [1 - 2 * !(($2) >= 0)];
1905 test_array [0] = 0
1908 return 0;
1910 _ACEOF
1911 if ac_fn_c_try_compile "$LINENO"; then :
1912 ac_lo=0 ac_mid=0
1913 while :; do
1914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1915 /* end confdefs.h. */
1918 main ()
1920 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1921 test_array [0] = 0
1924 return 0;
1926 _ACEOF
1927 if ac_fn_c_try_compile "$LINENO"; then :
1928 ac_hi=$ac_mid; break
1929 else
1930 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1931 if test $ac_lo -le $ac_mid; then
1932 ac_lo= ac_hi=
1933 break
1935 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1938 done
1939 else
1940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941 /* end confdefs.h. */
1944 main ()
1946 static int test_array [1 - 2 * !(($2) < 0)];
1947 test_array [0] = 0
1950 return 0;
1952 _ACEOF
1953 if ac_fn_c_try_compile "$LINENO"; then :
1954 ac_hi=-1 ac_mid=-1
1955 while :; do
1956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1957 /* end confdefs.h. */
1960 main ()
1962 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1963 test_array [0] = 0
1966 return 0;
1968 _ACEOF
1969 if ac_fn_c_try_compile "$LINENO"; then :
1970 ac_lo=$ac_mid; break
1971 else
1972 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1973 if test $ac_mid -le $ac_hi; then
1974 ac_lo= ac_hi=
1975 break
1977 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1980 done
1981 else
1982 ac_lo= ac_hi=
1984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1987 # Binary search between lo and hi bounds.
1988 while test "x$ac_lo" != "x$ac_hi"; do
1989 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1991 /* end confdefs.h. */
1994 main ()
1996 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1997 test_array [0] = 0
2000 return 0;
2002 _ACEOF
2003 if ac_fn_c_try_compile "$LINENO"; then :
2004 ac_hi=$ac_mid
2005 else
2006 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009 done
2010 case $ac_lo in #((
2011 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2012 '') ac_retval=1 ;;
2013 esac
2014 else
2015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016 /* end confdefs.h. */
2018 static long int longval () { return $2; }
2019 static unsigned long int ulongval () { return $2; }
2020 #include <stdio.h>
2021 #include <stdlib.h>
2023 main ()
2026 FILE *f = fopen ("conftest.val", "w");
2027 if (! f)
2028 return 1;
2029 if (($2) < 0)
2031 long int i = longval ();
2032 if (i != ($2))
2033 return 1;
2034 fprintf (f, "%ld", i);
2036 else
2038 unsigned long int i = ulongval ();
2039 if (i != ($2))
2040 return 1;
2041 fprintf (f, "%lu", i);
2043 /* Do not output a trailing newline, as this causes \r\n confusion
2044 on some platforms. */
2045 return ferror (f) || fclose (f) != 0;
2048 return 0;
2050 _ACEOF
2051 if ac_fn_c_try_run "$LINENO"; then :
2052 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2053 else
2054 ac_retval=1
2056 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2057 conftest.$ac_objext conftest.beam conftest.$ac_ext
2058 rm -f conftest.val
2061 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2062 as_fn_set_status $ac_retval
2064 } # ac_fn_c_compute_int
2066 # ac_fn_cxx_try_cpp LINENO
2067 # ------------------------
2068 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2069 ac_fn_cxx_try_cpp ()
2071 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2072 if { { ac_try="$ac_cpp conftest.$ac_ext"
2073 case "(($ac_try" in
2074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2075 *) ac_try_echo=$ac_try;;
2076 esac
2077 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2078 $as_echo "$ac_try_echo"; } >&5
2079 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2080 ac_status=$?
2081 if test -s conftest.err; then
2082 grep -v '^ *+' conftest.err >conftest.er1
2083 cat conftest.er1 >&5
2084 mv -f conftest.er1 conftest.err
2086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2087 test $ac_status = 0; } >/dev/null && {
2088 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2089 test ! -s conftest.err
2090 }; then :
2091 ac_retval=0
2092 else
2093 $as_echo "$as_me: failed program was:" >&5
2094 sed 's/^/| /' conftest.$ac_ext >&5
2096 ac_retval=1
2098 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2099 as_fn_set_status $ac_retval
2101 } # ac_fn_cxx_try_cpp
2103 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2104 # ---------------------------------------------------------
2105 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2106 # the include files in INCLUDES and setting the cache variable VAR
2107 # accordingly.
2108 ac_fn_cxx_check_header_mongrel ()
2110 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2111 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2113 $as_echo_n "checking for $2... " >&6; }
2114 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2115 $as_echo_n "(cached) " >&6
2117 eval ac_res=\$$3
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2119 $as_echo "$ac_res" >&6; }
2120 else
2121 # Is the header compilable?
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2123 $as_echo_n "checking $2 usability... " >&6; }
2124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2125 /* end confdefs.h. */
2127 #include <$2>
2128 _ACEOF
2129 if ac_fn_cxx_try_compile "$LINENO"; then :
2130 ac_header_compiler=yes
2131 else
2132 ac_header_compiler=no
2134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2136 $as_echo "$ac_header_compiler" >&6; }
2138 # Is the header present?
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2140 $as_echo_n "checking $2 presence... " >&6; }
2141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142 /* end confdefs.h. */
2143 #include <$2>
2144 _ACEOF
2145 if ac_fn_cxx_try_cpp "$LINENO"; then :
2146 ac_header_preproc=yes
2147 else
2148 ac_header_preproc=no
2150 rm -f conftest.err conftest.$ac_ext
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2152 $as_echo "$ac_header_preproc" >&6; }
2154 # So? What about this header?
2155 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2156 yes:no: )
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2158 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2160 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2162 no:yes:* )
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2164 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2166 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2168 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2170 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2172 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2174 esac
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2176 $as_echo_n "checking for $2... " >&6; }
2177 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2178 $as_echo_n "(cached) " >&6
2179 else
2180 eval "$3=\$ac_header_compiler"
2182 eval ac_res=\$$3
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2184 $as_echo "$ac_res" >&6; }
2186 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2188 } # ac_fn_cxx_check_header_mongrel
2190 # ac_fn_cxx_try_link LINENO
2191 # -------------------------
2192 # Try to link conftest.$ac_ext, and return whether this succeeded.
2193 ac_fn_cxx_try_link ()
2195 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2196 rm -f conftest.$ac_objext conftest$ac_exeext
2197 if { { ac_try="$ac_link"
2198 case "(($ac_try" in
2199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2200 *) ac_try_echo=$ac_try;;
2201 esac
2202 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2203 $as_echo "$ac_try_echo"; } >&5
2204 (eval "$ac_link") 2>conftest.err
2205 ac_status=$?
2206 if test -s conftest.err; then
2207 grep -v '^ *+' conftest.err >conftest.er1
2208 cat conftest.er1 >&5
2209 mv -f conftest.er1 conftest.err
2211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2212 test $ac_status = 0; } && {
2213 test -z "$ac_cxx_werror_flag" ||
2214 test ! -s conftest.err
2215 } && test -s conftest$ac_exeext && {
2216 test "$cross_compiling" = yes ||
2217 $as_test_x conftest$ac_exeext
2218 }; then :
2219 ac_retval=0
2220 else
2221 $as_echo "$as_me: failed program was:" >&5
2222 sed 's/^/| /' conftest.$ac_ext >&5
2224 ac_retval=1
2226 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2227 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2228 # interfere with the next link command; also delete a directory that is
2229 # left behind by Apple's compiler. We do this before executing the actions.
2230 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2231 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2232 as_fn_set_status $ac_retval
2234 } # ac_fn_cxx_try_link
2235 cat >config.log <<_ACEOF
2236 This file contains any messages produced by compilers while
2237 running configure, to aid debugging if configure makes a mistake.
2239 It was created by $as_me, which was
2240 generated by GNU Autoconf 2.65. Invocation command line was
2242 $ $0 $@
2244 _ACEOF
2245 exec 5>>config.log
2247 cat <<_ASUNAME
2248 ## --------- ##
2249 ## Platform. ##
2250 ## --------- ##
2252 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2253 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2254 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2255 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2256 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2258 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2259 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2261 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2262 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2263 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2264 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2265 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2266 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2267 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2269 _ASUNAME
2271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2272 for as_dir in $PATH
2274 IFS=$as_save_IFS
2275 test -z "$as_dir" && as_dir=.
2276 $as_echo "PATH: $as_dir"
2277 done
2278 IFS=$as_save_IFS
2280 } >&5
2282 cat >&5 <<_ACEOF
2285 ## ----------- ##
2286 ## Core tests. ##
2287 ## ----------- ##
2289 _ACEOF
2292 # Keep a trace of the command line.
2293 # Strip out --no-create and --no-recursion so they do not pile up.
2294 # Strip out --silent because we don't want to record it for future runs.
2295 # Also quote any args containing shell meta-characters.
2296 # Make two passes to allow for proper duplicate-argument suppression.
2297 ac_configure_args=
2298 ac_configure_args0=
2299 ac_configure_args1=
2300 ac_must_keep_next=false
2301 for ac_pass in 1 2
2303 for ac_arg
2305 case $ac_arg in
2306 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2307 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2308 | -silent | --silent | --silen | --sile | --sil)
2309 continue ;;
2310 *\'*)
2311 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2312 esac
2313 case $ac_pass in
2314 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2316 as_fn_append ac_configure_args1 " '$ac_arg'"
2317 if test $ac_must_keep_next = true; then
2318 ac_must_keep_next=false # Got value, back to normal.
2319 else
2320 case $ac_arg in
2321 *=* | --config-cache | -C | -disable-* | --disable-* \
2322 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2323 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2324 | -with-* | --with-* | -without-* | --without-* | --x)
2325 case "$ac_configure_args0 " in
2326 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2327 esac
2329 -* ) ac_must_keep_next=true ;;
2330 esac
2332 as_fn_append ac_configure_args " '$ac_arg'"
2334 esac
2335 done
2336 done
2337 { ac_configure_args0=; unset ac_configure_args0;}
2338 { ac_configure_args1=; unset ac_configure_args1;}
2340 # When interrupted or exit'd, cleanup temporary files, and complete
2341 # config.log. We remove comments because anyway the quotes in there
2342 # would cause problems or look ugly.
2343 # WARNING: Use '\'' to represent an apostrophe within the trap.
2344 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2345 trap 'exit_status=$?
2346 # Save into config.log some information that might help in debugging.
2348 echo
2350 cat <<\_ASBOX
2351 ## ---------------- ##
2352 ## Cache variables. ##
2353 ## ---------------- ##
2354 _ASBOX
2355 echo
2356 # The following way of writing the cache mishandles newlines in values,
2358 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2359 eval ac_val=\$$ac_var
2360 case $ac_val in #(
2361 *${as_nl}*)
2362 case $ac_var in #(
2363 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2364 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2365 esac
2366 case $ac_var in #(
2367 _ | IFS | as_nl) ;; #(
2368 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2369 *) { eval $ac_var=; unset $ac_var;} ;;
2370 esac ;;
2371 esac
2372 done
2373 (set) 2>&1 |
2374 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2375 *${as_nl}ac_space=\ *)
2376 sed -n \
2377 "s/'\''/'\''\\\\'\'''\''/g;
2378 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2379 ;; #(
2381 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2383 esac |
2384 sort
2386 echo
2388 cat <<\_ASBOX
2389 ## ----------------- ##
2390 ## Output variables. ##
2391 ## ----------------- ##
2392 _ASBOX
2393 echo
2394 for ac_var in $ac_subst_vars
2396 eval ac_val=\$$ac_var
2397 case $ac_val in
2398 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2399 esac
2400 $as_echo "$ac_var='\''$ac_val'\''"
2401 done | sort
2402 echo
2404 if test -n "$ac_subst_files"; then
2405 cat <<\_ASBOX
2406 ## ------------------- ##
2407 ## File substitutions. ##
2408 ## ------------------- ##
2409 _ASBOX
2410 echo
2411 for ac_var in $ac_subst_files
2413 eval ac_val=\$$ac_var
2414 case $ac_val in
2415 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2416 esac
2417 $as_echo "$ac_var='\''$ac_val'\''"
2418 done | sort
2419 echo
2422 if test -s confdefs.h; then
2423 cat <<\_ASBOX
2424 ## ----------- ##
2425 ## confdefs.h. ##
2426 ## ----------- ##
2427 _ASBOX
2428 echo
2429 cat confdefs.h
2430 echo
2432 test "$ac_signal" != 0 &&
2433 $as_echo "$as_me: caught signal $ac_signal"
2434 $as_echo "$as_me: exit $exit_status"
2435 } >&5
2436 rm -f core *.core core.conftest.* &&
2437 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2438 exit $exit_status
2440 for ac_signal in 1 2 13 15; do
2441 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2442 done
2443 ac_signal=0
2445 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2446 rm -f -r conftest* confdefs.h
2448 $as_echo "/* confdefs.h */" > confdefs.h
2450 # Predefined preprocessor variables.
2452 cat >>confdefs.h <<_ACEOF
2453 #define PACKAGE_NAME "$PACKAGE_NAME"
2454 _ACEOF
2456 cat >>confdefs.h <<_ACEOF
2457 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2458 _ACEOF
2460 cat >>confdefs.h <<_ACEOF
2461 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2462 _ACEOF
2464 cat >>confdefs.h <<_ACEOF
2465 #define PACKAGE_STRING "$PACKAGE_STRING"
2466 _ACEOF
2468 cat >>confdefs.h <<_ACEOF
2469 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2470 _ACEOF
2472 cat >>confdefs.h <<_ACEOF
2473 #define PACKAGE_URL "$PACKAGE_URL"
2474 _ACEOF
2477 # Let the site file select an alternate cache file if it wants to.
2478 # Prefer an explicitly selected file to automatically selected ones.
2479 ac_site_file1=NONE
2480 ac_site_file2=NONE
2481 if test -n "$CONFIG_SITE"; then
2482 ac_site_file1=$CONFIG_SITE
2483 elif test "x$prefix" != xNONE; then
2484 ac_site_file1=$prefix/share/config.site
2485 ac_site_file2=$prefix/etc/config.site
2486 else
2487 ac_site_file1=$ac_default_prefix/share/config.site
2488 ac_site_file2=$ac_default_prefix/etc/config.site
2490 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2492 test "x$ac_site_file" = xNONE && continue
2493 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2495 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2496 sed 's/^/| /' "$ac_site_file" >&5
2497 . "$ac_site_file"
2499 done
2501 if test -r "$cache_file"; then
2502 # Some versions of bash will fail to source /dev/null (special files
2503 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2504 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2506 $as_echo "$as_me: loading cache $cache_file" >&6;}
2507 case $cache_file in
2508 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2509 *) . "./$cache_file";;
2510 esac
2512 else
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2514 $as_echo "$as_me: creating cache $cache_file" >&6;}
2515 >$cache_file
2518 # Check that the precious variables saved in the cache have kept the same
2519 # value.
2520 ac_cache_corrupted=false
2521 for ac_var in $ac_precious_vars; do
2522 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2523 eval ac_new_set=\$ac_env_${ac_var}_set
2524 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2525 eval ac_new_val=\$ac_env_${ac_var}_value
2526 case $ac_old_set,$ac_new_set in
2527 set,)
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2529 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2530 ac_cache_corrupted=: ;;
2531 ,set)
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2533 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2534 ac_cache_corrupted=: ;;
2535 ,);;
2537 if test "x$ac_old_val" != "x$ac_new_val"; then
2538 # differences in whitespace do not lead to failure.
2539 ac_old_val_w=`echo x $ac_old_val`
2540 ac_new_val_w=`echo x $ac_new_val`
2541 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2543 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2544 ac_cache_corrupted=:
2545 else
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2547 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2548 eval $ac_var=\$ac_old_val
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2551 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2553 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2554 fi;;
2555 esac
2556 # Pass precious variables to config.status.
2557 if test "$ac_new_set" = set; then
2558 case $ac_new_val in
2559 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2560 *) ac_arg=$ac_var=$ac_new_val ;;
2561 esac
2562 case " $ac_configure_args " in
2563 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2564 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2565 esac
2567 done
2568 if $ac_cache_corrupted; then
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2570 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2572 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2573 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2575 ## -------------------- ##
2576 ## Main body of script. ##
2577 ## -------------------- ##
2579 ac_ext=c
2580 ac_cpp='$CPP $CPPFLAGS'
2581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2588 # ------------------- option parsing -------------------------------
2590 DEBUG=
2591 CHECKMEM=
2592 PROFILING=
2593 ENABLE_WARNINGS=
2594 OPTIMIZE=
2595 USE_POPPLER=
2596 DISABLE_LAME=
2598 # Check whether --enable-checkmem was given.
2599 if test "${enable_checkmem+set}" = set; then :
2600 enableval=$enable_checkmem; CHECKMEM=true
2603 # Check whether --enable-debug was given.
2604 if test "${enable_debug+set}" = set; then :
2605 enableval=$enable_debug; DEBUG=true
2608 # Check whether --enable-profiling was given.
2609 if test "${enable_profiling+set}" = set; then :
2610 enableval=$enable_profiling; PROFILING=true
2613 # Check whether --enable-warnings was given.
2614 if test "${enable_warnings+set}" = set; then :
2615 enableval=$enable_warnings; ENABLE_WARNINGS=true
2618 # Check whether --enable-optimizations was given.
2619 if test "${enable_optimizations+set}" = set; then :
2620 enableval=$enable_optimizations; OPTIMIZE=true
2623 # Check whether --enable-poppler was given.
2624 if test "${enable_poppler+set}" = set; then :
2625 enableval=$enable_poppler; USE_POPPLER=true
2628 # Check whether --enable-lame was given.
2629 if test "${enable_lame+set}" = set; then :
2630 enableval=$enable_lame; if test "x$enable_lame" = "xno";then
2631 DISABLE_LAME=yes
2633 else
2634 DISABLE_LAME=
2638 PACKAGE=swftools
2639 VERSION=0.9.2
2641 # ------------------------------------------------------------------
2643 if test "x${srcdir}" != "x."; then
2644 echo "--srcdir is not supported"
2645 exit 1
2648 WARNINGS="-Wimplicit -Wreturn-type -Wno-write-strings -Wformat"
2649 if test "x$ENABLE_WARNINGS" '!=' "x";then
2650 WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls -Wno-write-strings -D_FORTIFY_SOURCE=2 "
2653 if test "x$CHECKMEM" '!=' "x";then
2654 DEBUG=yes
2656 if test "x$PROFILING" '!=' "x";then
2657 DEBUG=yes
2659 if test "x$DEBUG" '!=' "x";then
2660 if test "x$PROFILING" = "x";then
2661 CFLAGS="$WARNINGS -O2 -g $CFLAGS"
2662 CXXFLAGS="$WARNINGS -O2 -g $CXXFLAGS"
2663 LDFLAGS="-g $LDFLAGS"
2664 else
2665 CFLAGS="$WARNINGS -O2 -g -pg $CFLAGS"
2666 CXXFLAGS="$WARNINGS -O2 -g -pg $CXXFLAGS"
2667 LDFLAGS="-g -pg $LDFLAGS"
2669 else if test "x$OPTIMIZE" '!=' "x"; then
2670 CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
2671 CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
2672 else
2673 CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
2674 CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
2678 CFLAGS="-fPIC $CFLAGS"
2679 CXXFLAGS="-fPIC $CFLAGS"
2681 #OLDGCC=1
2682 #if test "x$OLDGCC" '!=' "x";then
2683 # #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
2684 # #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
2685 # CFLAGS="$CFLAGS -ansi -pendantic"
2686 # CXXFLAGS="$CXXFLAGS -ansi -pendantic"
2689 export PACKAGE VERSION CFLAGS CXXFLAGS
2692 ac_aux_dir=
2693 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2694 for ac_t in install-sh install.sh shtool; do
2695 if test -f "$ac_dir/$ac_t"; then
2696 ac_aux_dir=$ac_dir
2697 ac_install_sh="$ac_aux_dir/$ac_t -c"
2698 break 2
2700 done
2701 done
2702 if test -z "$ac_aux_dir"; then
2703 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2706 # These three variables are undocumented and unsupported,
2707 # and are intended to be withdrawn in a future Autoconf release.
2708 # They can cause serious problems if a builder's source tree is in a directory
2709 # whose full name contains unusual characters.
2710 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2711 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2712 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2715 # Make sure we can run config.sub.
2716 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2717 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2720 $as_echo_n "checking build system type... " >&6; }
2721 if test "${ac_cv_build+set}" = set; then :
2722 $as_echo_n "(cached) " >&6
2723 else
2724 ac_build_alias=$build_alias
2725 test "x$ac_build_alias" = x &&
2726 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2727 test "x$ac_build_alias" = x &&
2728 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2729 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2730 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2734 $as_echo "$ac_cv_build" >&6; }
2735 case $ac_cv_build in
2736 *-*-*) ;;
2737 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2738 esac
2739 build=$ac_cv_build
2740 ac_save_IFS=$IFS; IFS='-'
2741 set x $ac_cv_build
2742 shift
2743 build_cpu=$1
2744 build_vendor=$2
2745 shift; shift
2746 # Remember, the first character of IFS is used to create $*,
2747 # except with old shells:
2748 build_os=$*
2749 IFS=$ac_save_IFS
2750 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2754 $as_echo_n "checking host system type... " >&6; }
2755 if test "${ac_cv_host+set}" = set; then :
2756 $as_echo_n "(cached) " >&6
2757 else
2758 if test "x$host_alias" = x; then
2759 ac_cv_host=$ac_cv_build
2760 else
2761 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2762 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2767 $as_echo "$ac_cv_host" >&6; }
2768 case $ac_cv_host in
2769 *-*-*) ;;
2770 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2771 esac
2772 host=$ac_cv_host
2773 ac_save_IFS=$IFS; IFS='-'
2774 set x $ac_cv_host
2775 shift
2776 host_cpu=$1
2777 host_vendor=$2
2778 shift; shift
2779 # Remember, the first character of IFS is used to create $*,
2780 # except with old shells:
2781 host_os=$*
2782 IFS=$ac_save_IFS
2783 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2787 SLEXT="so"
2788 SHARED="-shared"
2789 MACOSX=
2790 case $host_os in
2791 *darwin* )
2792 MACOSX=yes
2793 CFLAGS="$CFLAGS"
2794 CXXFLAGS="$CXXFLAGS -fno-rtti"
2795 SHARED="-bundle"
2796 SLEXT="bundle"
2797 if test -d /opt/local/include && test -d /opt/local/lib; then
2798 CPPFLAGS="${CPPFLAGS} -I/opt/local/include"
2799 LDFLAGS="${LDFLAGS} -L/opt/local/lib"
2801 # Use fink packages if available.
2802 #if test -d /sw/include && test -d /sw/lib; then
2803 # CPPFLAGS="${CPPFLAGS} -I/sw/include"
2804 # LDFLAGS="${LDFLAGS} -L/sw/lib"
2807 esac
2811 ac_ext=c
2812 ac_cpp='$CPP $CPPFLAGS'
2813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2816 if test -n "$ac_tool_prefix"; then
2817 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2818 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2820 $as_echo_n "checking for $ac_word... " >&6; }
2821 if test "${ac_cv_prog_CC+set}" = set; then :
2822 $as_echo_n "(cached) " >&6
2823 else
2824 if test -n "$CC"; then
2825 ac_cv_prog_CC="$CC" # Let the user override the test.
2826 else
2827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2828 for as_dir in $PATH
2830 IFS=$as_save_IFS
2831 test -z "$as_dir" && as_dir=.
2832 for ac_exec_ext in '' $ac_executable_extensions; do
2833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2834 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2836 break 2
2838 done
2839 done
2840 IFS=$as_save_IFS
2844 CC=$ac_cv_prog_CC
2845 if test -n "$CC"; then
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2847 $as_echo "$CC" >&6; }
2848 else
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2850 $as_echo "no" >&6; }
2855 if test -z "$ac_cv_prog_CC"; then
2856 ac_ct_CC=$CC
2857 # Extract the first word of "gcc", so it can be a program name with args.
2858 set dummy gcc; ac_word=$2
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2860 $as_echo_n "checking for $ac_word... " >&6; }
2861 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2862 $as_echo_n "(cached) " >&6
2863 else
2864 if test -n "$ac_ct_CC"; then
2865 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2866 else
2867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2868 for as_dir in $PATH
2870 IFS=$as_save_IFS
2871 test -z "$as_dir" && as_dir=.
2872 for ac_exec_ext in '' $ac_executable_extensions; do
2873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2874 ac_cv_prog_ac_ct_CC="gcc"
2875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2876 break 2
2878 done
2879 done
2880 IFS=$as_save_IFS
2884 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2885 if test -n "$ac_ct_CC"; then
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2887 $as_echo "$ac_ct_CC" >&6; }
2888 else
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2890 $as_echo "no" >&6; }
2893 if test "x$ac_ct_CC" = x; then
2894 CC=""
2895 else
2896 case $cross_compiling:$ac_tool_warned in
2897 yes:)
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2899 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2900 ac_tool_warned=yes ;;
2901 esac
2902 CC=$ac_ct_CC
2904 else
2905 CC="$ac_cv_prog_CC"
2908 if test -z "$CC"; then
2909 if test -n "$ac_tool_prefix"; then
2910 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2911 set dummy ${ac_tool_prefix}cc; ac_word=$2
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2913 $as_echo_n "checking for $ac_word... " >&6; }
2914 if test "${ac_cv_prog_CC+set}" = set; then :
2915 $as_echo_n "(cached) " >&6
2916 else
2917 if test -n "$CC"; then
2918 ac_cv_prog_CC="$CC" # Let the user override the test.
2919 else
2920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921 for as_dir in $PATH
2923 IFS=$as_save_IFS
2924 test -z "$as_dir" && as_dir=.
2925 for ac_exec_ext in '' $ac_executable_extensions; do
2926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2927 ac_cv_prog_CC="${ac_tool_prefix}cc"
2928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2929 break 2
2931 done
2932 done
2933 IFS=$as_save_IFS
2937 CC=$ac_cv_prog_CC
2938 if test -n "$CC"; then
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2940 $as_echo "$CC" >&6; }
2941 else
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2943 $as_echo "no" >&6; }
2949 if test -z "$CC"; then
2950 # Extract the first word of "cc", so it can be a program name with args.
2951 set dummy cc; ac_word=$2
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2953 $as_echo_n "checking for $ac_word... " >&6; }
2954 if test "${ac_cv_prog_CC+set}" = set; then :
2955 $as_echo_n "(cached) " >&6
2956 else
2957 if test -n "$CC"; then
2958 ac_cv_prog_CC="$CC" # Let the user override the test.
2959 else
2960 ac_prog_rejected=no
2961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2962 for as_dir in $PATH
2964 IFS=$as_save_IFS
2965 test -z "$as_dir" && as_dir=.
2966 for ac_exec_ext in '' $ac_executable_extensions; do
2967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2968 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2969 ac_prog_rejected=yes
2970 continue
2972 ac_cv_prog_CC="cc"
2973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2974 break 2
2976 done
2977 done
2978 IFS=$as_save_IFS
2980 if test $ac_prog_rejected = yes; then
2981 # We found a bogon in the path, so make sure we never use it.
2982 set dummy $ac_cv_prog_CC
2983 shift
2984 if test $# != 0; then
2985 # We chose a different compiler from the bogus one.
2986 # However, it has the same basename, so the bogon will be chosen
2987 # first if we set CC to just the basename; use the full file name.
2988 shift
2989 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2994 CC=$ac_cv_prog_CC
2995 if test -n "$CC"; then
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2997 $as_echo "$CC" >&6; }
2998 else
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000 $as_echo "no" >&6; }
3005 if test -z "$CC"; then
3006 if test -n "$ac_tool_prefix"; then
3007 for ac_prog in cl.exe
3009 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3010 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3012 $as_echo_n "checking for $ac_word... " >&6; }
3013 if test "${ac_cv_prog_CC+set}" = set; then :
3014 $as_echo_n "(cached) " >&6
3015 else
3016 if test -n "$CC"; then
3017 ac_cv_prog_CC="$CC" # Let the user override the test.
3018 else
3019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3020 for as_dir in $PATH
3022 IFS=$as_save_IFS
3023 test -z "$as_dir" && as_dir=.
3024 for ac_exec_ext in '' $ac_executable_extensions; do
3025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3026 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3028 break 2
3030 done
3031 done
3032 IFS=$as_save_IFS
3036 CC=$ac_cv_prog_CC
3037 if test -n "$CC"; then
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3039 $as_echo "$CC" >&6; }
3040 else
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3042 $as_echo "no" >&6; }
3046 test -n "$CC" && break
3047 done
3049 if test -z "$CC"; then
3050 ac_ct_CC=$CC
3051 for ac_prog in cl.exe
3053 # Extract the first word of "$ac_prog", so it can be a program name with args.
3054 set dummy $ac_prog; ac_word=$2
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3056 $as_echo_n "checking for $ac_word... " >&6; }
3057 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3058 $as_echo_n "(cached) " >&6
3059 else
3060 if test -n "$ac_ct_CC"; then
3061 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3062 else
3063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3064 for as_dir in $PATH
3066 IFS=$as_save_IFS
3067 test -z "$as_dir" && as_dir=.
3068 for ac_exec_ext in '' $ac_executable_extensions; do
3069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3070 ac_cv_prog_ac_ct_CC="$ac_prog"
3071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3072 break 2
3074 done
3075 done
3076 IFS=$as_save_IFS
3080 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3081 if test -n "$ac_ct_CC"; then
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3083 $as_echo "$ac_ct_CC" >&6; }
3084 else
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3086 $as_echo "no" >&6; }
3090 test -n "$ac_ct_CC" && break
3091 done
3093 if test "x$ac_ct_CC" = x; then
3094 CC=""
3095 else
3096 case $cross_compiling:$ac_tool_warned in
3097 yes:)
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3099 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3100 ac_tool_warned=yes ;;
3101 esac
3102 CC=$ac_ct_CC
3109 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3110 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3111 as_fn_error "no acceptable C compiler found in \$PATH
3112 See \`config.log' for more details." "$LINENO" 5; }
3114 # Provide some information about the compiler.
3115 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3116 set X $ac_compile
3117 ac_compiler=$2
3118 for ac_option in --version -v -V -qversion; do
3119 { { ac_try="$ac_compiler $ac_option >&5"
3120 case "(($ac_try" in
3121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122 *) ac_try_echo=$ac_try;;
3123 esac
3124 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3125 $as_echo "$ac_try_echo"; } >&5
3126 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3127 ac_status=$?
3128 if test -s conftest.err; then
3129 sed '10a\
3130 ... rest of stderr output deleted ...
3131 10q' conftest.err >conftest.er1
3132 cat conftest.er1 >&5
3134 rm -f conftest.er1 conftest.err
3135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3136 test $ac_status = 0; }
3137 done
3139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3140 /* end confdefs.h. */
3143 main ()
3147 return 0;
3149 _ACEOF
3150 ac_clean_files_save=$ac_clean_files
3151 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3152 # Try to create an executable without -o first, disregard a.out.
3153 # It will help us diagnose broken compilers, and finding out an intuition
3154 # of exeext.
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3156 $as_echo_n "checking whether the C compiler works... " >&6; }
3157 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3159 # The possible output files:
3160 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3162 ac_rmfiles=
3163 for ac_file in $ac_files
3165 case $ac_file in
3166 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3167 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3168 esac
3169 done
3170 rm -f $ac_rmfiles
3172 if { { ac_try="$ac_link_default"
3173 case "(($ac_try" in
3174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175 *) ac_try_echo=$ac_try;;
3176 esac
3177 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3178 $as_echo "$ac_try_echo"; } >&5
3179 (eval "$ac_link_default") 2>&5
3180 ac_status=$?
3181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3182 test $ac_status = 0; }; then :
3183 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3184 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3185 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3186 # so that the user can short-circuit this test for compilers unknown to
3187 # Autoconf.
3188 for ac_file in $ac_files ''
3190 test -f "$ac_file" || continue
3191 case $ac_file in
3192 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3194 [ab].out )
3195 # We found the default executable, but exeext='' is most
3196 # certainly right.
3197 break;;
3198 *.* )
3199 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3200 then :; else
3201 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3203 # We set ac_cv_exeext here because the later test for it is not
3204 # safe: cross compilers may not add the suffix if given an `-o'
3205 # argument, so we may need to know it at that point already.
3206 # Even if this section looks crufty: it has the advantage of
3207 # actually working.
3208 break;;
3210 break;;
3211 esac
3212 done
3213 test "$ac_cv_exeext" = no && ac_cv_exeext=
3215 else
3216 ac_file=''
3218 if test -z "$ac_file"; then :
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3220 $as_echo "no" >&6; }
3221 $as_echo "$as_me: failed program was:" >&5
3222 sed 's/^/| /' conftest.$ac_ext >&5
3224 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3225 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3226 { as_fn_set_status 77
3227 as_fn_error "C compiler cannot create executables
3228 See \`config.log' for more details." "$LINENO" 5; }; }
3229 else
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3231 $as_echo "yes" >&6; }
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3234 $as_echo_n "checking for C compiler default output file name... " >&6; }
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3236 $as_echo "$ac_file" >&6; }
3237 ac_exeext=$ac_cv_exeext
3239 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3240 ac_clean_files=$ac_clean_files_save
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3242 $as_echo_n "checking for suffix of executables... " >&6; }
3243 if { { ac_try="$ac_link"
3244 case "(($ac_try" in
3245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246 *) ac_try_echo=$ac_try;;
3247 esac
3248 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3249 $as_echo "$ac_try_echo"; } >&5
3250 (eval "$ac_link") 2>&5
3251 ac_status=$?
3252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3253 test $ac_status = 0; }; then :
3254 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3255 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3256 # work properly (i.e., refer to `conftest.exe'), while it won't with
3257 # `rm'.
3258 for ac_file in conftest.exe conftest conftest.*; do
3259 test -f "$ac_file" || continue
3260 case $ac_file in
3261 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3262 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3263 break;;
3264 * ) break;;
3265 esac
3266 done
3267 else
3268 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3269 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3270 as_fn_error "cannot compute suffix of executables: cannot compile and link
3271 See \`config.log' for more details." "$LINENO" 5; }
3273 rm -f conftest conftest$ac_cv_exeext
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3275 $as_echo "$ac_cv_exeext" >&6; }
3277 rm -f conftest.$ac_ext
3278 EXEEXT=$ac_cv_exeext
3279 ac_exeext=$EXEEXT
3280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3281 /* end confdefs.h. */
3282 #include <stdio.h>
3284 main ()
3286 FILE *f = fopen ("conftest.out", "w");
3287 return ferror (f) || fclose (f) != 0;
3290 return 0;
3292 _ACEOF
3293 ac_clean_files="$ac_clean_files conftest.out"
3294 # Check that the compiler produces executables we can run. If not, either
3295 # the compiler is broken, or we cross compile.
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3297 $as_echo_n "checking whether we are cross compiling... " >&6; }
3298 if test "$cross_compiling" != yes; then
3299 { { ac_try="$ac_link"
3300 case "(($ac_try" in
3301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3302 *) ac_try_echo=$ac_try;;
3303 esac
3304 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3305 $as_echo "$ac_try_echo"; } >&5
3306 (eval "$ac_link") 2>&5
3307 ac_status=$?
3308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3309 test $ac_status = 0; }
3310 if { ac_try='./conftest$ac_cv_exeext'
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_try") 2>&5
3318 ac_status=$?
3319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3320 test $ac_status = 0; }; }; then
3321 cross_compiling=no
3322 else
3323 if test "$cross_compiling" = maybe; then
3324 cross_compiling=yes
3325 else
3326 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3327 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3328 as_fn_error "cannot run C compiled programs.
3329 If you meant to cross compile, use \`--host'.
3330 See \`config.log' for more details." "$LINENO" 5; }
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3335 $as_echo "$cross_compiling" >&6; }
3337 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3338 ac_clean_files=$ac_clean_files_save
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3340 $as_echo_n "checking for suffix of object files... " >&6; }
3341 if test "${ac_cv_objext+set}" = set; then :
3342 $as_echo_n "(cached) " >&6
3343 else
3344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3345 /* end confdefs.h. */
3348 main ()
3352 return 0;
3354 _ACEOF
3355 rm -f conftest.o conftest.obj
3356 if { { ac_try="$ac_compile"
3357 case "(($ac_try" in
3358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359 *) ac_try_echo=$ac_try;;
3360 esac
3361 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3362 $as_echo "$ac_try_echo"; } >&5
3363 (eval "$ac_compile") 2>&5
3364 ac_status=$?
3365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3366 test $ac_status = 0; }; then :
3367 for ac_file in conftest.o conftest.obj conftest.*; do
3368 test -f "$ac_file" || continue;
3369 case $ac_file in
3370 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3371 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3372 break;;
3373 esac
3374 done
3375 else
3376 $as_echo "$as_me: failed program was:" >&5
3377 sed 's/^/| /' conftest.$ac_ext >&5
3379 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3380 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3381 as_fn_error "cannot compute suffix of object files: cannot compile
3382 See \`config.log' for more details." "$LINENO" 5; }
3384 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3387 $as_echo "$ac_cv_objext" >&6; }
3388 OBJEXT=$ac_cv_objext
3389 ac_objext=$OBJEXT
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3391 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3392 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3393 $as_echo_n "(cached) " >&6
3394 else
3395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3396 /* end confdefs.h. */
3399 main ()
3401 #ifndef __GNUC__
3402 choke me
3403 #endif
3406 return 0;
3408 _ACEOF
3409 if ac_fn_c_try_compile "$LINENO"; then :
3410 ac_compiler_gnu=yes
3411 else
3412 ac_compiler_gnu=no
3414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3415 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3419 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3420 if test $ac_compiler_gnu = yes; then
3421 GCC=yes
3422 else
3423 GCC=
3425 ac_test_CFLAGS=${CFLAGS+set}
3426 ac_save_CFLAGS=$CFLAGS
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3428 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3429 if test "${ac_cv_prog_cc_g+set}" = set; then :
3430 $as_echo_n "(cached) " >&6
3431 else
3432 ac_save_c_werror_flag=$ac_c_werror_flag
3433 ac_c_werror_flag=yes
3434 ac_cv_prog_cc_g=no
3435 CFLAGS="-g"
3436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3437 /* end confdefs.h. */
3440 main ()
3444 return 0;
3446 _ACEOF
3447 if ac_fn_c_try_compile "$LINENO"; then :
3448 ac_cv_prog_cc_g=yes
3449 else
3450 CFLAGS=""
3451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3452 /* end confdefs.h. */
3455 main ()
3459 return 0;
3461 _ACEOF
3462 if ac_fn_c_try_compile "$LINENO"; then :
3464 else
3465 ac_c_werror_flag=$ac_save_c_werror_flag
3466 CFLAGS="-g"
3467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3468 /* end confdefs.h. */
3471 main ()
3475 return 0;
3477 _ACEOF
3478 if ac_fn_c_try_compile "$LINENO"; then :
3479 ac_cv_prog_cc_g=yes
3481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3486 ac_c_werror_flag=$ac_save_c_werror_flag
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3489 $as_echo "$ac_cv_prog_cc_g" >&6; }
3490 if test "$ac_test_CFLAGS" = set; then
3491 CFLAGS=$ac_save_CFLAGS
3492 elif test $ac_cv_prog_cc_g = yes; then
3493 if test "$GCC" = yes; then
3494 CFLAGS="-g -O2"
3495 else
3496 CFLAGS="-g"
3498 else
3499 if test "$GCC" = yes; then
3500 CFLAGS="-O2"
3501 else
3502 CFLAGS=
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3506 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3507 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3508 $as_echo_n "(cached) " >&6
3509 else
3510 ac_cv_prog_cc_c89=no
3511 ac_save_CC=$CC
3512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3513 /* end confdefs.h. */
3514 #include <stdarg.h>
3515 #include <stdio.h>
3516 #include <sys/types.h>
3517 #include <sys/stat.h>
3518 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3519 struct buf { int x; };
3520 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3521 static char *e (p, i)
3522 char **p;
3523 int i;
3525 return p[i];
3527 static char *f (char * (*g) (char **, int), char **p, ...)
3529 char *s;
3530 va_list v;
3531 va_start (v,p);
3532 s = g (p, va_arg (v,int));
3533 va_end (v);
3534 return s;
3537 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3538 function prototypes and stuff, but not '\xHH' hex character constants.
3539 These don't provoke an error unfortunately, instead are silently treated
3540 as 'x'. The following induces an error, until -std is added to get
3541 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3542 array size at least. It's necessary to write '\x00'==0 to get something
3543 that's true only with -std. */
3544 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3546 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3547 inside strings and character constants. */
3548 #define FOO(x) 'x'
3549 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3551 int test (int i, double x);
3552 struct s1 {int (*f) (int a);};
3553 struct s2 {int (*f) (double a);};
3554 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3555 int argc;
3556 char **argv;
3558 main ()
3560 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3562 return 0;
3564 _ACEOF
3565 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3566 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3568 CC="$ac_save_CC $ac_arg"
3569 if ac_fn_c_try_compile "$LINENO"; then :
3570 ac_cv_prog_cc_c89=$ac_arg
3572 rm -f core conftest.err conftest.$ac_objext
3573 test "x$ac_cv_prog_cc_c89" != "xno" && break
3574 done
3575 rm -f conftest.$ac_ext
3576 CC=$ac_save_CC
3579 # AC_CACHE_VAL
3580 case "x$ac_cv_prog_cc_c89" in
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3583 $as_echo "none needed" >&6; } ;;
3584 xno)
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3586 $as_echo "unsupported" >&6; } ;;
3588 CC="$CC $ac_cv_prog_cc_c89"
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3590 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3591 esac
3592 if test "x$ac_cv_prog_cc_c89" != xno; then :
3596 ac_ext=c
3597 ac_cpp='$CPP $CPPFLAGS'
3598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3602 ac_ext=cpp
3603 ac_cpp='$CXXCPP $CPPFLAGS'
3604 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3605 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3606 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3607 if test -z "$CXX"; then
3608 if test -n "$CCC"; then
3609 CXX=$CCC
3610 else
3611 if test -n "$ac_tool_prefix"; then
3612 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3614 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3615 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3617 $as_echo_n "checking for $ac_word... " >&6; }
3618 if test "${ac_cv_prog_CXX+set}" = set; then :
3619 $as_echo_n "(cached) " >&6
3620 else
3621 if test -n "$CXX"; then
3622 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3623 else
3624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3625 for as_dir in $PATH
3627 IFS=$as_save_IFS
3628 test -z "$as_dir" && as_dir=.
3629 for ac_exec_ext in '' $ac_executable_extensions; do
3630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3631 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3633 break 2
3635 done
3636 done
3637 IFS=$as_save_IFS
3641 CXX=$ac_cv_prog_CXX
3642 if test -n "$CXX"; then
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3644 $as_echo "$CXX" >&6; }
3645 else
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3647 $as_echo "no" >&6; }
3651 test -n "$CXX" && break
3652 done
3654 if test -z "$CXX"; then
3655 ac_ct_CXX=$CXX
3656 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3658 # Extract the first word of "$ac_prog", so it can be a program name with args.
3659 set dummy $ac_prog; ac_word=$2
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3661 $as_echo_n "checking for $ac_word... " >&6; }
3662 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3663 $as_echo_n "(cached) " >&6
3664 else
3665 if test -n "$ac_ct_CXX"; then
3666 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3667 else
3668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3669 for as_dir in $PATH
3671 IFS=$as_save_IFS
3672 test -z "$as_dir" && as_dir=.
3673 for ac_exec_ext in '' $ac_executable_extensions; do
3674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3675 ac_cv_prog_ac_ct_CXX="$ac_prog"
3676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3677 break 2
3679 done
3680 done
3681 IFS=$as_save_IFS
3685 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3686 if test -n "$ac_ct_CXX"; then
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3688 $as_echo "$ac_ct_CXX" >&6; }
3689 else
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3691 $as_echo "no" >&6; }
3695 test -n "$ac_ct_CXX" && break
3696 done
3698 if test "x$ac_ct_CXX" = x; then
3699 CXX="g++"
3700 else
3701 case $cross_compiling:$ac_tool_warned in
3702 yes:)
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3704 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3705 ac_tool_warned=yes ;;
3706 esac
3707 CXX=$ac_ct_CXX
3713 # Provide some information about the compiler.
3714 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3715 set X $ac_compile
3716 ac_compiler=$2
3717 for ac_option in --version -v -V -qversion; do
3718 { { ac_try="$ac_compiler $ac_option >&5"
3719 case "(($ac_try" in
3720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3721 *) ac_try_echo=$ac_try;;
3722 esac
3723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3724 $as_echo "$ac_try_echo"; } >&5
3725 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3726 ac_status=$?
3727 if test -s conftest.err; then
3728 sed '10a\
3729 ... rest of stderr output deleted ...
3730 10q' conftest.err >conftest.er1
3731 cat conftest.er1 >&5
3733 rm -f conftest.er1 conftest.err
3734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3735 test $ac_status = 0; }
3736 done
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3739 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3740 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3741 $as_echo_n "(cached) " >&6
3742 else
3743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3744 /* end confdefs.h. */
3747 main ()
3749 #ifndef __GNUC__
3750 choke me
3751 #endif
3754 return 0;
3756 _ACEOF
3757 if ac_fn_cxx_try_compile "$LINENO"; then :
3758 ac_compiler_gnu=yes
3759 else
3760 ac_compiler_gnu=no
3762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3763 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3767 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3768 if test $ac_compiler_gnu = yes; then
3769 GXX=yes
3770 else
3771 GXX=
3773 ac_test_CXXFLAGS=${CXXFLAGS+set}
3774 ac_save_CXXFLAGS=$CXXFLAGS
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3776 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3777 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3778 $as_echo_n "(cached) " >&6
3779 else
3780 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3781 ac_cxx_werror_flag=yes
3782 ac_cv_prog_cxx_g=no
3783 CXXFLAGS="-g"
3784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3785 /* end confdefs.h. */
3788 main ()
3792 return 0;
3794 _ACEOF
3795 if ac_fn_cxx_try_compile "$LINENO"; then :
3796 ac_cv_prog_cxx_g=yes
3797 else
3798 CXXFLAGS=""
3799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3800 /* end confdefs.h. */
3803 main ()
3807 return 0;
3809 _ACEOF
3810 if ac_fn_cxx_try_compile "$LINENO"; then :
3812 else
3813 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3814 CXXFLAGS="-g"
3815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3816 /* end confdefs.h. */
3819 main ()
3823 return 0;
3825 _ACEOF
3826 if ac_fn_cxx_try_compile "$LINENO"; then :
3827 ac_cv_prog_cxx_g=yes
3829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3834 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3837 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3838 if test "$ac_test_CXXFLAGS" = set; then
3839 CXXFLAGS=$ac_save_CXXFLAGS
3840 elif test $ac_cv_prog_cxx_g = yes; then
3841 if test "$GXX" = yes; then
3842 CXXFLAGS="-g -O2"
3843 else
3844 CXXFLAGS="-g"
3846 else
3847 if test "$GXX" = yes; then
3848 CXXFLAGS="-O2"
3849 else
3850 CXXFLAGS=
3853 ac_ext=c
3854 ac_cpp='$CPP $CPPFLAGS'
3855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports lazy variable declaration" >&5
3863 $as_echo_n "checking whether gcc supports lazy variable declaration... " >&6; }
3865 cat > conftest.c << EOF
3866 #include <stdlib.h>
3867 #include <stdio.h>
3869 int main ()
3871 int a,b;
3872 b=3;
3873 int c;
3874 c=4;
3875 return 0;
3879 testprog_link='$CC $CPPFLAGS $CFLAGS conftest.c -o conftest${ac_exeext}'
3880 if { (eval echo gcc.2.95.m4:19: \"$testprog_link\") 1>&5; (eval $testprog_link) 2>&5; } && test -s conftest${ac_exeext}; then
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3882 $as_echo "yes" >&6; }
3883 GCC_IS_OK=true
3884 export GCC_IS_OK
3885 else
3886 echo "configure: failed program was:" >&5
3887 cat conftest.c >&5
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3889 $as_echo "no" >&6; }
3891 rm -f conftest*
3894 if test "x$GCC_IS_OK" '=' "x";then
3895 echo "***************************************************"
3896 echo "* Your gcc is too old to compile this!"
3897 echo "* "
3898 echo "* The last version compileable by this compiler is "
3899 echo "* swftools 0.7.0, which you can download from "
3900 echo "* http://www.swftools.org/swftools-0.7.0.tar.gz "
3901 echo "* ."
3902 echo "* Newer versions require at least gcc 3.0.0 "
3903 echo "***************************************************"
3904 exit 1
3907 if test "x$CHECKMEM" '!=' "x";then
3908 CC="ccmalloc $CC"
3909 CXX="ccmalloc $CXX"
3910 #echo running again
3911 #unset ac_cv_prog_CC
3912 #unset ac_cv_prog_CXX
3913 #AC_PROG_CC
3914 #AC_PROG_CXX
3916 ac_ext=c
3917 ac_cpp='$CPP $CPPFLAGS'
3918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3922 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3923 # On Suns, sometimes $CPP names a directory.
3924 if test -n "$CPP" && test -d "$CPP"; then
3925 CPP=
3927 if test -z "$CPP"; then
3928 if test "${ac_cv_prog_CPP+set}" = set; then :
3929 $as_echo_n "(cached) " >&6
3930 else
3931 # Double quotes because CPP needs to be expanded
3932 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3934 ac_preproc_ok=false
3935 for ac_c_preproc_warn_flag in '' yes
3937 # Use a header file that comes with gcc, so configuring glibc
3938 # with a fresh cross-compiler works.
3939 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3940 # <limits.h> exists even on freestanding compilers.
3941 # On the NeXT, cc -E runs the code through the compiler's parser,
3942 # not just through cpp. "Syntax error" is here to catch this case.
3943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3944 /* end confdefs.h. */
3945 #ifdef __STDC__
3946 # include <limits.h>
3947 #else
3948 # include <assert.h>
3949 #endif
3950 Syntax error
3951 _ACEOF
3952 if ac_fn_c_try_cpp "$LINENO"; then :
3954 else
3955 # Broken: fails on valid input.
3956 continue
3958 rm -f conftest.err conftest.$ac_ext
3960 # OK, works on sane cases. Now check whether nonexistent headers
3961 # can be detected and how.
3962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3963 /* end confdefs.h. */
3964 #include <ac_nonexistent.h>
3965 _ACEOF
3966 if ac_fn_c_try_cpp "$LINENO"; then :
3967 # Broken: success on invalid input.
3968 continue
3969 else
3970 # Passes both tests.
3971 ac_preproc_ok=:
3972 break
3974 rm -f conftest.err conftest.$ac_ext
3976 done
3977 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3978 rm -f conftest.err conftest.$ac_ext
3979 if $ac_preproc_ok; then :
3980 break
3983 done
3984 ac_cv_prog_CPP=$CPP
3987 CPP=$ac_cv_prog_CPP
3988 else
3989 ac_cv_prog_CPP=$CPP
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3992 $as_echo "$CPP" >&6; }
3993 ac_preproc_ok=false
3994 for ac_c_preproc_warn_flag in '' yes
3996 # Use a header file that comes with gcc, so configuring glibc
3997 # with a fresh cross-compiler works.
3998 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3999 # <limits.h> exists even on freestanding compilers.
4000 # On the NeXT, cc -E runs the code through the compiler's parser,
4001 # not just through cpp. "Syntax error" is here to catch this case.
4002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4003 /* end confdefs.h. */
4004 #ifdef __STDC__
4005 # include <limits.h>
4006 #else
4007 # include <assert.h>
4008 #endif
4009 Syntax error
4010 _ACEOF
4011 if ac_fn_c_try_cpp "$LINENO"; then :
4013 else
4014 # Broken: fails on valid input.
4015 continue
4017 rm -f conftest.err conftest.$ac_ext
4019 # OK, works on sane cases. Now check whether nonexistent headers
4020 # can be detected and how.
4021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4022 /* end confdefs.h. */
4023 #include <ac_nonexistent.h>
4024 _ACEOF
4025 if ac_fn_c_try_cpp "$LINENO"; then :
4026 # Broken: success on invalid input.
4027 continue
4028 else
4029 # Passes both tests.
4030 ac_preproc_ok=:
4031 break
4033 rm -f conftest.err conftest.$ac_ext
4035 done
4036 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4037 rm -f conftest.err conftest.$ac_ext
4038 if $ac_preproc_ok; then :
4040 else
4041 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4042 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4043 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4044 See \`config.log' for more details." "$LINENO" 5; }
4047 ac_ext=c
4048 ac_cpp='$CPP $CPPFLAGS'
4049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4054 if test -n "$ac_tool_prefix"; then
4055 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4056 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4058 $as_echo_n "checking for $ac_word... " >&6; }
4059 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4060 $as_echo_n "(cached) " >&6
4061 else
4062 if test -n "$RANLIB"; then
4063 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4064 else
4065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4066 for as_dir in $PATH
4068 IFS=$as_save_IFS
4069 test -z "$as_dir" && as_dir=.
4070 for ac_exec_ext in '' $ac_executable_extensions; do
4071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4072 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4074 break 2
4076 done
4077 done
4078 IFS=$as_save_IFS
4082 RANLIB=$ac_cv_prog_RANLIB
4083 if test -n "$RANLIB"; then
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4085 $as_echo "$RANLIB" >&6; }
4086 else
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4088 $as_echo "no" >&6; }
4093 if test -z "$ac_cv_prog_RANLIB"; then
4094 ac_ct_RANLIB=$RANLIB
4095 # Extract the first word of "ranlib", so it can be a program name with args.
4096 set dummy ranlib; ac_word=$2
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4098 $as_echo_n "checking for $ac_word... " >&6; }
4099 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4100 $as_echo_n "(cached) " >&6
4101 else
4102 if test -n "$ac_ct_RANLIB"; then
4103 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4104 else
4105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4106 for as_dir in $PATH
4108 IFS=$as_save_IFS
4109 test -z "$as_dir" && as_dir=.
4110 for ac_exec_ext in '' $ac_executable_extensions; do
4111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4112 ac_cv_prog_ac_ct_RANLIB="ranlib"
4113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4114 break 2
4116 done
4117 done
4118 IFS=$as_save_IFS
4122 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4123 if test -n "$ac_ct_RANLIB"; then
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4125 $as_echo "$ac_ct_RANLIB" >&6; }
4126 else
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4128 $as_echo "no" >&6; }
4131 if test "x$ac_ct_RANLIB" = x; then
4132 RANLIB=":"
4133 else
4134 case $cross_compiling:$ac_tool_warned in
4135 yes:)
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4137 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4138 ac_tool_warned=yes ;;
4139 esac
4140 RANLIB=$ac_ct_RANLIB
4142 else
4143 RANLIB="$ac_cv_prog_RANLIB"
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4147 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4148 set x ${MAKE-make}
4149 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4150 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4151 $as_echo_n "(cached) " >&6
4152 else
4153 cat >conftest.make <<\_ACEOF
4154 SHELL = /bin/sh
4155 all:
4156 @echo '@@@%%%=$(MAKE)=@@@%%%'
4157 _ACEOF
4158 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4159 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4160 *@@@%%%=?*=@@@%%%*)
4161 eval ac_cv_prog_make_${ac_make}_set=yes;;
4163 eval ac_cv_prog_make_${ac_make}_set=no;;
4164 esac
4165 rm -f conftest.make
4167 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4169 $as_echo "yes" >&6; }
4170 SET_MAKE=
4171 else
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4173 $as_echo "no" >&6; }
4174 SET_MAKE="MAKE=${MAKE-make}"
4177 # Find a good install program. We prefer a C program (faster),
4178 # so one script is as good as another. But avoid the broken or
4179 # incompatible versions:
4180 # SysV /etc/install, /usr/sbin/install
4181 # SunOS /usr/etc/install
4182 # IRIX /sbin/install
4183 # AIX /bin/install
4184 # AmigaOS /C/install, which installs bootblocks on floppy discs
4185 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4186 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4187 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4188 # OS/2's system install, which has a completely different semantic
4189 # ./install, which can be erroneously created by make from ./install.sh.
4190 # Reject install programs that cannot install multiple files.
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4192 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4193 if test -z "$INSTALL"; then
4194 if test "${ac_cv_path_install+set}" = set; then :
4195 $as_echo_n "(cached) " >&6
4196 else
4197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198 for as_dir in $PATH
4200 IFS=$as_save_IFS
4201 test -z "$as_dir" && as_dir=.
4202 # Account for people who put trailing slashes in PATH elements.
4203 case $as_dir/ in #((
4204 ./ | .// | /[cC]/* | \
4205 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4206 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4207 /usr/ucb/* ) ;;
4209 # OSF1 and SCO ODT 3.0 have their own names for install.
4210 # Don't use installbsd from OSF since it installs stuff as root
4211 # by default.
4212 for ac_prog in ginstall scoinst install; do
4213 for ac_exec_ext in '' $ac_executable_extensions; do
4214 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4215 if test $ac_prog = install &&
4216 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4217 # AIX install. It has an incompatible calling convention.
4219 elif test $ac_prog = install &&
4220 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4221 # program-specific install script used by HP pwplus--don't use.
4223 else
4224 rm -rf conftest.one conftest.two conftest.dir
4225 echo one > conftest.one
4226 echo two > conftest.two
4227 mkdir conftest.dir
4228 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4229 test -s conftest.one && test -s conftest.two &&
4230 test -s conftest.dir/conftest.one &&
4231 test -s conftest.dir/conftest.two
4232 then
4233 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4234 break 3
4238 done
4239 done
4241 esac
4243 done
4244 IFS=$as_save_IFS
4246 rm -rf conftest.one conftest.two conftest.dir
4249 if test "${ac_cv_path_install+set}" = set; then
4250 INSTALL=$ac_cv_path_install
4251 else
4252 # As a last resort, use the slow shell script. Don't cache a
4253 # value for INSTALL within a source directory, because that will
4254 # break other packages using the cache if that directory is
4255 # removed, or if the value is a relative name.
4256 INSTALL=$ac_install_sh
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4260 $as_echo "$INSTALL" >&6; }
4262 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4263 # It thinks the first close brace ends the variable substitution.
4264 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4266 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4268 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4271 $as_echo_n "checking whether ln -s works... " >&6; }
4272 LN_S=$as_ln_s
4273 if test "$LN_S" = "ln -s"; then
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4275 $as_echo "yes" >&6; }
4276 else
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4278 $as_echo "no, using $LN_S" >&6; }
4281 for ac_prog in gzip uncompress compress
4283 # Extract the first word of "$ac_prog", so it can be a program name with args.
4284 set dummy $ac_prog; ac_word=$2
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4286 $as_echo_n "checking for $ac_word... " >&6; }
4287 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then :
4288 $as_echo_n "(cached) " >&6
4289 else
4290 if test -n "$UNCOMPRESS"; then
4291 ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
4292 else
4293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4294 for as_dir in $PATH
4296 IFS=$as_save_IFS
4297 test -z "$as_dir" && as_dir=.
4298 for ac_exec_ext in '' $ac_executable_extensions; do
4299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4300 ac_cv_prog_UNCOMPRESS="$ac_prog"
4301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4302 break 2
4304 done
4305 done
4306 IFS=$as_save_IFS
4310 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
4311 if test -n "$UNCOMPRESS"; then
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNCOMPRESS" >&5
4313 $as_echo "$UNCOMPRESS" >&6; }
4314 else
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4316 $as_echo "no" >&6; }
4320 test -n "$UNCOMPRESS" && break
4321 done
4325 OBJEXT="o"
4326 AREXT=".a"
4327 CXXLIBS="-lstdc++"
4331 if test "x$EXEEXT" = "x.exe";then
4332 OBJEXT="obj"
4333 AREXT=".lib"
4334 CXXLIBS=""
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system" >&5
4344 $as_echo_n "checking for target system... " >&6; }
4345 CYGWIN=
4346 MINGW=
4347 case $host_os in
4348 *cygwin* ) CYGWIN=yes;;
4349 *mingw* ) MINGW=yes;;
4350 esac
4352 AR=ar
4353 if test "x$MINGW" = "xyes"; then
4354 #fix for the debian distribution of mingw
4355 if test -x "/usr/i586-mingw32msvc/bin/ar";then
4356 AR="/usr/i586-mingw32msvc/bin/ar"
4358 if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
4359 RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
4361 #fix for the gentoo distribution of mingw
4362 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
4363 AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
4365 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
4366 RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
4368 if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
4369 STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
4375 if test "x${CYGWIN}" = "xyes"; then
4377 $as_echo "#define CYGWIN 1" >>confdefs.h
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cygwin" >&5
4380 $as_echo "cygwin" >&6; }
4381 else
4382 if test "x${MINGW}" = "xyes"; then
4384 $as_echo "#define MINGW 1" >>confdefs.h
4386 WIN32=1
4388 $as_echo "#define WIN32 1" >>confdefs.h
4390 LIBS="$LIBS -lws2_32 -lgdi32"
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: mingw" >&5
4392 $as_echo "mingw" >&6; }
4393 else
4394 LINUX=1
4395 export LINUX
4397 $as_echo "#define LINUX 1" >>confdefs.h
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
4400 $as_echo "" >&6; }
4405 if test "x${MINGW}" != "xyes"; then
4406 # no mingW
4408 $as_echo "#define O_BINARY 0" >>confdefs.h
4410 else
4411 # mingW
4412 SLEXT="dll"
4413 CXXLIBS=""
4415 export SLEXT
4419 # The following tries to make use of includes and libraries in
4420 # /usr/local, too. Notice: A -I/usr/local/include might break
4421 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
4422 # especially on systems which link /usr/local to /usr, so it has yet
4423 # to be seen how useful this is.
4424 if test -d /usr/local/lib; then
4425 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4427 if test -d /usr/local/include; then
4428 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
4429 # CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4430 echo > /dev/null
4432 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
4433 # if the user has a special prefix (like /opt), there might also be $prefix/lib
4434 # and $prefix/include, which should be included in our search paths for libraries
4435 # and includes.
4436 LDFLAGS="$LDFLAGS -L${libdir}"
4437 CPPFLAGS="$CPPFLAGS -I${includedir}"
4438 # TODO- test whether gcc still works after this
4441 #Mac OS:
4442 #LDFLAGS "-L/sw/lib" ; CPPFLAGS "-I/sw/include -I/sw/include/lame"
4445 # this must be done after (I believe) AC_PROG_MAKE_SET
4446 if test "x$DEBUG" '!=' "x" -o "x$STRIP" = "x";then
4447 if test "$MACOSX";then
4448 STRIP=dsymutil
4449 else
4450 STRIP="@echo debug enabled, not stripping "
4452 export STRIP
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
4458 $as_echo_n "checking for sin in -lm... " >&6; }
4459 if test "${ac_cv_lib_m_sin+set}" = set; then :
4460 $as_echo_n "(cached) " >&6
4461 else
4462 ac_check_lib_save_LIBS=$LIBS
4463 LIBS="-lm $LIBS"
4464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4465 /* end confdefs.h. */
4467 /* Override any GCC internal prototype to avoid an error.
4468 Use char because int might match the return type of a GCC
4469 builtin and then its argument prototype would still apply. */
4470 #ifdef __cplusplus
4471 extern "C"
4472 #endif
4473 char sin ();
4475 main ()
4477 return sin ();
4479 return 0;
4481 _ACEOF
4482 if ac_fn_c_try_link "$LINENO"; then :
4483 ac_cv_lib_m_sin=yes
4484 else
4485 ac_cv_lib_m_sin=no
4487 rm -f core conftest.err conftest.$ac_objext \
4488 conftest$ac_exeext conftest.$ac_ext
4489 LIBS=$ac_check_lib_save_LIBS
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
4492 $as_echo "$ac_cv_lib_m_sin" >&6; }
4493 if test "x$ac_cv_lib_m_sin" = x""yes; then :
4494 cat >>confdefs.h <<_ACEOF
4495 #define HAVE_LIBM 1
4496 _ACEOF
4498 LIBS="-lm $LIBS"
4500 else
4501 echo "Error: Math library not found.";
4502 exit;
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
4507 $as_echo_n "checking for deflate in -lz... " >&6; }
4508 if test "${ac_cv_lib_z_deflate+set}" = set; then :
4509 $as_echo_n "(cached) " >&6
4510 else
4511 ac_check_lib_save_LIBS=$LIBS
4512 LIBS="-lz $LIBS"
4513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4514 /* end confdefs.h. */
4516 /* Override any GCC internal prototype to avoid an error.
4517 Use char because int might match the return type of a GCC
4518 builtin and then its argument prototype would still apply. */
4519 #ifdef __cplusplus
4520 extern "C"
4521 #endif
4522 char deflate ();
4524 main ()
4526 return deflate ();
4528 return 0;
4530 _ACEOF
4531 if ac_fn_c_try_link "$LINENO"; then :
4532 ac_cv_lib_z_deflate=yes
4533 else
4534 ac_cv_lib_z_deflate=no
4536 rm -f core conftest.err conftest.$ac_objext \
4537 conftest$ac_exeext conftest.$ac_ext
4538 LIBS=$ac_check_lib_save_LIBS
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
4541 $as_echo "$ac_cv_lib_z_deflate" >&6; }
4542 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
4543 cat >>confdefs.h <<_ACEOF
4544 #define HAVE_LIBZ 1
4545 _ACEOF
4547 LIBS="-lz $LIBS"
4549 else
4550 ZLIBMISSING=true
4554 if test "x$ZLIBMISSING" = "xtrue";then
4555 echo
4556 echo "ERROR:"
4557 echo "You need zlib to compile swftools"
4558 echo
4559 exit
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDF_open_file in -lpdf" >&5
4563 $as_echo_n "checking for PDF_open_file in -lpdf... " >&6; }
4564 if test "${ac_cv_lib_pdf_PDF_open_file+set}" = set; then :
4565 $as_echo_n "(cached) " >&6
4566 else
4567 ac_check_lib_save_LIBS=$LIBS
4568 LIBS="-lpdf $LIBS"
4569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4570 /* end confdefs.h. */
4572 /* Override any GCC internal prototype to avoid an error.
4573 Use char because int might match the return type of a GCC
4574 builtin and then its argument prototype would still apply. */
4575 #ifdef __cplusplus
4576 extern "C"
4577 #endif
4578 char PDF_open_file ();
4580 main ()
4582 return PDF_open_file ();
4584 return 0;
4586 _ACEOF
4587 if ac_fn_c_try_link "$LINENO"; then :
4588 ac_cv_lib_pdf_PDF_open_file=yes
4589 else
4590 ac_cv_lib_pdf_PDF_open_file=no
4592 rm -f core conftest.err conftest.$ac_objext \
4593 conftest$ac_exeext conftest.$ac_ext
4594 LIBS=$ac_check_lib_save_LIBS
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pdf_PDF_open_file" >&5
4597 $as_echo "$ac_cv_lib_pdf_PDF_open_file" >&6; }
4598 if test "x$ac_cv_lib_pdf_PDF_open_file" = x""yes; then :
4599 cat >>confdefs.h <<_ACEOF
4600 #define HAVE_LIBPDF 1
4601 _ACEOF
4603 LIBS="-lpdf $LIBS"
4605 else
4606 PDFLIBMISSING=true
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_write_raw_data in -ljpeg" >&5
4610 $as_echo_n "checking for jpeg_write_raw_data in -ljpeg... " >&6; }
4611 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then :
4612 $as_echo_n "(cached) " >&6
4613 else
4614 ac_check_lib_save_LIBS=$LIBS
4615 LIBS="-ljpeg $LIBS"
4616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4617 /* end confdefs.h. */
4619 /* Override any GCC internal prototype to avoid an error.
4620 Use char because int might match the return type of a GCC
4621 builtin and then its argument prototype would still apply. */
4622 #ifdef __cplusplus
4623 extern "C"
4624 #endif
4625 char jpeg_write_raw_data ();
4627 main ()
4629 return jpeg_write_raw_data ();
4631 return 0;
4633 _ACEOF
4634 if ac_fn_c_try_link "$LINENO"; then :
4635 ac_cv_lib_jpeg_jpeg_write_raw_data=yes
4636 else
4637 ac_cv_lib_jpeg_jpeg_write_raw_data=no
4639 rm -f core conftest.err conftest.$ac_objext \
4640 conftest$ac_exeext conftest.$ac_ext
4641 LIBS=$ac_check_lib_save_LIBS
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
4644 $as_echo "$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6; }
4645 if test "x$ac_cv_lib_jpeg_jpeg_write_raw_data" = x""yes; then :
4646 cat >>confdefs.h <<_ACEOF
4647 #define HAVE_LIBJPEG 1
4648 _ACEOF
4650 LIBS="-ljpeg $LIBS"
4652 else
4653 JPEGLIBMISSING=true
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifOpen in -lungif" >&5
4657 $as_echo_n "checking for DGifOpen in -lungif... " >&6; }
4658 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then :
4659 $as_echo_n "(cached) " >&6
4660 else
4661 ac_check_lib_save_LIBS=$LIBS
4662 LIBS="-lungif $LIBS"
4663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4664 /* end confdefs.h. */
4666 /* Override any GCC internal prototype to avoid an error.
4667 Use char because int might match the return type of a GCC
4668 builtin and then its argument prototype would still apply. */
4669 #ifdef __cplusplus
4670 extern "C"
4671 #endif
4672 char DGifOpen ();
4674 main ()
4676 return DGifOpen ();
4678 return 0;
4680 _ACEOF
4681 if ac_fn_c_try_link "$LINENO"; then :
4682 ac_cv_lib_ungif_DGifOpen=yes
4683 else
4684 ac_cv_lib_ungif_DGifOpen=no
4686 rm -f core conftest.err conftest.$ac_objext \
4687 conftest$ac_exeext conftest.$ac_ext
4688 LIBS=$ac_check_lib_save_LIBS
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_DGifOpen" >&5
4691 $as_echo "$ac_cv_lib_ungif_DGifOpen" >&6; }
4692 if test "x$ac_cv_lib_ungif_DGifOpen" = x""yes; then :
4693 cat >>confdefs.h <<_ACEOF
4694 #define HAVE_LIBUNGIF 1
4695 _ACEOF
4697 LIBS="-lungif $LIBS"
4699 else
4700 UNGIFMISSING=true
4703 if test "$UNGIFMISSING";then
4704 UNGIFMISSING=
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifOpen in -lgif" >&5
4706 $as_echo_n "checking for DGifOpen in -lgif... " >&6; }
4707 if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then :
4708 $as_echo_n "(cached) " >&6
4709 else
4710 ac_check_lib_save_LIBS=$LIBS
4711 LIBS="-lgif $LIBS"
4712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4713 /* end confdefs.h. */
4715 /* Override any GCC internal prototype to avoid an error.
4716 Use char because int might match the return type of a GCC
4717 builtin and then its argument prototype would still apply. */
4718 #ifdef __cplusplus
4719 extern "C"
4720 #endif
4721 char DGifOpen ();
4723 main ()
4725 return DGifOpen ();
4727 return 0;
4729 _ACEOF
4730 if ac_fn_c_try_link "$LINENO"; then :
4731 ac_cv_lib_gif_DGifOpen=yes
4732 else
4733 ac_cv_lib_gif_DGifOpen=no
4735 rm -f core conftest.err conftest.$ac_objext \
4736 conftest$ac_exeext conftest.$ac_ext
4737 LIBS=$ac_check_lib_save_LIBS
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifOpen" >&5
4740 $as_echo "$ac_cv_lib_gif_DGifOpen" >&6; }
4741 if test "x$ac_cv_lib_gif_DGifOpen" = x""yes; then :
4742 cat >>confdefs.h <<_ACEOF
4743 #define HAVE_LIBGIF 1
4744 _ACEOF
4746 LIBS="-lgif $LIBS"
4748 else
4749 UNGIFMISSING=true
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zzip_file_open in -lzzip" >&5
4754 $as_echo_n "checking for zzip_file_open in -lzzip... " >&6; }
4755 if test "${ac_cv_lib_zzip_zzip_file_open+set}" = set; then :
4756 $as_echo_n "(cached) " >&6
4757 else
4758 ac_check_lib_save_LIBS=$LIBS
4759 LIBS="-lzzip $LIBS"
4760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4761 /* end confdefs.h. */
4763 /* Override any GCC internal prototype to avoid an error.
4764 Use char because int might match the return type of a GCC
4765 builtin and then its argument prototype would still apply. */
4766 #ifdef __cplusplus
4767 extern "C"
4768 #endif
4769 char zzip_file_open ();
4771 main ()
4773 return zzip_file_open ();
4775 return 0;
4777 _ACEOF
4778 if ac_fn_c_try_link "$LINENO"; then :
4779 ac_cv_lib_zzip_zzip_file_open=yes
4780 else
4781 ac_cv_lib_zzip_zzip_file_open=no
4783 rm -f core conftest.err conftest.$ac_objext \
4784 conftest$ac_exeext conftest.$ac_ext
4785 LIBS=$ac_check_lib_save_LIBS
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zzip_zzip_file_open" >&5
4788 $as_echo "$ac_cv_lib_zzip_zzip_file_open" >&6; }
4789 if test "x$ac_cv_lib_zzip_zzip_file_open" = x""yes; then :
4790 cat >>confdefs.h <<_ACEOF
4791 #define HAVE_LIBZZIP 1
4792 _ACEOF
4794 LIBS="-lzzip $LIBS"
4796 else
4797 ZZIPMISSING=true
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4802 $as_echo_n "checking target system type... " >&6; }
4803 if test "${ac_cv_target+set}" = set; then :
4804 $as_echo_n "(cached) " >&6
4805 else
4806 if test "x$target_alias" = x; then
4807 ac_cv_target=$ac_cv_host
4808 else
4809 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4810 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4815 $as_echo "$ac_cv_target" >&6; }
4816 case $ac_cv_target in
4817 *-*-*) ;;
4818 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4819 esac
4820 target=$ac_cv_target
4821 ac_save_IFS=$IFS; IFS='-'
4822 set x $ac_cv_target
4823 shift
4824 target_cpu=$1
4825 target_vendor=$2
4826 shift; shift
4827 # Remember, the first character of IFS is used to create $*,
4828 # except with old shells:
4829 target_os=$*
4830 IFS=$ac_save_IFS
4831 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4834 # The aliases save the names the user supplied, while $host etc.
4835 # will get canonicalized.
4836 test -n "$target_alias" &&
4837 test "$program_prefix$program_suffix$program_transform_name" = \
4838 NONENONEs,x,x, &&
4839 program_prefix=${target_alias}-
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for byte order" >&5
4842 $as_echo_n "checking for byte order... " >&6; }
4843 if test "$cross_compiling" = yes; then :
4844 CROSSCOMPILE=1
4845 else
4846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4847 /* end confdefs.h. */
4849 int main (int argc, char *argv[])
4851 int i = 1;
4852 return *(char*)&i;
4855 _ACEOF
4856 if ac_fn_c_try_run "$LINENO"; then :
4857 BIGENDIAN=1
4858 else
4859 LITTLEENDIAN=1
4861 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4862 conftest.$ac_objext conftest.beam conftest.$ac_ext
4865 export CROSSCOMPILE
4867 if test "x${CROSSCOMPILE}" = "x1"; then
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: we are cross compiling- trying to guess from system type" >&5
4869 $as_echo "we are cross compiling- trying to guess from system type" >&6; }
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for byte order, try 2" >&5
4872 $as_echo_n "checking for byte order, try 2... " >&6; }
4873 case "${target}" in
4874 *86* | *-pc-* )
4875 LITTLEENDIAN=1
4877 *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
4878 BIGENDIAN=1
4880 esac
4883 export LITTLEENDIAN
4884 if test "x${LITTLEENDIAN}" = "x1"; then
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: little endian" >&5
4886 $as_echo "little endian" >&6; }
4887 BYTEORDERCHECKOK=1
4889 export BIGENDIAN
4890 if test "x${BIGENDIAN}" = "x1"; then
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: big endian" >&5
4892 $as_echo "big endian" >&6; }
4893 BYTEORDERCHECKOK=1
4894 WORDS_BIGENDIAN=1
4895 export WORDS_BIGENDIAN
4897 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4900 if test "x${BYTEORDERCHECKOK}" != "x1"; then
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
4902 $as_echo "unknown" >&6; }
4903 echo Byte order could not determined.
4904 exit 1
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system() can handle command substitution" >&5
4910 $as_echo_n "checking whether system() can handle command substitution... " >&6; }
4911 if test "$cross_compiling" = yes; then :
4912 CROSSCOMPILE=1
4913 else
4914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4915 /* end confdefs.h. */
4917 #include "stdlib.h"
4918 int main (int argc, char*argv[])
4920 return system("test `touch config.tmp2`");
4923 _ACEOF
4924 if ac_fn_c_try_run "$LINENO"; then :
4925 OK=OK
4927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4928 conftest.$ac_objext conftest.beam conftest.$ac_ext
4932 if test "x${OK}" = "xOK";then
4933 test -f config.tmp2 || OK=
4936 if test "x${CROSSCOMPILE}" = "x1";then
4937 OK=no;
4939 if test "x${OK}" = "xOK";then
4940 rm -f config.tmp2
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4942 $as_echo "yes" >&6; }
4943 SYSTEM_BACKTICKS=1
4944 export SYSTEM_BACKTICKS
4946 $as_echo "#define SYSTEM_BACKTICKS 1" >>confdefs.h
4948 else
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4950 $as_echo "no" >&6; }
4955 test "$program_prefix" != NONE &&
4956 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4957 # Use a double $ so make ignores it.
4958 test "$program_suffix" != NONE &&
4959 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4960 # Double any \ or $.
4961 # By default was `s,x,x', remove it if useless.
4962 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4963 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4966 ac_config_headers="$ac_config_headers config.h"
4968 ac_header_dirent=no
4969 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4970 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4972 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4973 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
4974 $as_echo_n "(cached) " >&6
4975 else
4976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4977 /* end confdefs.h. */
4978 #include <sys/types.h>
4979 #include <$ac_hdr>
4982 main ()
4984 if ((DIR *) 0)
4985 return 0;
4987 return 0;
4989 _ACEOF
4990 if ac_fn_c_try_compile "$LINENO"; then :
4991 eval "$as_ac_Header=yes"
4992 else
4993 eval "$as_ac_Header=no"
4995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4997 eval ac_res=\$$as_ac_Header
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4999 $as_echo "$ac_res" >&6; }
5000 eval as_val=\$$as_ac_Header
5001 if test "x$as_val" = x""yes; then :
5002 cat >>confdefs.h <<_ACEOF
5003 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5004 _ACEOF
5006 ac_header_dirent=$ac_hdr; break
5009 done
5010 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5011 if test $ac_header_dirent = dirent.h; then
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5013 $as_echo_n "checking for library containing opendir... " >&6; }
5014 if test "${ac_cv_search_opendir+set}" = set; then :
5015 $as_echo_n "(cached) " >&6
5016 else
5017 ac_func_search_save_LIBS=$LIBS
5018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5019 /* end confdefs.h. */
5021 /* Override any GCC internal prototype to avoid an error.
5022 Use char because int might match the return type of a GCC
5023 builtin and then its argument prototype would still apply. */
5024 #ifdef __cplusplus
5025 extern "C"
5026 #endif
5027 char opendir ();
5029 main ()
5031 return opendir ();
5033 return 0;
5035 _ACEOF
5036 for ac_lib in '' dir; do
5037 if test -z "$ac_lib"; then
5038 ac_res="none required"
5039 else
5040 ac_res=-l$ac_lib
5041 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5043 if ac_fn_c_try_link "$LINENO"; then :
5044 ac_cv_search_opendir=$ac_res
5046 rm -f core conftest.err conftest.$ac_objext \
5047 conftest$ac_exeext
5048 if test "${ac_cv_search_opendir+set}" = set; then :
5049 break
5051 done
5052 if test "${ac_cv_search_opendir+set}" = set; then :
5054 else
5055 ac_cv_search_opendir=no
5057 rm conftest.$ac_ext
5058 LIBS=$ac_func_search_save_LIBS
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5061 $as_echo "$ac_cv_search_opendir" >&6; }
5062 ac_res=$ac_cv_search_opendir
5063 if test "$ac_res" != no; then :
5064 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5068 else
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5070 $as_echo_n "checking for library containing opendir... " >&6; }
5071 if test "${ac_cv_search_opendir+set}" = set; then :
5072 $as_echo_n "(cached) " >&6
5073 else
5074 ac_func_search_save_LIBS=$LIBS
5075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5076 /* end confdefs.h. */
5078 /* Override any GCC internal prototype to avoid an error.
5079 Use char because int might match the return type of a GCC
5080 builtin and then its argument prototype would still apply. */
5081 #ifdef __cplusplus
5082 extern "C"
5083 #endif
5084 char opendir ();
5086 main ()
5088 return opendir ();
5090 return 0;
5092 _ACEOF
5093 for ac_lib in '' x; do
5094 if test -z "$ac_lib"; then
5095 ac_res="none required"
5096 else
5097 ac_res=-l$ac_lib
5098 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5100 if ac_fn_c_try_link "$LINENO"; then :
5101 ac_cv_search_opendir=$ac_res
5103 rm -f core conftest.err conftest.$ac_objext \
5104 conftest$ac_exeext
5105 if test "${ac_cv_search_opendir+set}" = set; then :
5106 break
5108 done
5109 if test "${ac_cv_search_opendir+set}" = set; then :
5111 else
5112 ac_cv_search_opendir=no
5114 rm conftest.$ac_ext
5115 LIBS=$ac_func_search_save_LIBS
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5118 $as_echo "$ac_cv_search_opendir" >&6; }
5119 ac_res=$ac_cv_search_opendir
5120 if test "$ac_res" != no; then :
5121 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5129 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5130 if test "${ac_cv_path_GREP+set}" = set; then :
5131 $as_echo_n "(cached) " >&6
5132 else
5133 if test -z "$GREP"; then
5134 ac_path_GREP_found=false
5135 # Loop through the user's path and test for each of PROGNAME-LIST
5136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5137 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5139 IFS=$as_save_IFS
5140 test -z "$as_dir" && as_dir=.
5141 for ac_prog in grep ggrep; do
5142 for ac_exec_ext in '' $ac_executable_extensions; do
5143 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5144 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5145 # Check for GNU ac_path_GREP and select it if it is found.
5146 # Check for GNU $ac_path_GREP
5147 case `"$ac_path_GREP" --version 2>&1` in
5148 *GNU*)
5149 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5151 ac_count=0
5152 $as_echo_n 0123456789 >"conftest.in"
5153 while :
5155 cat "conftest.in" "conftest.in" >"conftest.tmp"
5156 mv "conftest.tmp" "conftest.in"
5157 cp "conftest.in" "conftest.nl"
5158 $as_echo 'GREP' >> "conftest.nl"
5159 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5160 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5161 as_fn_arith $ac_count + 1 && ac_count=$as_val
5162 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5163 # Best one so far, save it but keep looking for a better one
5164 ac_cv_path_GREP="$ac_path_GREP"
5165 ac_path_GREP_max=$ac_count
5167 # 10*(2^10) chars as input seems more than enough
5168 test $ac_count -gt 10 && break
5169 done
5170 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5171 esac
5173 $ac_path_GREP_found && break 3
5174 done
5175 done
5176 done
5177 IFS=$as_save_IFS
5178 if test -z "$ac_cv_path_GREP"; then
5179 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5181 else
5182 ac_cv_path_GREP=$GREP
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5187 $as_echo "$ac_cv_path_GREP" >&6; }
5188 GREP="$ac_cv_path_GREP"
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5192 $as_echo_n "checking for egrep... " >&6; }
5193 if test "${ac_cv_path_EGREP+set}" = set; then :
5194 $as_echo_n "(cached) " >&6
5195 else
5196 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5197 then ac_cv_path_EGREP="$GREP -E"
5198 else
5199 if test -z "$EGREP"; then
5200 ac_path_EGREP_found=false
5201 # Loop through the user's path and test for each of PROGNAME-LIST
5202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5203 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5205 IFS=$as_save_IFS
5206 test -z "$as_dir" && as_dir=.
5207 for ac_prog in egrep; do
5208 for ac_exec_ext in '' $ac_executable_extensions; do
5209 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5210 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5211 # Check for GNU ac_path_EGREP and select it if it is found.
5212 # Check for GNU $ac_path_EGREP
5213 case `"$ac_path_EGREP" --version 2>&1` in
5214 *GNU*)
5215 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5217 ac_count=0
5218 $as_echo_n 0123456789 >"conftest.in"
5219 while :
5221 cat "conftest.in" "conftest.in" >"conftest.tmp"
5222 mv "conftest.tmp" "conftest.in"
5223 cp "conftest.in" "conftest.nl"
5224 $as_echo 'EGREP' >> "conftest.nl"
5225 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5226 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5227 as_fn_arith $ac_count + 1 && ac_count=$as_val
5228 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5229 # Best one so far, save it but keep looking for a better one
5230 ac_cv_path_EGREP="$ac_path_EGREP"
5231 ac_path_EGREP_max=$ac_count
5233 # 10*(2^10) chars as input seems more than enough
5234 test $ac_count -gt 10 && break
5235 done
5236 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5237 esac
5239 $ac_path_EGREP_found && break 3
5240 done
5241 done
5242 done
5243 IFS=$as_save_IFS
5244 if test -z "$ac_cv_path_EGREP"; then
5245 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5247 else
5248 ac_cv_path_EGREP=$EGREP
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5254 $as_echo "$ac_cv_path_EGREP" >&6; }
5255 EGREP="$ac_cv_path_EGREP"
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5259 $as_echo_n "checking for ANSI C header files... " >&6; }
5260 if test "${ac_cv_header_stdc+set}" = set; then :
5261 $as_echo_n "(cached) " >&6
5262 else
5263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5264 /* end confdefs.h. */
5265 #include <stdlib.h>
5266 #include <stdarg.h>
5267 #include <string.h>
5268 #include <float.h>
5271 main ()
5275 return 0;
5277 _ACEOF
5278 if ac_fn_c_try_compile "$LINENO"; then :
5279 ac_cv_header_stdc=yes
5280 else
5281 ac_cv_header_stdc=no
5283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5285 if test $ac_cv_header_stdc = yes; then
5286 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5288 /* end confdefs.h. */
5289 #include <string.h>
5291 _ACEOF
5292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5293 $EGREP "memchr" >/dev/null 2>&1; then :
5295 else
5296 ac_cv_header_stdc=no
5298 rm -f conftest*
5302 if test $ac_cv_header_stdc = yes; then
5303 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5305 /* end confdefs.h. */
5306 #include <stdlib.h>
5308 _ACEOF
5309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5310 $EGREP "free" >/dev/null 2>&1; then :
5312 else
5313 ac_cv_header_stdc=no
5315 rm -f conftest*
5319 if test $ac_cv_header_stdc = yes; then
5320 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5321 if test "$cross_compiling" = yes; then :
5323 else
5324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5325 /* end confdefs.h. */
5326 #include <ctype.h>
5327 #include <stdlib.h>
5328 #if ((' ' & 0x0FF) == 0x020)
5329 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5330 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5331 #else
5332 # define ISLOWER(c) \
5333 (('a' <= (c) && (c) <= 'i') \
5334 || ('j' <= (c) && (c) <= 'r') \
5335 || ('s' <= (c) && (c) <= 'z'))
5336 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5337 #endif
5339 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5341 main ()
5343 int i;
5344 for (i = 0; i < 256; i++)
5345 if (XOR (islower (i), ISLOWER (i))
5346 || toupper (i) != TOUPPER (i))
5347 return 2;
5348 return 0;
5350 _ACEOF
5351 if ac_fn_c_try_run "$LINENO"; then :
5353 else
5354 ac_cv_header_stdc=no
5356 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5357 conftest.$ac_objext conftest.beam conftest.$ac_ext
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5363 $as_echo "$ac_cv_header_stdc" >&6; }
5364 if test $ac_cv_header_stdc = yes; then
5366 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5371 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5372 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5373 inttypes.h stdint.h unistd.h
5374 do :
5375 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5376 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5378 eval as_val=\$$as_ac_Header
5379 if test "x$as_val" = x""yes; then :
5380 cat >>confdefs.h <<_ACEOF
5381 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5382 _ACEOF
5386 done
5389 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
5390 do :
5391 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5392 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5393 eval as_val=\$$as_ac_Header
5394 if test "x$as_val" = x""yes; then :
5395 cat >>confdefs.h <<_ACEOF
5396 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5397 _ACEOF
5401 done
5405 cat >>confdefs.h <<_ACEOF
5406 #define PACKAGE "$PACKAGE"
5407 _ACEOF
5410 cat >>confdefs.h <<_ACEOF
5411 #define VERSION "$VERSION"
5412 _ACEOF
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5421 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5422 if test "${ac_cv_c_const+set}" = set; then :
5423 $as_echo_n "(cached) " >&6
5424 else
5425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5426 /* end confdefs.h. */
5429 main ()
5431 /* FIXME: Include the comments suggested by Paul. */
5432 #ifndef __cplusplus
5433 /* Ultrix mips cc rejects this. */
5434 typedef int charset[2];
5435 const charset cs;
5436 /* SunOS 4.1.1 cc rejects this. */
5437 char const *const *pcpcc;
5438 char **ppc;
5439 /* NEC SVR4.0.2 mips cc rejects this. */
5440 struct point {int x, y;};
5441 static struct point const zero = {0,0};
5442 /* AIX XL C 1.02.0.0 rejects this.
5443 It does not let you subtract one const X* pointer from another in
5444 an arm of an if-expression whose if-part is not a constant
5445 expression */
5446 const char *g = "string";
5447 pcpcc = &g + (g ? g-g : 0);
5448 /* HPUX 7.0 cc rejects these. */
5449 ++pcpcc;
5450 ppc = (char**) pcpcc;
5451 pcpcc = (char const *const *) ppc;
5452 { /* SCO 3.2v4 cc rejects this. */
5453 char *t;
5454 char const *s = 0 ? (char *) 0 : (char const *) 0;
5456 *t++ = 0;
5457 if (s) return 0;
5459 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5460 int x[] = {25, 17};
5461 const int *foo = &x[0];
5462 ++foo;
5464 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5465 typedef const int *iptr;
5466 iptr p = 0;
5467 ++p;
5469 { /* AIX XL C 1.02.0.0 rejects this saying
5470 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5471 struct s { int j; const int *ap[3]; };
5472 struct s *b; b->j = 5;
5474 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5475 const int foo = 10;
5476 if (!foo) return 0;
5478 return !cs[0] && !zero.x;
5479 #endif
5482 return 0;
5484 _ACEOF
5485 if ac_fn_c_try_compile "$LINENO"; then :
5486 ac_cv_c_const=yes
5487 else
5488 ac_cv_c_const=no
5490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5493 $as_echo "$ac_cv_c_const" >&6; }
5494 if test $ac_cv_c_const = no; then
5496 $as_echo "#define const /**/" >>confdefs.h
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5501 $as_echo_n "checking for inline... " >&6; }
5502 if test "${ac_cv_c_inline+set}" = set; then :
5503 $as_echo_n "(cached) " >&6
5504 else
5505 ac_cv_c_inline=no
5506 for ac_kw in inline __inline__ __inline; do
5507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5508 /* end confdefs.h. */
5509 #ifndef __cplusplus
5510 typedef int foo_t;
5511 static $ac_kw foo_t static_foo () {return 0; }
5512 $ac_kw foo_t foo () {return 0; }
5513 #endif
5515 _ACEOF
5516 if ac_fn_c_try_compile "$LINENO"; then :
5517 ac_cv_c_inline=$ac_kw
5519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5520 test "$ac_cv_c_inline" != no && break
5521 done
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5525 $as_echo "$ac_cv_c_inline" >&6; }
5527 case $ac_cv_c_inline in
5528 inline | yes) ;;
5530 case $ac_cv_c_inline in
5531 no) ac_val=;;
5532 *) ac_val=$ac_cv_c_inline;;
5533 esac
5534 cat >>confdefs.h <<_ACEOF
5535 #ifndef __cplusplus
5536 #define inline $ac_val
5537 #endif
5538 _ACEOF
5540 esac
5542 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5543 if test "x$ac_cv_type_off_t" = x""yes; then :
5545 else
5547 cat >>confdefs.h <<_ACEOF
5548 #define off_t long int
5549 _ACEOF
5553 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5554 if test "x$ac_cv_type_size_t" = x""yes; then :
5556 else
5558 cat >>confdefs.h <<_ACEOF
5559 #define size_t unsigned int
5560 _ACEOF
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5565 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5566 if test "${ac_cv_struct_tm+set}" = set; then :
5567 $as_echo_n "(cached) " >&6
5568 else
5569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5570 /* end confdefs.h. */
5571 #include <sys/types.h>
5572 #include <time.h>
5575 main ()
5577 struct tm tm;
5578 int *p = &tm.tm_sec;
5579 return !p;
5581 return 0;
5583 _ACEOF
5584 if ac_fn_c_try_compile "$LINENO"; then :
5585 ac_cv_struct_tm=time.h
5586 else
5587 ac_cv_struct_tm=sys/time.h
5589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5592 $as_echo "$ac_cv_struct_tm" >&6; }
5593 if test $ac_cv_struct_tm = sys/time.h; then
5595 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5599 ac_fn_c_check_type "$LINENO" "boolean" "ac_cv_type_boolean" "$ac_includes_default"
5600 if test "x$ac_cv_type_boolean" = x""yes; then :
5602 else
5604 cat >>confdefs.h <<_ACEOF
5605 #define boolean int
5606 _ACEOF
5609 #needed for jpeglib
5610 for ac_func in popen wcschr wcsdup mkstemp stat mmap lrand48 rand srand48 srand bcopy bzero time getrusage mallinfo open64 calloc
5611 do :
5612 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5613 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5614 eval as_val=\$$as_ac_var
5615 if test "x$as_val" = x""yes; then :
5616 cat >>confdefs.h <<_ACEOF
5617 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5618 _ACEOF
5621 done
5624 # The cast to long int works around a bug in the HP C Compiler
5625 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5626 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5627 # This bug is HP SR number 8606223364.
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5
5629 $as_echo_n "checking size of signed char... " >&6; }
5630 if test "${ac_cv_sizeof_signed_char+set}" = set; then :
5631 $as_echo_n "(cached) " >&6
5632 else
5633 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char" "$ac_includes_default"; then :
5635 else
5636 if test "$ac_cv_type_signed_char" = yes; then
5637 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5638 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5639 { as_fn_set_status 77
5640 as_fn_error "cannot compute sizeof (signed char)
5641 See \`config.log' for more details." "$LINENO" 5; }; }
5642 else
5643 ac_cv_sizeof_signed_char=0
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5
5649 $as_echo "$ac_cv_sizeof_signed_char" >&6; }
5653 cat >>confdefs.h <<_ACEOF
5654 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
5655 _ACEOF
5658 # The cast to long int works around a bug in the HP C Compiler
5659 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5660 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5661 # This bug is HP SR number 8606223364.
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
5663 $as_echo_n "checking size of signed short... " >&6; }
5664 if test "${ac_cv_sizeof_signed_short+set}" = set; then :
5665 $as_echo_n "(cached) " >&6
5666 else
5667 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short" "$ac_includes_default"; then :
5669 else
5670 if test "$ac_cv_type_signed_short" = yes; then
5671 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5672 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5673 { as_fn_set_status 77
5674 as_fn_error "cannot compute sizeof (signed short)
5675 See \`config.log' for more details." "$LINENO" 5; }; }
5676 else
5677 ac_cv_sizeof_signed_short=0
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
5683 $as_echo "$ac_cv_sizeof_signed_short" >&6; }
5687 cat >>confdefs.h <<_ACEOF
5688 #define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
5689 _ACEOF
5692 # The cast to long int works around a bug in the HP C Compiler
5693 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5694 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5695 # This bug is HP SR number 8606223364.
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed" >&5
5697 $as_echo_n "checking size of signed... " >&6; }
5698 if test "${ac_cv_sizeof_signed+set}" = set; then :
5699 $as_echo_n "(cached) " >&6
5700 else
5701 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed))" "ac_cv_sizeof_signed" "$ac_includes_default"; then :
5703 else
5704 if test "$ac_cv_type_signed" = yes; then
5705 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5706 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5707 { as_fn_set_status 77
5708 as_fn_error "cannot compute sizeof (signed)
5709 See \`config.log' for more details." "$LINENO" 5; }; }
5710 else
5711 ac_cv_sizeof_signed=0
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed" >&5
5717 $as_echo "$ac_cv_sizeof_signed" >&6; }
5721 cat >>confdefs.h <<_ACEOF
5722 #define SIZEOF_SIGNED $ac_cv_sizeof_signed
5723 _ACEOF
5726 # The cast to long int works around a bug in the HP C Compiler
5727 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5728 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5729 # This bug is HP SR number 8606223364.
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
5731 $as_echo_n "checking size of signed long long... " >&6; }
5732 if test "${ac_cv_sizeof_signed_long_long+set}" = set; then :
5733 $as_echo_n "(cached) " >&6
5734 else
5735 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long" "$ac_includes_default"; then :
5737 else
5738 if test "$ac_cv_type_signed_long_long" = yes; then
5739 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5740 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5741 { as_fn_set_status 77
5742 as_fn_error "cannot compute sizeof (signed long long)
5743 See \`config.log' for more details." "$LINENO" 5; }; }
5744 else
5745 ac_cv_sizeof_signed_long_long=0
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
5751 $as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
5755 cat >>confdefs.h <<_ACEOF
5756 #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
5757 _ACEOF
5760 # The cast to long int works around a bug in the HP C Compiler
5761 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5762 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5763 # This bug is HP SR number 8606223364.
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
5765 $as_echo_n "checking size of void*... " >&6; }
5766 if test "${ac_cv_sizeof_voidp+set}" = set; then :
5767 $as_echo_n "(cached) " >&6
5768 else
5769 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
5771 else
5772 if test "$ac_cv_type_voidp" = yes; then
5773 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5774 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5775 { as_fn_set_status 77
5776 as_fn_error "cannot compute sizeof (void*)
5777 See \`config.log' for more details." "$LINENO" 5; }; }
5778 else
5779 ac_cv_sizeof_voidp=0
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
5785 $as_echo "$ac_cv_sizeof_voidp" >&6; }
5789 cat >>confdefs.h <<_ACEOF
5790 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
5791 _ACEOF
5797 # Extract the first word of "freetype-config", so it can be a program name with args.
5798 set dummy freetype-config; ac_word=$2
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5800 $as_echo_n "checking for $ac_word... " >&6; }
5801 if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then :
5802 $as_echo_n "(cached) " >&6
5803 else
5804 case $FREETYPE_CONFIG in
5805 [\\/]* | ?:[\\/]*)
5806 ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
5809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5810 as_dummy=""$PATH:/usr/local/bin:/sw/bin:/opt/local/bin""
5811 for as_dir in $as_dummy
5813 IFS=$as_save_IFS
5814 test -z "$as_dir" && as_dir=.
5815 for ac_exec_ext in '' $ac_executable_extensions; do
5816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5817 ac_cv_path_FREETYPE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5819 break 2
5821 done
5822 done
5823 IFS=$as_save_IFS
5826 esac
5828 FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
5829 if test -n "$FREETYPE_CONFIG"; then
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_CONFIG" >&5
5831 $as_echo "$FREETYPE_CONFIG" >&6; }
5832 else
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5834 $as_echo "no" >&6; }
5839 OLDCPPFLAGS="${CPPFLAGS}"
5840 OLDLIBS="${LIBS}"
5841 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
5842 CPPFLAGS="$CPPFLAGS "`$FREETYPE_CONFIG --cflags`
5843 else if test -d /usr/include/freetype2; then
5844 CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
5845 else if test -d /usr/local/include/freetype2; then
5846 CPPFLAGS="$CPPFLAGS -I/usr/local/include/freetype2"
5851 if test "x${FREETYPE_CONFIG}" '=' "x";then
5852 # if we didn't find the freetype-config program, we won't
5853 # know where the libs are expected to be. So just blindly
5854 # try to link against them.
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
5856 $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
5857 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
5858 $as_echo_n "(cached) " >&6
5859 else
5860 ac_check_lib_save_LIBS=$LIBS
5861 LIBS="-lfreetype $LIBS"
5862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5863 /* end confdefs.h. */
5865 /* Override any GCC internal prototype to avoid an error.
5866 Use char because int might match the return type of a GCC
5867 builtin and then its argument prototype would still apply. */
5868 #ifdef __cplusplus
5869 extern "C"
5870 #endif
5871 char FT_Init_FreeType ();
5873 main ()
5875 return FT_Init_FreeType ();
5877 return 0;
5879 _ACEOF
5880 if ac_fn_c_try_link "$LINENO"; then :
5881 ac_cv_lib_freetype_FT_Init_FreeType=yes
5882 else
5883 ac_cv_lib_freetype_FT_Init_FreeType=no
5885 rm -f core conftest.err conftest.$ac_objext \
5886 conftest$ac_exeext conftest.$ac_ext
5887 LIBS=$ac_check_lib_save_LIBS
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
5890 $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
5891 if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
5892 HAVE_LIB_FREETYPE=1
5897 for ac_header in ft2build.h
5898 do :
5899 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
5900 if test "x$ac_cv_header_ft2build_h" = x""yes; then :
5901 cat >>confdefs.h <<_ACEOF
5902 #define HAVE_FT2BUILD_H 1
5903 _ACEOF
5904 HAVE_FT2BUILD_H=1
5907 done
5909 if test "x${HAVE_FT2BUILD_H}" '=' "x";then
5910 for ac_header in freetype/freetype.h
5911 do :
5912 ac_fn_c_check_header_mongrel "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$ac_includes_default"
5913 if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then :
5914 cat >>confdefs.h <<_ACEOF
5915 #define HAVE_FREETYPE_FREETYPE_H 1
5916 _ACEOF
5917 HAVE_FREETYPE_FREETYPE_H=1
5920 done
5924 if test "x${HAVE_LIB_FREETYPE}" '!=' "x" -o \
5925 "x${FREETYPE_CONFIG}" '!=' "x";then
5926 if test "x${HAVE_FREETYPE_FREETYPE_H}" '!=' "x";then
5927 HAVE_FREETYPE=1
5929 if test "x${HAVE_FT2BUILD_H}" '!=' "x";then
5930 HAVE_FREETYPE=1
5934 if test "x${HAVE_FREETYPE}" = "x1"; then
5935 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
5936 LIBS="$LIBS "`$FREETYPE_CONFIG --libs`
5937 else
5938 LIBS="$LIBS -lfreetype"
5941 if test "x${HAVE_FT2BUILD_H}" = "x1"; then
5942 HAVE_FT2BUILD_H_DEFINE='#define HAVE_FT2BUILD_H'
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the freetype test program" >&5
5946 $as_echo_n "checking whether we can compile the freetype test program... " >&6; }
5948 cat > conftest.c << EOF
5949 $HAVE_FT2BUILD_H_DEFINE
5951 #ifdef HAVE_FT2BUILD_H
5952 #include <ft2build.h>
5953 #include FT_FREETYPE_H
5954 #include FT_GLYPH_H
5955 #include FT_SIZES_H
5956 #include FT_SFNT_NAMES_H
5957 #include FT_TRUETYPE_IDS_H
5958 #include FT_OUTLINE_H
5959 #else
5960 #include <freetype/freetype.h>
5961 #include <freetype/ftglyph.h>
5962 #include <freetype/ftsizes.h>
5963 #include <freetype/ftsnames.h>
5964 #include <freetype/ttnameid.h>
5965 #include <freetype/ftoutln.h>
5966 #endif
5968 int main()
5970 FT_Library ftlibrary;
5971 FT_Face face;
5972 FT_Error error;
5973 FT_ULong charcode;
5974 FT_UInt gindex;
5975 FT_Glyph glyph;
5976 FT_BBox bbox;
5977 FT_Matrix matrix;
5978 FT_UInt i;
5979 char* name = 0;
5980 char italic, bold;
5982 FT_Init_FreeType(&ftlibrary);
5983 FT_New_Face(ftlibrary, "filename", 0, &face);
5984 i = face->num_glyphs - 1;
5985 italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
5986 bold = face->style_flags&FT_STYLE_FLAG_BOLD;
5987 FT_Get_Postscript_Name(face);
5988 FT_Get_Char_Index(face, 33);
5989 FT_Get_First_Char(face, &i);
5990 FT_Get_Next_Char(face, 33, &i);
5991 if(FT_HAS_GLYPH_NAMES(face)) {
5992 FT_Get_Glyph_Name(face, 33, name, 127);
5994 FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
5995 FT_Get_Glyph(face->glyph, &glyph);
5996 FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
5997 FT_Done_Glyph(glyph);
5998 FT_Done_Face(face);
5999 FT_Done_FreeType(ftlibrary);
6000 return 0;
6004 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
6005 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6007 $as_echo "yes" >&6; }
6009 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
6012 $as_echo "#define HAVE_FREETYPE_FREETYPE_H 1" >>confdefs.h
6015 $as_echo "#define USE_FREETYPE 1" >>confdefs.h
6016 # for ttf2tp1
6017 else
6018 echo "configure: failed program was:" >&5
6019 cat conftest.c >&5
6020 HAVE_FREETYPE=0
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6022 $as_echo "no" >&6; }
6024 rm -f conftest*
6027 # if the above didn't work out, reset all changes to the compiler variables.
6028 if test "x${HAVE_FREETYPE}" '!=' "x1"; then
6029 CPPFLAGS=$OLDCPPFLAGS
6030 LIBS=$OLDLIBS
6035 OLDCPPFLAGS="${CPPFLAGS}"
6036 OLDLIBS="${LIBS}"
6038 if test -d /usr/include/fontconfig; then
6039 CPPFLAGS="$CPPFLAGS -I/usr/include/fontconfig"
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FcInit in -lfontconfig" >&5
6043 $as_echo_n "checking for FcInit in -lfontconfig... " >&6; }
6044 if test "${ac_cv_lib_fontconfig_FcInit+set}" = set; then :
6045 $as_echo_n "(cached) " >&6
6046 else
6047 ac_check_lib_save_LIBS=$LIBS
6048 LIBS="-lfontconfig $LIBS"
6049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6050 /* end confdefs.h. */
6052 /* Override any GCC internal prototype to avoid an error.
6053 Use char because int might match the return type of a GCC
6054 builtin and then its argument prototype would still apply. */
6055 #ifdef __cplusplus
6056 extern "C"
6057 #endif
6058 char FcInit ();
6060 main ()
6062 return FcInit ();
6064 return 0;
6066 _ACEOF
6067 if ac_fn_c_try_link "$LINENO"; then :
6068 ac_cv_lib_fontconfig_FcInit=yes
6069 else
6070 ac_cv_lib_fontconfig_FcInit=no
6072 rm -f core conftest.err conftest.$ac_objext \
6073 conftest$ac_exeext conftest.$ac_ext
6074 LIBS=$ac_check_lib_save_LIBS
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fontconfig_FcInit" >&5
6077 $as_echo "$ac_cv_lib_fontconfig_FcInit" >&6; }
6078 if test "x$ac_cv_lib_fontconfig_FcInit" = x""yes; then :
6079 HAVE_LIB_FONTCONFIG=1
6082 for ac_header in fontconfig.h
6083 do :
6084 ac_fn_c_check_header_mongrel "$LINENO" "fontconfig.h" "ac_cv_header_fontconfig_h" "$ac_includes_default"
6085 if test "x$ac_cv_header_fontconfig_h" = x""yes; then :
6086 cat >>confdefs.h <<_ACEOF
6087 #define HAVE_FONTCONFIG_H 1
6088 _ACEOF
6089 HAVE_FONTCONFIG_H=1
6092 done
6095 if test "x${HAVE_LIB_FONTCONFIG}" != "x";then
6096 if test "x${HAVE_FONTCONFIG_H}" != "x";then
6097 HAVE_FONTCONFIG=1
6101 if test "x${HAVE_FONTCONFIG}" = "x1"; then
6102 LIBS="$LIBS -lfontconfig"
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the fontconfig test program" >&5
6104 $as_echo_n "checking whether we can compile the fontconfig test program... " >&6; }
6106 if (echo $LIBS | grep lfreetype >/dev/null 2>&1); then
6107 #move freetype library to the end of libraries, otherwise fontconfig
6108 #won't compile.
6109 LIBS=`echo $LIBS | sed -e 's/-lfreetype//g' -e 's/$/ -lfreetype/'`
6112 cat > conftest.c << EOF
6113 #include <string.h>
6114 #include <fontconfig.h>
6116 int main()
6118 FcPattern *pattern, *match;
6119 FcResult result;
6120 FcChar8 *v;
6121 char*s1="abc",*s2="ABC";
6122 strcasecmp(s1,s2);
6123 FcInit();
6124 pattern = FcPatternBuild(0, FC_FAMILY, FcTypeString, "", 0);
6125 FcPatternAddInteger(pattern, FC_SLANT, FC_SLANT_ITALIC);
6126 FcPatternAddInteger(pattern, FC_WEIGHT, FC_WEIGHT_BOLD);
6128 FcConfig*c = FcConfigCreate();
6129 FcConfigParseAndLoad(c, (FcChar8*)"", 1);
6130 FcConfigBuildFonts(c);
6131 FcConfigSetCurrent(c);
6133 FcFontSet * set = FcConfigGetFonts(c, FcSetSystem);
6134 FcFontSetDestroy(set);
6136 FcConfigSubstitute(0, pattern, FcMatchPattern);
6137 FcDefaultSubstitute(pattern);
6138 match = FcFontMatch(0, pattern, &result);
6139 FcPatternGetString(match, "family", 0, &v) == FcResultMatch;
6140 FcPatternGetBool(match, "family", 0, &v) == FcResultMatch;
6141 FcPatternPrint(pattern);
6142 FcPatternDestroy(pattern);
6143 FcPatternDestroy(match);
6144 FcFini();
6145 return 0;
6149 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
6150 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6152 $as_echo "yes" >&6; }
6154 $as_echo "#define HAVE_FONTCONFIG 1" >>confdefs.h
6156 else
6157 echo "configure: failed program was:" >&5
6158 cat conftest.c >&5
6159 HAVE_FONTCONFIG=0
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6161 $as_echo "no" >&6; }
6163 rm -f conftest*
6166 # if the above didn't work out, reset all changes to the compiler variables.
6167 if test "x${HAVE_FONTCONFIG}" "!=" "x1"; then
6168 CPPFLAGS=$OLDCPPFLAGS
6169 LIBS=$OLDLIBS
6174 OLDCPPFLAGS="${CPPFLAGS}"
6175 OLDLIBS="${LIBS}"
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftwf_plan_dft_r2c_2d in -lfftw3f" >&5
6178 $as_echo_n "checking for fftwf_plan_dft_r2c_2d in -lfftw3f... " >&6; }
6179 if test "${ac_cv_lib_fftw3f_fftwf_plan_dft_r2c_2d+set}" = set; then :
6180 $as_echo_n "(cached) " >&6
6181 else
6182 ac_check_lib_save_LIBS=$LIBS
6183 LIBS="-lfftw3f $LIBS"
6184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6185 /* end confdefs.h. */
6187 /* Override any GCC internal prototype to avoid an error.
6188 Use char because int might match the return type of a GCC
6189 builtin and then its argument prototype would still apply. */
6190 #ifdef __cplusplus
6191 extern "C"
6192 #endif
6193 char fftwf_plan_dft_r2c_2d ();
6195 main ()
6197 return fftwf_plan_dft_r2c_2d ();
6199 return 0;
6201 _ACEOF
6202 if ac_fn_c_try_link "$LINENO"; then :
6203 ac_cv_lib_fftw3f_fftwf_plan_dft_r2c_2d=yes
6204 else
6205 ac_cv_lib_fftw3f_fftwf_plan_dft_r2c_2d=no
6207 rm -f core conftest.err conftest.$ac_objext \
6208 conftest$ac_exeext conftest.$ac_ext
6209 LIBS=$ac_check_lib_save_LIBS
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3f_fftwf_plan_dft_r2c_2d" >&5
6212 $as_echo "$ac_cv_lib_fftw3f_fftwf_plan_dft_r2c_2d" >&6; }
6213 if test "x$ac_cv_lib_fftw3f_fftwf_plan_dft_r2c_2d" = x""yes; then :
6214 HAVE_LIBFFTW3=1
6217 for ac_header in fftw3.h
6218 do :
6219 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
6220 if test "x$ac_cv_header_fftw3_h" = x""yes; then :
6221 cat >>confdefs.h <<_ACEOF
6222 #define HAVE_FFTW3_H 1
6223 _ACEOF
6224 HAVE_FFTW3_H=1
6227 done
6230 if test "x${HAVE_LIBFFTW3}" != "x";then
6231 if test "x${HAVE_FFTW3_H}" != "x";then
6232 HAVE_FFTW3=1
6236 if test "x${HAVE_FFTW3}" = "x1"; then
6237 LIBS="$LIBS -lfftw3f"
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the fftw3 test program" >&5
6239 $as_echo_n "checking whether we can compile the fftw3 test program... " >&6; }
6241 cat > conftest.c << EOF
6242 #include <fftw3.h>
6244 int main()
6246 char*data = fftw_malloc(sizeof(fftwf_complex)*600*800);
6247 fftwf_plan plan = fftwf_plan_dft_2d(600, 800, (fftwf_complex*)data, (fftwf_complex*)data, FFTW_FORWARD, FFTW_ESTIMATE);
6248 plan = fftwf_plan_dft_r2c_2d(600, 800, (float*)data, (fftwf_complex*)data, FFTW_ESTIMATE);
6249 plan = fftwf_plan_dft_c2r_2d(600, 800, (fftwf_complex*)data, (float*)data, FFTW_ESTIMATE);
6250 fftwf_execute(plan);
6251 fftwf_destroy_plan(plan);
6255 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
6256 if { (eval echo fftw3.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6258 $as_echo "yes" >&6; }
6260 $as_echo "#define HAVE_FFTW3 1" >>confdefs.h
6262 else
6263 echo "configure: failed program was:" >&5
6264 cat conftest.c >&5
6265 HAVE_FFTW3=0
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6267 $as_echo "no" >&6; }
6269 rm -f conftest*
6272 # if the above didn't work out, reset all changes to the compiler variables.
6273 if test "x${HAVE_FFTW3}" "!=" "x1"; then
6274 CPPFLAGS=$OLDCPPFLAGS
6275 LIBS=$OLDLIBS
6279 # RFX_CHECK_OPENGL
6280 # if test "$HAVE_OPENGL";then
6281 # DEVICE_OPENGL='devices/opengl.$(O)'
6282 # AC_SUBST(DEVICE_OPENGL)
6283 # fi
6286 lame_in_source=
6287 lame_makefile=
6288 if test "x${DISABLE_LAME}" = "xtrue"; then
6289 echo "*" Disabling lame support...
6290 else
6291 # old lame code at lib/lame
6292 if test -f lib/lame/Makefile.in; then
6293 lame_in_source='$(lame_objects)'
6294 lame_makefile="lib/lame/Makefile"
6295 CPPFLAGS="$CPPFLAGS -Ilame -Ilib/lame"
6297 $as_echo "#define HAVE_LAME 1" >>confdefs.h
6299 else
6300 if test -d /usr/include/lame; then
6301 CPPFLAGS="$CPPFLAGS -I /usr/include/lame"
6302 else
6303 if test -d /usr/local/include/lame; then
6304 CPPFLAGS="$CPPFLAGS -I /usr/local/include/lame"
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lame_init in -lmp3lame" >&5
6308 $as_echo_n "checking for lame_init in -lmp3lame... " >&6; }
6309 if test "${ac_cv_lib_mp3lame_lame_init+set}" = set; then :
6310 $as_echo_n "(cached) " >&6
6311 else
6312 ac_check_lib_save_LIBS=$LIBS
6313 LIBS="-lmp3lame $LIBS"
6314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6315 /* end confdefs.h. */
6317 /* Override any GCC internal prototype to avoid an error.
6318 Use char because int might match the return type of a GCC
6319 builtin and then its argument prototype would still apply. */
6320 #ifdef __cplusplus
6321 extern "C"
6322 #endif
6323 char lame_init ();
6325 main ()
6327 return lame_init ();
6329 return 0;
6331 _ACEOF
6332 if ac_fn_c_try_link "$LINENO"; then :
6333 ac_cv_lib_mp3lame_lame_init=yes
6334 else
6335 ac_cv_lib_mp3lame_lame_init=no
6337 rm -f core conftest.err conftest.$ac_objext \
6338 conftest$ac_exeext conftest.$ac_ext
6339 LIBS=$ac_check_lib_save_LIBS
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp3lame_lame_init" >&5
6342 $as_echo "$ac_cv_lib_mp3lame_lame_init" >&6; }
6343 if test "x$ac_cv_lib_mp3lame_lame_init" = x""yes; then :
6344 cat >>confdefs.h <<_ACEOF
6345 #define HAVE_LIBMP3LAME 1
6346 _ACEOF
6348 LIBS="-lmp3lame $LIBS"
6350 else
6351 NO_LIBMP3LAME=1
6354 HASLAMEHEADER=
6355 for ac_header in lame.h
6356 do :
6357 ac_fn_c_check_header_mongrel "$LINENO" "lame.h" "ac_cv_header_lame_h" "$ac_includes_default"
6358 if test "x$ac_cv_header_lame_h" = x""yes; then :
6359 cat >>confdefs.h <<_ACEOF
6360 #define HAVE_LAME_H 1
6361 _ACEOF
6362 HASLAMEHEADER=1
6365 done
6367 if test "x$NO_LIBMP3LAME" "!=" "x1" -a "x$HASLAMEHEADER" '!=' "x";then
6368 $as_echo "#define HAVE_LAME 1" >>confdefs.h
6375 xpdf_in_source=
6376 splash_in_source=
6377 xpdf_include=
6379 if test "x$USE_POPPLER" = "xtrue"; then
6381 $as_echo "#define HAVE_POPPLER 1" >>confdefs.h
6383 #PKG_CHECK_MODULES([POPPLER],[poppler poppler-splash],,[poppler_pkgconfig=no])
6384 if test "x$poppler_pkgconfig" = "xno"; then
6385 ac_ext=cpp
6386 ac_cpp='$CXXCPP $CPPFLAGS'
6387 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6388 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6389 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6392 ac_ext=cpp
6393 ac_cpp='$CXXCPP $CPPFLAGS'
6394 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6395 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6396 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
6398 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
6399 if test -z "$CXXCPP"; then
6400 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
6401 $as_echo_n "(cached) " >&6
6402 else
6403 # Double quotes because CXXCPP needs to be expanded
6404 for CXXCPP in "$CXX -E" "/lib/cpp"
6406 ac_preproc_ok=false
6407 for ac_cxx_preproc_warn_flag in '' yes
6409 # Use a header file that comes with gcc, so configuring glibc
6410 # with a fresh cross-compiler works.
6411 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6412 # <limits.h> exists even on freestanding compilers.
6413 # On the NeXT, cc -E runs the code through the compiler's parser,
6414 # not just through cpp. "Syntax error" is here to catch this case.
6415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6416 /* end confdefs.h. */
6417 #ifdef __STDC__
6418 # include <limits.h>
6419 #else
6420 # include <assert.h>
6421 #endif
6422 Syntax error
6423 _ACEOF
6424 if ac_fn_cxx_try_cpp "$LINENO"; then :
6426 else
6427 # Broken: fails on valid input.
6428 continue
6430 rm -f conftest.err conftest.$ac_ext
6432 # OK, works on sane cases. Now check whether nonexistent headers
6433 # can be detected and how.
6434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6435 /* end confdefs.h. */
6436 #include <ac_nonexistent.h>
6437 _ACEOF
6438 if ac_fn_cxx_try_cpp "$LINENO"; then :
6439 # Broken: success on invalid input.
6440 continue
6441 else
6442 # Passes both tests.
6443 ac_preproc_ok=:
6444 break
6446 rm -f conftest.err conftest.$ac_ext
6448 done
6449 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6450 rm -f conftest.err conftest.$ac_ext
6451 if $ac_preproc_ok; then :
6452 break
6455 done
6456 ac_cv_prog_CXXCPP=$CXXCPP
6459 CXXCPP=$ac_cv_prog_CXXCPP
6460 else
6461 ac_cv_prog_CXXCPP=$CXXCPP
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
6464 $as_echo "$CXXCPP" >&6; }
6465 ac_preproc_ok=false
6466 for ac_cxx_preproc_warn_flag in '' yes
6468 # Use a header file that comes with gcc, so configuring glibc
6469 # with a fresh cross-compiler works.
6470 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6471 # <limits.h> exists even on freestanding compilers.
6472 # On the NeXT, cc -E runs the code through the compiler's parser,
6473 # not just through cpp. "Syntax error" is here to catch this case.
6474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6475 /* end confdefs.h. */
6476 #ifdef __STDC__
6477 # include <limits.h>
6478 #else
6479 # include <assert.h>
6480 #endif
6481 Syntax error
6482 _ACEOF
6483 if ac_fn_cxx_try_cpp "$LINENO"; then :
6485 else
6486 # Broken: fails on valid input.
6487 continue
6489 rm -f conftest.err conftest.$ac_ext
6491 # OK, works on sane cases. Now check whether nonexistent headers
6492 # can be detected and how.
6493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6494 /* end confdefs.h. */
6495 #include <ac_nonexistent.h>
6496 _ACEOF
6497 if ac_fn_cxx_try_cpp "$LINENO"; then :
6498 # Broken: success on invalid input.
6499 continue
6500 else
6501 # Passes both tests.
6502 ac_preproc_ok=:
6503 break
6505 rm -f conftest.err conftest.$ac_ext
6507 done
6508 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6509 rm -f conftest.err conftest.$ac_ext
6510 if $ac_preproc_ok; then :
6512 else
6513 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6514 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6515 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
6516 See \`config.log' for more details." "$LINENO" 5; }
6519 ac_ext=cpp
6520 ac_cpp='$CXXCPP $CPPFLAGS'
6521 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6522 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6523 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6526 for ac_header in OutputDev.h
6527 do :
6528 ac_fn_cxx_check_header_mongrel "$LINENO" "OutputDev.h" "ac_cv_header_OutputDev_h" "$ac_includes_default"
6529 if test "x$ac_cv_header_OutputDev_h" = x""yes; then :
6530 cat >>confdefs.h <<_ACEOF
6531 #define HAVE_OUTPUTDEV_H 1
6532 _ACEOF
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpoppler" >&5
6535 $as_echo_n "checking for main in -lpoppler... " >&6; }
6536 if test "${ac_cv_lib_poppler_main+set}" = set; then :
6537 $as_echo_n "(cached) " >&6
6538 else
6539 ac_check_lib_save_LIBS=$LIBS
6540 LIBS="-lpoppler $LIBS"
6541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6542 /* end confdefs.h. */
6546 main ()
6548 return main ();
6550 return 0;
6552 _ACEOF
6553 if ac_fn_cxx_try_link "$LINENO"; then :
6554 ac_cv_lib_poppler_main=yes
6555 else
6556 ac_cv_lib_poppler_main=no
6558 rm -f core conftest.err conftest.$ac_objext \
6559 conftest$ac_exeext conftest.$ac_ext
6560 LIBS=$ac_check_lib_save_LIBS
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poppler_main" >&5
6563 $as_echo "$ac_cv_lib_poppler_main" >&6; }
6564 if test "x$ac_cv_lib_poppler_main" = x""yes; then :
6565 cat >>confdefs.h <<_ACEOF
6566 #define HAVE_LIBPOPPLER 1
6567 _ACEOF
6569 LIBS="-lpoppler $LIBS"
6574 else
6575 as_fn_error "No poppler library found. This library is required." "$LINENO" 5
6578 done
6580 ac_ext=c
6581 ac_cpp='$CPP $CPPFLAGS'
6582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6586 else
6587 CPPFLAGS="$CPPFLAGS $POPPLER_CFLAGS"
6588 LIBS="$LIBS $POPPLER_LIBS"
6589 $as_echo "#define HAVE_POPPLER 1" >>confdefs.h
6592 else
6593 splash_in_source='$(splash_objects)'
6594 xpdf_in_source='$(xpdf_objects)'
6595 xpdf_include=' -I xpdf '
6602 # ------------------------------------------------------------------
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the filesystem normalizes file names" >&5
6606 $as_echo_n "checking whether the filesystem normalizes file names... " >&6; }
6608 echo test1 > __abcdefghijklmnopqrstuvwxyz.txt
6609 echo test2 > __ABCDEFGHIJKLMNOPQRSTUVWXYZ.txt
6610 if test `cat __abcdefghijklmnopqrstuvwxyz.txt` = "test2";then
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6612 $as_echo "yes" >&6; }
6614 $as_echo "#define LOWERCASE_UPPERCASE 1" >>confdefs.h
6616 else
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6618 $as_echo "no" >&6; }
6621 rm -f __abcdefghijklmnopqrstuvwxyz.txt
6622 rm -f __ABCDEFGHIJKLMNOPQRSTUVWXYZ.txt
6626 for ac_prog in avifile-config
6628 # Extract the first word of "$ac_prog", so it can be a program name with args.
6629 set dummy $ac_prog; ac_word=$2
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6631 $as_echo_n "checking for $ac_word... " >&6; }
6632 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then :
6633 $as_echo_n "(cached) " >&6
6634 else
6635 if test -n "$AVIFILE_CONFIG"; then
6636 ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
6637 else
6638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6639 for as_dir in $PATH
6641 IFS=$as_save_IFS
6642 test -z "$as_dir" && as_dir=.
6643 for ac_exec_ext in '' $ac_executable_extensions; do
6644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6645 ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
6646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6647 break 2
6649 done
6650 done
6651 IFS=$as_save_IFS
6655 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
6656 if test -n "$AVIFILE_CONFIG"; then
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AVIFILE_CONFIG" >&5
6658 $as_echo "$AVIFILE_CONFIG" >&6; }
6659 else
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6661 $as_echo "no" >&6; }
6665 test -n "$AVIFILE_CONFIG" && break
6666 done
6669 if test "x$AVIFILE_CONFIG" '!=' "x";then
6670 OLDCPPFLAGS="$CPPFLAGS"
6671 # temporarily add avifile paths to CPPFLAGS...
6672 CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
6673 for ac_header in avifile/version.h version.h
6674 do :
6675 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6676 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6677 eval as_val=\$$as_ac_Header
6678 if test "x$as_val" = x""yes; then :
6679 cat >>confdefs.h <<_ACEOF
6680 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6681 _ACEOF
6685 done
6687 # ... and reset
6688 CPPFLAGS="$OLDCPPFLAGS"
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the avifile test program" >&5
6692 $as_echo_n "checking whether we can compile the avifile test program... " >&6; }
6694 if test "x${ac_cv_header_version_h}" '=' "xyes";then
6695 HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
6697 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
6698 HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
6701 cat > conftest.cpp << EOF
6703 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
6704 // so we have to introduce them this way
6705 $HAVE_VERSION_H_DEFINE
6706 $HAVE_AVIFILE_VERSION_H_DEFINE
6708 #ifdef HAVE_VERSION_H
6709 #include <version.h>
6710 #endif
6711 #ifdef HAVE_AVIFILE_VERSION_H
6712 #include <avifile/version.h>
6713 #endif
6715 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
6716 #include <avifile.h>
6717 #include <aviplay.h>
6718 #include <avm_fourcc.h>
6719 #include <avm_creators.h>
6720 #include <StreamInfo.h>
6721 #define VERSION6
6722 #else
6723 #include <avifile.h>
6724 #include <aviplay.h>
6725 #include <aviutil.h>
6726 #define Width width
6727 #define Height height
6728 #define Data data
6729 #define Bpp bpp
6730 #endif
6732 void test()
6734 IAviReadFile* player;
6735 IAviReadStream* astream;
6736 IAviReadStream* vstream;
6737 player = CreateIAviReadFile(0);
6738 astream = player->GetStream(0, AviStream::Audio);
6739 vstream = player->GetStream(0, AviStream::Video);
6740 vstream -> StartStreaming();
6741 astream -> StartStreaming();
6742 #ifndef VERSION6
6743 MainAVIHeader head;
6744 player->GetFileHeader(&head);
6745 head.dwMicroSecPerFrame;
6746 head.dwTotalFrames;
6747 head.dwStreams;
6748 head.dwWidth;
6749 head.dwHeight;
6750 head.dwMicroSecPerFrame;
6751 astream->GetEndPos(),
6752 astream->GetEndTime());
6753 player->StreamCount();
6754 #else
6755 StreamInfo*audioinfo;
6756 StreamInfo*videoinfo;
6757 audioinfo = astream->GetStreamInfo();
6758 videoinfo = vstream->GetStreamInfo();
6759 videoinfo->GetVideoWidth();
6760 videoinfo->GetVideoHeight();
6761 audioinfo->GetAudioSamplesPerSec();
6762 videoinfo->GetFps();
6763 #endif
6764 CImage*img = vstream->GetFrame();
6765 img->ToRGB();
6766 img->Data();
6767 img->Bpp();
6768 img->Width();
6769 img->Height();
6770 WAVEFORMATEX wave;
6771 astream->GetAudioFormatInfo(&wave,0);
6772 uint_t a,b;
6773 astream->ReadFrames(0,0,0,a,b);
6775 int main (int argc, char*argv)
6777 return 0;
6781 if test "x$AVIFILE_CONFIG" '!=' "x";then
6782 AVIFILE_LIBS=`$AVIFILE_CONFIG --libs`
6783 AVIFILE_CFLAGS=`$AVIFILE_CONFIG --cflags`
6784 avifile_link='$CXX $CPPFLAGS $CXXFLAGS $AVIFILE_CFLAGS conftest.cpp $AVIFILE_LIBS -o conftest${ac_exeext}'
6785 if { (eval echo avi2swf.m4:71: \"$avifile_link\") 1>&5; (eval $avifile_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6787 $as_echo "yes" >&6; }
6788 AVIFILE=true
6789 export AVIFILE
6791 $as_echo "#define AVIFILE true" >>confdefs.h
6793 else
6794 echo "configure: failed program was:" >&5
6795 cat conftest.cpp >&5
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6797 $as_echo "no" >&6; }
6799 else
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6801 $as_echo "no" >&6; }
6803 rm -f conftest*
6805 if test "x${AVIFILE}" = "xtrue"; then
6806 VIDEO_LIBS="$VIDEO_LIBS $AVIFILE_LIBS"
6807 VIDEO_CFLAGS="$VIDEO_CFLAGS $AVIFILE_CFLAGS"
6809 $as_echo "#define HAVE_AVIFILE 1" >>confdefs.h
6813 if test "x${WIN32}" != "x"; then
6814 #AC_CHECK_LIB(avifil32, AVIFileInit,AVIFIL32=true)
6815 #if test "x${AVIFIL32}" != "x"; then
6816 # VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
6818 VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
6819 AVIFIL32=true
6824 # ------------------------------------------------------------------
6826 if test "x${UNCOMPRESS}" = "xgzip"; then
6828 $as_echo "#define USE_GZIP 1" >>confdefs.h
6833 # ------------------------------------------------------------------
6836 # Extract the first word of "ruby", so it can be a program name with args.
6837 set dummy ruby; ac_word=$2
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6839 $as_echo_n "checking for $ac_word... " >&6; }
6840 if test "${ac_cv_path_RUBY+set}" = set; then :
6841 $as_echo_n "(cached) " >&6
6842 else
6843 case $RUBY in
6844 [\\/]* | ?:[\\/]*)
6845 ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
6848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6849 for as_dir in $PATH
6851 IFS=$as_save_IFS
6852 test -z "$as_dir" && as_dir=.
6853 for ac_exec_ext in '' $ac_executable_extensions; do
6854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6855 ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
6856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6857 break 2
6859 done
6860 done
6861 IFS=$as_save_IFS
6864 esac
6866 RUBY=$ac_cv_path_RUBY
6867 if test -n "$RUBY"; then
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5
6869 $as_echo "$RUBY" >&6; }
6870 else
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6872 $as_echo "no" >&6; }
6877 RUBY_CPPFLAGS=""
6878 RUBY_LDFLAGS=""
6879 RUBY_LIBS=""
6881 rubylib=ruby18
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ruby's include directory" >&5
6884 $as_echo_n "checking for ruby's include directory... " >&6; }
6885 if test "x$RUBY" '!=' "x";then
6886 rubyinc=`$RUBY -e 'require "rbconfig";puts Config::expand(Config::CONFIG.send("\x5b\x5d", "archdir"))' 2>/dev/null`
6887 if test -d $rubyinc;then
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rubyinc" >&5
6889 $as_echo "$rubyinc" >&6; }
6891 # If we got a sensible archdir, we also ask ruby to supply us with CPPFLAGS
6892 # and LDFLAGS.
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ruby's cpp flags" >&5
6894 $as_echo_n "checking for ruby's cpp flags... " >&6; }
6895 rubycpp=`$RUBY -e 'require "rbconfig";puts Config::expand(Config::CONFIG.send("\x5b\x5d", "CPPFLAGS"))' 2>/dev/null`
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rubycpp" >&5
6897 $as_echo "$rubycpp" >&6; }
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ruby's ld flags" >&5
6900 $as_echo_n "checking for ruby's ld flags... " >&6; }
6901 rubyld=`$RUBY -e 'require "rbconfig";puts Config::expand(Config::CONFIG.send("\x5b\x5d", "LIBRUBYARG_SHARED"))' 2>/dev/null`
6902 rubyld2=`$RUBY -e 'require "rbconfig";v=Config::expand(Config::CONFIG.send("\x5b\x5d", "LIBRUBY_LDSHARED"));puts v.gsub(/^g?cc/,"")' 2>/dev/null`
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$rubyld $rubyld2\"" >&5
6904 $as_echo "\"$rubyld $rubyld2\"" >&6; }
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ruby library name" >&5
6907 $as_echo_n "checking for ruby library name... " >&6; }
6908 rubylib=`$RUBY -e 'require "rbconfig";puts Config::expand(Config::CONFIG.send("\x5b\x5d", "RUBY_SO_NAME"))' 2>/dev/null`
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rubylib" >&5
6910 $as_echo "$rubylib" >&6; }
6912 RUBY_CPPFLAGS="$rubycpp -I$rubyinc $RUBY_CPPFLAGS"
6913 RUBY_LDFLAGS="$rubyld $rubyld2 $RUBY_LDFLAGS"
6914 RUBY_INSTALLDIR="$rubyinc"
6915 else
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 'unknown'" >&5
6917 $as_echo "'unknown'" >&6; }
6919 else
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 'unknown'" >&5
6921 $as_echo "'unknown'" >&6; }
6924 #OLDLDFLAGS="$LDFLAGS"
6925 #LDFLAGS="$LDFLAGS $RUBY_LDFLAGS"
6926 #AC_CHECK_LIB($rubylib, rb_define_method, HAVE_RUBY_LIB=1,)
6927 #LDFLAGS="$OLDLDFLAGS"
6929 OLDCPPFLAGS="$CPPFLAGS"
6930 CPPFLAGS="$CPPFLAGS $RUBY_CPPFLAGS"
6931 for ac_header in ruby.h
6932 do :
6933 ac_fn_c_check_header_mongrel "$LINENO" "ruby.h" "ac_cv_header_ruby_h" "$ac_includes_default"
6934 if test "x$ac_cv_header_ruby_h" = x""yes; then :
6935 cat >>confdefs.h <<_ACEOF
6936 #define HAVE_RUBY_H 1
6937 _ACEOF
6938 HAVE_RUBY_H=1
6941 done
6943 CPPFLAGS="$OLDCPPFLAGS"
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we should compile the ruby module" >&5
6946 $as_echo_n "checking whether we should compile the ruby module... " >&6; }
6947 if test "x${HAVE_RUBY_H}" '!=' "x";then
6948 #RUBY_LIBS="$RUBY_LIBS -l$rubylib"
6950 cat > conftest.c << EOF
6951 #include <ruby.h>
6952 static VALUE foobar;
6953 VALUE foobar_set_foo(VALUE module, VALUE _key, VALUE _value)
6955 return Qnil;
6957 int Init_foobar()
6959 foobar = rb_define_module("foobar");
6960 rb_define_module_function(foobar, "set_foo", foobar_set_foo, 2);
6961 return 0;
6963 int main() {return 0;}
6965 ac_link='$CC $SHARED $CPPFLAGS $RUBY_CPPFLAGS $CFLAGS conftest.c $LDFLAGS $RUBY_LDFLAGS $LIBS $RUBY_LIBS -o conftest${SLEXT}'
6966 if { (eval echo ruby.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${SLEXT}; then
6967 RUBY_OK=yes
6968 else
6969 echo "configure: failed program was:" >&5
6970 cat conftest.c >&5
6972 rm -f conftest*
6975 if test "x${RUBY_OK}" '=' "xyes"; then
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6977 $as_echo "yes" >&6; }
6982 else
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6984 $as_echo "no" >&6; }
6985 RUBY_CPPFLAGS=""
6986 RUBY_LDFLAGS=""
6987 RUBY_LIBS=""
6988 RUBY_INSTALLDIR=""
6992 if test "x$RUBY_OK" '!=' "xyes";then
6993 if test -d "lib/ruby/";then
6994 echo all install uninstall clean: > lib/ruby/Makefile
6996 # fail silently- the most users won't have any need for the
6997 # ruby interface anyway
6998 else
6999 if test -f "lib/ruby/Makefile.in";then
7000 rubygfx="lib/ruby/Makefile"
7004 # ------------------------------------------------------------------
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for missing libraries" >&5
7007 $as_echo_n "checking for missing libraries... " >&6; }
7009 if test "x$ZLIBMISSING" = "xtrue";then
7010 MISSINGLIBS="${MISSINGLIBS} zlib"
7011 DISABLEPNG2SWF=true
7012 PARTIAL=true
7014 if test "x$JPEGLIBMISSING" = "xtrue";then
7015 MISSINGLIBS="${MISSINGLIBS} jpeglib"
7016 DISABLEPDF2SWF=true
7017 DISABLEJPEG2SWF=true
7018 PARTIAL=true
7020 if test "x$PDFLIBMISSING" = "xtrue";then
7021 DISABLEPDF2PDF=true;
7023 #if test "x$T1LIBMISSING" = "xtrue";then
7024 # MISSINGLIBS="${MISSINGLIBS} t1lib"
7026 if test "x$UNGIFMISSING" = "xtrue";then
7027 DISABLEGIF2SWF=true
7028 MISSINGLIBS="${MISSINGLIBS} ungif"
7029 PARTIAL=true
7032 if test "x${ac_cv_header_pdflib_h}" '!=' "xyes";then
7033 DISABLEPDF2PDF=true;
7035 if test "x${ac_cv_header_jpeglib_h}" '!=' "xyes"; then
7036 DISABLEPDF2SWF=true;
7037 DISABLEJPEG2SWF=true;
7038 MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
7039 PARTIAL=true
7041 if test "x$HAVE_FREETYPE" '!=' "x1"; then
7042 DISABLEPDF2SWF=true;
7043 MISSINGLIBS="${MISSINGLIBS} freetype"
7044 PARTIAL=true
7046 #if test "x${ac_cv_header_t1lib_h}" '!=' "xyes"; then
7047 # MISSINGLIBS="${MISSINGLIBS} t1lib.h"
7049 if test "x${ac_cv_header_gif_lib_h}" '!=' "xyes"; then
7050 DISABLEGIF2SWF=true
7051 MISSINGLIBS="${MISSINGLIBS} gif_lib.h"
7052 PARTIAL=true
7054 if test "x${ac_cv_header_zlib_h}" '!=' "xyes"; then
7055 DISABLEPNG2SWF=true;
7056 MISSINGLIBS="${MISSINGLIBS} zlib.h"
7057 PARTIAL=true
7059 #if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
7060 # MISSINGLIBS="${MISSINGLIBS} avifile"
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${MISSINGLIBS}" >&5
7064 $as_echo "${MISSINGLIBS}" >&6; }
7066 # ------------------------------------------------------------------
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python version" >&5
7070 $as_echo_n "checking for Python version... " >&6; }
7072 if test "x$PYTHON_LIB" '!=' "x" -a "x$PYTHON_INCLUDES" '!=' "x";then
7073 # you can override the python detection by putting PYTHON_LIB
7074 # and PYTHON_INCLUDES into the environment
7075 case "$PYTHON_INCLUDES" in
7076 *python2.4*) PY_VERSION=2.4
7078 *python2.5*) PY_VERSION=2.5
7080 *python2.6*) PY_VERSION=2.6
7082 *python2.7*) PY_VERSION=2.7
7084 *python3.0*) PY_VERSION=3.0
7086 *python3.1*) PY_VERSION=3.1
7088 *python3.2*) PY_VERSION=3.2
7090 *python3.3*) PY_VERSION=3.3
7092 *) PY_VERSION=unknown
7094 esac
7095 else
7096 if test "x$PYTHON_LIB" '!=' "x" -o "x$PYTHON_INCLUDES" '!=' "x";then
7097 echo "Set both PYTHON_LIB and PYTHON_INCLUDES, or none at all"
7099 # iterate through version 2.4 to 3.3
7100 VERSIONS="2.4 2.5 2.6 2.7 3.0 3.1 3.2 3.3"
7101 case "$PYTHON" in
7102 2*) VERSIONS="2.4 2.5 2.6 2.7 $PYTHON"
7104 3*) VERSIONS="3.0 3.1 3.2 3.3 $PYTHON"
7106 esac
7107 for v in $VERSIONS; do
7108 # Linux
7109 if test -f "/usr/include/python$v/Python.h";then
7110 PY_VERSION=$v
7111 PYTHON_LIB="-lpython$PY_VERSION"
7112 if test -f "/usr/lib/python$v/site-packages/PIL/_imaging.so";then
7113 PYTHON_LIB2="$PYTHON_LIB /usr/lib/python$v/site-packages/PIL/_imaging.so"
7114 HAVE_PYTHON_IMAGING_LIB=1
7115 else
7116 PYTHON_LIB2="$PYTHON_LIB"
7118 PYTHON_INCLUDES="-I/usr/include/python$PY_VERSION"
7119 # Mac OS X
7120 elif test -f "/Library/Frameworks/Python.framework/Versions/$v/include/python$v/Python.h";then
7121 PY_VERSION=$v
7122 PYTHON_LIB="-framework Python"
7123 if test -f "/Library/Frameworks/Python.framework/Versions/$v/site-packages/PIL/_imaging.so";then
7124 PYTHON_LIB2="$PYTHON_LIB /Library/Python/$v/PIL/_imaging.so"
7125 HAVE_PYTHON_IMAGING_LIB=1
7126 else
7127 PYTHON_LIB2="$PYTHON_LIB"
7129 PYTHON_INCLUDES="-I/Library/Frameworks/Python.framework/Versions/$v/include/python$v/"
7130 # Mac OS X [Fink]:
7131 elif test "(" -f "/sw/lib/python$v/config/libpython$v.dylib" \
7132 -o -f "/sw/lib/python$v/config/libpython$v.a" \
7133 -o -f "/sw/lib/python$v/config/libpython$v.so" \
7134 ")" \
7135 -a -f "/sw/include/python$v/Python.h"; then
7136 PY_VERSION=$v
7137 PYTHON_LIB="-L /sw/lib/python$v/config/ -lpython$PY_VERSION /sw/lib/python$v/site-packages/PIL/_imaging.so"
7138 if test -f "/sw/lib/python$v/site-packages/PIL/_imaging.so";then
7139 PYTHON_LIB2="$PYTHON_LIB /sw/lib/python$v/site-packages/PIL/_imaging.so"
7140 HAVE_PYTHON_IMAGING_LIB=1
7141 else
7142 PYTHON_LIB2="$PYTHON_LIB"
7144 PYTHON_INCLUDES="-I /sw/include/python$v/"
7146 done
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_VERSION" >&5
7149 $as_echo "$PY_VERSION" >&6; }
7151 if test "x$PY_VERSION" "!=" "x"; then
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python executable" >&5
7153 $as_echo_n "checking for Python executable... " >&6; }
7154 if python$PY_VERSION -V 2>&5;then
7155 PYTHON_EXECUTABLE=python$PY_VERSION
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXECUTABLE" >&5
7158 $as_echo "$PYTHON_EXECUTABLE" >&6; }
7159 else
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7161 $as_echo "failed" >&6; }
7165 if test "x$PY_VERSION" "!=" "x" -a "x$PYTHON_EXECUTABLE" "!=" "x"; then
7166 export PYTHON_INCLUDES PYTHON_LIB
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the Python test program" >&5
7170 $as_echo_n "checking whether we can compile the Python test program... " >&6; }
7172 cat > conftest.c << EOF
7173 # include <Python.h>
7175 int main()
7177 int ret;
7178 ret = Py_Main(0, 0);
7179 int x; // check also for gcc 2.95.x incompatibilities
7180 return ret;
7184 ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS $PYTHON_LIB $LIBS -o conftest${ac_exeext}'
7185 if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7187 $as_echo "yes" >&6; }
7188 PYTHON_OK=yes
7189 else
7190 echo "configure: failed program was:" >&5
7191 cat conftest.c >&5
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7193 $as_echo "no" >&6; }
7195 rm -f conftest*
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python install path" >&5
7198 $as_echo_n "checking for Python install path... " >&6; }
7199 cat > _pypath.py << EOF
7200 import distutils
7201 import distutils.sysconfig
7202 import sys
7203 sys.stdout.write(distutils.sysconfig.get_python_lib(plat_specific=0,standard_lib=0))
7205 echo $PYTHON_EXECUTABLE _pypath.py 1>&5
7206 if $PYTHON_EXECUTABLE _pypath.py >_pypath.txt 2>&5;then
7207 PYTHON_INSTALL_PATH=`cat _pypath.txt`
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_INSTALL_PATH" >&5
7210 $as_echo "$PYTHON_INSTALL_PATH" >&6; }
7211 else
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7213 $as_echo "failed" >&6; }
7215 #rm -f _pypath.txt _pypath.py
7217 if test "x$PYTHON_OK" = "xyes";then
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python-Imaging" >&5
7219 $as_echo_n "checking for Python-Imaging... " >&6; }
7220 cat > conftest.c << EOF
7221 # include <Python.h>
7222 # include <Imaging.h>
7224 int main()
7226 Py_Main(0, 0);
7227 return 0;
7230 if test "$HAVE_PYTHON_IMAGING_LIB"; then
7231 ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS ${PYTHON_LIB2} $LIBS -o conftest${ac_exeext}'
7232 if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7233 PYTHON_LIB="${PYTHON_LIB2}"
7235 $as_echo "#define HAVE_PYTHON_IMAGING 1" >>confdefs.h
7237 HAVE_PYTHON_IMAGING=yes
7238 export HAVE_PYTHON_IMAGING
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7241 $as_echo "yes" >&6; }
7242 else
7243 echo "configure: failed program was:" >&5
7244 cat conftest.c >&5
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7246 $as_echo "no" >&6; }
7248 else
7249 echo "(didn't find the Python-Imaging libraries)" >&5
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7251 $as_echo "no" >&6; }
7254 rm -f conftest*
7258 if test "x$PYTHON_OK" '!=' "xyes" -o "$DISABLEPDF2SWF";then
7259 echo all install uninstall clean: > lib/python/Makefile
7260 # fail silently- the most users won't have any need for the
7261 # python interface anyway
7262 else
7263 pythongfx="lib/python/Makefile"
7266 # ------------------------------------------------------------------
7268 if test "x${MISSINGLIBS}" '!=' "x"; then
7269 echo "***************************************************"
7270 echo "* The following headers/libraries are missing: " ${MISSINGLIBS}
7273 avi2swf="avi2swf/Makefile"
7274 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
7275 #don't whine, avi2swf is outdated anyway
7276 #echo "* Disabling avi2swf tool..."
7277 echo all install uninstall clean: > avi2swf/Makefile
7278 avi2swf=
7281 pdf2swf_makefile="lib/pdf/Makefile"
7282 PDF2SWF='pdf2swf$(E)'
7283 LIBPDF='libpdf$(A)'
7285 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
7286 echo "* Disabling pdf2swf tool..."
7287 rm -f lib/pdf/Makefile
7288 echo all install uninstall clean libpdf libgfxpdf: > lib/pdf/Makefile
7289 pdf2swf_makefile=""
7290 PDF2SWF=
7291 LIBPDF=
7296 PDF2PDF='pdf2pdf$(E)'
7297 DEVICE_PDF='devices/pdf.$(O)'
7298 if test "x${DISABLEPDF2PDF}" = "xtrue"; then
7299 #echo "* Disabling pdf2pdf tool..."
7300 PDF2PDF=
7301 DEVICE_PDF=
7306 if test "x${ZLIBMISSING}" = "xtrue"; then
7307 echo
7308 echo "* Warning! Without zlib, you will not be able to read"
7309 echo "* or write compressed Flash MX files!"
7312 JPEG2SWF='jpeg2swf$(E)'
7313 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
7314 echo "* Disabling jpeg2swf tool..."
7315 JPEG2SWF=
7317 export JPEG2SWF
7320 GIF2SWF='gif2swf$(E)'
7321 if test "x${DISABLEGIF2SWF}" = "xtrue"; then
7322 echo "* Disabling gif2swf tool..."
7323 GIF2SWF=
7325 export GIF2SWF
7328 PNG2SWF='png2swf$(E)'
7329 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
7330 echo "* Disabling png2swf tool..."
7331 PNG2SWF=
7333 export PNG2SWF
7336 if test "x${MISSINGLIBS}" '!=' "x"; then
7337 if test "x${PARTIAL}" '=' "x"; then
7338 echo "* (never mind)"
7340 echo "***************************************************"
7343 # ------------------------------------------------------------------
7349 if test -f "release.in"; then release_in="./release"; fi
7350 if test -f "Makefile.new.in"; then mk_in="./Makefile.new"; fi
7351 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"
7352 ac_config_files="$ac_config_files ${FILES}"
7354 cat >confcache <<\_ACEOF
7355 # This file is a shell script that caches the results of configure
7356 # tests run on this system so they can be shared between configure
7357 # scripts and configure runs, see configure's option --config-cache.
7358 # It is not useful on other systems. If it contains results you don't
7359 # want to keep, you may remove or edit it.
7361 # config.status only pays attention to the cache file if you give it
7362 # the --recheck option to rerun configure.
7364 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7365 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7366 # following values.
7368 _ACEOF
7370 # The following way of writing the cache mishandles newlines in values,
7371 # but we know of no workaround that is simple, portable, and efficient.
7372 # So, we kill variables containing newlines.
7373 # Ultrix sh set writes to stderr and can't be redirected directly,
7374 # and sets the high bit in the cache file unless we assign to the vars.
7376 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7377 eval ac_val=\$$ac_var
7378 case $ac_val in #(
7379 *${as_nl}*)
7380 case $ac_var in #(
7381 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7382 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7383 esac
7384 case $ac_var in #(
7385 _ | IFS | as_nl) ;; #(
7386 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7387 *) { eval $ac_var=; unset $ac_var;} ;;
7388 esac ;;
7389 esac
7390 done
7392 (set) 2>&1 |
7393 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7394 *${as_nl}ac_space=\ *)
7395 # `set' does not quote correctly, so add quotes: double-quote
7396 # substitution turns \\\\ into \\, and sed turns \\ into \.
7397 sed -n \
7398 "s/'/'\\\\''/g;
7399 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7400 ;; #(
7402 # `set' quotes correctly as required by POSIX, so do not add quotes.
7403 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7405 esac |
7406 sort
7408 sed '
7409 /^ac_cv_env_/b end
7410 t clear
7411 :clear
7412 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7413 t end
7414 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7415 :end' >>confcache
7416 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7417 if test -w "$cache_file"; then
7418 test "x$cache_file" != "x/dev/null" &&
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7420 $as_echo "$as_me: updating cache $cache_file" >&6;}
7421 cat confcache >$cache_file
7422 else
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7424 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7427 rm -f confcache
7429 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7430 # Let make expand exec_prefix.
7431 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7433 DEFS=-DHAVE_CONFIG_H
7435 ac_libobjs=
7436 ac_ltlibobjs=
7437 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7438 # 1. Remove the extension, and $U if already installed.
7439 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7440 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7441 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7442 # will be set to the directory where LIBOBJS objects are built.
7443 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7444 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7445 done
7446 LIBOBJS=$ac_libobjs
7448 LTLIBOBJS=$ac_ltlibobjs
7452 : ${CONFIG_STATUS=./config.status}
7453 ac_write_fail=0
7454 ac_clean_files_save=$ac_clean_files
7455 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7457 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7458 as_write_fail=0
7459 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7460 #! $SHELL
7461 # Generated by $as_me.
7462 # Run this file to recreate the current configuration.
7463 # Compiler output produced by configure, useful for debugging
7464 # configure, is in config.log if it exists.
7466 debug=false
7467 ac_cs_recheck=false
7468 ac_cs_silent=false
7470 SHELL=\${CONFIG_SHELL-$SHELL}
7471 export SHELL
7472 _ASEOF
7473 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7474 ## -------------------- ##
7475 ## M4sh Initialization. ##
7476 ## -------------------- ##
7478 # Be more Bourne compatible
7479 DUALCASE=1; export DUALCASE # for MKS sh
7480 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7481 emulate sh
7482 NULLCMD=:
7483 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7484 # is contrary to our usage. Disable this feature.
7485 alias -g '${1+"$@"}'='"$@"'
7486 setopt NO_GLOB_SUBST
7487 else
7488 case `(set -o) 2>/dev/null` in #(
7489 *posix*) :
7490 set -o posix ;; #(
7491 *) :
7493 esac
7497 as_nl='
7499 export as_nl
7500 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7501 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7502 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7503 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7504 # Prefer a ksh shell builtin over an external printf program on Solaris,
7505 # but without wasting forks for bash or zsh.
7506 if test -z "$BASH_VERSION$ZSH_VERSION" \
7507 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7508 as_echo='print -r --'
7509 as_echo_n='print -rn --'
7510 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7511 as_echo='printf %s\n'
7512 as_echo_n='printf %s'
7513 else
7514 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7515 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7516 as_echo_n='/usr/ucb/echo -n'
7517 else
7518 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7519 as_echo_n_body='eval
7520 arg=$1;
7521 case $arg in #(
7522 *"$as_nl"*)
7523 expr "X$arg" : "X\\(.*\\)$as_nl";
7524 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7525 esac;
7526 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7528 export as_echo_n_body
7529 as_echo_n='sh -c $as_echo_n_body as_echo'
7531 export as_echo_body
7532 as_echo='sh -c $as_echo_body as_echo'
7535 # The user is always right.
7536 if test "${PATH_SEPARATOR+set}" != set; then
7537 PATH_SEPARATOR=:
7538 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7539 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7540 PATH_SEPARATOR=';'
7545 # IFS
7546 # We need space, tab and new line, in precisely that order. Quoting is
7547 # there to prevent editors from complaining about space-tab.
7548 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7549 # splitting by setting IFS to empty value.)
7550 IFS=" "" $as_nl"
7552 # Find who we are. Look in the path if we contain no directory separator.
7553 case $0 in #((
7554 *[\\/]* ) as_myself=$0 ;;
7555 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556 for as_dir in $PATH
7558 IFS=$as_save_IFS
7559 test -z "$as_dir" && as_dir=.
7560 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7561 done
7562 IFS=$as_save_IFS
7565 esac
7566 # We did not find ourselves, most probably we were run as `sh COMMAND'
7567 # in which case we are not to be found in the path.
7568 if test "x$as_myself" = x; then
7569 as_myself=$0
7571 if test ! -f "$as_myself"; then
7572 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7573 exit 1
7576 # Unset variables that we do not need and which cause bugs (e.g. in
7577 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7578 # suppresses any "Segmentation fault" message there. '((' could
7579 # trigger a bug in pdksh 5.2.14.
7580 for as_var in BASH_ENV ENV MAIL MAILPATH
7581 do eval test x\${$as_var+set} = xset \
7582 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7583 done
7584 PS1='$ '
7585 PS2='> '
7586 PS4='+ '
7588 # NLS nuisances.
7589 LC_ALL=C
7590 export LC_ALL
7591 LANGUAGE=C
7592 export LANGUAGE
7594 # CDPATH.
7595 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7598 # as_fn_error ERROR [LINENO LOG_FD]
7599 # ---------------------------------
7600 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7601 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7602 # script with status $?, using 1 if that was 0.
7603 as_fn_error ()
7605 as_status=$?; test $as_status -eq 0 && as_status=1
7606 if test "$3"; then
7607 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7608 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
7610 $as_echo "$as_me: error: $1" >&2
7611 as_fn_exit $as_status
7612 } # as_fn_error
7615 # as_fn_set_status STATUS
7616 # -----------------------
7617 # Set $? to STATUS, without forking.
7618 as_fn_set_status ()
7620 return $1
7621 } # as_fn_set_status
7623 # as_fn_exit STATUS
7624 # -----------------
7625 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7626 as_fn_exit ()
7628 set +e
7629 as_fn_set_status $1
7630 exit $1
7631 } # as_fn_exit
7633 # as_fn_unset VAR
7634 # ---------------
7635 # Portably unset VAR.
7636 as_fn_unset ()
7638 { eval $1=; unset $1;}
7640 as_unset=as_fn_unset
7641 # as_fn_append VAR VALUE
7642 # ----------------------
7643 # Append the text in VALUE to the end of the definition contained in VAR. Take
7644 # advantage of any shell optimizations that allow amortized linear growth over
7645 # repeated appends, instead of the typical quadratic growth present in naive
7646 # implementations.
7647 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7648 eval 'as_fn_append ()
7650 eval $1+=\$2
7652 else
7653 as_fn_append ()
7655 eval $1=\$$1\$2
7657 fi # as_fn_append
7659 # as_fn_arith ARG...
7660 # ------------------
7661 # Perform arithmetic evaluation on the ARGs, and store the result in the
7662 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7663 # must be portable across $(()) and expr.
7664 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7665 eval 'as_fn_arith ()
7667 as_val=$(( $* ))
7669 else
7670 as_fn_arith ()
7672 as_val=`expr "$@" || test $? -eq 1`
7674 fi # as_fn_arith
7677 if expr a : '\(a\)' >/dev/null 2>&1 &&
7678 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7679 as_expr=expr
7680 else
7681 as_expr=false
7684 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7685 as_basename=basename
7686 else
7687 as_basename=false
7690 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7691 as_dirname=dirname
7692 else
7693 as_dirname=false
7696 as_me=`$as_basename -- "$0" ||
7697 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7698 X"$0" : 'X\(//\)$' \| \
7699 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7700 $as_echo X/"$0" |
7701 sed '/^.*\/\([^/][^/]*\)\/*$/{
7702 s//\1/
7705 /^X\/\(\/\/\)$/{
7706 s//\1/
7709 /^X\/\(\/\).*/{
7710 s//\1/
7713 s/.*/./; q'`
7715 # Avoid depending upon Character Ranges.
7716 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7717 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7718 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7719 as_cr_digits='0123456789'
7720 as_cr_alnum=$as_cr_Letters$as_cr_digits
7722 ECHO_C= ECHO_N= ECHO_T=
7723 case `echo -n x` in #(((((
7724 -n*)
7725 case `echo 'xy\c'` in
7726 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7727 xy) ECHO_C='\c';;
7728 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7729 ECHO_T=' ';;
7730 esac;;
7732 ECHO_N='-n';;
7733 esac
7735 rm -f conf$$ conf$$.exe conf$$.file
7736 if test -d conf$$.dir; then
7737 rm -f conf$$.dir/conf$$.file
7738 else
7739 rm -f conf$$.dir
7740 mkdir conf$$.dir 2>/dev/null
7742 if (echo >conf$$.file) 2>/dev/null; then
7743 if ln -s conf$$.file conf$$ 2>/dev/null; then
7744 as_ln_s='ln -s'
7745 # ... but there are two gotchas:
7746 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7747 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7748 # In both cases, we have to default to `cp -p'.
7749 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7750 as_ln_s='cp -p'
7751 elif ln conf$$.file conf$$ 2>/dev/null; then
7752 as_ln_s=ln
7753 else
7754 as_ln_s='cp -p'
7756 else
7757 as_ln_s='cp -p'
7759 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7760 rmdir conf$$.dir 2>/dev/null
7763 # as_fn_mkdir_p
7764 # -------------
7765 # Create "$as_dir" as a directory, including parents if necessary.
7766 as_fn_mkdir_p ()
7769 case $as_dir in #(
7770 -*) as_dir=./$as_dir;;
7771 esac
7772 test -d "$as_dir" || eval $as_mkdir_p || {
7773 as_dirs=
7774 while :; do
7775 case $as_dir in #(
7776 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7777 *) as_qdir=$as_dir;;
7778 esac
7779 as_dirs="'$as_qdir' $as_dirs"
7780 as_dir=`$as_dirname -- "$as_dir" ||
7781 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7782 X"$as_dir" : 'X\(//\)[^/]' \| \
7783 X"$as_dir" : 'X\(//\)$' \| \
7784 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7785 $as_echo X"$as_dir" |
7786 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7787 s//\1/
7790 /^X\(\/\/\)[^/].*/{
7791 s//\1/
7794 /^X\(\/\/\)$/{
7795 s//\1/
7798 /^X\(\/\).*/{
7799 s//\1/
7802 s/.*/./; q'`
7803 test -d "$as_dir" && break
7804 done
7805 test -z "$as_dirs" || eval "mkdir $as_dirs"
7806 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
7809 } # as_fn_mkdir_p
7810 if mkdir -p . 2>/dev/null; then
7811 as_mkdir_p='mkdir -p "$as_dir"'
7812 else
7813 test -d ./-p && rmdir ./-p
7814 as_mkdir_p=false
7817 if test -x / >/dev/null 2>&1; then
7818 as_test_x='test -x'
7819 else
7820 if ls -dL / >/dev/null 2>&1; then
7821 as_ls_L_option=L
7822 else
7823 as_ls_L_option=
7825 as_test_x='
7826 eval sh -c '\''
7827 if test -d "$1"; then
7828 test -d "$1/.";
7829 else
7830 case $1 in #(
7831 -*)set "./$1";;
7832 esac;
7833 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
7834 ???[sx]*):;;*)false;;esac;fi
7835 '\'' sh
7838 as_executable_p=$as_test_x
7840 # Sed expression to map a string onto a valid CPP name.
7841 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7843 # Sed expression to map a string onto a valid variable name.
7844 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7847 exec 6>&1
7848 ## ----------------------------------- ##
7849 ## Main body of $CONFIG_STATUS script. ##
7850 ## ----------------------------------- ##
7851 _ASEOF
7852 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7854 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7855 # Save the log message, to keep $0 and so on meaningful, and to
7856 # report actual input values of CONFIG_FILES etc. instead of their
7857 # values after options handling.
7858 ac_log="
7859 This file was extended by $as_me, which was
7860 generated by GNU Autoconf 2.65. Invocation command line was
7862 CONFIG_FILES = $CONFIG_FILES
7863 CONFIG_HEADERS = $CONFIG_HEADERS
7864 CONFIG_LINKS = $CONFIG_LINKS
7865 CONFIG_COMMANDS = $CONFIG_COMMANDS
7866 $ $0 $@
7868 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7871 _ACEOF
7873 case $ac_config_files in *"
7874 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7875 esac
7877 case $ac_config_headers in *"
7878 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7879 esac
7882 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7883 # Files that config.status was made for.
7884 config_files="$ac_config_files"
7885 config_headers="$ac_config_headers"
7887 _ACEOF
7889 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7890 ac_cs_usage="\
7891 \`$as_me' instantiates files and other configuration actions
7892 from templates according to the current configuration. Unless the files
7893 and actions are specified as TAGs, all are instantiated by default.
7895 Usage: $0 [OPTION]... [TAG]...
7897 -h, --help print this help, then exit
7898 -V, --version print version number and configuration settings, then exit
7899 --config print configuration, then exit
7900 -q, --quiet, --silent
7901 do not print progress messages
7902 -d, --debug don't remove temporary files
7903 --recheck update $as_me by reconfiguring in the same conditions
7904 --file=FILE[:TEMPLATE]
7905 instantiate the configuration file FILE
7906 --header=FILE[:TEMPLATE]
7907 instantiate the configuration header FILE
7909 Configuration files:
7910 $config_files
7912 Configuration headers:
7913 $config_headers
7915 Report bugs to the package provider."
7917 _ACEOF
7918 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7919 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7920 ac_cs_version="\\
7921 config.status
7922 configured by $0, generated by GNU Autoconf 2.65,
7923 with options \\"\$ac_cs_config\\"
7925 Copyright (C) 2009 Free Software Foundation, Inc.
7926 This config.status script is free software; the Free Software Foundation
7927 gives unlimited permission to copy, distribute and modify it."
7929 ac_pwd='$ac_pwd'
7930 srcdir='$srcdir'
7931 INSTALL='$INSTALL'
7932 test -n "\$AWK" || AWK=awk
7933 _ACEOF
7935 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7936 # The default lists apply if the user does not specify any file.
7937 ac_need_defaults=:
7938 while test $# != 0
7940 case $1 in
7941 --*=*)
7942 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7943 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7944 ac_shift=:
7947 ac_option=$1
7948 ac_optarg=$2
7949 ac_shift=shift
7951 esac
7953 case $ac_option in
7954 # Handling of the options.
7955 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7956 ac_cs_recheck=: ;;
7957 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7958 $as_echo "$ac_cs_version"; exit ;;
7959 --config | --confi | --conf | --con | --co | --c )
7960 $as_echo "$ac_cs_config"; exit ;;
7961 --debug | --debu | --deb | --de | --d | -d )
7962 debug=: ;;
7963 --file | --fil | --fi | --f )
7964 $ac_shift
7965 case $ac_optarg in
7966 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7967 esac
7968 as_fn_append CONFIG_FILES " '$ac_optarg'"
7969 ac_need_defaults=false;;
7970 --header | --heade | --head | --hea )
7971 $ac_shift
7972 case $ac_optarg in
7973 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7974 esac
7975 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7976 ac_need_defaults=false;;
7977 --he | --h)
7978 # Conflict between --help and --header
7979 as_fn_error "ambiguous option: \`$1'
7980 Try \`$0 --help' for more information.";;
7981 --help | --hel | -h )
7982 $as_echo "$ac_cs_usage"; exit ;;
7983 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7984 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7985 ac_cs_silent=: ;;
7987 # This is an error.
7988 -*) as_fn_error "unrecognized option: \`$1'
7989 Try \`$0 --help' for more information." ;;
7991 *) as_fn_append ac_config_targets " $1"
7992 ac_need_defaults=false ;;
7994 esac
7995 shift
7996 done
7998 ac_configure_extra_args=
8000 if $ac_cs_silent; then
8001 exec 6>/dev/null
8002 ac_configure_extra_args="$ac_configure_extra_args --silent"
8005 _ACEOF
8006 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8007 if \$ac_cs_recheck; then
8008 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8009 shift
8010 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8011 CONFIG_SHELL='$SHELL'
8012 export CONFIG_SHELL
8013 exec "\$@"
8016 _ACEOF
8017 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8018 exec 5>>config.log
8020 echo
8021 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8022 ## Running $as_me. ##
8023 _ASBOX
8024 $as_echo "$ac_log"
8025 } >&5
8027 _ACEOF
8028 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8029 _ACEOF
8031 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8033 # Handling of arguments.
8034 for ac_config_target in $ac_config_targets
8036 case $ac_config_target in
8037 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8038 "${FILES}") CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
8040 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8041 esac
8042 done
8045 # If the user did not use the arguments to specify the items to instantiate,
8046 # then the envvar interface is used. Set only those that are not.
8047 # We use the long form for the default assignment because of an extremely
8048 # bizarre bug on SunOS 4.1.3.
8049 if $ac_need_defaults; then
8050 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8051 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8054 # Have a temporary directory for convenience. Make it in the build tree
8055 # simply because there is no reason against having it here, and in addition,
8056 # creating and moving files from /tmp can sometimes cause problems.
8057 # Hook for its removal unless debugging.
8058 # Note that there is a small window in which the directory will not be cleaned:
8059 # after its creation but before its name has been assigned to `$tmp'.
8060 $debug ||
8062 tmp=
8063 trap 'exit_status=$?
8064 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8066 trap 'as_fn_exit 1' 1 2 13 15
8068 # Create a (secure) tmp directory for tmp files.
8071 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8072 test -n "$tmp" && test -d "$tmp"
8073 } ||
8075 tmp=./conf$$-$RANDOM
8076 (umask 077 && mkdir "$tmp")
8077 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
8079 # Set up the scripts for CONFIG_FILES section.
8080 # No need to generate them if there are no CONFIG_FILES.
8081 # This happens for instance with `./config.status config.h'.
8082 if test -n "$CONFIG_FILES"; then
8085 ac_cr=`echo X | tr X '\015'`
8086 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8087 # But we know of no other shell where ac_cr would be empty at this
8088 # point, so we can use a bashism as a fallback.
8089 if test "x$ac_cr" = x; then
8090 eval ac_cr=\$\'\\r\'
8092 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8093 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8094 ac_cs_awk_cr='\r'
8095 else
8096 ac_cs_awk_cr=$ac_cr
8099 echo 'BEGIN {' >"$tmp/subs1.awk" &&
8100 _ACEOF
8104 echo "cat >conf$$subs.awk <<_ACEOF" &&
8105 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8106 echo "_ACEOF"
8107 } >conf$$subs.sh ||
8108 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8109 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
8110 ac_delim='%!_!# '
8111 for ac_last_try in false false false false false :; do
8112 . ./conf$$subs.sh ||
8113 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8115 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8116 if test $ac_delim_n = $ac_delim_num; then
8117 break
8118 elif $ac_last_try; then
8119 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8120 else
8121 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8123 done
8124 rm -f conf$$subs.sh
8126 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8127 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
8128 _ACEOF
8129 sed -n '
8131 s/^/S["/; s/!.*/"]=/
8134 s/^[^!]*!//
8135 :repl
8136 t repl
8137 s/'"$ac_delim"'$//
8138 t delim
8141 s/\(.\{148\}\)..*/\1/
8142 t more1
8143 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8146 b repl
8147 :more1
8148 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8151 s/.\{148\}//
8152 t nl
8153 :delim
8155 s/\(.\{148\}\)..*/\1/
8156 t more2
8157 s/["\\]/\\&/g; s/^/"/; s/$/"/
8160 :more2
8161 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8164 s/.\{148\}//
8165 t delim
8166 ' <conf$$subs.awk | sed '
8167 /^[^""]/{
8169 s/\n//
8171 ' >>$CONFIG_STATUS || ac_write_fail=1
8172 rm -f conf$$subs.awk
8173 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8174 _ACAWK
8175 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
8176 for (key in S) S_is_set[key] = 1
8177 FS = "\a"
8181 line = $ 0
8182 nfields = split(line, field, "@")
8183 substed = 0
8184 len = length(field[1])
8185 for (i = 2; i < nfields; i++) {
8186 key = field[i]
8187 keylen = length(key)
8188 if (S_is_set[key]) {
8189 value = S[key]
8190 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8191 len += length(value) + length(field[++i])
8192 substed = 1
8193 } else
8194 len += 1 + keylen
8197 print line
8200 _ACAWK
8201 _ACEOF
8202 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8203 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8204 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8205 else
8207 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
8208 || as_fn_error "could not setup config files machinery" "$LINENO" 5
8209 _ACEOF
8211 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8212 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8213 # trailing colons and then remove the whole line if VPATH becomes empty
8214 # (actually we leave an empty line to preserve line numbers).
8215 if test "x$srcdir" = x.; then
8216 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8217 s/:*\$(srcdir):*/:/
8218 s/:*\${srcdir}:*/:/
8219 s/:*@srcdir@:*/:/
8220 s/^\([^=]*=[ ]*\):*/\1/
8221 s/:*$//
8222 s/^[^=]*=[ ]*$//
8226 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8227 fi # test -n "$CONFIG_FILES"
8229 # Set up the scripts for CONFIG_HEADERS section.
8230 # No need to generate them if there are no CONFIG_HEADERS.
8231 # This happens for instance with `./config.status Makefile'.
8232 if test -n "$CONFIG_HEADERS"; then
8233 cat >"$tmp/defines.awk" <<\_ACAWK ||
8234 BEGIN {
8235 _ACEOF
8237 # Transform confdefs.h into an awk script `defines.awk', embedded as
8238 # here-document in config.status, that substitutes the proper values into
8239 # config.h.in to produce config.h.
8241 # Create a delimiter string that does not exist in confdefs.h, to ease
8242 # handling of long lines.
8243 ac_delim='%!_!# '
8244 for ac_last_try in false false :; do
8245 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
8246 if test -z "$ac_t"; then
8247 break
8248 elif $ac_last_try; then
8249 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
8250 else
8251 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8253 done
8255 # For the awk script, D is an array of macro values keyed by name,
8256 # likewise P contains macro parameters if any. Preserve backslash
8257 # newline sequences.
8259 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8260 sed -n '
8261 s/.\{148\}/&'"$ac_delim"'/g
8262 t rset
8263 :rset
8264 s/^[ ]*#[ ]*define[ ][ ]*/ /
8265 t def
8267 :def
8268 s/\\$//
8269 t bsnl
8270 s/["\\]/\\&/g
8271 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8272 D["\1"]=" \3"/p
8273 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8275 :bsnl
8276 s/["\\]/\\&/g
8277 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8278 D["\1"]=" \3\\\\\\n"\\/p
8279 t cont
8280 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8281 t cont
8283 :cont
8285 s/.\{148\}/&'"$ac_delim"'/g
8286 t clear
8287 :clear
8288 s/\\$//
8289 t bsnlc
8290 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8292 :bsnlc
8293 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8294 b cont
8295 ' <confdefs.h | sed '
8296 s/'"$ac_delim"'/"\\\
8297 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8299 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8300 for (key in D) D_is_set[key] = 1
8301 FS = "\a"
8303 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8304 line = \$ 0
8305 split(line, arg, " ")
8306 if (arg[1] == "#") {
8307 defundef = arg[2]
8308 mac1 = arg[3]
8309 } else {
8310 defundef = substr(arg[1], 2)
8311 mac1 = arg[2]
8313 split(mac1, mac2, "(") #)
8314 macro = mac2[1]
8315 prefix = substr(line, 1, index(line, defundef) - 1)
8316 if (D_is_set[macro]) {
8317 # Preserve the white space surrounding the "#".
8318 print prefix "define", macro P[macro] D[macro]
8319 next
8320 } else {
8321 # Replace #undef with comments. This is necessary, for example,
8322 # in the case of _POSIX_SOURCE, which is predefined and required
8323 # on some systems where configure will not decide to define it.
8324 if (defundef == "undef") {
8325 print "/*", prefix defundef, macro, "*/"
8326 next
8330 { print }
8331 _ACAWK
8332 _ACEOF
8333 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8334 as_fn_error "could not setup config headers machinery" "$LINENO" 5
8335 fi # test -n "$CONFIG_HEADERS"
8338 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
8339 shift
8340 for ac_tag
8342 case $ac_tag in
8343 :[FHLC]) ac_mode=$ac_tag; continue;;
8344 esac
8345 case $ac_mode$ac_tag in
8346 :[FHL]*:*);;
8347 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
8348 :[FH]-) ac_tag=-:-;;
8349 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8350 esac
8351 ac_save_IFS=$IFS
8352 IFS=:
8353 set x $ac_tag
8354 IFS=$ac_save_IFS
8355 shift
8356 ac_file=$1
8357 shift
8359 case $ac_mode in
8360 :L) ac_source=$1;;
8361 :[FH])
8362 ac_file_inputs=
8363 for ac_f
8365 case $ac_f in
8366 -) ac_f="$tmp/stdin";;
8367 *) # Look for the file first in the build tree, then in the source tree
8368 # (if the path is not absolute). The absolute path cannot be DOS-style,
8369 # because $ac_f cannot contain `:'.
8370 test -f "$ac_f" ||
8371 case $ac_f in
8372 [\\/$]*) false;;
8373 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8374 esac ||
8375 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8376 esac
8377 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8378 as_fn_append ac_file_inputs " '$ac_f'"
8379 done
8381 # Let's still pretend it is `configure' which instantiates (i.e., don't
8382 # use $as_me), people would be surprised to read:
8383 # /* config.h. Generated by config.status. */
8384 configure_input='Generated from '`
8385 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8386 `' by configure.'
8387 if test x"$ac_file" != x-; then
8388 configure_input="$ac_file. $configure_input"
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8390 $as_echo "$as_me: creating $ac_file" >&6;}
8392 # Neutralize special characters interpreted by sed in replacement strings.
8393 case $configure_input in #(
8394 *\&* | *\|* | *\\* )
8395 ac_sed_conf_input=`$as_echo "$configure_input" |
8396 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8397 *) ac_sed_conf_input=$configure_input;;
8398 esac
8400 case $ac_tag in
8401 *:-:* | *:-) cat >"$tmp/stdin" \
8402 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
8403 esac
8405 esac
8407 ac_dir=`$as_dirname -- "$ac_file" ||
8408 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8409 X"$ac_file" : 'X\(//\)[^/]' \| \
8410 X"$ac_file" : 'X\(//\)$' \| \
8411 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8412 $as_echo X"$ac_file" |
8413 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8414 s//\1/
8417 /^X\(\/\/\)[^/].*/{
8418 s//\1/
8421 /^X\(\/\/\)$/{
8422 s//\1/
8425 /^X\(\/\).*/{
8426 s//\1/
8429 s/.*/./; q'`
8430 as_dir="$ac_dir"; as_fn_mkdir_p
8431 ac_builddir=.
8433 case "$ac_dir" in
8434 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8436 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8437 # A ".." for each directory in $ac_dir_suffix.
8438 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8439 case $ac_top_builddir_sub in
8440 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8441 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8442 esac ;;
8443 esac
8444 ac_abs_top_builddir=$ac_pwd
8445 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8446 # for backward compatibility:
8447 ac_top_builddir=$ac_top_build_prefix
8449 case $srcdir in
8450 .) # We are building in place.
8451 ac_srcdir=.
8452 ac_top_srcdir=$ac_top_builddir_sub
8453 ac_abs_top_srcdir=$ac_pwd ;;
8454 [\\/]* | ?:[\\/]* ) # Absolute name.
8455 ac_srcdir=$srcdir$ac_dir_suffix;
8456 ac_top_srcdir=$srcdir
8457 ac_abs_top_srcdir=$srcdir ;;
8458 *) # Relative name.
8459 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8460 ac_top_srcdir=$ac_top_build_prefix$srcdir
8461 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8462 esac
8463 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8466 case $ac_mode in
8469 # CONFIG_FILE
8472 case $INSTALL in
8473 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8474 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8475 esac
8476 _ACEOF
8478 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8479 # If the template does not know about datarootdir, expand it.
8480 # FIXME: This hack should be removed a few years after 2.60.
8481 ac_datarootdir_hack=; ac_datarootdir_seen=
8482 ac_sed_dataroot='
8483 /datarootdir/ {
8487 /@datadir@/p
8488 /@docdir@/p
8489 /@infodir@/p
8490 /@localedir@/p
8491 /@mandir@/p'
8492 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8493 *datarootdir*) ac_datarootdir_seen=yes;;
8494 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8496 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8497 _ACEOF
8498 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8499 ac_datarootdir_hack='
8500 s&@datadir@&$datadir&g
8501 s&@docdir@&$docdir&g
8502 s&@infodir@&$infodir&g
8503 s&@localedir@&$localedir&g
8504 s&@mandir@&$mandir&g
8505 s&\\\${datarootdir}&$datarootdir&g' ;;
8506 esac
8507 _ACEOF
8509 # Neutralize VPATH when `$srcdir' = `.'.
8510 # Shell code in configure.ac might set extrasub.
8511 # FIXME: do we really want to maintain this feature?
8512 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8513 ac_sed_extra="$ac_vpsub
8514 $extrasub
8515 _ACEOF
8516 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8518 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8519 s|@configure_input@|$ac_sed_conf_input|;t t
8520 s&@top_builddir@&$ac_top_builddir_sub&;t t
8521 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8522 s&@srcdir@&$ac_srcdir&;t t
8523 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8524 s&@top_srcdir@&$ac_top_srcdir&;t t
8525 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8526 s&@builddir@&$ac_builddir&;t t
8527 s&@abs_builddir@&$ac_abs_builddir&;t t
8528 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8529 s&@INSTALL@&$ac_INSTALL&;t t
8530 $ac_datarootdir_hack
8532 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
8533 || as_fn_error "could not create $ac_file" "$LINENO" 5
8535 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8536 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8537 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8539 which seems to be undefined. Please make sure it is defined." >&5
8540 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8541 which seems to be undefined. Please make sure it is defined." >&2;}
8543 rm -f "$tmp/stdin"
8544 case $ac_file in
8545 -) cat "$tmp/out" && rm -f "$tmp/out";;
8546 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8547 esac \
8548 || as_fn_error "could not create $ac_file" "$LINENO" 5
8552 # CONFIG_HEADER
8554 if test x"$ac_file" != x-; then
8556 $as_echo "/* $configure_input */" \
8557 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8558 } >"$tmp/config.h" \
8559 || as_fn_error "could not create $ac_file" "$LINENO" 5
8560 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8562 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8563 else
8564 rm -f "$ac_file"
8565 mv "$tmp/config.h" "$ac_file" \
8566 || as_fn_error "could not create $ac_file" "$LINENO" 5
8568 else
8569 $as_echo "/* $configure_input */" \
8570 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8571 || as_fn_error "could not create -" "$LINENO" 5
8576 esac
8578 done # for ac_tag
8581 as_fn_exit 0
8582 _ACEOF
8583 ac_clean_files=$ac_clean_files_save
8585 test $ac_write_fail = 0 ||
8586 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
8589 # configure is writing to config.log, and then calls config.status.
8590 # config.status does its own redirection, appending to config.log.
8591 # Unfortunately, on DOS this fails, as config.log is still kept open
8592 # by configure, so config.status won't be able to write to it; its
8593 # output is simply discarded. So we exec the FD to /dev/null,
8594 # effectively closing config.log, so it can be properly (re)opened and
8595 # appended to by config.status. When coming back to configure, we
8596 # need to make the FD available again.
8597 if test "$no_create" != yes; then
8598 ac_cs_success=:
8599 ac_config_status_args=
8600 test "$silent" = yes &&
8601 ac_config_status_args="$ac_config_status_args --quiet"
8602 exec 5>/dev/null
8603 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8604 exec 5>>config.log
8605 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8606 # would make configure fail if this is the last instruction.
8607 $ac_cs_success || as_fn_exit $?
8609 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8611 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8617 # On development trees, create snapshots of config.status
8619 if test -f snapshot -a "x$CHECKMEM" = "x" -a "x$PROFILING" = "x";then
8620 if test "x${MINGW}" = "xyes"; then
8621 echo cp config.status config.status.win32
8622 cp config.status config.status.win32
8623 else
8624 if test "x$DEBUG" '=' "x" -a "x$OPTIMIZE" '=' "x";then
8625 echo cp config.status config.status.linux
8626 cp config.status config.status.linux
8628 if test "x$DEBUG" '!=' "x" -a "x$OPTIMIZE" '=' "x";then
8629 echo cp config.status config.status.debug
8630 cp config.status config.status.debug
8632 if test "x$DEBUG" = "x" -a "x$OPTIMIZE" '!=' "x"; then
8633 echo cp config.status config.status.optimize
8634 cp config.status config.status.optimize