fix crashes reported by Debian Cylab Mayhem Team
[swftools.git] / configure
blob6465cd7d4318a5dfa3e9121e65f33ad85b0b542f
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, 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 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145 else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
151 esac
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 else
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
177 as_have_required=yes
178 else
179 as_have_required=no
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183 else
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 as_found=false
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 IFS=$as_save_IFS
189 test -z "$as_dir" && as_dir=.
190 as_found=:
191 case $as_dir in #(
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 break 2
203 done;;
204 esac
205 as_found=false
206 done
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
210 fi; }
211 IFS=$as_save_IFS
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 case $- in # ((((
224 *v*x* | *x*v* ) as_opts=-vx ;;
225 *v* ) as_opts=-v ;;
226 *x* ) as_opts=-x ;;
227 * ) as_opts= ;;
228 esac
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238 else
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
244 exit 1
248 SHELL=${CONFIG_SHELL-/bin/sh}
249 export SHELL
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
257 # as_fn_unset VAR
258 # ---------------
259 # Portably unset VAR.
260 as_fn_unset ()
262 { eval $1=; unset $1;}
264 as_unset=as_fn_unset
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
269 as_fn_set_status ()
271 return $1
272 } # as_fn_set_status
274 # as_fn_exit STATUS
275 # -----------------
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277 as_fn_exit ()
279 set +e
280 as_fn_set_status $1
281 exit $1
282 } # as_fn_exit
284 # as_fn_mkdir_p
285 # -------------
286 # Create "$as_dir" as a directory, including parents if necessary.
287 as_fn_mkdir_p ()
290 case $as_dir in #(
291 -*) as_dir=./$as_dir;;
292 esac
293 test -d "$as_dir" || eval $as_mkdir_p || {
294 as_dirs=
295 while :; do
296 case $as_dir in #(
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 *) as_qdir=$as_dir;;
299 esac
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308 s//\1/
311 /^X\(\/\/\)[^/].*/{
312 s//\1/
315 /^X\(\/\/\)$/{
316 s//\1/
319 /^X\(\/\).*/{
320 s//\1/
323 s/.*/./; q'`
324 test -d "$as_dir" && break
325 done
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
330 } # as_fn_mkdir_p
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
336 # implementations.
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
340 eval $1+=\$2
342 else
343 as_fn_append ()
345 eval $1=\$$1\$2
347 fi # as_fn_append
349 # as_fn_arith ARG...
350 # ------------------
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355 eval 'as_fn_arith ()
357 as_val=$(( $* ))
359 else
360 as_fn_arith ()
362 as_val=`expr "$@" || test $? -eq 1`
364 fi # as_fn_arith
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
372 as_fn_error ()
374 as_status=$1; test $as_status -eq 0 && as_status=1
375 if test "$4"; then
376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
379 $as_echo "$as_me: error: $2" >&2
380 as_fn_exit $as_status
381 } # as_fn_error
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 as_expr=expr
386 else
387 as_expr=false
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 as_basename=basename
392 else
393 as_basename=false
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_dirname=dirname
398 else
399 as_dirname=false
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406 $as_echo X/"$0" |
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
408 s//\1/
411 /^X\/\(\/\/\)$/{
412 s//\1/
415 /^X\/\(\/\).*/{
416 s//\1/
419 s/.*/./; q'`
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
436 /[$]LINENO/=
437 ' <$as_myself |
438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
442 :lineno
444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 t loop
447 s/-\n.*//
448 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
455 . "./$as_me.lineno"
456 # Exit status is that of the last command.
457 exit
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
462 -n*)
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
465 xy) ECHO_C='\c';;
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
467 ECHO_T=' ';;
468 esac;;
470 ECHO_N='-n';;
471 esac
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
476 else
477 rm -f conf$$.dir
478 mkdir conf$$.dir 2>/dev/null
480 if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s='ln -s'
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488 as_ln_s='cp -p'
489 elif ln conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s=ln
491 else
492 as_ln_s='cp -p'
494 else
495 as_ln_s='cp -p'
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
500 if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
502 else
503 test -d ./-p && rmdir ./-p
504 as_mkdir_p=false
507 if test -x / >/dev/null 2>&1; then
508 as_test_x='test -x'
509 else
510 if ls -dL / >/dev/null 2>&1; then
511 as_ls_L_option=L
512 else
513 as_ls_L_option=
515 as_test_x='
516 eval sh -c '\''
517 if test -d "$1"; then
518 test -d "$1/.";
519 else
520 case $1 in #(
521 -*)set "./$1";;
522 esac;
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
525 '\'' sh
528 as_executable_p=$as_test_x
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 test -n "$DJDIR" || exec 7<&0 </dev/null
538 exec 6>&1
540 # Name of the host.
541 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542 # so uname gets run too.
543 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
546 # Initializations.
548 ac_default_prefix=/usr/local
549 ac_clean_files=
550 ac_config_libobj_dir=.
551 LIBOBJS=
552 cross_compiling=no
553 subdirs=
554 MFLAGS=
555 MAKEFLAGS=
557 # Identity of this package.
558 PACKAGE_NAME=
559 PACKAGE_TARNAME=
560 PACKAGE_VERSION=
561 PACKAGE_STRING=
562 PACKAGE_BUGREPORT=
563 PACKAGE_URL=
565 ac_unique_file="src/"
566 # Factoring default headers for most tests.
567 ac_includes_default="\
568 #include <stdio.h>
569 #ifdef HAVE_SYS_TYPES_H
570 # include <sys/types.h>
571 #endif
572 #ifdef HAVE_SYS_STAT_H
573 # include <sys/stat.h>
574 #endif
575 #ifdef STDC_HEADERS
576 # include <stdlib.h>
577 # include <stddef.h>
578 #else
579 # ifdef HAVE_STDLIB_H
580 # include <stdlib.h>
581 # endif
582 #endif
583 #ifdef HAVE_STRING_H
584 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
585 # include <memory.h>
586 # endif
587 # include <string.h>
588 #endif
589 #ifdef HAVE_STRINGS_H
590 # include <strings.h>
591 #endif
592 #ifdef HAVE_INTTYPES_H
593 # include <inttypes.h>
594 #endif
595 #ifdef HAVE_STDINT_H
596 # include <stdint.h>
597 #endif
598 #ifdef HAVE_UNISTD_H
599 # include <unistd.h>
600 #endif"
602 ac_subst_vars='LTLIBOBJS
603 LIBOBJS
604 PNG2SWF
605 GIF2SWF
606 JPEG2SWF
607 PDF2PDF
608 DEVICE_PDF
609 LIBPDF
610 PDF2SWF
611 HAVE_PYTHON_IMAGING
612 PYTHON_INSTALL_PATH
613 PYTHON_INCLUDES
614 PYTHON_LIB
615 PYTHON_EXECUTABLE
616 RUBY_INSTALLDIR
617 RUBY_LDFLAGS
618 RUBY_CPPFLAGS
619 RUBY_LIBS
620 RUBY
621 USE_GZIP
622 VIDEO_CFLAGS
623 VIDEO_LIBS
624 AVIFILE_CONFIG
625 xpdf_include
626 splash_in_source
627 xpdf_in_source
628 CXXCPP
629 lame_in_source
630 DEVICE_OPENGL
631 FREETYPE_CONFIG
632 HAVE_UNISTD_H
633 VERSION
634 PACKAGE
635 EGREP
636 GREP
637 SYSTEM_BACKTICKS
638 WORDS_BIGENDIAN
639 target_os
640 target_vendor
641 target_cpu
642 target
643 STRIP
644 CXXLIBS
645 SLEXT
647 AREXT
648 UNCOMPRESS
649 LN_S
650 INSTALL_DATA
651 INSTALL_SCRIPT
652 INSTALL_PROGRAM
653 SET_MAKE
654 RANLIB
656 ac_ct_CXX
657 CXXFLAGS
659 OBJEXT
660 EXEEXT
661 ac_ct_CC
662 CPPFLAGS
663 LDFLAGS
664 CFLAGS
666 SHARED
667 host_os
668 host_vendor
669 host_cpu
670 host
671 build_os
672 build_vendor
673 build_cpu
674 build
675 target_alias
676 host_alias
677 build_alias
678 LIBS
679 ECHO_T
680 ECHO_N
681 ECHO_C
682 DEFS
683 mandir
684 localedir
685 libdir
686 psdir
687 pdfdir
688 dvidir
689 htmldir
690 infodir
691 docdir
692 oldincludedir
693 includedir
694 localstatedir
695 sharedstatedir
696 sysconfdir
697 datadir
698 datarootdir
699 libexecdir
700 sbindir
701 bindir
702 program_transform_name
703 prefix
704 exec_prefix
705 PACKAGE_URL
706 PACKAGE_BUGREPORT
707 PACKAGE_STRING
708 PACKAGE_VERSION
709 PACKAGE_TARNAME
710 PACKAGE_NAME
711 PATH_SEPARATOR
712 SHELL'
713 ac_subst_files=''
714 ac_user_opts='
715 enable_option_checking
716 enable_checkmem
717 enable_debug
718 enable_profiling
719 enable_warnings
720 enable_optimizations
721 enable_poppler
722 enable_lame
724 ac_precious_vars='build_alias
725 host_alias
726 target_alias
728 CFLAGS
729 LDFLAGS
730 LIBS
731 CPPFLAGS
733 CXXFLAGS
736 CXXCPP'
739 # Initialize some variables set by options.
740 ac_init_help=
741 ac_init_version=false
742 ac_unrecognized_opts=
743 ac_unrecognized_sep=
744 # The variables have the same names as the options, with
745 # dashes changed to underlines.
746 cache_file=/dev/null
747 exec_prefix=NONE
748 no_create=
749 no_recursion=
750 prefix=NONE
751 program_prefix=NONE
752 program_suffix=NONE
753 program_transform_name=s,x,x,
754 silent=
755 site=
756 srcdir=
757 verbose=
758 x_includes=NONE
759 x_libraries=NONE
761 # Installation directory options.
762 # These are left unexpanded so users can "make install exec_prefix=/foo"
763 # and all the variables that are supposed to be based on exec_prefix
764 # by default will actually change.
765 # Use braces instead of parens because sh, perl, etc. also accept them.
766 # (The list follows the same order as the GNU Coding Standards.)
767 bindir='${exec_prefix}/bin'
768 sbindir='${exec_prefix}/sbin'
769 libexecdir='${exec_prefix}/libexec'
770 datarootdir='${prefix}/share'
771 datadir='${datarootdir}'
772 sysconfdir='${prefix}/etc'
773 sharedstatedir='${prefix}/com'
774 localstatedir='${prefix}/var'
775 includedir='${prefix}/include'
776 oldincludedir='/usr/include'
777 docdir='${datarootdir}/doc/${PACKAGE}'
778 infodir='${datarootdir}/info'
779 htmldir='${docdir}'
780 dvidir='${docdir}'
781 pdfdir='${docdir}'
782 psdir='${docdir}'
783 libdir='${exec_prefix}/lib'
784 localedir='${datarootdir}/locale'
785 mandir='${datarootdir}/man'
787 ac_prev=
788 ac_dashdash=
789 for ac_option
791 # If the previous option needs an argument, assign it.
792 if test -n "$ac_prev"; then
793 eval $ac_prev=\$ac_option
794 ac_prev=
795 continue
798 case $ac_option in
799 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
800 *=) ac_optarg= ;;
801 *) ac_optarg=yes ;;
802 esac
804 # Accept the important Cygnus configure options, so we can diagnose typos.
806 case $ac_dashdash$ac_option in
808 ac_dashdash=yes ;;
810 -bindir | --bindir | --bindi | --bind | --bin | --bi)
811 ac_prev=bindir ;;
812 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
813 bindir=$ac_optarg ;;
815 -build | --build | --buil | --bui | --bu)
816 ac_prev=build_alias ;;
817 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
818 build_alias=$ac_optarg ;;
820 -cache-file | --cache-file | --cache-fil | --cache-fi \
821 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
822 ac_prev=cache_file ;;
823 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
824 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
825 cache_file=$ac_optarg ;;
827 --config-cache | -C)
828 cache_file=config.cache ;;
830 -datadir | --datadir | --datadi | --datad)
831 ac_prev=datadir ;;
832 -datadir=* | --datadir=* | --datadi=* | --datad=*)
833 datadir=$ac_optarg ;;
835 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
836 | --dataroo | --dataro | --datar)
837 ac_prev=datarootdir ;;
838 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
839 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
840 datarootdir=$ac_optarg ;;
842 -disable-* | --disable-*)
843 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
844 # Reject names that are not valid shell variable names.
845 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
846 as_fn_error $? "invalid feature name: $ac_useropt"
847 ac_useropt_orig=$ac_useropt
848 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
849 case $ac_user_opts in
851 "enable_$ac_useropt"
852 "*) ;;
853 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
854 ac_unrecognized_sep=', ';;
855 esac
856 eval enable_$ac_useropt=no ;;
858 -docdir | --docdir | --docdi | --doc | --do)
859 ac_prev=docdir ;;
860 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
861 docdir=$ac_optarg ;;
863 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
864 ac_prev=dvidir ;;
865 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
866 dvidir=$ac_optarg ;;
868 -enable-* | --enable-*)
869 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
870 # Reject names that are not valid shell variable names.
871 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
872 as_fn_error $? "invalid feature name: $ac_useropt"
873 ac_useropt_orig=$ac_useropt
874 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
875 case $ac_user_opts in
877 "enable_$ac_useropt"
878 "*) ;;
879 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
880 ac_unrecognized_sep=', ';;
881 esac
882 eval enable_$ac_useropt=\$ac_optarg ;;
884 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
885 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
886 | --exec | --exe | --ex)
887 ac_prev=exec_prefix ;;
888 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
889 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
890 | --exec=* | --exe=* | --ex=*)
891 exec_prefix=$ac_optarg ;;
893 -gas | --gas | --ga | --g)
894 # Obsolete; use --with-gas.
895 with_gas=yes ;;
897 -help | --help | --hel | --he | -h)
898 ac_init_help=long ;;
899 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
900 ac_init_help=recursive ;;
901 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
902 ac_init_help=short ;;
904 -host | --host | --hos | --ho)
905 ac_prev=host_alias ;;
906 -host=* | --host=* | --hos=* | --ho=*)
907 host_alias=$ac_optarg ;;
909 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
910 ac_prev=htmldir ;;
911 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
912 | --ht=*)
913 htmldir=$ac_optarg ;;
915 -includedir | --includedir | --includedi | --included | --include \
916 | --includ | --inclu | --incl | --inc)
917 ac_prev=includedir ;;
918 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
919 | --includ=* | --inclu=* | --incl=* | --inc=*)
920 includedir=$ac_optarg ;;
922 -infodir | --infodir | --infodi | --infod | --info | --inf)
923 ac_prev=infodir ;;
924 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
925 infodir=$ac_optarg ;;
927 -libdir | --libdir | --libdi | --libd)
928 ac_prev=libdir ;;
929 -libdir=* | --libdir=* | --libdi=* | --libd=*)
930 libdir=$ac_optarg ;;
932 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
933 | --libexe | --libex | --libe)
934 ac_prev=libexecdir ;;
935 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
936 | --libexe=* | --libex=* | --libe=*)
937 libexecdir=$ac_optarg ;;
939 -localedir | --localedir | --localedi | --localed | --locale)
940 ac_prev=localedir ;;
941 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
942 localedir=$ac_optarg ;;
944 -localstatedir | --localstatedir | --localstatedi | --localstated \
945 | --localstate | --localstat | --localsta | --localst | --locals)
946 ac_prev=localstatedir ;;
947 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
948 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
949 localstatedir=$ac_optarg ;;
951 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
952 ac_prev=mandir ;;
953 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
954 mandir=$ac_optarg ;;
956 -nfp | --nfp | --nf)
957 # Obsolete; use --without-fp.
958 with_fp=no ;;
960 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
961 | --no-cr | --no-c | -n)
962 no_create=yes ;;
964 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
965 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
966 no_recursion=yes ;;
968 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
969 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
970 | --oldin | --oldi | --old | --ol | --o)
971 ac_prev=oldincludedir ;;
972 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
973 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
974 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
975 oldincludedir=$ac_optarg ;;
977 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
978 ac_prev=prefix ;;
979 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
980 prefix=$ac_optarg ;;
982 -program-prefix | --program-prefix | --program-prefi | --program-pref \
983 | --program-pre | --program-pr | --program-p)
984 ac_prev=program_prefix ;;
985 -program-prefix=* | --program-prefix=* | --program-prefi=* \
986 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
987 program_prefix=$ac_optarg ;;
989 -program-suffix | --program-suffix | --program-suffi | --program-suff \
990 | --program-suf | --program-su | --program-s)
991 ac_prev=program_suffix ;;
992 -program-suffix=* | --program-suffix=* | --program-suffi=* \
993 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
994 program_suffix=$ac_optarg ;;
996 -program-transform-name | --program-transform-name \
997 | --program-transform-nam | --program-transform-na \
998 | --program-transform-n | --program-transform- \
999 | --program-transform | --program-transfor \
1000 | --program-transfo | --program-transf \
1001 | --program-trans | --program-tran \
1002 | --progr-tra | --program-tr | --program-t)
1003 ac_prev=program_transform_name ;;
1004 -program-transform-name=* | --program-transform-name=* \
1005 | --program-transform-nam=* | --program-transform-na=* \
1006 | --program-transform-n=* | --program-transform-=* \
1007 | --program-transform=* | --program-transfor=* \
1008 | --program-transfo=* | --program-transf=* \
1009 | --program-trans=* | --program-tran=* \
1010 | --progr-tra=* | --program-tr=* | --program-t=*)
1011 program_transform_name=$ac_optarg ;;
1013 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1014 ac_prev=pdfdir ;;
1015 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1016 pdfdir=$ac_optarg ;;
1018 -psdir | --psdir | --psdi | --psd | --ps)
1019 ac_prev=psdir ;;
1020 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1021 psdir=$ac_optarg ;;
1023 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1024 | -silent | --silent | --silen | --sile | --sil)
1025 silent=yes ;;
1027 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1028 ac_prev=sbindir ;;
1029 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1030 | --sbi=* | --sb=*)
1031 sbindir=$ac_optarg ;;
1033 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1034 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1035 | --sharedst | --shareds | --shared | --share | --shar \
1036 | --sha | --sh)
1037 ac_prev=sharedstatedir ;;
1038 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1039 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1040 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1041 | --sha=* | --sh=*)
1042 sharedstatedir=$ac_optarg ;;
1044 -site | --site | --sit)
1045 ac_prev=site ;;
1046 -site=* | --site=* | --sit=*)
1047 site=$ac_optarg ;;
1049 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1050 ac_prev=srcdir ;;
1051 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1052 srcdir=$ac_optarg ;;
1054 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1055 | --syscon | --sysco | --sysc | --sys | --sy)
1056 ac_prev=sysconfdir ;;
1057 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1058 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1059 sysconfdir=$ac_optarg ;;
1061 -target | --target | --targe | --targ | --tar | --ta | --t)
1062 ac_prev=target_alias ;;
1063 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1064 target_alias=$ac_optarg ;;
1066 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1067 verbose=yes ;;
1069 -version | --version | --versio | --versi | --vers | -V)
1070 ac_init_version=: ;;
1072 -with-* | --with-*)
1073 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1074 # Reject names that are not valid shell variable names.
1075 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1076 as_fn_error $? "invalid package name: $ac_useropt"
1077 ac_useropt_orig=$ac_useropt
1078 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1079 case $ac_user_opts in
1081 "with_$ac_useropt"
1082 "*) ;;
1083 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1084 ac_unrecognized_sep=', ';;
1085 esac
1086 eval with_$ac_useropt=\$ac_optarg ;;
1088 -without-* | --without-*)
1089 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1090 # Reject names that are not valid shell variable names.
1091 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1092 as_fn_error $? "invalid package name: $ac_useropt"
1093 ac_useropt_orig=$ac_useropt
1094 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1095 case $ac_user_opts in
1097 "with_$ac_useropt"
1098 "*) ;;
1099 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1100 ac_unrecognized_sep=', ';;
1101 esac
1102 eval with_$ac_useropt=no ;;
1104 --x)
1105 # Obsolete; use --with-x.
1106 with_x=yes ;;
1108 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1109 | --x-incl | --x-inc | --x-in | --x-i)
1110 ac_prev=x_includes ;;
1111 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1112 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1113 x_includes=$ac_optarg ;;
1115 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1116 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1117 ac_prev=x_libraries ;;
1118 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1119 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1120 x_libraries=$ac_optarg ;;
1122 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1123 Try \`$0 --help' for more information"
1126 *=*)
1127 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1128 # Reject names that are not valid shell variable names.
1129 case $ac_envvar in #(
1130 '' | [0-9]* | *[!_$as_cr_alnum]* )
1131 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1132 esac
1133 eval $ac_envvar=\$ac_optarg
1134 export $ac_envvar ;;
1137 # FIXME: should be removed in autoconf 3.0.
1138 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1139 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1140 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1141 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1144 esac
1145 done
1147 if test -n "$ac_prev"; then
1148 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1149 as_fn_error $? "missing argument to $ac_option"
1152 if test -n "$ac_unrecognized_opts"; then
1153 case $enable_option_checking in
1154 no) ;;
1155 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1156 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1157 esac
1160 # Check all directory arguments for consistency.
1161 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1162 datadir sysconfdir sharedstatedir localstatedir includedir \
1163 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1164 libdir localedir mandir
1166 eval ac_val=\$$ac_var
1167 # Remove trailing slashes.
1168 case $ac_val in
1169 */ )
1170 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1171 eval $ac_var=\$ac_val;;
1172 esac
1173 # Be sure to have absolute directory names.
1174 case $ac_val in
1175 [\\/$]* | ?:[\\/]* ) continue;;
1176 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1177 esac
1178 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1179 done
1181 # There might be people who depend on the old broken behavior: `$host'
1182 # used to hold the argument of --host etc.
1183 # FIXME: To remove some day.
1184 build=$build_alias
1185 host=$host_alias
1186 target=$target_alias
1188 # FIXME: To remove some day.
1189 if test "x$host_alias" != x; then
1190 if test "x$build_alias" = x; then
1191 cross_compiling=maybe
1192 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1193 If a cross compiler is detected then cross compile mode will be used" >&2
1194 elif test "x$build_alias" != "x$host_alias"; then
1195 cross_compiling=yes
1199 ac_tool_prefix=
1200 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1202 test "$silent" = yes && exec 6>/dev/null
1205 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1206 ac_ls_di=`ls -di .` &&
1207 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1208 as_fn_error $? "working directory cannot be determined"
1209 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1210 as_fn_error $? "pwd does not report name of working directory"
1213 # Find the source files, if location was not specified.
1214 if test -z "$srcdir"; then
1215 ac_srcdir_defaulted=yes
1216 # Try the directory containing this script, then the parent directory.
1217 ac_confdir=`$as_dirname -- "$as_myself" ||
1218 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1219 X"$as_myself" : 'X\(//\)[^/]' \| \
1220 X"$as_myself" : 'X\(//\)$' \| \
1221 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1222 $as_echo X"$as_myself" |
1223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1224 s//\1/
1227 /^X\(\/\/\)[^/].*/{
1228 s//\1/
1231 /^X\(\/\/\)$/{
1232 s//\1/
1235 /^X\(\/\).*/{
1236 s//\1/
1239 s/.*/./; q'`
1240 srcdir=$ac_confdir
1241 if test ! -r "$srcdir/$ac_unique_file"; then
1242 srcdir=..
1244 else
1245 ac_srcdir_defaulted=no
1247 if test ! -r "$srcdir/$ac_unique_file"; then
1248 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1249 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1251 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1252 ac_abs_confdir=`(
1253 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1254 pwd)`
1255 # When building in place, set srcdir=.
1256 if test "$ac_abs_confdir" = "$ac_pwd"; then
1257 srcdir=.
1259 # Remove unnecessary trailing slashes from srcdir.
1260 # Double slashes in file names in object file debugging info
1261 # mess up M-x gdb in Emacs.
1262 case $srcdir in
1263 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1264 esac
1265 for ac_var in $ac_precious_vars; do
1266 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1267 eval ac_env_${ac_var}_value=\$${ac_var}
1268 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1269 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1270 done
1273 # Report the --help message.
1275 if test "$ac_init_help" = "long"; then
1276 # Omit some internal or obsolete options to make the list less imposing.
1277 # This message is too long to be a string in the A/UX 3.1 sh.
1278 cat <<_ACEOF
1279 \`configure' configures this package to adapt to many kinds of systems.
1281 Usage: $0 [OPTION]... [VAR=VALUE]...
1283 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1284 VAR=VALUE. See below for descriptions of some of the useful variables.
1286 Defaults for the options are specified in brackets.
1288 Configuration:
1289 -h, --help display this help and exit
1290 --help=short display options specific to this package
1291 --help=recursive display the short help of all the included packages
1292 -V, --version display version information and exit
1293 -q, --quiet, --silent do not print \`checking ...' messages
1294 --cache-file=FILE cache test results in FILE [disabled]
1295 -C, --config-cache alias for \`--cache-file=config.cache'
1296 -n, --no-create do not create output files
1297 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1299 Installation directories:
1300 --prefix=PREFIX install architecture-independent files in PREFIX
1301 [$ac_default_prefix]
1302 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1303 [PREFIX]
1305 By default, \`make install' will install all the files in
1306 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1307 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1308 for instance \`--prefix=\$HOME'.
1310 For better control, use the options below.
1312 Fine tuning of the installation directories:
1313 --bindir=DIR user executables [EPREFIX/bin]
1314 --sbindir=DIR system admin executables [EPREFIX/sbin]
1315 --libexecdir=DIR program executables [EPREFIX/libexec]
1316 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1317 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1318 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1319 --libdir=DIR object code libraries [EPREFIX/lib]
1320 --includedir=DIR C header files [PREFIX/include]
1321 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1322 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1323 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1324 --infodir=DIR info documentation [DATAROOTDIR/info]
1325 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1326 --mandir=DIR man documentation [DATAROOTDIR/man]
1327 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1328 --htmldir=DIR html documentation [DOCDIR]
1329 --dvidir=DIR dvi documentation [DOCDIR]
1330 --pdfdir=DIR pdf documentation [DOCDIR]
1331 --psdir=DIR ps documentation [DOCDIR]
1332 _ACEOF
1334 cat <<\_ACEOF
1336 Program names:
1337 --program-prefix=PREFIX prepend PREFIX to installed program names
1338 --program-suffix=SUFFIX append SUFFIX to installed program names
1339 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1341 System types:
1342 --build=BUILD configure for building on BUILD [guessed]
1343 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1344 --target=TARGET configure for building compilers for TARGET [HOST]
1345 _ACEOF
1348 if test -n "$ac_init_help"; then
1350 cat <<\_ACEOF
1352 Optional Features:
1353 --disable-option-checking ignore unrecognized --enable/--with options
1354 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1355 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1356 --enable-checkmem turn on ccmalloc debugging
1357 --enable-debug turn on debugging
1358 --enable-profiling turn on profiling
1359 --enable-warnings turn on compiler warnings
1360 --enable-optimizations turn on compiler optimizations (recommended for avi2swf)
1361 --enable-poppler link againist libpoppler
1362 --disable-lame "don't compile any L.A.M.E. mp3 encoding code in"
1364 Some influential environment variables:
1365 CC C compiler command
1366 CFLAGS C compiler flags
1367 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1368 nonstandard directory <lib dir>
1369 LIBS libraries to pass to the linker, e.g. -l<library>
1370 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1371 you have headers in a nonstandard directory <include dir>
1372 CXX C++ compiler command
1373 CXXFLAGS C++ compiler flags
1374 CPP C preprocessor
1375 CXXCPP C++ preprocessor
1377 Use these variables to override the choices made by `configure' or to help
1378 it to find libraries and programs with nonstandard names/locations.
1380 Report bugs to the package provider.
1381 _ACEOF
1382 ac_status=$?
1385 if test "$ac_init_help" = "recursive"; then
1386 # If there are subdirs, report their specific --help.
1387 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1388 test -d "$ac_dir" ||
1389 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1390 continue
1391 ac_builddir=.
1393 case "$ac_dir" in
1394 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1396 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1397 # A ".." for each directory in $ac_dir_suffix.
1398 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1399 case $ac_top_builddir_sub in
1400 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1401 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1402 esac ;;
1403 esac
1404 ac_abs_top_builddir=$ac_pwd
1405 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1406 # for backward compatibility:
1407 ac_top_builddir=$ac_top_build_prefix
1409 case $srcdir in
1410 .) # We are building in place.
1411 ac_srcdir=.
1412 ac_top_srcdir=$ac_top_builddir_sub
1413 ac_abs_top_srcdir=$ac_pwd ;;
1414 [\\/]* | ?:[\\/]* ) # Absolute name.
1415 ac_srcdir=$srcdir$ac_dir_suffix;
1416 ac_top_srcdir=$srcdir
1417 ac_abs_top_srcdir=$srcdir ;;
1418 *) # Relative name.
1419 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1420 ac_top_srcdir=$ac_top_build_prefix$srcdir
1421 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1422 esac
1423 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1425 cd "$ac_dir" || { ac_status=$?; continue; }
1426 # Check for guested configure.
1427 if test -f "$ac_srcdir/configure.gnu"; then
1428 echo &&
1429 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1430 elif test -f "$ac_srcdir/configure"; then
1431 echo &&
1432 $SHELL "$ac_srcdir/configure" --help=recursive
1433 else
1434 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1435 fi || ac_status=$?
1436 cd "$ac_pwd" || { ac_status=$?; break; }
1437 done
1440 test -n "$ac_init_help" && exit $ac_status
1441 if $ac_init_version; then
1442 cat <<\_ACEOF
1443 configure
1444 generated by GNU Autoconf 2.68
1446 Copyright (C) 2010 Free Software Foundation, Inc.
1447 This configure script is free software; the Free Software Foundation
1448 gives unlimited permission to copy, distribute and modify it.
1449 _ACEOF
1450 exit
1453 ## ------------------------ ##
1454 ## Autoconf initialization. ##
1455 ## ------------------------ ##
1457 # ac_fn_c_try_compile LINENO
1458 # --------------------------
1459 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1460 ac_fn_c_try_compile ()
1462 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1463 rm -f conftest.$ac_objext
1464 if { { ac_try="$ac_compile"
1465 case "(($ac_try" in
1466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1467 *) ac_try_echo=$ac_try;;
1468 esac
1469 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1470 $as_echo "$ac_try_echo"; } >&5
1471 (eval "$ac_compile") 2>conftest.err
1472 ac_status=$?
1473 if test -s conftest.err; then
1474 grep -v '^ *+' conftest.err >conftest.er1
1475 cat conftest.er1 >&5
1476 mv -f conftest.er1 conftest.err
1478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1479 test $ac_status = 0; } && {
1480 test -z "$ac_c_werror_flag" ||
1481 test ! -s conftest.err
1482 } && test -s conftest.$ac_objext; then :
1483 ac_retval=0
1484 else
1485 $as_echo "$as_me: failed program was:" >&5
1486 sed 's/^/| /' conftest.$ac_ext >&5
1488 ac_retval=1
1490 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1491 as_fn_set_status $ac_retval
1493 } # ac_fn_c_try_compile
1495 # ac_fn_cxx_try_compile LINENO
1496 # ----------------------------
1497 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1498 ac_fn_cxx_try_compile ()
1500 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1501 rm -f conftest.$ac_objext
1502 if { { ac_try="$ac_compile"
1503 case "(($ac_try" in
1504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1505 *) ac_try_echo=$ac_try;;
1506 esac
1507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1508 $as_echo "$ac_try_echo"; } >&5
1509 (eval "$ac_compile") 2>conftest.err
1510 ac_status=$?
1511 if test -s conftest.err; then
1512 grep -v '^ *+' conftest.err >conftest.er1
1513 cat conftest.er1 >&5
1514 mv -f conftest.er1 conftest.err
1516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1517 test $ac_status = 0; } && {
1518 test -z "$ac_cxx_werror_flag" ||
1519 test ! -s conftest.err
1520 } && test -s conftest.$ac_objext; then :
1521 ac_retval=0
1522 else
1523 $as_echo "$as_me: failed program was:" >&5
1524 sed 's/^/| /' conftest.$ac_ext >&5
1526 ac_retval=1
1528 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1529 as_fn_set_status $ac_retval
1531 } # ac_fn_cxx_try_compile
1533 # ac_fn_c_try_cpp LINENO
1534 # ----------------------
1535 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1536 ac_fn_c_try_cpp ()
1538 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1539 if { { ac_try="$ac_cpp conftest.$ac_ext"
1540 case "(($ac_try" in
1541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1542 *) ac_try_echo=$ac_try;;
1543 esac
1544 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1545 $as_echo "$ac_try_echo"; } >&5
1546 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1547 ac_status=$?
1548 if test -s conftest.err; then
1549 grep -v '^ *+' conftest.err >conftest.er1
1550 cat conftest.er1 >&5
1551 mv -f conftest.er1 conftest.err
1553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1554 test $ac_status = 0; } > conftest.i && {
1555 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1556 test ! -s conftest.err
1557 }; then :
1558 ac_retval=0
1559 else
1560 $as_echo "$as_me: failed program was:" >&5
1561 sed 's/^/| /' conftest.$ac_ext >&5
1563 ac_retval=1
1565 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1566 as_fn_set_status $ac_retval
1568 } # ac_fn_c_try_cpp
1570 # ac_fn_c_try_link LINENO
1571 # -----------------------
1572 # Try to link conftest.$ac_ext, and return whether this succeeded.
1573 ac_fn_c_try_link ()
1575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576 rm -f conftest.$ac_objext conftest$ac_exeext
1577 if { { ac_try="$ac_link"
1578 case "(($ac_try" in
1579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1580 *) ac_try_echo=$ac_try;;
1581 esac
1582 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1583 $as_echo "$ac_try_echo"; } >&5
1584 (eval "$ac_link") 2>conftest.err
1585 ac_status=$?
1586 if test -s conftest.err; then
1587 grep -v '^ *+' conftest.err >conftest.er1
1588 cat conftest.er1 >&5
1589 mv -f conftest.er1 conftest.err
1591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1592 test $ac_status = 0; } && {
1593 test -z "$ac_c_werror_flag" ||
1594 test ! -s conftest.err
1595 } && test -s conftest$ac_exeext && {
1596 test "$cross_compiling" = yes ||
1597 $as_test_x conftest$ac_exeext
1598 }; then :
1599 ac_retval=0
1600 else
1601 $as_echo "$as_me: failed program was:" >&5
1602 sed 's/^/| /' conftest.$ac_ext >&5
1604 ac_retval=1
1606 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1607 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1608 # interfere with the next link command; also delete a directory that is
1609 # left behind by Apple's compiler. We do this before executing the actions.
1610 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1611 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1612 as_fn_set_status $ac_retval
1614 } # ac_fn_c_try_link
1616 # ac_fn_c_try_run LINENO
1617 # ----------------------
1618 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1619 # that executables *can* be run.
1620 ac_fn_c_try_run ()
1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623 if { { ac_try="$ac_link"
1624 case "(($ac_try" in
1625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1626 *) ac_try_echo=$ac_try;;
1627 esac
1628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629 $as_echo "$ac_try_echo"; } >&5
1630 (eval "$ac_link") 2>&5
1631 ac_status=$?
1632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1634 { { case "(($ac_try" in
1635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636 *) ac_try_echo=$ac_try;;
1637 esac
1638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639 $as_echo "$ac_try_echo"; } >&5
1640 (eval "$ac_try") 2>&5
1641 ac_status=$?
1642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1643 test $ac_status = 0; }; }; then :
1644 ac_retval=0
1645 else
1646 $as_echo "$as_me: program exited with status $ac_status" >&5
1647 $as_echo "$as_me: failed program was:" >&5
1648 sed 's/^/| /' conftest.$ac_ext >&5
1650 ac_retval=$ac_status
1652 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1654 as_fn_set_status $ac_retval
1656 } # ac_fn_c_try_run
1658 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1659 # -------------------------------------------------------
1660 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1661 # the include files in INCLUDES and setting the cache variable VAR
1662 # accordingly.
1663 ac_fn_c_check_header_mongrel ()
1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666 if eval \${$3+:} false; then :
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1668 $as_echo_n "checking for $2... " >&6; }
1669 if eval \${$3+:} false; then :
1670 $as_echo_n "(cached) " >&6
1672 eval ac_res=\$$3
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1674 $as_echo "$ac_res" >&6; }
1675 else
1676 # Is the header compilable?
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1678 $as_echo_n "checking $2 usability... " >&6; }
1679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1680 /* end confdefs.h. */
1682 #include <$2>
1683 _ACEOF
1684 if ac_fn_c_try_compile "$LINENO"; then :
1685 ac_header_compiler=yes
1686 else
1687 ac_header_compiler=no
1689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1691 $as_echo "$ac_header_compiler" >&6; }
1693 # Is the header present?
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1695 $as_echo_n "checking $2 presence... " >&6; }
1696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1697 /* end confdefs.h. */
1698 #include <$2>
1699 _ACEOF
1700 if ac_fn_c_try_cpp "$LINENO"; then :
1701 ac_header_preproc=yes
1702 else
1703 ac_header_preproc=no
1705 rm -f conftest.err conftest.i conftest.$ac_ext
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1707 $as_echo "$ac_header_preproc" >&6; }
1709 # So? What about this header?
1710 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1711 yes:no: )
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1713 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1715 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1717 no:yes:* )
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1719 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1721 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1723 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1725 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1727 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1729 esac
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1731 $as_echo_n "checking for $2... " >&6; }
1732 if eval \${$3+:} false; then :
1733 $as_echo_n "(cached) " >&6
1734 else
1735 eval "$3=\$ac_header_compiler"
1737 eval ac_res=\$$3
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1739 $as_echo "$ac_res" >&6; }
1741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743 } # ac_fn_c_check_header_mongrel
1745 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1746 # -------------------------------------------------------
1747 # Tests whether HEADER exists and can be compiled using the include files in
1748 # INCLUDES, setting the cache variable VAR accordingly.
1749 ac_fn_c_check_header_compile ()
1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1753 $as_echo_n "checking for $2... " >&6; }
1754 if eval \${$3+:} false; then :
1755 $as_echo_n "(cached) " >&6
1756 else
1757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1758 /* end confdefs.h. */
1760 #include <$2>
1761 _ACEOF
1762 if ac_fn_c_try_compile "$LINENO"; then :
1763 eval "$3=yes"
1764 else
1765 eval "$3=no"
1767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1769 eval ac_res=\$$3
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1771 $as_echo "$ac_res" >&6; }
1772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1774 } # ac_fn_c_check_header_compile
1776 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1777 # -------------------------------------------
1778 # Tests whether TYPE exists after having included INCLUDES, setting cache
1779 # variable VAR accordingly.
1780 ac_fn_c_check_type ()
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1784 $as_echo_n "checking for $2... " >&6; }
1785 if eval \${$3+:} false; then :
1786 $as_echo_n "(cached) " >&6
1787 else
1788 eval "$3=no"
1789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790 /* end confdefs.h. */
1793 main ()
1795 if (sizeof ($2))
1796 return 0;
1798 return 0;
1800 _ACEOF
1801 if ac_fn_c_try_compile "$LINENO"; then :
1802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1803 /* end confdefs.h. */
1806 main ()
1808 if (sizeof (($2)))
1809 return 0;
1811 return 0;
1813 _ACEOF
1814 if ac_fn_c_try_compile "$LINENO"; then :
1816 else
1817 eval "$3=yes"
1819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1823 eval ac_res=\$$3
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1825 $as_echo "$ac_res" >&6; }
1826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1828 } # ac_fn_c_check_type
1830 # ac_fn_c_check_func LINENO FUNC VAR
1831 # ----------------------------------
1832 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1833 ac_fn_c_check_func ()
1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837 $as_echo_n "checking for $2... " >&6; }
1838 if eval \${$3+:} false; then :
1839 $as_echo_n "(cached) " >&6
1840 else
1841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842 /* end confdefs.h. */
1843 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1844 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1845 #define $2 innocuous_$2
1847 /* System header to define __stub macros and hopefully few prototypes,
1848 which can conflict with char $2 (); below.
1849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1850 <limits.h> exists even on freestanding compilers. */
1852 #ifdef __STDC__
1853 # include <limits.h>
1854 #else
1855 # include <assert.h>
1856 #endif
1858 #undef $2
1860 /* Override any GCC internal prototype to avoid an error.
1861 Use char because int might match the return type of a GCC
1862 builtin and then its argument prototype would still apply. */
1863 #ifdef __cplusplus
1864 extern "C"
1865 #endif
1866 char $2 ();
1867 /* The GNU C library defines this for functions which it implements
1868 to always fail with ENOSYS. Some functions are actually named
1869 something starting with __ and the normal name is an alias. */
1870 #if defined __stub_$2 || defined __stub___$2
1871 choke me
1872 #endif
1875 main ()
1877 return $2 ();
1879 return 0;
1881 _ACEOF
1882 if ac_fn_c_try_link "$LINENO"; then :
1883 eval "$3=yes"
1884 else
1885 eval "$3=no"
1887 rm -f core conftest.err conftest.$ac_objext \
1888 conftest$ac_exeext conftest.$ac_ext
1890 eval ac_res=\$$3
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1892 $as_echo "$ac_res" >&6; }
1893 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895 } # ac_fn_c_check_func
1897 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1898 # --------------------------------------------
1899 # Tries to find the compile-time value of EXPR in a program that includes
1900 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1901 # computed
1902 ac_fn_c_compute_int ()
1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905 if test "$cross_compiling" = yes; then
1906 # Depending upon the size, compute the lo and hi bounds.
1907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908 /* end confdefs.h. */
1911 main ()
1913 static int test_array [1 - 2 * !(($2) >= 0)];
1914 test_array [0] = 0
1917 return 0;
1919 _ACEOF
1920 if ac_fn_c_try_compile "$LINENO"; then :
1921 ac_lo=0 ac_mid=0
1922 while :; do
1923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924 /* end confdefs.h. */
1927 main ()
1929 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1930 test_array [0] = 0
1933 return 0;
1935 _ACEOF
1936 if ac_fn_c_try_compile "$LINENO"; then :
1937 ac_hi=$ac_mid; break
1938 else
1939 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1940 if test $ac_lo -le $ac_mid; then
1941 ac_lo= ac_hi=
1942 break
1944 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1947 done
1948 else
1949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950 /* end confdefs.h. */
1953 main ()
1955 static int test_array [1 - 2 * !(($2) < 0)];
1956 test_array [0] = 0
1959 return 0;
1961 _ACEOF
1962 if ac_fn_c_try_compile "$LINENO"; then :
1963 ac_hi=-1 ac_mid=-1
1964 while :; do
1965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1966 /* end confdefs.h. */
1969 main ()
1971 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1972 test_array [0] = 0
1975 return 0;
1977 _ACEOF
1978 if ac_fn_c_try_compile "$LINENO"; then :
1979 ac_lo=$ac_mid; break
1980 else
1981 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1982 if test $ac_mid -le $ac_hi; then
1983 ac_lo= ac_hi=
1984 break
1986 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1989 done
1990 else
1991 ac_lo= ac_hi=
1993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1996 # Binary search between lo and hi bounds.
1997 while test "x$ac_lo" != "x$ac_hi"; do
1998 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2000 /* end confdefs.h. */
2003 main ()
2005 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2006 test_array [0] = 0
2009 return 0;
2011 _ACEOF
2012 if ac_fn_c_try_compile "$LINENO"; then :
2013 ac_hi=$ac_mid
2014 else
2015 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2018 done
2019 case $ac_lo in #((
2020 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2021 '') ac_retval=1 ;;
2022 esac
2023 else
2024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025 /* end confdefs.h. */
2027 static long int longval () { return $2; }
2028 static unsigned long int ulongval () { return $2; }
2029 #include <stdio.h>
2030 #include <stdlib.h>
2032 main ()
2035 FILE *f = fopen ("conftest.val", "w");
2036 if (! f)
2037 return 1;
2038 if (($2) < 0)
2040 long int i = longval ();
2041 if (i != ($2))
2042 return 1;
2043 fprintf (f, "%ld", i);
2045 else
2047 unsigned long int i = ulongval ();
2048 if (i != ($2))
2049 return 1;
2050 fprintf (f, "%lu", i);
2052 /* Do not output a trailing newline, as this causes \r\n confusion
2053 on some platforms. */
2054 return ferror (f) || fclose (f) != 0;
2057 return 0;
2059 _ACEOF
2060 if ac_fn_c_try_run "$LINENO"; then :
2061 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2062 else
2063 ac_retval=1
2065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2066 conftest.$ac_objext conftest.beam conftest.$ac_ext
2067 rm -f conftest.val
2070 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2071 as_fn_set_status $ac_retval
2073 } # ac_fn_c_compute_int
2075 # ac_fn_cxx_try_cpp LINENO
2076 # ------------------------
2077 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2078 ac_fn_cxx_try_cpp ()
2080 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2081 if { { ac_try="$ac_cpp conftest.$ac_ext"
2082 case "(($ac_try" in
2083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2084 *) ac_try_echo=$ac_try;;
2085 esac
2086 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2087 $as_echo "$ac_try_echo"; } >&5
2088 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2089 ac_status=$?
2090 if test -s conftest.err; then
2091 grep -v '^ *+' conftest.err >conftest.er1
2092 cat conftest.er1 >&5
2093 mv -f conftest.er1 conftest.err
2095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2096 test $ac_status = 0; } > conftest.i && {
2097 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2098 test ! -s conftest.err
2099 }; then :
2100 ac_retval=0
2101 else
2102 $as_echo "$as_me: failed program was:" >&5
2103 sed 's/^/| /' conftest.$ac_ext >&5
2105 ac_retval=1
2107 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2108 as_fn_set_status $ac_retval
2110 } # ac_fn_cxx_try_cpp
2112 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2113 # ---------------------------------------------------------
2114 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2115 # the include files in INCLUDES and setting the cache variable VAR
2116 # accordingly.
2117 ac_fn_cxx_check_header_mongrel ()
2119 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2120 if eval \${$3+:} false; then :
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2122 $as_echo_n "checking for $2... " >&6; }
2123 if eval \${$3+:} false; then :
2124 $as_echo_n "(cached) " >&6
2126 eval ac_res=\$$3
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2128 $as_echo "$ac_res" >&6; }
2129 else
2130 # Is the header compilable?
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2132 $as_echo_n "checking $2 usability... " >&6; }
2133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2134 /* end confdefs.h. */
2136 #include <$2>
2137 _ACEOF
2138 if ac_fn_cxx_try_compile "$LINENO"; then :
2139 ac_header_compiler=yes
2140 else
2141 ac_header_compiler=no
2143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2145 $as_echo "$ac_header_compiler" >&6; }
2147 # Is the header present?
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2149 $as_echo_n "checking $2 presence... " >&6; }
2150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2151 /* end confdefs.h. */
2152 #include <$2>
2153 _ACEOF
2154 if ac_fn_cxx_try_cpp "$LINENO"; then :
2155 ac_header_preproc=yes
2156 else
2157 ac_header_preproc=no
2159 rm -f conftest.err conftest.i conftest.$ac_ext
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2161 $as_echo "$ac_header_preproc" >&6; }
2163 # So? What about this header?
2164 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2165 yes:no: )
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2167 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2169 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2171 no:yes:* )
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2173 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2175 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2177 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2179 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2181 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2183 esac
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2185 $as_echo_n "checking for $2... " >&6; }
2186 if eval \${$3+:} false; then :
2187 $as_echo_n "(cached) " >&6
2188 else
2189 eval "$3=\$ac_header_compiler"
2191 eval ac_res=\$$3
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2193 $as_echo "$ac_res" >&6; }
2195 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2197 } # ac_fn_cxx_check_header_mongrel
2199 # ac_fn_cxx_try_link LINENO
2200 # -------------------------
2201 # Try to link conftest.$ac_ext, and return whether this succeeded.
2202 ac_fn_cxx_try_link ()
2204 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2205 rm -f conftest.$ac_objext conftest$ac_exeext
2206 if { { ac_try="$ac_link"
2207 case "(($ac_try" in
2208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2209 *) ac_try_echo=$ac_try;;
2210 esac
2211 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2212 $as_echo "$ac_try_echo"; } >&5
2213 (eval "$ac_link") 2>conftest.err
2214 ac_status=$?
2215 if test -s conftest.err; then
2216 grep -v '^ *+' conftest.err >conftest.er1
2217 cat conftest.er1 >&5
2218 mv -f conftest.er1 conftest.err
2220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2221 test $ac_status = 0; } && {
2222 test -z "$ac_cxx_werror_flag" ||
2223 test ! -s conftest.err
2224 } && test -s conftest$ac_exeext && {
2225 test "$cross_compiling" = yes ||
2226 $as_test_x conftest$ac_exeext
2227 }; then :
2228 ac_retval=0
2229 else
2230 $as_echo "$as_me: failed program was:" >&5
2231 sed 's/^/| /' conftest.$ac_ext >&5
2233 ac_retval=1
2235 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2236 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2237 # interfere with the next link command; also delete a directory that is
2238 # left behind by Apple's compiler. We do this before executing the actions.
2239 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2240 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2241 as_fn_set_status $ac_retval
2243 } # ac_fn_cxx_try_link
2244 cat >config.log <<_ACEOF
2245 This file contains any messages produced by compilers while
2246 running configure, to aid debugging if configure makes a mistake.
2248 It was created by $as_me, which was
2249 generated by GNU Autoconf 2.68. Invocation command line was
2251 $ $0 $@
2253 _ACEOF
2254 exec 5>>config.log
2256 cat <<_ASUNAME
2257 ## --------- ##
2258 ## Platform. ##
2259 ## --------- ##
2261 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2262 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2263 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2264 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2265 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2267 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2268 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2270 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2271 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2272 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2273 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2274 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2275 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2276 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2278 _ASUNAME
2280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2281 for as_dir in $PATH
2283 IFS=$as_save_IFS
2284 test -z "$as_dir" && as_dir=.
2285 $as_echo "PATH: $as_dir"
2286 done
2287 IFS=$as_save_IFS
2289 } >&5
2291 cat >&5 <<_ACEOF
2294 ## ----------- ##
2295 ## Core tests. ##
2296 ## ----------- ##
2298 _ACEOF
2301 # Keep a trace of the command line.
2302 # Strip out --no-create and --no-recursion so they do not pile up.
2303 # Strip out --silent because we don't want to record it for future runs.
2304 # Also quote any args containing shell meta-characters.
2305 # Make two passes to allow for proper duplicate-argument suppression.
2306 ac_configure_args=
2307 ac_configure_args0=
2308 ac_configure_args1=
2309 ac_must_keep_next=false
2310 for ac_pass in 1 2
2312 for ac_arg
2314 case $ac_arg in
2315 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2316 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2317 | -silent | --silent | --silen | --sile | --sil)
2318 continue ;;
2319 *\'*)
2320 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2321 esac
2322 case $ac_pass in
2323 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2325 as_fn_append ac_configure_args1 " '$ac_arg'"
2326 if test $ac_must_keep_next = true; then
2327 ac_must_keep_next=false # Got value, back to normal.
2328 else
2329 case $ac_arg in
2330 *=* | --config-cache | -C | -disable-* | --disable-* \
2331 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2332 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2333 | -with-* | --with-* | -without-* | --without-* | --x)
2334 case "$ac_configure_args0 " in
2335 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2336 esac
2338 -* ) ac_must_keep_next=true ;;
2339 esac
2341 as_fn_append ac_configure_args " '$ac_arg'"
2343 esac
2344 done
2345 done
2346 { ac_configure_args0=; unset ac_configure_args0;}
2347 { ac_configure_args1=; unset ac_configure_args1;}
2349 # When interrupted or exit'd, cleanup temporary files, and complete
2350 # config.log. We remove comments because anyway the quotes in there
2351 # would cause problems or look ugly.
2352 # WARNING: Use '\'' to represent an apostrophe within the trap.
2353 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2354 trap 'exit_status=$?
2355 # Save into config.log some information that might help in debugging.
2357 echo
2359 $as_echo "## ---------------- ##
2360 ## Cache variables. ##
2361 ## ---------------- ##"
2362 echo
2363 # The following way of writing the cache mishandles newlines in values,
2365 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2366 eval ac_val=\$$ac_var
2367 case $ac_val in #(
2368 *${as_nl}*)
2369 case $ac_var in #(
2370 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2371 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2372 esac
2373 case $ac_var in #(
2374 _ | IFS | as_nl) ;; #(
2375 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2376 *) { eval $ac_var=; unset $ac_var;} ;;
2377 esac ;;
2378 esac
2379 done
2380 (set) 2>&1 |
2381 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2382 *${as_nl}ac_space=\ *)
2383 sed -n \
2384 "s/'\''/'\''\\\\'\'''\''/g;
2385 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2386 ;; #(
2388 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2390 esac |
2391 sort
2393 echo
2395 $as_echo "## ----------------- ##
2396 ## Output variables. ##
2397 ## ----------------- ##"
2398 echo
2399 for ac_var in $ac_subst_vars
2401 eval ac_val=\$$ac_var
2402 case $ac_val in
2403 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2404 esac
2405 $as_echo "$ac_var='\''$ac_val'\''"
2406 done | sort
2407 echo
2409 if test -n "$ac_subst_files"; then
2410 $as_echo "## ------------------- ##
2411 ## File substitutions. ##
2412 ## ------------------- ##"
2413 echo
2414 for ac_var in $ac_subst_files
2416 eval ac_val=\$$ac_var
2417 case $ac_val in
2418 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2419 esac
2420 $as_echo "$ac_var='\''$ac_val'\''"
2421 done | sort
2422 echo
2425 if test -s confdefs.h; then
2426 $as_echo "## ----------- ##
2427 ## confdefs.h. ##
2428 ## ----------- ##"
2429 echo
2430 cat confdefs.h
2431 echo
2433 test "$ac_signal" != 0 &&
2434 $as_echo "$as_me: caught signal $ac_signal"
2435 $as_echo "$as_me: exit $exit_status"
2436 } >&5
2437 rm -f core *.core core.conftest.* &&
2438 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2439 exit $exit_status
2441 for ac_signal in 1 2 13 15; do
2442 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2443 done
2444 ac_signal=0
2446 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2447 rm -f -r conftest* confdefs.h
2449 $as_echo "/* confdefs.h */" > confdefs.h
2451 # Predefined preprocessor variables.
2453 cat >>confdefs.h <<_ACEOF
2454 #define PACKAGE_NAME "$PACKAGE_NAME"
2455 _ACEOF
2457 cat >>confdefs.h <<_ACEOF
2458 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2459 _ACEOF
2461 cat >>confdefs.h <<_ACEOF
2462 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2463 _ACEOF
2465 cat >>confdefs.h <<_ACEOF
2466 #define PACKAGE_STRING "$PACKAGE_STRING"
2467 _ACEOF
2469 cat >>confdefs.h <<_ACEOF
2470 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2471 _ACEOF
2473 cat >>confdefs.h <<_ACEOF
2474 #define PACKAGE_URL "$PACKAGE_URL"
2475 _ACEOF
2478 # Let the site file select an alternate cache file if it wants to.
2479 # Prefer an explicitly selected file to automatically selected ones.
2480 ac_site_file1=NONE
2481 ac_site_file2=NONE
2482 if test -n "$CONFIG_SITE"; then
2483 # We do not want a PATH search for config.site.
2484 case $CONFIG_SITE in #((
2485 -*) ac_site_file1=./$CONFIG_SITE;;
2486 */*) ac_site_file1=$CONFIG_SITE;;
2487 *) ac_site_file1=./$CONFIG_SITE;;
2488 esac
2489 elif test "x$prefix" != xNONE; then
2490 ac_site_file1=$prefix/share/config.site
2491 ac_site_file2=$prefix/etc/config.site
2492 else
2493 ac_site_file1=$ac_default_prefix/share/config.site
2494 ac_site_file2=$ac_default_prefix/etc/config.site
2496 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2498 test "x$ac_site_file" = xNONE && continue
2499 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2501 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2502 sed 's/^/| /' "$ac_site_file" >&5
2503 . "$ac_site_file" \
2504 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2505 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2506 as_fn_error $? "failed to load site script $ac_site_file
2507 See \`config.log' for more details" "$LINENO" 5; }
2509 done
2511 if test -r "$cache_file"; then
2512 # Some versions of bash will fail to source /dev/null (special files
2513 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2514 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2516 $as_echo "$as_me: loading cache $cache_file" >&6;}
2517 case $cache_file in
2518 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2519 *) . "./$cache_file";;
2520 esac
2522 else
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2524 $as_echo "$as_me: creating cache $cache_file" >&6;}
2525 >$cache_file
2528 # Check that the precious variables saved in the cache have kept the same
2529 # value.
2530 ac_cache_corrupted=false
2531 for ac_var in $ac_precious_vars; do
2532 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2533 eval ac_new_set=\$ac_env_${ac_var}_set
2534 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2535 eval ac_new_val=\$ac_env_${ac_var}_value
2536 case $ac_old_set,$ac_new_set in
2537 set,)
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2539 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2540 ac_cache_corrupted=: ;;
2541 ,set)
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2543 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2544 ac_cache_corrupted=: ;;
2545 ,);;
2547 if test "x$ac_old_val" != "x$ac_new_val"; then
2548 # differences in whitespace do not lead to failure.
2549 ac_old_val_w=`echo x $ac_old_val`
2550 ac_new_val_w=`echo x $ac_new_val`
2551 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2553 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2554 ac_cache_corrupted=:
2555 else
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2557 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2558 eval $ac_var=\$ac_old_val
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2561 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2563 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2564 fi;;
2565 esac
2566 # Pass precious variables to config.status.
2567 if test "$ac_new_set" = set; then
2568 case $ac_new_val in
2569 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2570 *) ac_arg=$ac_var=$ac_new_val ;;
2571 esac
2572 case " $ac_configure_args " in
2573 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2574 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2575 esac
2577 done
2578 if $ac_cache_corrupted; then
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2580 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2582 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2583 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2585 ## -------------------- ##
2586 ## Main body of script. ##
2587 ## -------------------- ##
2589 ac_ext=c
2590 ac_cpp='$CPP $CPPFLAGS'
2591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2598 # ------------------- option parsing -------------------------------
2600 DEBUG=
2601 CHECKMEM=
2602 PROFILING=
2603 ENABLE_WARNINGS=
2604 OPTIMIZE=
2605 USE_POPPLER=
2606 DISABLE_LAME=
2608 # Check whether --enable-checkmem was given.
2609 if test "${enable_checkmem+set}" = set; then :
2610 enableval=$enable_checkmem; CHECKMEM=true
2613 # Check whether --enable-debug was given.
2614 if test "${enable_debug+set}" = set; then :
2615 enableval=$enable_debug; DEBUG=true
2618 # Check whether --enable-profiling was given.
2619 if test "${enable_profiling+set}" = set; then :
2620 enableval=$enable_profiling; PROFILING=true
2623 # Check whether --enable-warnings was given.
2624 if test "${enable_warnings+set}" = set; then :
2625 enableval=$enable_warnings; ENABLE_WARNINGS=true
2628 # Check whether --enable-optimizations was given.
2629 if test "${enable_optimizations+set}" = set; then :
2630 enableval=$enable_optimizations; OPTIMIZE=true
2633 # Check whether --enable-poppler was given.
2634 if test "${enable_poppler+set}" = set; then :
2635 enableval=$enable_poppler; USE_POPPLER=true
2638 # Check whether --enable-lame was given.
2639 if test "${enable_lame+set}" = set; then :
2640 enableval=$enable_lame; if test "x$enable_lame" = "xno";then
2641 DISABLE_LAME=yes
2643 else
2644 DISABLE_LAME=
2648 PACKAGE=swftools
2649 VERSION=0.9.2
2651 # ------------------------------------------------------------------
2653 if test "x${srcdir}" != "x."; then
2654 echo "--srcdir is not supported"
2655 exit 1
2658 WARNINGS="-Wimplicit -Wreturn-type -Wno-write-strings -Wformat"
2659 if test "x$ENABLE_WARNINGS" '!=' "x";then
2660 WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls -Wno-write-strings -D_FORTIFY_SOURCE=2 "
2663 if test "x$CHECKMEM" '!=' "x";then
2664 DEBUG=yes
2666 if test "x$PROFILING" '!=' "x";then
2667 DEBUG=yes
2669 if test "x$DEBUG" '!=' "x";then
2670 if test "x$PROFILING" = "x";then
2671 CFLAGS="$WARNINGS -O2 -g $CFLAGS"
2672 CXXFLAGS="$WARNINGS -O2 -g $CXXFLAGS"
2673 LDFLAGS="-g $LDFLAGS"
2674 else
2675 CFLAGS="$WARNINGS -O2 -g -pg $CFLAGS"
2676 CXXFLAGS="$WARNINGS -O2 -g -pg $CXXFLAGS"
2677 LDFLAGS="-g -pg $LDFLAGS"
2679 else if test "x$OPTIMIZE" '!=' "x"; then
2680 CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
2681 CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
2682 else
2683 CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
2684 CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
2688 CFLAGS="-fPIC $CFLAGS"
2689 CXXFLAGS="-fPIC $CFLAGS"
2691 #OLDGCC=1
2692 #if test "x$OLDGCC" '!=' "x";then
2693 # #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
2694 # #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
2695 # CFLAGS="$CFLAGS -ansi -pendantic"
2696 # CXXFLAGS="$CXXFLAGS -ansi -pendantic"
2699 export PACKAGE VERSION CFLAGS CXXFLAGS
2702 ac_aux_dir=
2703 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2704 if test -f "$ac_dir/install-sh"; then
2705 ac_aux_dir=$ac_dir
2706 ac_install_sh="$ac_aux_dir/install-sh -c"
2707 break
2708 elif test -f "$ac_dir/install.sh"; then
2709 ac_aux_dir=$ac_dir
2710 ac_install_sh="$ac_aux_dir/install.sh -c"
2711 break
2712 elif test -f "$ac_dir/shtool"; then
2713 ac_aux_dir=$ac_dir
2714 ac_install_sh="$ac_aux_dir/shtool install -c"
2715 break
2717 done
2718 if test -z "$ac_aux_dir"; then
2719 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2722 # These three variables are undocumented and unsupported,
2723 # and are intended to be withdrawn in a future Autoconf release.
2724 # They can cause serious problems if a builder's source tree is in a directory
2725 # whose full name contains unusual characters.
2726 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2727 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2728 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2731 # Make sure we can run config.sub.
2732 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2733 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2736 $as_echo_n "checking build system type... " >&6; }
2737 if ${ac_cv_build+:} false; then :
2738 $as_echo_n "(cached) " >&6
2739 else
2740 ac_build_alias=$build_alias
2741 test "x$ac_build_alias" = x &&
2742 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2743 test "x$ac_build_alias" = x &&
2744 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2745 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2746 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2750 $as_echo "$ac_cv_build" >&6; }
2751 case $ac_cv_build in
2752 *-*-*) ;;
2753 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2754 esac
2755 build=$ac_cv_build
2756 ac_save_IFS=$IFS; IFS='-'
2757 set x $ac_cv_build
2758 shift
2759 build_cpu=$1
2760 build_vendor=$2
2761 shift; shift
2762 # Remember, the first character of IFS is used to create $*,
2763 # except with old shells:
2764 build_os=$*
2765 IFS=$ac_save_IFS
2766 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2770 $as_echo_n "checking host system type... " >&6; }
2771 if ${ac_cv_host+:} false; then :
2772 $as_echo_n "(cached) " >&6
2773 else
2774 if test "x$host_alias" = x; then
2775 ac_cv_host=$ac_cv_build
2776 else
2777 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2778 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2783 $as_echo "$ac_cv_host" >&6; }
2784 case $ac_cv_host in
2785 *-*-*) ;;
2786 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2787 esac
2788 host=$ac_cv_host
2789 ac_save_IFS=$IFS; IFS='-'
2790 set x $ac_cv_host
2791 shift
2792 host_cpu=$1
2793 host_vendor=$2
2794 shift; shift
2795 # Remember, the first character of IFS is used to create $*,
2796 # except with old shells:
2797 host_os=$*
2798 IFS=$ac_save_IFS
2799 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2803 SLEXT="so"
2804 SHARED="-shared"
2805 MACOSX=
2806 case $host_os in
2807 *darwin* )
2808 MACOSX=yes
2809 CFLAGS="$CFLAGS"
2810 CXXFLAGS="$CXXFLAGS -fno-rtti"
2811 SHARED="-bundle"
2812 SLEXT="bundle"
2813 if test -d /opt/local/include && test -d /opt/local/lib; then
2814 CPPFLAGS="${CPPFLAGS} -I/opt/local/include"
2815 LDFLAGS="${LDFLAGS} -L/opt/local/lib"
2817 # Use fink packages if available.
2818 #if test -d /sw/include && test -d /sw/lib; then
2819 # CPPFLAGS="${CPPFLAGS} -I/sw/include"
2820 # LDFLAGS="${LDFLAGS} -L/sw/lib"
2823 esac
2827 ac_ext=c
2828 ac_cpp='$CPP $CPPFLAGS'
2829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2832 if test -n "$ac_tool_prefix"; then
2833 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2834 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2836 $as_echo_n "checking for $ac_word... " >&6; }
2837 if ${ac_cv_prog_CC+:} false; then :
2838 $as_echo_n "(cached) " >&6
2839 else
2840 if test -n "$CC"; then
2841 ac_cv_prog_CC="$CC" # Let the user override the test.
2842 else
2843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844 for as_dir in $PATH
2846 IFS=$as_save_IFS
2847 test -z "$as_dir" && as_dir=.
2848 for ac_exec_ext in '' $ac_executable_extensions; do
2849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2850 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2852 break 2
2854 done
2855 done
2856 IFS=$as_save_IFS
2860 CC=$ac_cv_prog_CC
2861 if test -n "$CC"; then
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2863 $as_echo "$CC" >&6; }
2864 else
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2866 $as_echo "no" >&6; }
2871 if test -z "$ac_cv_prog_CC"; then
2872 ac_ct_CC=$CC
2873 # Extract the first word of "gcc", so it can be a program name with args.
2874 set dummy gcc; ac_word=$2
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2876 $as_echo_n "checking for $ac_word... " >&6; }
2877 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2878 $as_echo_n "(cached) " >&6
2879 else
2880 if test -n "$ac_ct_CC"; then
2881 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2882 else
2883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2884 for as_dir in $PATH
2886 IFS=$as_save_IFS
2887 test -z "$as_dir" && as_dir=.
2888 for ac_exec_ext in '' $ac_executable_extensions; do
2889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2890 ac_cv_prog_ac_ct_CC="gcc"
2891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2892 break 2
2894 done
2895 done
2896 IFS=$as_save_IFS
2900 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2901 if test -n "$ac_ct_CC"; then
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2903 $as_echo "$ac_ct_CC" >&6; }
2904 else
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2906 $as_echo "no" >&6; }
2909 if test "x$ac_ct_CC" = x; then
2910 CC=""
2911 else
2912 case $cross_compiling:$ac_tool_warned in
2913 yes:)
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2915 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2916 ac_tool_warned=yes ;;
2917 esac
2918 CC=$ac_ct_CC
2920 else
2921 CC="$ac_cv_prog_CC"
2924 if test -z "$CC"; then
2925 if test -n "$ac_tool_prefix"; then
2926 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2927 set dummy ${ac_tool_prefix}cc; ac_word=$2
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2929 $as_echo_n "checking for $ac_word... " >&6; }
2930 if ${ac_cv_prog_CC+:} false; then :
2931 $as_echo_n "(cached) " >&6
2932 else
2933 if test -n "$CC"; then
2934 ac_cv_prog_CC="$CC" # Let the user override the test.
2935 else
2936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2937 for as_dir in $PATH
2939 IFS=$as_save_IFS
2940 test -z "$as_dir" && as_dir=.
2941 for ac_exec_ext in '' $ac_executable_extensions; do
2942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2943 ac_cv_prog_CC="${ac_tool_prefix}cc"
2944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2945 break 2
2947 done
2948 done
2949 IFS=$as_save_IFS
2953 CC=$ac_cv_prog_CC
2954 if test -n "$CC"; then
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2956 $as_echo "$CC" >&6; }
2957 else
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2959 $as_echo "no" >&6; }
2965 if test -z "$CC"; then
2966 # Extract the first word of "cc", so it can be a program name with args.
2967 set dummy cc; ac_word=$2
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2969 $as_echo_n "checking for $ac_word... " >&6; }
2970 if ${ac_cv_prog_CC+:} false; then :
2971 $as_echo_n "(cached) " >&6
2972 else
2973 if test -n "$CC"; then
2974 ac_cv_prog_CC="$CC" # Let the user override the test.
2975 else
2976 ac_prog_rejected=no
2977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978 for as_dir in $PATH
2980 IFS=$as_save_IFS
2981 test -z "$as_dir" && as_dir=.
2982 for ac_exec_ext in '' $ac_executable_extensions; do
2983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2984 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2985 ac_prog_rejected=yes
2986 continue
2988 ac_cv_prog_CC="cc"
2989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2990 break 2
2992 done
2993 done
2994 IFS=$as_save_IFS
2996 if test $ac_prog_rejected = yes; then
2997 # We found a bogon in the path, so make sure we never use it.
2998 set dummy $ac_cv_prog_CC
2999 shift
3000 if test $# != 0; then
3001 # We chose a different compiler from the bogus one.
3002 # However, it has the same basename, so the bogon will be chosen
3003 # first if we set CC to just the basename; use the full file name.
3004 shift
3005 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3010 CC=$ac_cv_prog_CC
3011 if test -n "$CC"; then
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3013 $as_echo "$CC" >&6; }
3014 else
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3016 $as_echo "no" >&6; }
3021 if test -z "$CC"; then
3022 if test -n "$ac_tool_prefix"; then
3023 for ac_prog in cl.exe
3025 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3026 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3028 $as_echo_n "checking for $ac_word... " >&6; }
3029 if ${ac_cv_prog_CC+:} false; then :
3030 $as_echo_n "(cached) " >&6
3031 else
3032 if test -n "$CC"; then
3033 ac_cv_prog_CC="$CC" # Let the user override the test.
3034 else
3035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036 for as_dir in $PATH
3038 IFS=$as_save_IFS
3039 test -z "$as_dir" && as_dir=.
3040 for ac_exec_ext in '' $ac_executable_extensions; do
3041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3042 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3044 break 2
3046 done
3047 done
3048 IFS=$as_save_IFS
3052 CC=$ac_cv_prog_CC
3053 if test -n "$CC"; then
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3055 $as_echo "$CC" >&6; }
3056 else
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3058 $as_echo "no" >&6; }
3062 test -n "$CC" && break
3063 done
3065 if test -z "$CC"; then
3066 ac_ct_CC=$CC
3067 for ac_prog in cl.exe
3069 # Extract the first word of "$ac_prog", so it can be a program name with args.
3070 set dummy $ac_prog; ac_word=$2
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3072 $as_echo_n "checking for $ac_word... " >&6; }
3073 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3074 $as_echo_n "(cached) " >&6
3075 else
3076 if test -n "$ac_ct_CC"; then
3077 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3078 else
3079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3080 for as_dir in $PATH
3082 IFS=$as_save_IFS
3083 test -z "$as_dir" && as_dir=.
3084 for ac_exec_ext in '' $ac_executable_extensions; do
3085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3086 ac_cv_prog_ac_ct_CC="$ac_prog"
3087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3088 break 2
3090 done
3091 done
3092 IFS=$as_save_IFS
3096 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3097 if test -n "$ac_ct_CC"; then
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3099 $as_echo "$ac_ct_CC" >&6; }
3100 else
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3102 $as_echo "no" >&6; }
3106 test -n "$ac_ct_CC" && break
3107 done
3109 if test "x$ac_ct_CC" = x; then
3110 CC=""
3111 else
3112 case $cross_compiling:$ac_tool_warned in
3113 yes:)
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3115 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3116 ac_tool_warned=yes ;;
3117 esac
3118 CC=$ac_ct_CC
3125 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3126 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3127 as_fn_error $? "no acceptable C compiler found in \$PATH
3128 See \`config.log' for more details" "$LINENO" 5; }
3130 # Provide some information about the compiler.
3131 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3132 set X $ac_compile
3133 ac_compiler=$2
3134 for ac_option in --version -v -V -qversion; do
3135 { { ac_try="$ac_compiler $ac_option >&5"
3136 case "(($ac_try" in
3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138 *) ac_try_echo=$ac_try;;
3139 esac
3140 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3141 $as_echo "$ac_try_echo"; } >&5
3142 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3143 ac_status=$?
3144 if test -s conftest.err; then
3145 sed '10a\
3146 ... rest of stderr output deleted ...
3147 10q' conftest.err >conftest.er1
3148 cat conftest.er1 >&5
3150 rm -f conftest.er1 conftest.err
3151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3152 test $ac_status = 0; }
3153 done
3155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3156 /* end confdefs.h. */
3159 main ()
3163 return 0;
3165 _ACEOF
3166 ac_clean_files_save=$ac_clean_files
3167 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3168 # Try to create an executable without -o first, disregard a.out.
3169 # It will help us diagnose broken compilers, and finding out an intuition
3170 # of exeext.
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3172 $as_echo_n "checking whether the C compiler works... " >&6; }
3173 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3175 # The possible output files:
3176 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3178 ac_rmfiles=
3179 for ac_file in $ac_files
3181 case $ac_file in
3182 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3183 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3184 esac
3185 done
3186 rm -f $ac_rmfiles
3188 if { { ac_try="$ac_link_default"
3189 case "(($ac_try" in
3190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191 *) ac_try_echo=$ac_try;;
3192 esac
3193 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3194 $as_echo "$ac_try_echo"; } >&5
3195 (eval "$ac_link_default") 2>&5
3196 ac_status=$?
3197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3198 test $ac_status = 0; }; then :
3199 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3200 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3201 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3202 # so that the user can short-circuit this test for compilers unknown to
3203 # Autoconf.
3204 for ac_file in $ac_files ''
3206 test -f "$ac_file" || continue
3207 case $ac_file in
3208 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3210 [ab].out )
3211 # We found the default executable, but exeext='' is most
3212 # certainly right.
3213 break;;
3214 *.* )
3215 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3216 then :; else
3217 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3219 # We set ac_cv_exeext here because the later test for it is not
3220 # safe: cross compilers may not add the suffix if given an `-o'
3221 # argument, so we may need to know it at that point already.
3222 # Even if this section looks crufty: it has the advantage of
3223 # actually working.
3224 break;;
3226 break;;
3227 esac
3228 done
3229 test "$ac_cv_exeext" = no && ac_cv_exeext=
3231 else
3232 ac_file=''
3234 if test -z "$ac_file"; then :
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3236 $as_echo "no" >&6; }
3237 $as_echo "$as_me: failed program was:" >&5
3238 sed 's/^/| /' conftest.$ac_ext >&5
3240 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3242 as_fn_error 77 "C compiler cannot create executables
3243 See \`config.log' for more details" "$LINENO" 5; }
3244 else
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3246 $as_echo "yes" >&6; }
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3249 $as_echo_n "checking for C compiler default output file name... " >&6; }
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3251 $as_echo "$ac_file" >&6; }
3252 ac_exeext=$ac_cv_exeext
3254 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3255 ac_clean_files=$ac_clean_files_save
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3257 $as_echo_n "checking for suffix of executables... " >&6; }
3258 if { { ac_try="$ac_link"
3259 case "(($ac_try" in
3260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261 *) ac_try_echo=$ac_try;;
3262 esac
3263 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3264 $as_echo "$ac_try_echo"; } >&5
3265 (eval "$ac_link") 2>&5
3266 ac_status=$?
3267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3268 test $ac_status = 0; }; then :
3269 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3270 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3271 # work properly (i.e., refer to `conftest.exe'), while it won't with
3272 # `rm'.
3273 for ac_file in conftest.exe conftest conftest.*; do
3274 test -f "$ac_file" || continue
3275 case $ac_file in
3276 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3277 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3278 break;;
3279 * ) break;;
3280 esac
3281 done
3282 else
3283 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3284 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3285 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3286 See \`config.log' for more details" "$LINENO" 5; }
3288 rm -f conftest conftest$ac_cv_exeext
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3290 $as_echo "$ac_cv_exeext" >&6; }
3292 rm -f conftest.$ac_ext
3293 EXEEXT=$ac_cv_exeext
3294 ac_exeext=$EXEEXT
3295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3296 /* end confdefs.h. */
3297 #include <stdio.h>
3299 main ()
3301 FILE *f = fopen ("conftest.out", "w");
3302 return ferror (f) || fclose (f) != 0;
3305 return 0;
3307 _ACEOF
3308 ac_clean_files="$ac_clean_files conftest.out"
3309 # Check that the compiler produces executables we can run. If not, either
3310 # the compiler is broken, or we cross compile.
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3312 $as_echo_n "checking whether we are cross compiling... " >&6; }
3313 if test "$cross_compiling" != yes; then
3314 { { ac_try="$ac_link"
3315 case "(($ac_try" in
3316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317 *) ac_try_echo=$ac_try;;
3318 esac
3319 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3320 $as_echo "$ac_try_echo"; } >&5
3321 (eval "$ac_link") 2>&5
3322 ac_status=$?
3323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3324 test $ac_status = 0; }
3325 if { ac_try='./conftest$ac_cv_exeext'
3326 { { case "(($ac_try" in
3327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3328 *) ac_try_echo=$ac_try;;
3329 esac
3330 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3331 $as_echo "$ac_try_echo"; } >&5
3332 (eval "$ac_try") 2>&5
3333 ac_status=$?
3334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3335 test $ac_status = 0; }; }; then
3336 cross_compiling=no
3337 else
3338 if test "$cross_compiling" = maybe; then
3339 cross_compiling=yes
3340 else
3341 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3342 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3343 as_fn_error $? "cannot run C compiled programs.
3344 If you meant to cross compile, use \`--host'.
3345 See \`config.log' for more details" "$LINENO" 5; }
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3350 $as_echo "$cross_compiling" >&6; }
3352 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3353 ac_clean_files=$ac_clean_files_save
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3355 $as_echo_n "checking for suffix of object files... " >&6; }
3356 if ${ac_cv_objext+:} false; then :
3357 $as_echo_n "(cached) " >&6
3358 else
3359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3360 /* end confdefs.h. */
3363 main ()
3367 return 0;
3369 _ACEOF
3370 rm -f conftest.o conftest.obj
3371 if { { ac_try="$ac_compile"
3372 case "(($ac_try" in
3373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374 *) ac_try_echo=$ac_try;;
3375 esac
3376 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3377 $as_echo "$ac_try_echo"; } >&5
3378 (eval "$ac_compile") 2>&5
3379 ac_status=$?
3380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3381 test $ac_status = 0; }; then :
3382 for ac_file in conftest.o conftest.obj conftest.*; do
3383 test -f "$ac_file" || continue;
3384 case $ac_file in
3385 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3386 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3387 break;;
3388 esac
3389 done
3390 else
3391 $as_echo "$as_me: failed program was:" >&5
3392 sed 's/^/| /' conftest.$ac_ext >&5
3394 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3395 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3396 as_fn_error $? "cannot compute suffix of object files: cannot compile
3397 See \`config.log' for more details" "$LINENO" 5; }
3399 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3402 $as_echo "$ac_cv_objext" >&6; }
3403 OBJEXT=$ac_cv_objext
3404 ac_objext=$OBJEXT
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3406 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3407 if ${ac_cv_c_compiler_gnu+:} false; then :
3408 $as_echo_n "(cached) " >&6
3409 else
3410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3411 /* end confdefs.h. */
3414 main ()
3416 #ifndef __GNUC__
3417 choke me
3418 #endif
3421 return 0;
3423 _ACEOF
3424 if ac_fn_c_try_compile "$LINENO"; then :
3425 ac_compiler_gnu=yes
3426 else
3427 ac_compiler_gnu=no
3429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3430 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3434 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3435 if test $ac_compiler_gnu = yes; then
3436 GCC=yes
3437 else
3438 GCC=
3440 ac_test_CFLAGS=${CFLAGS+set}
3441 ac_save_CFLAGS=$CFLAGS
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3443 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3444 if ${ac_cv_prog_cc_g+:} false; then :
3445 $as_echo_n "(cached) " >&6
3446 else
3447 ac_save_c_werror_flag=$ac_c_werror_flag
3448 ac_c_werror_flag=yes
3449 ac_cv_prog_cc_g=no
3450 CFLAGS="-g"
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 :
3463 ac_cv_prog_cc_g=yes
3464 else
3465 CFLAGS=""
3466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3467 /* end confdefs.h. */
3470 main ()
3474 return 0;
3476 _ACEOF
3477 if ac_fn_c_try_compile "$LINENO"; then :
3479 else
3480 ac_c_werror_flag=$ac_save_c_werror_flag
3481 CFLAGS="-g"
3482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3483 /* end confdefs.h. */
3486 main ()
3490 return 0;
3492 _ACEOF
3493 if ac_fn_c_try_compile "$LINENO"; then :
3494 ac_cv_prog_cc_g=yes
3496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3501 ac_c_werror_flag=$ac_save_c_werror_flag
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3504 $as_echo "$ac_cv_prog_cc_g" >&6; }
3505 if test "$ac_test_CFLAGS" = set; then
3506 CFLAGS=$ac_save_CFLAGS
3507 elif test $ac_cv_prog_cc_g = yes; then
3508 if test "$GCC" = yes; then
3509 CFLAGS="-g -O2"
3510 else
3511 CFLAGS="-g"
3513 else
3514 if test "$GCC" = yes; then
3515 CFLAGS="-O2"
3516 else
3517 CFLAGS=
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3521 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3522 if ${ac_cv_prog_cc_c89+:} false; then :
3523 $as_echo_n "(cached) " >&6
3524 else
3525 ac_cv_prog_cc_c89=no
3526 ac_save_CC=$CC
3527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3528 /* end confdefs.h. */
3529 #include <stdarg.h>
3530 #include <stdio.h>
3531 #include <sys/types.h>
3532 #include <sys/stat.h>
3533 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3534 struct buf { int x; };
3535 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3536 static char *e (p, i)
3537 char **p;
3538 int i;
3540 return p[i];
3542 static char *f (char * (*g) (char **, int), char **p, ...)
3544 char *s;
3545 va_list v;
3546 va_start (v,p);
3547 s = g (p, va_arg (v,int));
3548 va_end (v);
3549 return s;
3552 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3553 function prototypes and stuff, but not '\xHH' hex character constants.
3554 These don't provoke an error unfortunately, instead are silently treated
3555 as 'x'. The following induces an error, until -std is added to get
3556 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3557 array size at least. It's necessary to write '\x00'==0 to get something
3558 that's true only with -std. */
3559 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3561 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3562 inside strings and character constants. */
3563 #define FOO(x) 'x'
3564 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3566 int test (int i, double x);
3567 struct s1 {int (*f) (int a);};
3568 struct s2 {int (*f) (double a);};
3569 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3570 int argc;
3571 char **argv;
3573 main ()
3575 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3577 return 0;
3579 _ACEOF
3580 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3581 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3583 CC="$ac_save_CC $ac_arg"
3584 if ac_fn_c_try_compile "$LINENO"; then :
3585 ac_cv_prog_cc_c89=$ac_arg
3587 rm -f core conftest.err conftest.$ac_objext
3588 test "x$ac_cv_prog_cc_c89" != "xno" && break
3589 done
3590 rm -f conftest.$ac_ext
3591 CC=$ac_save_CC
3594 # AC_CACHE_VAL
3595 case "x$ac_cv_prog_cc_c89" in
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3598 $as_echo "none needed" >&6; } ;;
3599 xno)
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3601 $as_echo "unsupported" >&6; } ;;
3603 CC="$CC $ac_cv_prog_cc_c89"
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3605 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3606 esac
3607 if test "x$ac_cv_prog_cc_c89" != xno; then :
3611 ac_ext=c
3612 ac_cpp='$CPP $CPPFLAGS'
3613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3617 ac_ext=cpp
3618 ac_cpp='$CXXCPP $CPPFLAGS'
3619 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3620 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3621 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3622 if test -z "$CXX"; then
3623 if test -n "$CCC"; then
3624 CXX=$CCC
3625 else
3626 if test -n "$ac_tool_prefix"; then
3627 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3629 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3630 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3632 $as_echo_n "checking for $ac_word... " >&6; }
3633 if ${ac_cv_prog_CXX+:} false; then :
3634 $as_echo_n "(cached) " >&6
3635 else
3636 if test -n "$CXX"; then
3637 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3638 else
3639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3640 for as_dir in $PATH
3642 IFS=$as_save_IFS
3643 test -z "$as_dir" && as_dir=.
3644 for ac_exec_ext in '' $ac_executable_extensions; do
3645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3646 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3648 break 2
3650 done
3651 done
3652 IFS=$as_save_IFS
3656 CXX=$ac_cv_prog_CXX
3657 if test -n "$CXX"; then
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3659 $as_echo "$CXX" >&6; }
3660 else
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3662 $as_echo "no" >&6; }
3666 test -n "$CXX" && break
3667 done
3669 if test -z "$CXX"; then
3670 ac_ct_CXX=$CXX
3671 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3673 # Extract the first word of "$ac_prog", so it can be a program name with args.
3674 set dummy $ac_prog; ac_word=$2
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3676 $as_echo_n "checking for $ac_word... " >&6; }
3677 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3678 $as_echo_n "(cached) " >&6
3679 else
3680 if test -n "$ac_ct_CXX"; then
3681 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3682 else
3683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3684 for as_dir in $PATH
3686 IFS=$as_save_IFS
3687 test -z "$as_dir" && as_dir=.
3688 for ac_exec_ext in '' $ac_executable_extensions; do
3689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3690 ac_cv_prog_ac_ct_CXX="$ac_prog"
3691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3692 break 2
3694 done
3695 done
3696 IFS=$as_save_IFS
3700 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3701 if test -n "$ac_ct_CXX"; then
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3703 $as_echo "$ac_ct_CXX" >&6; }
3704 else
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3706 $as_echo "no" >&6; }
3710 test -n "$ac_ct_CXX" && break
3711 done
3713 if test "x$ac_ct_CXX" = x; then
3714 CXX="g++"
3715 else
3716 case $cross_compiling:$ac_tool_warned in
3717 yes:)
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3719 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3720 ac_tool_warned=yes ;;
3721 esac
3722 CXX=$ac_ct_CXX
3728 # Provide some information about the compiler.
3729 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3730 set X $ac_compile
3731 ac_compiler=$2
3732 for ac_option in --version -v -V -qversion; do
3733 { { ac_try="$ac_compiler $ac_option >&5"
3734 case "(($ac_try" in
3735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3736 *) ac_try_echo=$ac_try;;
3737 esac
3738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3739 $as_echo "$ac_try_echo"; } >&5
3740 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3741 ac_status=$?
3742 if test -s conftest.err; then
3743 sed '10a\
3744 ... rest of stderr output deleted ...
3745 10q' conftest.err >conftest.er1
3746 cat conftest.er1 >&5
3748 rm -f conftest.er1 conftest.err
3749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3750 test $ac_status = 0; }
3751 done
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3754 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3755 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3756 $as_echo_n "(cached) " >&6
3757 else
3758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3759 /* end confdefs.h. */
3762 main ()
3764 #ifndef __GNUC__
3765 choke me
3766 #endif
3769 return 0;
3771 _ACEOF
3772 if ac_fn_cxx_try_compile "$LINENO"; then :
3773 ac_compiler_gnu=yes
3774 else
3775 ac_compiler_gnu=no
3777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3778 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3782 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3783 if test $ac_compiler_gnu = yes; then
3784 GXX=yes
3785 else
3786 GXX=
3788 ac_test_CXXFLAGS=${CXXFLAGS+set}
3789 ac_save_CXXFLAGS=$CXXFLAGS
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3791 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3792 if ${ac_cv_prog_cxx_g+:} false; then :
3793 $as_echo_n "(cached) " >&6
3794 else
3795 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3796 ac_cxx_werror_flag=yes
3797 ac_cv_prog_cxx_g=no
3798 CXXFLAGS="-g"
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 :
3811 ac_cv_prog_cxx_g=yes
3812 else
3813 CXXFLAGS=""
3814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3815 /* end confdefs.h. */
3818 main ()
3822 return 0;
3824 _ACEOF
3825 if ac_fn_cxx_try_compile "$LINENO"; then :
3827 else
3828 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3829 CXXFLAGS="-g"
3830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3831 /* end confdefs.h. */
3834 main ()
3838 return 0;
3840 _ACEOF
3841 if ac_fn_cxx_try_compile "$LINENO"; then :
3842 ac_cv_prog_cxx_g=yes
3844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3849 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3852 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3853 if test "$ac_test_CXXFLAGS" = set; then
3854 CXXFLAGS=$ac_save_CXXFLAGS
3855 elif test $ac_cv_prog_cxx_g = yes; then
3856 if test "$GXX" = yes; then
3857 CXXFLAGS="-g -O2"
3858 else
3859 CXXFLAGS="-g"
3861 else
3862 if test "$GXX" = yes; then
3863 CXXFLAGS="-O2"
3864 else
3865 CXXFLAGS=
3868 ac_ext=c
3869 ac_cpp='$CPP $CPPFLAGS'
3870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports lazy variable declaration" >&5
3878 $as_echo_n "checking whether gcc supports lazy variable declaration... " >&6; }
3880 cat > conftest.c << EOF
3881 #include <stdlib.h>
3882 #include <stdio.h>
3884 int main ()
3886 int a,b;
3887 b=3;
3888 int c;
3889 c=4;
3890 return 0;
3894 testprog_link='$CC $CPPFLAGS $CFLAGS conftest.c -o conftest${ac_exeext}'
3895 if { (eval echo gcc.2.95.m4:19: \"$testprog_link\") 1>&5; (eval $testprog_link) 2>&5; } && test -s conftest${ac_exeext}; then
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3897 $as_echo "yes" >&6; }
3898 GCC_IS_OK=true
3899 export GCC_IS_OK
3900 else
3901 echo "configure: failed program was:" >&5
3902 cat conftest.c >&5
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3904 $as_echo "no" >&6; }
3906 rm -f conftest*
3909 if test "x$GCC_IS_OK" '=' "x";then
3910 echo "***************************************************"
3911 echo "* Your gcc is too old to compile this!"
3912 echo "* "
3913 echo "* The last version compileable by this compiler is "
3914 echo "* swftools 0.7.0, which you can download from "
3915 echo "* http://www.swftools.org/swftools-0.7.0.tar.gz "
3916 echo "* ."
3917 echo "* Newer versions require at least gcc 3.0.0 "
3918 echo "***************************************************"
3919 exit 1
3922 if test "x$CHECKMEM" '!=' "x";then
3923 CC="ccmalloc $CC"
3924 CXX="ccmalloc $CXX"
3925 #echo running again
3926 #unset ac_cv_prog_CC
3927 #unset ac_cv_prog_CXX
3928 #AC_PROG_CC
3929 #AC_PROG_CXX
3931 ac_ext=c
3932 ac_cpp='$CPP $CPPFLAGS'
3933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3937 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3938 # On Suns, sometimes $CPP names a directory.
3939 if test -n "$CPP" && test -d "$CPP"; then
3940 CPP=
3942 if test -z "$CPP"; then
3943 if ${ac_cv_prog_CPP+:} false; then :
3944 $as_echo_n "(cached) " >&6
3945 else
3946 # Double quotes because CPP needs to be expanded
3947 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3949 ac_preproc_ok=false
3950 for ac_c_preproc_warn_flag in '' yes
3952 # Use a header file that comes with gcc, so configuring glibc
3953 # with a fresh cross-compiler works.
3954 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3955 # <limits.h> exists even on freestanding compilers.
3956 # On the NeXT, cc -E runs the code through the compiler's parser,
3957 # not just through cpp. "Syntax error" is here to catch this case.
3958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3959 /* end confdefs.h. */
3960 #ifdef __STDC__
3961 # include <limits.h>
3962 #else
3963 # include <assert.h>
3964 #endif
3965 Syntax error
3966 _ACEOF
3967 if ac_fn_c_try_cpp "$LINENO"; then :
3969 else
3970 # Broken: fails on valid input.
3971 continue
3973 rm -f conftest.err conftest.i conftest.$ac_ext
3975 # OK, works on sane cases. Now check whether nonexistent headers
3976 # can be detected and how.
3977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3978 /* end confdefs.h. */
3979 #include <ac_nonexistent.h>
3980 _ACEOF
3981 if ac_fn_c_try_cpp "$LINENO"; then :
3982 # Broken: success on invalid input.
3983 continue
3984 else
3985 # Passes both tests.
3986 ac_preproc_ok=:
3987 break
3989 rm -f conftest.err conftest.i conftest.$ac_ext
3991 done
3992 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3993 rm -f conftest.i conftest.err conftest.$ac_ext
3994 if $ac_preproc_ok; then :
3995 break
3998 done
3999 ac_cv_prog_CPP=$CPP
4002 CPP=$ac_cv_prog_CPP
4003 else
4004 ac_cv_prog_CPP=$CPP
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4007 $as_echo "$CPP" >&6; }
4008 ac_preproc_ok=false
4009 for ac_c_preproc_warn_flag in '' yes
4011 # Use a header file that comes with gcc, so configuring glibc
4012 # with a fresh cross-compiler works.
4013 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4014 # <limits.h> exists even on freestanding compilers.
4015 # On the NeXT, cc -E runs the code through the compiler's parser,
4016 # not just through cpp. "Syntax error" is here to catch this case.
4017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018 /* end confdefs.h. */
4019 #ifdef __STDC__
4020 # include <limits.h>
4021 #else
4022 # include <assert.h>
4023 #endif
4024 Syntax error
4025 _ACEOF
4026 if ac_fn_c_try_cpp "$LINENO"; then :
4028 else
4029 # Broken: fails on valid input.
4030 continue
4032 rm -f conftest.err conftest.i conftest.$ac_ext
4034 # OK, works on sane cases. Now check whether nonexistent headers
4035 # can be detected and how.
4036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037 /* end confdefs.h. */
4038 #include <ac_nonexistent.h>
4039 _ACEOF
4040 if ac_fn_c_try_cpp "$LINENO"; then :
4041 # Broken: success on invalid input.
4042 continue
4043 else
4044 # Passes both tests.
4045 ac_preproc_ok=:
4046 break
4048 rm -f conftest.err conftest.i conftest.$ac_ext
4050 done
4051 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4052 rm -f conftest.i conftest.err conftest.$ac_ext
4053 if $ac_preproc_ok; then :
4055 else
4056 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4057 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4058 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4059 See \`config.log' for more details" "$LINENO" 5; }
4062 ac_ext=c
4063 ac_cpp='$CPP $CPPFLAGS'
4064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4069 if test -n "$ac_tool_prefix"; then
4070 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4071 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4073 $as_echo_n "checking for $ac_word... " >&6; }
4074 if ${ac_cv_prog_RANLIB+:} false; then :
4075 $as_echo_n "(cached) " >&6
4076 else
4077 if test -n "$RANLIB"; then
4078 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4079 else
4080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4081 for as_dir in $PATH
4083 IFS=$as_save_IFS
4084 test -z "$as_dir" && as_dir=.
4085 for ac_exec_ext in '' $ac_executable_extensions; do
4086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4087 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4089 break 2
4091 done
4092 done
4093 IFS=$as_save_IFS
4097 RANLIB=$ac_cv_prog_RANLIB
4098 if test -n "$RANLIB"; then
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4100 $as_echo "$RANLIB" >&6; }
4101 else
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4103 $as_echo "no" >&6; }
4108 if test -z "$ac_cv_prog_RANLIB"; then
4109 ac_ct_RANLIB=$RANLIB
4110 # Extract the first word of "ranlib", so it can be a program name with args.
4111 set dummy ranlib; ac_word=$2
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4113 $as_echo_n "checking for $ac_word... " >&6; }
4114 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4115 $as_echo_n "(cached) " >&6
4116 else
4117 if test -n "$ac_ct_RANLIB"; then
4118 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4119 else
4120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4121 for as_dir in $PATH
4123 IFS=$as_save_IFS
4124 test -z "$as_dir" && as_dir=.
4125 for ac_exec_ext in '' $ac_executable_extensions; do
4126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4127 ac_cv_prog_ac_ct_RANLIB="ranlib"
4128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4129 break 2
4131 done
4132 done
4133 IFS=$as_save_IFS
4137 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4138 if test -n "$ac_ct_RANLIB"; then
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4140 $as_echo "$ac_ct_RANLIB" >&6; }
4141 else
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4143 $as_echo "no" >&6; }
4146 if test "x$ac_ct_RANLIB" = x; then
4147 RANLIB=":"
4148 else
4149 case $cross_compiling:$ac_tool_warned in
4150 yes:)
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4152 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4153 ac_tool_warned=yes ;;
4154 esac
4155 RANLIB=$ac_ct_RANLIB
4157 else
4158 RANLIB="$ac_cv_prog_RANLIB"
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4162 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4163 set x ${MAKE-make}
4164 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4165 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4166 $as_echo_n "(cached) " >&6
4167 else
4168 cat >conftest.make <<\_ACEOF
4169 SHELL = /bin/sh
4170 all:
4171 @echo '@@@%%%=$(MAKE)=@@@%%%'
4172 _ACEOF
4173 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4174 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4175 *@@@%%%=?*=@@@%%%*)
4176 eval ac_cv_prog_make_${ac_make}_set=yes;;
4178 eval ac_cv_prog_make_${ac_make}_set=no;;
4179 esac
4180 rm -f conftest.make
4182 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4184 $as_echo "yes" >&6; }
4185 SET_MAKE=
4186 else
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4188 $as_echo "no" >&6; }
4189 SET_MAKE="MAKE=${MAKE-make}"
4192 # Find a good install program. We prefer a C program (faster),
4193 # so one script is as good as another. But avoid the broken or
4194 # incompatible versions:
4195 # SysV /etc/install, /usr/sbin/install
4196 # SunOS /usr/etc/install
4197 # IRIX /sbin/install
4198 # AIX /bin/install
4199 # AmigaOS /C/install, which installs bootblocks on floppy discs
4200 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4201 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4202 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4203 # OS/2's system install, which has a completely different semantic
4204 # ./install, which can be erroneously created by make from ./install.sh.
4205 # Reject install programs that cannot install multiple files.
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4207 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4208 if test -z "$INSTALL"; then
4209 if ${ac_cv_path_install+:} false; then :
4210 $as_echo_n "(cached) " >&6
4211 else
4212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213 for as_dir in $PATH
4215 IFS=$as_save_IFS
4216 test -z "$as_dir" && as_dir=.
4217 # Account for people who put trailing slashes in PATH elements.
4218 case $as_dir/ in #((
4219 ./ | .// | /[cC]/* | \
4220 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4221 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4222 /usr/ucb/* ) ;;
4224 # OSF1 and SCO ODT 3.0 have their own names for install.
4225 # Don't use installbsd from OSF since it installs stuff as root
4226 # by default.
4227 for ac_prog in ginstall scoinst install; do
4228 for ac_exec_ext in '' $ac_executable_extensions; do
4229 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4230 if test $ac_prog = install &&
4231 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4232 # AIX install. It has an incompatible calling convention.
4234 elif test $ac_prog = install &&
4235 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4236 # program-specific install script used by HP pwplus--don't use.
4238 else
4239 rm -rf conftest.one conftest.two conftest.dir
4240 echo one > conftest.one
4241 echo two > conftest.two
4242 mkdir conftest.dir
4243 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4244 test -s conftest.one && test -s conftest.two &&
4245 test -s conftest.dir/conftest.one &&
4246 test -s conftest.dir/conftest.two
4247 then
4248 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4249 break 3
4253 done
4254 done
4256 esac
4258 done
4259 IFS=$as_save_IFS
4261 rm -rf conftest.one conftest.two conftest.dir
4264 if test "${ac_cv_path_install+set}" = set; then
4265 INSTALL=$ac_cv_path_install
4266 else
4267 # As a last resort, use the slow shell script. Don't cache a
4268 # value for INSTALL within a source directory, because that will
4269 # break other packages using the cache if that directory is
4270 # removed, or if the value is a relative name.
4271 INSTALL=$ac_install_sh
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4275 $as_echo "$INSTALL" >&6; }
4277 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4278 # It thinks the first close brace ends the variable substitution.
4279 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4281 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4283 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4286 $as_echo_n "checking whether ln -s works... " >&6; }
4287 LN_S=$as_ln_s
4288 if test "$LN_S" = "ln -s"; then
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4290 $as_echo "yes" >&6; }
4291 else
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4293 $as_echo "no, using $LN_S" >&6; }
4296 for ac_prog in gzip uncompress compress
4298 # Extract the first word of "$ac_prog", so it can be a program name with args.
4299 set dummy $ac_prog; ac_word=$2
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4301 $as_echo_n "checking for $ac_word... " >&6; }
4302 if ${ac_cv_prog_UNCOMPRESS+:} false; then :
4303 $as_echo_n "(cached) " >&6
4304 else
4305 if test -n "$UNCOMPRESS"; then
4306 ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
4307 else
4308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4309 for as_dir in $PATH
4311 IFS=$as_save_IFS
4312 test -z "$as_dir" && as_dir=.
4313 for ac_exec_ext in '' $ac_executable_extensions; do
4314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4315 ac_cv_prog_UNCOMPRESS="$ac_prog"
4316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4317 break 2
4319 done
4320 done
4321 IFS=$as_save_IFS
4325 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
4326 if test -n "$UNCOMPRESS"; then
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNCOMPRESS" >&5
4328 $as_echo "$UNCOMPRESS" >&6; }
4329 else
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4331 $as_echo "no" >&6; }
4335 test -n "$UNCOMPRESS" && break
4336 done
4340 OBJEXT="o"
4341 AREXT=".a"
4342 CXXLIBS="-lstdc++"
4346 if test "x$EXEEXT" = "x.exe";then
4347 OBJEXT="obj"
4348 AREXT=".lib"
4349 CXXLIBS=""
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system" >&5
4359 $as_echo_n "checking for target system... " >&6; }
4360 CYGWIN=
4361 MINGW=
4362 case $host_os in
4363 *cygwin* ) CYGWIN=yes;;
4364 *mingw* ) MINGW=yes;;
4365 esac
4367 AR=ar
4368 if test "x$MINGW" = "xyes"; then
4369 #fix for the debian distribution of mingw
4370 if test -x "/usr/i586-mingw32msvc/bin/ar";then
4371 AR="/usr/i586-mingw32msvc/bin/ar"
4373 if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
4374 RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
4376 #fix for the gentoo distribution of mingw
4377 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
4378 AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
4380 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
4381 RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
4383 if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
4384 STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
4390 if test "x${CYGWIN}" = "xyes"; then
4392 $as_echo "#define CYGWIN 1" >>confdefs.h
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cygwin" >&5
4395 $as_echo "cygwin" >&6; }
4396 else
4397 if test "x${MINGW}" = "xyes"; then
4399 $as_echo "#define MINGW 1" >>confdefs.h
4401 WIN32=1
4403 $as_echo "#define WIN32 1" >>confdefs.h
4405 LIBS="$LIBS -lws2_32 -lgdi32"
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: mingw" >&5
4407 $as_echo "mingw" >&6; }
4408 else
4409 LINUX=1
4410 export LINUX
4412 $as_echo "#define LINUX 1" >>confdefs.h
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
4415 $as_echo "" >&6; }
4420 if test "x${MINGW}" != "xyes"; then
4421 # no mingW
4423 $as_echo "#define O_BINARY 0" >>confdefs.h
4425 else
4426 # mingW
4427 SLEXT="dll"
4428 CXXLIBS=""
4430 export SLEXT
4434 # The following tries to make use of includes and libraries in
4435 # /usr/local, too. Notice: A -I/usr/local/include might break
4436 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
4437 # especially on systems which link /usr/local to /usr, so it has yet
4438 # to be seen how useful this is.
4439 if test -d /usr/local/lib; then
4440 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4442 if test -d /usr/local/include; then
4443 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
4444 # CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4445 echo > /dev/null
4447 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
4448 # if the user has a special prefix (like /opt), there might also be $prefix/lib
4449 # and $prefix/include, which should be included in our search paths for libraries
4450 # and includes.
4451 LDFLAGS="$LDFLAGS -L${libdir}"
4452 CPPFLAGS="$CPPFLAGS -I${includedir}"
4453 # TODO- test whether gcc still works after this
4456 #Mac OS:
4457 #LDFLAGS "-L/sw/lib" ; CPPFLAGS "-I/sw/include -I/sw/include/lame"
4460 # this must be done after (I believe) AC_PROG_MAKE_SET
4461 if test "x$DEBUG" '!=' "x" -o "x$STRIP" = "x";then
4462 if test "$MACOSX";then
4463 STRIP=dsymutil
4464 else
4465 STRIP="@echo debug enabled, not stripping "
4467 export STRIP
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
4473 $as_echo_n "checking for sin in -lm... " >&6; }
4474 if ${ac_cv_lib_m_sin+:} false; then :
4475 $as_echo_n "(cached) " >&6
4476 else
4477 ac_check_lib_save_LIBS=$LIBS
4478 LIBS="-lm $LIBS"
4479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4480 /* end confdefs.h. */
4482 /* Override any GCC internal prototype to avoid an error.
4483 Use char because int might match the return type of a GCC
4484 builtin and then its argument prototype would still apply. */
4485 #ifdef __cplusplus
4486 extern "C"
4487 #endif
4488 char sin ();
4490 main ()
4492 return sin ();
4494 return 0;
4496 _ACEOF
4497 if ac_fn_c_try_link "$LINENO"; then :
4498 ac_cv_lib_m_sin=yes
4499 else
4500 ac_cv_lib_m_sin=no
4502 rm -f core conftest.err conftest.$ac_objext \
4503 conftest$ac_exeext conftest.$ac_ext
4504 LIBS=$ac_check_lib_save_LIBS
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
4507 $as_echo "$ac_cv_lib_m_sin" >&6; }
4508 if test "x$ac_cv_lib_m_sin" = xyes; then :
4509 cat >>confdefs.h <<_ACEOF
4510 #define HAVE_LIBM 1
4511 _ACEOF
4513 LIBS="-lm $LIBS"
4515 else
4516 echo "Error: Math library not found.";
4517 exit;
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
4522 $as_echo_n "checking for deflate in -lz... " >&6; }
4523 if ${ac_cv_lib_z_deflate+:} false; then :
4524 $as_echo_n "(cached) " >&6
4525 else
4526 ac_check_lib_save_LIBS=$LIBS
4527 LIBS="-lz $LIBS"
4528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4529 /* end confdefs.h. */
4531 /* Override any GCC internal prototype to avoid an error.
4532 Use char because int might match the return type of a GCC
4533 builtin and then its argument prototype would still apply. */
4534 #ifdef __cplusplus
4535 extern "C"
4536 #endif
4537 char deflate ();
4539 main ()
4541 return deflate ();
4543 return 0;
4545 _ACEOF
4546 if ac_fn_c_try_link "$LINENO"; then :
4547 ac_cv_lib_z_deflate=yes
4548 else
4549 ac_cv_lib_z_deflate=no
4551 rm -f core conftest.err conftest.$ac_objext \
4552 conftest$ac_exeext conftest.$ac_ext
4553 LIBS=$ac_check_lib_save_LIBS
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
4556 $as_echo "$ac_cv_lib_z_deflate" >&6; }
4557 if test "x$ac_cv_lib_z_deflate" = xyes; then :
4558 cat >>confdefs.h <<_ACEOF
4559 #define HAVE_LIBZ 1
4560 _ACEOF
4562 LIBS="-lz $LIBS"
4564 else
4565 ZLIBMISSING=true
4569 if test "x$ZLIBMISSING" = "xtrue";then
4570 echo
4571 echo "ERROR:"
4572 echo "You need zlib to compile swftools"
4573 echo
4574 exit
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDF_open_file in -lpdf" >&5
4578 $as_echo_n "checking for PDF_open_file in -lpdf... " >&6; }
4579 if ${ac_cv_lib_pdf_PDF_open_file+:} false; then :
4580 $as_echo_n "(cached) " >&6
4581 else
4582 ac_check_lib_save_LIBS=$LIBS
4583 LIBS="-lpdf $LIBS"
4584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4585 /* end confdefs.h. */
4587 /* Override any GCC internal prototype to avoid an error.
4588 Use char because int might match the return type of a GCC
4589 builtin and then its argument prototype would still apply. */
4590 #ifdef __cplusplus
4591 extern "C"
4592 #endif
4593 char PDF_open_file ();
4595 main ()
4597 return PDF_open_file ();
4599 return 0;
4601 _ACEOF
4602 if ac_fn_c_try_link "$LINENO"; then :
4603 ac_cv_lib_pdf_PDF_open_file=yes
4604 else
4605 ac_cv_lib_pdf_PDF_open_file=no
4607 rm -f core conftest.err conftest.$ac_objext \
4608 conftest$ac_exeext conftest.$ac_ext
4609 LIBS=$ac_check_lib_save_LIBS
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pdf_PDF_open_file" >&5
4612 $as_echo "$ac_cv_lib_pdf_PDF_open_file" >&6; }
4613 if test "x$ac_cv_lib_pdf_PDF_open_file" = xyes; then :
4614 cat >>confdefs.h <<_ACEOF
4615 #define HAVE_LIBPDF 1
4616 _ACEOF
4618 LIBS="-lpdf $LIBS"
4620 else
4621 PDFLIBMISSING=true
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_write_raw_data in -ljpeg" >&5
4625 $as_echo_n "checking for jpeg_write_raw_data in -ljpeg... " >&6; }
4626 if ${ac_cv_lib_jpeg_jpeg_write_raw_data+:} false; then :
4627 $as_echo_n "(cached) " >&6
4628 else
4629 ac_check_lib_save_LIBS=$LIBS
4630 LIBS="-ljpeg $LIBS"
4631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4632 /* end confdefs.h. */
4634 /* Override any GCC internal prototype to avoid an error.
4635 Use char because int might match the return type of a GCC
4636 builtin and then its argument prototype would still apply. */
4637 #ifdef __cplusplus
4638 extern "C"
4639 #endif
4640 char jpeg_write_raw_data ();
4642 main ()
4644 return jpeg_write_raw_data ();
4646 return 0;
4648 _ACEOF
4649 if ac_fn_c_try_link "$LINENO"; then :
4650 ac_cv_lib_jpeg_jpeg_write_raw_data=yes
4651 else
4652 ac_cv_lib_jpeg_jpeg_write_raw_data=no
4654 rm -f core conftest.err conftest.$ac_objext \
4655 conftest$ac_exeext conftest.$ac_ext
4656 LIBS=$ac_check_lib_save_LIBS
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
4659 $as_echo "$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6; }
4660 if test "x$ac_cv_lib_jpeg_jpeg_write_raw_data" = xyes; then :
4661 cat >>confdefs.h <<_ACEOF
4662 #define HAVE_LIBJPEG 1
4663 _ACEOF
4665 LIBS="-ljpeg $LIBS"
4667 else
4668 JPEGLIBMISSING=true
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifOpen in -lungif" >&5
4672 $as_echo_n "checking for DGifOpen in -lungif... " >&6; }
4673 if ${ac_cv_lib_ungif_DGifOpen+:} false; then :
4674 $as_echo_n "(cached) " >&6
4675 else
4676 ac_check_lib_save_LIBS=$LIBS
4677 LIBS="-lungif $LIBS"
4678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4679 /* end confdefs.h. */
4681 /* Override any GCC internal prototype to avoid an error.
4682 Use char because int might match the return type of a GCC
4683 builtin and then its argument prototype would still apply. */
4684 #ifdef __cplusplus
4685 extern "C"
4686 #endif
4687 char DGifOpen ();
4689 main ()
4691 return DGifOpen ();
4693 return 0;
4695 _ACEOF
4696 if ac_fn_c_try_link "$LINENO"; then :
4697 ac_cv_lib_ungif_DGifOpen=yes
4698 else
4699 ac_cv_lib_ungif_DGifOpen=no
4701 rm -f core conftest.err conftest.$ac_objext \
4702 conftest$ac_exeext conftest.$ac_ext
4703 LIBS=$ac_check_lib_save_LIBS
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_DGifOpen" >&5
4706 $as_echo "$ac_cv_lib_ungif_DGifOpen" >&6; }
4707 if test "x$ac_cv_lib_ungif_DGifOpen" = xyes; then :
4708 cat >>confdefs.h <<_ACEOF
4709 #define HAVE_LIBUNGIF 1
4710 _ACEOF
4712 LIBS="-lungif $LIBS"
4714 else
4715 UNGIFMISSING=true
4718 if test "$UNGIFMISSING";then
4719 UNGIFMISSING=
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifOpen in -lgif" >&5
4721 $as_echo_n "checking for DGifOpen in -lgif... " >&6; }
4722 if ${ac_cv_lib_gif_DGifOpen+:} false; then :
4723 $as_echo_n "(cached) " >&6
4724 else
4725 ac_check_lib_save_LIBS=$LIBS
4726 LIBS="-lgif $LIBS"
4727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728 /* end confdefs.h. */
4730 /* Override any GCC internal prototype to avoid an error.
4731 Use char because int might match the return type of a GCC
4732 builtin and then its argument prototype would still apply. */
4733 #ifdef __cplusplus
4734 extern "C"
4735 #endif
4736 char DGifOpen ();
4738 main ()
4740 return DGifOpen ();
4742 return 0;
4744 _ACEOF
4745 if ac_fn_c_try_link "$LINENO"; then :
4746 ac_cv_lib_gif_DGifOpen=yes
4747 else
4748 ac_cv_lib_gif_DGifOpen=no
4750 rm -f core conftest.err conftest.$ac_objext \
4751 conftest$ac_exeext conftest.$ac_ext
4752 LIBS=$ac_check_lib_save_LIBS
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifOpen" >&5
4755 $as_echo "$ac_cv_lib_gif_DGifOpen" >&6; }
4756 if test "x$ac_cv_lib_gif_DGifOpen" = xyes; then :
4757 cat >>confdefs.h <<_ACEOF
4758 #define HAVE_LIBGIF 1
4759 _ACEOF
4761 LIBS="-lgif $LIBS"
4763 else
4764 UNGIFMISSING=true
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zzip_file_open in -lzzip" >&5
4769 $as_echo_n "checking for zzip_file_open in -lzzip... " >&6; }
4770 if ${ac_cv_lib_zzip_zzip_file_open+:} false; then :
4771 $as_echo_n "(cached) " >&6
4772 else
4773 ac_check_lib_save_LIBS=$LIBS
4774 LIBS="-lzzip $LIBS"
4775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4776 /* end confdefs.h. */
4778 /* Override any GCC internal prototype to avoid an error.
4779 Use char because int might match the return type of a GCC
4780 builtin and then its argument prototype would still apply. */
4781 #ifdef __cplusplus
4782 extern "C"
4783 #endif
4784 char zzip_file_open ();
4786 main ()
4788 return zzip_file_open ();
4790 return 0;
4792 _ACEOF
4793 if ac_fn_c_try_link "$LINENO"; then :
4794 ac_cv_lib_zzip_zzip_file_open=yes
4795 else
4796 ac_cv_lib_zzip_zzip_file_open=no
4798 rm -f core conftest.err conftest.$ac_objext \
4799 conftest$ac_exeext conftest.$ac_ext
4800 LIBS=$ac_check_lib_save_LIBS
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zzip_zzip_file_open" >&5
4803 $as_echo "$ac_cv_lib_zzip_zzip_file_open" >&6; }
4804 if test "x$ac_cv_lib_zzip_zzip_file_open" = xyes; then :
4805 cat >>confdefs.h <<_ACEOF
4806 #define HAVE_LIBZZIP 1
4807 _ACEOF
4809 LIBS="-lzzip $LIBS"
4811 else
4812 ZZIPMISSING=true
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4817 $as_echo_n "checking target system type... " >&6; }
4818 if ${ac_cv_target+:} false; then :
4819 $as_echo_n "(cached) " >&6
4820 else
4821 if test "x$target_alias" = x; then
4822 ac_cv_target=$ac_cv_host
4823 else
4824 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4825 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4830 $as_echo "$ac_cv_target" >&6; }
4831 case $ac_cv_target in
4832 *-*-*) ;;
4833 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
4834 esac
4835 target=$ac_cv_target
4836 ac_save_IFS=$IFS; IFS='-'
4837 set x $ac_cv_target
4838 shift
4839 target_cpu=$1
4840 target_vendor=$2
4841 shift; shift
4842 # Remember, the first character of IFS is used to create $*,
4843 # except with old shells:
4844 target_os=$*
4845 IFS=$ac_save_IFS
4846 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4849 # The aliases save the names the user supplied, while $host etc.
4850 # will get canonicalized.
4851 test -n "$target_alias" &&
4852 test "$program_prefix$program_suffix$program_transform_name" = \
4853 NONENONEs,x,x, &&
4854 program_prefix=${target_alias}-
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for byte order" >&5
4857 $as_echo_n "checking for byte order... " >&6; }
4858 if test "$cross_compiling" = yes; then :
4859 CROSSCOMPILE=1
4860 else
4861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4862 /* end confdefs.h. */
4864 int main (int argc, char *argv[])
4866 int i = 1;
4867 return *(char*)&i;
4870 _ACEOF
4871 if ac_fn_c_try_run "$LINENO"; then :
4872 BIGENDIAN=1
4873 else
4874 LITTLEENDIAN=1
4876 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4877 conftest.$ac_objext conftest.beam conftest.$ac_ext
4880 export CROSSCOMPILE
4882 if test "x${CROSSCOMPILE}" = "x1"; then
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: we are cross compiling- trying to guess from system type" >&5
4884 $as_echo "we are cross compiling- trying to guess from system type" >&6; }
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for byte order, try 2" >&5
4887 $as_echo_n "checking for byte order, try 2... " >&6; }
4888 case "${target}" in
4889 *86* | *-pc-* )
4890 LITTLEENDIAN=1
4892 *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
4893 BIGENDIAN=1
4895 esac
4898 export LITTLEENDIAN
4899 if test "x${LITTLEENDIAN}" = "x1"; then
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: little endian" >&5
4901 $as_echo "little endian" >&6; }
4902 BYTEORDERCHECKOK=1
4904 export BIGENDIAN
4905 if test "x${BIGENDIAN}" = "x1"; then
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: big endian" >&5
4907 $as_echo "big endian" >&6; }
4908 BYTEORDERCHECKOK=1
4909 WORDS_BIGENDIAN=1
4910 export WORDS_BIGENDIAN
4912 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4915 if test "x${BYTEORDERCHECKOK}" != "x1"; then
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
4917 $as_echo "unknown" >&6; }
4918 echo Byte order could not determined.
4919 exit 1
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system() can handle command substitution" >&5
4925 $as_echo_n "checking whether system() can handle command substitution... " >&6; }
4926 if test "$cross_compiling" = yes; then :
4927 CROSSCOMPILE=1
4928 else
4929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4930 /* end confdefs.h. */
4932 #include "stdlib.h"
4933 int main (int argc, char*argv[])
4935 return system("test `touch config.tmp2`");
4938 _ACEOF
4939 if ac_fn_c_try_run "$LINENO"; then :
4940 OK=OK
4942 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4943 conftest.$ac_objext conftest.beam conftest.$ac_ext
4947 if test "x${OK}" = "xOK";then
4948 test -f config.tmp2 || OK=
4951 if test "x${CROSSCOMPILE}" = "x1";then
4952 OK=no;
4954 if test "x${OK}" = "xOK";then
4955 rm -f config.tmp2
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4957 $as_echo "yes" >&6; }
4958 SYSTEM_BACKTICKS=1
4959 export SYSTEM_BACKTICKS
4961 $as_echo "#define SYSTEM_BACKTICKS 1" >>confdefs.h
4963 else
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4965 $as_echo "no" >&6; }
4970 test "$program_prefix" != NONE &&
4971 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4972 # Use a double $ so make ignores it.
4973 test "$program_suffix" != NONE &&
4974 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4975 # Double any \ or $.
4976 # By default was `s,x,x', remove it if useless.
4977 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4978 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4981 ac_config_headers="$ac_config_headers config.h"
4983 ac_header_dirent=no
4984 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4985 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4987 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4988 if eval \${$as_ac_Header+:} false; then :
4989 $as_echo_n "(cached) " >&6
4990 else
4991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4992 /* end confdefs.h. */
4993 #include <sys/types.h>
4994 #include <$ac_hdr>
4997 main ()
4999 if ((DIR *) 0)
5000 return 0;
5002 return 0;
5004 _ACEOF
5005 if ac_fn_c_try_compile "$LINENO"; then :
5006 eval "$as_ac_Header=yes"
5007 else
5008 eval "$as_ac_Header=no"
5010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5012 eval ac_res=\$$as_ac_Header
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5014 $as_echo "$ac_res" >&6; }
5015 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5016 cat >>confdefs.h <<_ACEOF
5017 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5018 _ACEOF
5020 ac_header_dirent=$ac_hdr; break
5023 done
5024 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5025 if test $ac_header_dirent = dirent.h; then
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5027 $as_echo_n "checking for library containing opendir... " >&6; }
5028 if ${ac_cv_search_opendir+:} false; then :
5029 $as_echo_n "(cached) " >&6
5030 else
5031 ac_func_search_save_LIBS=$LIBS
5032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5033 /* end confdefs.h. */
5035 /* Override any GCC internal prototype to avoid an error.
5036 Use char because int might match the return type of a GCC
5037 builtin and then its argument prototype would still apply. */
5038 #ifdef __cplusplus
5039 extern "C"
5040 #endif
5041 char opendir ();
5043 main ()
5045 return opendir ();
5047 return 0;
5049 _ACEOF
5050 for ac_lib in '' dir; do
5051 if test -z "$ac_lib"; then
5052 ac_res="none required"
5053 else
5054 ac_res=-l$ac_lib
5055 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5057 if ac_fn_c_try_link "$LINENO"; then :
5058 ac_cv_search_opendir=$ac_res
5060 rm -f core conftest.err conftest.$ac_objext \
5061 conftest$ac_exeext
5062 if ${ac_cv_search_opendir+:} false; then :
5063 break
5065 done
5066 if ${ac_cv_search_opendir+:} false; then :
5068 else
5069 ac_cv_search_opendir=no
5071 rm conftest.$ac_ext
5072 LIBS=$ac_func_search_save_LIBS
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5075 $as_echo "$ac_cv_search_opendir" >&6; }
5076 ac_res=$ac_cv_search_opendir
5077 if test "$ac_res" != no; then :
5078 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5082 else
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5084 $as_echo_n "checking for library containing opendir... " >&6; }
5085 if ${ac_cv_search_opendir+:} false; then :
5086 $as_echo_n "(cached) " >&6
5087 else
5088 ac_func_search_save_LIBS=$LIBS
5089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5090 /* end confdefs.h. */
5092 /* Override any GCC internal prototype to avoid an error.
5093 Use char because int might match the return type of a GCC
5094 builtin and then its argument prototype would still apply. */
5095 #ifdef __cplusplus
5096 extern "C"
5097 #endif
5098 char opendir ();
5100 main ()
5102 return opendir ();
5104 return 0;
5106 _ACEOF
5107 for ac_lib in '' x; do
5108 if test -z "$ac_lib"; then
5109 ac_res="none required"
5110 else
5111 ac_res=-l$ac_lib
5112 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5114 if ac_fn_c_try_link "$LINENO"; then :
5115 ac_cv_search_opendir=$ac_res
5117 rm -f core conftest.err conftest.$ac_objext \
5118 conftest$ac_exeext
5119 if ${ac_cv_search_opendir+:} false; then :
5120 break
5122 done
5123 if ${ac_cv_search_opendir+:} false; then :
5125 else
5126 ac_cv_search_opendir=no
5128 rm conftest.$ac_ext
5129 LIBS=$ac_func_search_save_LIBS
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5132 $as_echo "$ac_cv_search_opendir" >&6; }
5133 ac_res=$ac_cv_search_opendir
5134 if test "$ac_res" != no; then :
5135 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5143 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5144 if ${ac_cv_path_GREP+:} false; then :
5145 $as_echo_n "(cached) " >&6
5146 else
5147 if test -z "$GREP"; then
5148 ac_path_GREP_found=false
5149 # Loop through the user's path and test for each of PROGNAME-LIST
5150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5151 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5153 IFS=$as_save_IFS
5154 test -z "$as_dir" && as_dir=.
5155 for ac_prog in grep ggrep; do
5156 for ac_exec_ext in '' $ac_executable_extensions; do
5157 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5158 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5159 # Check for GNU ac_path_GREP and select it if it is found.
5160 # Check for GNU $ac_path_GREP
5161 case `"$ac_path_GREP" --version 2>&1` in
5162 *GNU*)
5163 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5165 ac_count=0
5166 $as_echo_n 0123456789 >"conftest.in"
5167 while :
5169 cat "conftest.in" "conftest.in" >"conftest.tmp"
5170 mv "conftest.tmp" "conftest.in"
5171 cp "conftest.in" "conftest.nl"
5172 $as_echo 'GREP' >> "conftest.nl"
5173 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5174 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5175 as_fn_arith $ac_count + 1 && ac_count=$as_val
5176 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5177 # Best one so far, save it but keep looking for a better one
5178 ac_cv_path_GREP="$ac_path_GREP"
5179 ac_path_GREP_max=$ac_count
5181 # 10*(2^10) chars as input seems more than enough
5182 test $ac_count -gt 10 && break
5183 done
5184 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5185 esac
5187 $ac_path_GREP_found && break 3
5188 done
5189 done
5190 done
5191 IFS=$as_save_IFS
5192 if test -z "$ac_cv_path_GREP"; then
5193 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5195 else
5196 ac_cv_path_GREP=$GREP
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5201 $as_echo "$ac_cv_path_GREP" >&6; }
5202 GREP="$ac_cv_path_GREP"
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5206 $as_echo_n "checking for egrep... " >&6; }
5207 if ${ac_cv_path_EGREP+:} false; then :
5208 $as_echo_n "(cached) " >&6
5209 else
5210 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5211 then ac_cv_path_EGREP="$GREP -E"
5212 else
5213 if test -z "$EGREP"; then
5214 ac_path_EGREP_found=false
5215 # Loop through the user's path and test for each of PROGNAME-LIST
5216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5217 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5219 IFS=$as_save_IFS
5220 test -z "$as_dir" && as_dir=.
5221 for ac_prog in egrep; do
5222 for ac_exec_ext in '' $ac_executable_extensions; do
5223 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5224 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5225 # Check for GNU ac_path_EGREP and select it if it is found.
5226 # Check for GNU $ac_path_EGREP
5227 case `"$ac_path_EGREP" --version 2>&1` in
5228 *GNU*)
5229 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5231 ac_count=0
5232 $as_echo_n 0123456789 >"conftest.in"
5233 while :
5235 cat "conftest.in" "conftest.in" >"conftest.tmp"
5236 mv "conftest.tmp" "conftest.in"
5237 cp "conftest.in" "conftest.nl"
5238 $as_echo 'EGREP' >> "conftest.nl"
5239 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5240 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5241 as_fn_arith $ac_count + 1 && ac_count=$as_val
5242 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5243 # Best one so far, save it but keep looking for a better one
5244 ac_cv_path_EGREP="$ac_path_EGREP"
5245 ac_path_EGREP_max=$ac_count
5247 # 10*(2^10) chars as input seems more than enough
5248 test $ac_count -gt 10 && break
5249 done
5250 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5251 esac
5253 $ac_path_EGREP_found && break 3
5254 done
5255 done
5256 done
5257 IFS=$as_save_IFS
5258 if test -z "$ac_cv_path_EGREP"; then
5259 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5261 else
5262 ac_cv_path_EGREP=$EGREP
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5268 $as_echo "$ac_cv_path_EGREP" >&6; }
5269 EGREP="$ac_cv_path_EGREP"
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5273 $as_echo_n "checking for ANSI C header files... " >&6; }
5274 if ${ac_cv_header_stdc+:} false; then :
5275 $as_echo_n "(cached) " >&6
5276 else
5277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5278 /* end confdefs.h. */
5279 #include <stdlib.h>
5280 #include <stdarg.h>
5281 #include <string.h>
5282 #include <float.h>
5285 main ()
5289 return 0;
5291 _ACEOF
5292 if ac_fn_c_try_compile "$LINENO"; then :
5293 ac_cv_header_stdc=yes
5294 else
5295 ac_cv_header_stdc=no
5297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5299 if test $ac_cv_header_stdc = yes; then
5300 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5302 /* end confdefs.h. */
5303 #include <string.h>
5305 _ACEOF
5306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5307 $EGREP "memchr" >/dev/null 2>&1; then :
5309 else
5310 ac_cv_header_stdc=no
5312 rm -f conftest*
5316 if test $ac_cv_header_stdc = yes; then
5317 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5319 /* end confdefs.h. */
5320 #include <stdlib.h>
5322 _ACEOF
5323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5324 $EGREP "free" >/dev/null 2>&1; then :
5326 else
5327 ac_cv_header_stdc=no
5329 rm -f conftest*
5333 if test $ac_cv_header_stdc = yes; then
5334 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5335 if test "$cross_compiling" = yes; then :
5337 else
5338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5339 /* end confdefs.h. */
5340 #include <ctype.h>
5341 #include <stdlib.h>
5342 #if ((' ' & 0x0FF) == 0x020)
5343 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5344 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5345 #else
5346 # define ISLOWER(c) \
5347 (('a' <= (c) && (c) <= 'i') \
5348 || ('j' <= (c) && (c) <= 'r') \
5349 || ('s' <= (c) && (c) <= 'z'))
5350 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5351 #endif
5353 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5355 main ()
5357 int i;
5358 for (i = 0; i < 256; i++)
5359 if (XOR (islower (i), ISLOWER (i))
5360 || toupper (i) != TOUPPER (i))
5361 return 2;
5362 return 0;
5364 _ACEOF
5365 if ac_fn_c_try_run "$LINENO"; then :
5367 else
5368 ac_cv_header_stdc=no
5370 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5371 conftest.$ac_objext conftest.beam conftest.$ac_ext
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5377 $as_echo "$ac_cv_header_stdc" >&6; }
5378 if test $ac_cv_header_stdc = yes; then
5380 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5385 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5386 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5387 inttypes.h stdint.h unistd.h
5388 do :
5389 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5390 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5392 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5393 cat >>confdefs.h <<_ACEOF
5394 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5395 _ACEOF
5399 done
5402 for ac_header in zlib.h gif_lib.h io.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
5403 do :
5404 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5405 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5406 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5407 cat >>confdefs.h <<_ACEOF
5408 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5409 _ACEOF
5413 done
5417 cat >>confdefs.h <<_ACEOF
5418 #define PACKAGE "$PACKAGE"
5419 _ACEOF
5422 cat >>confdefs.h <<_ACEOF
5423 #define VERSION "$VERSION"
5424 _ACEOF
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5433 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5434 if ${ac_cv_c_const+:} false; then :
5435 $as_echo_n "(cached) " >&6
5436 else
5437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5438 /* end confdefs.h. */
5441 main ()
5443 /* FIXME: Include the comments suggested by Paul. */
5444 #ifndef __cplusplus
5445 /* Ultrix mips cc rejects this. */
5446 typedef int charset[2];
5447 const charset cs;
5448 /* SunOS 4.1.1 cc rejects this. */
5449 char const *const *pcpcc;
5450 char **ppc;
5451 /* NEC SVR4.0.2 mips cc rejects this. */
5452 struct point {int x, y;};
5453 static struct point const zero = {0,0};
5454 /* AIX XL C 1.02.0.0 rejects this.
5455 It does not let you subtract one const X* pointer from another in
5456 an arm of an if-expression whose if-part is not a constant
5457 expression */
5458 const char *g = "string";
5459 pcpcc = &g + (g ? g-g : 0);
5460 /* HPUX 7.0 cc rejects these. */
5461 ++pcpcc;
5462 ppc = (char**) pcpcc;
5463 pcpcc = (char const *const *) ppc;
5464 { /* SCO 3.2v4 cc rejects this. */
5465 char *t;
5466 char const *s = 0 ? (char *) 0 : (char const *) 0;
5468 *t++ = 0;
5469 if (s) return 0;
5471 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5472 int x[] = {25, 17};
5473 const int *foo = &x[0];
5474 ++foo;
5476 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5477 typedef const int *iptr;
5478 iptr p = 0;
5479 ++p;
5481 { /* AIX XL C 1.02.0.0 rejects this saying
5482 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5483 struct s { int j; const int *ap[3]; };
5484 struct s *b; b->j = 5;
5486 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5487 const int foo = 10;
5488 if (!foo) return 0;
5490 return !cs[0] && !zero.x;
5491 #endif
5494 return 0;
5496 _ACEOF
5497 if ac_fn_c_try_compile "$LINENO"; then :
5498 ac_cv_c_const=yes
5499 else
5500 ac_cv_c_const=no
5502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5505 $as_echo "$ac_cv_c_const" >&6; }
5506 if test $ac_cv_c_const = no; then
5508 $as_echo "#define const /**/" >>confdefs.h
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5513 $as_echo_n "checking for inline... " >&6; }
5514 if ${ac_cv_c_inline+:} false; then :
5515 $as_echo_n "(cached) " >&6
5516 else
5517 ac_cv_c_inline=no
5518 for ac_kw in inline __inline__ __inline; do
5519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5520 /* end confdefs.h. */
5521 #ifndef __cplusplus
5522 typedef int foo_t;
5523 static $ac_kw foo_t static_foo () {return 0; }
5524 $ac_kw foo_t foo () {return 0; }
5525 #endif
5527 _ACEOF
5528 if ac_fn_c_try_compile "$LINENO"; then :
5529 ac_cv_c_inline=$ac_kw
5531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5532 test "$ac_cv_c_inline" != no && break
5533 done
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5537 $as_echo "$ac_cv_c_inline" >&6; }
5539 case $ac_cv_c_inline in
5540 inline | yes) ;;
5542 case $ac_cv_c_inline in
5543 no) ac_val=;;
5544 *) ac_val=$ac_cv_c_inline;;
5545 esac
5546 cat >>confdefs.h <<_ACEOF
5547 #ifndef __cplusplus
5548 #define inline $ac_val
5549 #endif
5550 _ACEOF
5552 esac
5554 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5555 if test "x$ac_cv_type_off_t" = xyes; then :
5557 else
5559 cat >>confdefs.h <<_ACEOF
5560 #define off_t long int
5561 _ACEOF
5565 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5566 if test "x$ac_cv_type_size_t" = xyes; then :
5568 else
5570 cat >>confdefs.h <<_ACEOF
5571 #define size_t unsigned int
5572 _ACEOF
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5577 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5578 if ${ac_cv_struct_tm+:} false; then :
5579 $as_echo_n "(cached) " >&6
5580 else
5581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5582 /* end confdefs.h. */
5583 #include <sys/types.h>
5584 #include <time.h>
5587 main ()
5589 struct tm tm;
5590 int *p = &tm.tm_sec;
5591 return !p;
5593 return 0;
5595 _ACEOF
5596 if ac_fn_c_try_compile "$LINENO"; then :
5597 ac_cv_struct_tm=time.h
5598 else
5599 ac_cv_struct_tm=sys/time.h
5601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5604 $as_echo "$ac_cv_struct_tm" >&6; }
5605 if test $ac_cv_struct_tm = sys/time.h; then
5607 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5611 ac_fn_c_check_type "$LINENO" "boolean" "ac_cv_type_boolean" "$ac_includes_default"
5612 if test "x$ac_cv_type_boolean" = xyes; then :
5614 else
5616 cat >>confdefs.h <<_ACEOF
5617 #define boolean int
5618 _ACEOF
5621 #needed for jpeglib
5622 for ac_func in popen mkstemp stat mmap lrand48 rand srand48 srand bcopy bzero time getrusage mallinfo open64 calloc
5623 do :
5624 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5625 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5626 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5627 cat >>confdefs.h <<_ACEOF
5628 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5629 _ACEOF
5632 done
5635 # The cast to long int works around a bug in the HP C Compiler
5636 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5637 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5638 # This bug is HP SR number 8606223364.
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5
5640 $as_echo_n "checking size of signed char... " >&6; }
5641 if ${ac_cv_sizeof_signed_char+:} false; then :
5642 $as_echo_n "(cached) " >&6
5643 else
5644 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char" "$ac_includes_default"; then :
5646 else
5647 if test "$ac_cv_type_signed_char" = yes; then
5648 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5649 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5650 as_fn_error 77 "cannot compute sizeof (signed char)
5651 See \`config.log' for more details" "$LINENO" 5; }
5652 else
5653 ac_cv_sizeof_signed_char=0
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5
5659 $as_echo "$ac_cv_sizeof_signed_char" >&6; }
5663 cat >>confdefs.h <<_ACEOF
5664 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
5665 _ACEOF
5668 # The cast to long int works around a bug in the HP C Compiler
5669 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5670 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5671 # This bug is HP SR number 8606223364.
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
5673 $as_echo_n "checking size of signed short... " >&6; }
5674 if ${ac_cv_sizeof_signed_short+:} false; then :
5675 $as_echo_n "(cached) " >&6
5676 else
5677 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short" "$ac_includes_default"; then :
5679 else
5680 if test "$ac_cv_type_signed_short" = yes; then
5681 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5682 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5683 as_fn_error 77 "cannot compute sizeof (signed short)
5684 See \`config.log' for more details" "$LINENO" 5; }
5685 else
5686 ac_cv_sizeof_signed_short=0
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
5692 $as_echo "$ac_cv_sizeof_signed_short" >&6; }
5696 cat >>confdefs.h <<_ACEOF
5697 #define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
5698 _ACEOF
5701 # The cast to long int works around a bug in the HP C Compiler
5702 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5703 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5704 # This bug is HP SR number 8606223364.
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed" >&5
5706 $as_echo_n "checking size of signed... " >&6; }
5707 if ${ac_cv_sizeof_signed+:} false; then :
5708 $as_echo_n "(cached) " >&6
5709 else
5710 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed))" "ac_cv_sizeof_signed" "$ac_includes_default"; then :
5712 else
5713 if test "$ac_cv_type_signed" = yes; then
5714 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5715 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5716 as_fn_error 77 "cannot compute sizeof (signed)
5717 See \`config.log' for more details" "$LINENO" 5; }
5718 else
5719 ac_cv_sizeof_signed=0
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed" >&5
5725 $as_echo "$ac_cv_sizeof_signed" >&6; }
5729 cat >>confdefs.h <<_ACEOF
5730 #define SIZEOF_SIGNED $ac_cv_sizeof_signed
5731 _ACEOF
5734 # The cast to long int works around a bug in the HP C Compiler
5735 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5736 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5737 # This bug is HP SR number 8606223364.
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
5739 $as_echo_n "checking size of signed long long... " >&6; }
5740 if ${ac_cv_sizeof_signed_long_long+:} false; then :
5741 $as_echo_n "(cached) " >&6
5742 else
5743 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long" "$ac_includes_default"; then :
5745 else
5746 if test "$ac_cv_type_signed_long_long" = yes; then
5747 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5748 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5749 as_fn_error 77 "cannot compute sizeof (signed long long)
5750 See \`config.log' for more details" "$LINENO" 5; }
5751 else
5752 ac_cv_sizeof_signed_long_long=0
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
5758 $as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
5762 cat >>confdefs.h <<_ACEOF
5763 #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
5764 _ACEOF
5767 # The cast to long int works around a bug in the HP C Compiler
5768 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5769 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5770 # This bug is HP SR number 8606223364.
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
5772 $as_echo_n "checking size of void*... " >&6; }
5773 if ${ac_cv_sizeof_voidp+:} false; then :
5774 $as_echo_n "(cached) " >&6
5775 else
5776 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
5778 else
5779 if test "$ac_cv_type_voidp" = yes; then
5780 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5781 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5782 as_fn_error 77 "cannot compute sizeof (void*)
5783 See \`config.log' for more details" "$LINENO" 5; }
5784 else
5785 ac_cv_sizeof_voidp=0
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
5791 $as_echo "$ac_cv_sizeof_voidp" >&6; }
5795 cat >>confdefs.h <<_ACEOF
5796 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
5797 _ACEOF
5803 # Extract the first word of "freetype-config", so it can be a program name with args.
5804 set dummy freetype-config; ac_word=$2
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5806 $as_echo_n "checking for $ac_word... " >&6; }
5807 if ${ac_cv_path_FREETYPE_CONFIG+:} false; then :
5808 $as_echo_n "(cached) " >&6
5809 else
5810 case $FREETYPE_CONFIG in
5811 [\\/]* | ?:[\\/]*)
5812 ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
5815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5816 as_dummy=""$PATH:/usr/local/bin:/sw/bin:/opt/local/bin""
5817 for as_dir in $as_dummy
5819 IFS=$as_save_IFS
5820 test -z "$as_dir" && as_dir=.
5821 for ac_exec_ext in '' $ac_executable_extensions; do
5822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5823 ac_cv_path_FREETYPE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5825 break 2
5827 done
5828 done
5829 IFS=$as_save_IFS
5832 esac
5834 FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
5835 if test -n "$FREETYPE_CONFIG"; then
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_CONFIG" >&5
5837 $as_echo "$FREETYPE_CONFIG" >&6; }
5838 else
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5840 $as_echo "no" >&6; }
5845 OLDCPPFLAGS="${CPPFLAGS}"
5846 OLDLIBS="${LIBS}"
5847 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
5848 CPPFLAGS="$CPPFLAGS "`$FREETYPE_CONFIG --cflags`
5849 else if test -d /usr/include/freetype2; then
5850 CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
5851 else if test -d /usr/local/include/freetype2; then
5852 CPPFLAGS="$CPPFLAGS -I/usr/local/include/freetype2"
5857 if test "x${FREETYPE_CONFIG}" '=' "x";then
5858 # if we didn't find the freetype-config program, we won't
5859 # know where the libs are expected to be. So just blindly
5860 # try to link against them.
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
5862 $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
5863 if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
5864 $as_echo_n "(cached) " >&6
5865 else
5866 ac_check_lib_save_LIBS=$LIBS
5867 LIBS="-lfreetype $LIBS"
5868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5869 /* end confdefs.h. */
5871 /* Override any GCC internal prototype to avoid an error.
5872 Use char because int might match the return type of a GCC
5873 builtin and then its argument prototype would still apply. */
5874 #ifdef __cplusplus
5875 extern "C"
5876 #endif
5877 char FT_Init_FreeType ();
5879 main ()
5881 return FT_Init_FreeType ();
5883 return 0;
5885 _ACEOF
5886 if ac_fn_c_try_link "$LINENO"; then :
5887 ac_cv_lib_freetype_FT_Init_FreeType=yes
5888 else
5889 ac_cv_lib_freetype_FT_Init_FreeType=no
5891 rm -f core conftest.err conftest.$ac_objext \
5892 conftest$ac_exeext conftest.$ac_ext
5893 LIBS=$ac_check_lib_save_LIBS
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
5896 $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
5897 if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
5898 HAVE_LIB_FREETYPE=1
5903 for ac_header in ft2build.h
5904 do :
5905 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
5906 if test "x$ac_cv_header_ft2build_h" = xyes; then :
5907 cat >>confdefs.h <<_ACEOF
5908 #define HAVE_FT2BUILD_H 1
5909 _ACEOF
5910 HAVE_FT2BUILD_H=1
5913 done
5915 if test "x${HAVE_FT2BUILD_H}" '=' "x";then
5916 for ac_header in freetype/freetype.h
5917 do :
5918 ac_fn_c_check_header_mongrel "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$ac_includes_default"
5919 if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
5920 cat >>confdefs.h <<_ACEOF
5921 #define HAVE_FREETYPE_FREETYPE_H 1
5922 _ACEOF
5923 HAVE_FREETYPE_FREETYPE_H=1
5926 done
5930 if test "x${HAVE_LIB_FREETYPE}" '!=' "x" -o \
5931 "x${FREETYPE_CONFIG}" '!=' "x";then
5932 if test "x${HAVE_FREETYPE_FREETYPE_H}" '!=' "x";then
5933 HAVE_FREETYPE=1
5935 if test "x${HAVE_FT2BUILD_H}" '!=' "x";then
5936 HAVE_FREETYPE=1
5940 if test "x${HAVE_FREETYPE}" = "x1"; then
5941 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
5942 LIBS="$LIBS "`$FREETYPE_CONFIG --libs`
5943 else
5944 LIBS="$LIBS -lfreetype"
5947 if test "x${HAVE_FT2BUILD_H}" = "x1"; then
5948 HAVE_FT2BUILD_H_DEFINE='#define HAVE_FT2BUILD_H'
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the freetype test program" >&5
5952 $as_echo_n "checking whether we can compile the freetype test program... " >&6; }
5954 cat > conftest.c << EOF
5955 $HAVE_FT2BUILD_H_DEFINE
5957 #ifdef HAVE_FT2BUILD_H
5958 #include <ft2build.h>
5959 #include FT_FREETYPE_H
5960 #include FT_GLYPH_H
5961 #include FT_SIZES_H
5962 #include FT_SFNT_NAMES_H
5963 #include FT_TRUETYPE_IDS_H
5964 #include FT_OUTLINE_H
5965 #else
5966 #include <freetype/freetype.h>
5967 #include <freetype/ftglyph.h>
5968 #include <freetype/ftsizes.h>
5969 #include <freetype/ftsnames.h>
5970 #include <freetype/ttnameid.h>
5971 #include <freetype/ftoutln.h>
5972 #endif
5974 int main()
5976 FT_Library ftlibrary;
5977 FT_Face face;
5978 FT_Error error;
5979 FT_ULong charcode;
5980 FT_UInt gindex;
5981 FT_Glyph glyph;
5982 FT_BBox bbox;
5983 FT_Matrix matrix;
5984 FT_UInt i;
5985 char* name = 0;
5986 char italic, bold;
5988 FT_Init_FreeType(&ftlibrary);
5989 FT_New_Face(ftlibrary, "filename", 0, &face);
5990 i = face->num_glyphs - 1;
5991 italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
5992 bold = face->style_flags&FT_STYLE_FLAG_BOLD;
5993 FT_Get_Postscript_Name(face);
5994 FT_Get_Char_Index(face, 33);
5995 FT_Get_First_Char(face, &i);
5996 FT_Get_Next_Char(face, 33, &i);
5997 if(FT_HAS_GLYPH_NAMES(face)) {
5998 FT_Get_Glyph_Name(face, 33, name, 127);
6000 FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
6001 FT_Get_Glyph(face->glyph, &glyph);
6002 FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
6003 FT_Done_Glyph(glyph);
6004 FT_Done_Face(face);
6005 FT_Done_FreeType(ftlibrary);
6006 return 0;
6010 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
6011 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6013 $as_echo "yes" >&6; }
6015 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
6018 $as_echo "#define HAVE_FREETYPE_FREETYPE_H 1" >>confdefs.h
6021 $as_echo "#define USE_FREETYPE 1" >>confdefs.h
6022 # for ttf2tp1
6023 else
6024 echo "configure: failed program was:" >&5
6025 cat conftest.c >&5
6026 HAVE_FREETYPE=0
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6028 $as_echo "no" >&6; }
6030 rm -f conftest*
6033 # if the above didn't work out, reset all changes to the compiler variables.
6034 if test "x${HAVE_FREETYPE}" '!=' "x1"; then
6035 CPPFLAGS=$OLDCPPFLAGS
6036 LIBS=$OLDLIBS
6041 OLDCPPFLAGS="${CPPFLAGS}"
6042 OLDLIBS="${LIBS}"
6044 if test -d /usr/include/fontconfig; then
6045 CPPFLAGS="$CPPFLAGS -I/usr/include/fontconfig"
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FcInit in -lfontconfig" >&5
6049 $as_echo_n "checking for FcInit in -lfontconfig... " >&6; }
6050 if ${ac_cv_lib_fontconfig_FcInit+:} false; then :
6051 $as_echo_n "(cached) " >&6
6052 else
6053 ac_check_lib_save_LIBS=$LIBS
6054 LIBS="-lfontconfig $LIBS"
6055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6056 /* end confdefs.h. */
6058 /* Override any GCC internal prototype to avoid an error.
6059 Use char because int might match the return type of a GCC
6060 builtin and then its argument prototype would still apply. */
6061 #ifdef __cplusplus
6062 extern "C"
6063 #endif
6064 char FcInit ();
6066 main ()
6068 return FcInit ();
6070 return 0;
6072 _ACEOF
6073 if ac_fn_c_try_link "$LINENO"; then :
6074 ac_cv_lib_fontconfig_FcInit=yes
6075 else
6076 ac_cv_lib_fontconfig_FcInit=no
6078 rm -f core conftest.err conftest.$ac_objext \
6079 conftest$ac_exeext conftest.$ac_ext
6080 LIBS=$ac_check_lib_save_LIBS
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fontconfig_FcInit" >&5
6083 $as_echo "$ac_cv_lib_fontconfig_FcInit" >&6; }
6084 if test "x$ac_cv_lib_fontconfig_FcInit" = xyes; then :
6085 HAVE_LIB_FONTCONFIG=1
6088 for ac_header in fontconfig.h
6089 do :
6090 ac_fn_c_check_header_mongrel "$LINENO" "fontconfig.h" "ac_cv_header_fontconfig_h" "$ac_includes_default"
6091 if test "x$ac_cv_header_fontconfig_h" = xyes; then :
6092 cat >>confdefs.h <<_ACEOF
6093 #define HAVE_FONTCONFIG_H 1
6094 _ACEOF
6095 HAVE_FONTCONFIG_H=1
6098 done
6101 if test "x${HAVE_LIB_FONTCONFIG}" != "x";then
6102 if test "x${HAVE_FONTCONFIG_H}" != "x";then
6103 HAVE_FONTCONFIG=1
6107 if test "x${HAVE_FONTCONFIG}" = "x1"; then
6108 LIBS="$LIBS -lfontconfig"
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the fontconfig test program" >&5
6110 $as_echo_n "checking whether we can compile the fontconfig test program... " >&6; }
6112 if (echo $LIBS | grep lfreetype >/dev/null 2>&1); then
6113 #move freetype library to the end of libraries, otherwise fontconfig
6114 #won't compile.
6115 LIBS=`echo $LIBS | sed -e 's/-lfreetype//g' -e 's/$/ -lfreetype/'`
6118 cat > conftest.c << EOF
6119 #include <string.h>
6120 #include <fontconfig.h>
6122 int main()
6124 FcPattern *pattern, *match;
6125 FcResult result;
6126 FcChar8 *v;
6127 char*s1="abc",*s2="ABC";
6128 strcasecmp(s1,s2);
6129 FcInit();
6130 pattern = FcPatternBuild(0, FC_FAMILY, FcTypeString, "", 0);
6131 FcPatternAddInteger(pattern, FC_SLANT, FC_SLANT_ITALIC);
6132 FcPatternAddInteger(pattern, FC_WEIGHT, FC_WEIGHT_BOLD);
6134 FcConfig*c = FcConfigCreate();
6135 FcConfigParseAndLoad(c, (FcChar8*)"", 1);
6136 FcConfigBuildFonts(c);
6137 FcConfigSetCurrent(c);
6139 FcFontSet * set = FcConfigGetFonts(c, FcSetSystem);
6140 FcFontSetDestroy(set);
6142 FcConfigSubstitute(0, pattern, FcMatchPattern);
6143 FcDefaultSubstitute(pattern);
6144 match = FcFontMatch(0, pattern, &result);
6145 FcPatternGetString(match, "family", 0, &v) == FcResultMatch;
6146 FcPatternGetBool(match, "family", 0, &v) == FcResultMatch;
6147 FcPatternPrint(pattern);
6148 FcPatternDestroy(pattern);
6149 FcPatternDestroy(match);
6150 FcFini();
6151 return 0;
6155 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
6156 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6158 $as_echo "yes" >&6; }
6160 $as_echo "#define HAVE_FONTCONFIG 1" >>confdefs.h
6162 else
6163 echo "configure: failed program was:" >&5
6164 cat conftest.c >&5
6165 HAVE_FONTCONFIG=0
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6167 $as_echo "no" >&6; }
6169 rm -f conftest*
6172 # if the above didn't work out, reset all changes to the compiler variables.
6173 if test "x${HAVE_FONTCONFIG}" "!=" "x1"; then
6174 CPPFLAGS=$OLDCPPFLAGS
6175 LIBS=$OLDLIBS
6180 OLDCPPFLAGS="${CPPFLAGS}"
6181 OLDLIBS="${LIBS}"
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftwf_plan_dft_r2c_2d in -lfftw3f" >&5
6184 $as_echo_n "checking for fftwf_plan_dft_r2c_2d in -lfftw3f... " >&6; }
6185 if ${ac_cv_lib_fftw3f_fftwf_plan_dft_r2c_2d+:} false; then :
6186 $as_echo_n "(cached) " >&6
6187 else
6188 ac_check_lib_save_LIBS=$LIBS
6189 LIBS="-lfftw3f $LIBS"
6190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6191 /* end confdefs.h. */
6193 /* Override any GCC internal prototype to avoid an error.
6194 Use char because int might match the return type of a GCC
6195 builtin and then its argument prototype would still apply. */
6196 #ifdef __cplusplus
6197 extern "C"
6198 #endif
6199 char fftwf_plan_dft_r2c_2d ();
6201 main ()
6203 return fftwf_plan_dft_r2c_2d ();
6205 return 0;
6207 _ACEOF
6208 if ac_fn_c_try_link "$LINENO"; then :
6209 ac_cv_lib_fftw3f_fftwf_plan_dft_r2c_2d=yes
6210 else
6211 ac_cv_lib_fftw3f_fftwf_plan_dft_r2c_2d=no
6213 rm -f core conftest.err conftest.$ac_objext \
6214 conftest$ac_exeext conftest.$ac_ext
6215 LIBS=$ac_check_lib_save_LIBS
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3f_fftwf_plan_dft_r2c_2d" >&5
6218 $as_echo "$ac_cv_lib_fftw3f_fftwf_plan_dft_r2c_2d" >&6; }
6219 if test "x$ac_cv_lib_fftw3f_fftwf_plan_dft_r2c_2d" = xyes; then :
6220 HAVE_LIBFFTW3=1
6223 for ac_header in fftw3.h
6224 do :
6225 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
6226 if test "x$ac_cv_header_fftw3_h" = xyes; then :
6227 cat >>confdefs.h <<_ACEOF
6228 #define HAVE_FFTW3_H 1
6229 _ACEOF
6230 HAVE_FFTW3_H=1
6233 done
6236 if test "x${HAVE_LIBFFTW3}" != "x";then
6237 if test "x${HAVE_FFTW3_H}" != "x";then
6238 HAVE_FFTW3=1
6242 if test "x${HAVE_FFTW3}" = "x1"; then
6243 LIBS="$LIBS -lfftw3f"
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the fftw3 test program" >&5
6245 $as_echo_n "checking whether we can compile the fftw3 test program... " >&6; }
6247 cat > conftest.c << EOF
6248 #include <fftw3.h>
6250 int main()
6252 char*data = fftwf_malloc(sizeof(fftwf_complex)*600*800);
6253 fftwf_plan plan = fftwf_plan_dft_2d(600, 800, (fftwf_complex*)data, (fftwf_complex*)data, FFTW_FORWARD, FFTW_ESTIMATE);
6254 plan = fftwf_plan_dft_r2c_2d(600, 800, (float*)data, (fftwf_complex*)data, FFTW_ESTIMATE);
6255 plan = fftwf_plan_dft_c2r_2d(600, 800, (fftwf_complex*)data, (float*)data, FFTW_ESTIMATE);
6256 fftwf_execute(plan);
6257 fftwf_destroy_plan(plan);
6261 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
6262 if { (eval echo fftw3.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6264 $as_echo "yes" >&6; }
6266 $as_echo "#define HAVE_FFTW3 1" >>confdefs.h
6268 else
6269 echo "configure: failed program was:" >&5
6270 cat conftest.c >&5
6271 HAVE_FFTW3=0
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6273 $as_echo "no" >&6; }
6275 rm -f conftest*
6278 # if the above didn't work out, reset all changes to the compiler variables.
6279 if test "x${HAVE_FFTW3}" "!=" "x1"; then
6280 CPPFLAGS=$OLDCPPFLAGS
6281 LIBS=$OLDLIBS
6285 # RFX_CHECK_OPENGL
6286 # if test "$HAVE_OPENGL";then
6287 # DEVICE_OPENGL='devices/opengl.$(O)'
6288 # AC_SUBST(DEVICE_OPENGL)
6289 # fi
6292 lame_in_source=
6293 lame_makefile=
6294 if test "x${DISABLE_LAME}" = "xtrue"; then
6295 echo "*" Disabling lame support...
6296 else
6297 # old lame code at lib/lame
6298 if test -f lib/lame/Makefile.in; then
6299 lame_in_source='$(lame_objects)'
6300 lame_makefile="lib/lame/Makefile"
6301 CPPFLAGS="$CPPFLAGS -Ilame -Ilib/lame"
6303 $as_echo "#define HAVE_LAME 1" >>confdefs.h
6305 else
6306 if test -d /usr/include/lame; then
6307 CPPFLAGS="$CPPFLAGS -I /usr/include/lame"
6308 else
6309 if test -d /usr/local/include/lame; then
6310 CPPFLAGS="$CPPFLAGS -I /usr/local/include/lame"
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lame_init in -lmp3lame" >&5
6314 $as_echo_n "checking for lame_init in -lmp3lame... " >&6; }
6315 if ${ac_cv_lib_mp3lame_lame_init+:} false; then :
6316 $as_echo_n "(cached) " >&6
6317 else
6318 ac_check_lib_save_LIBS=$LIBS
6319 LIBS="-lmp3lame $LIBS"
6320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6321 /* end confdefs.h. */
6323 /* Override any GCC internal prototype to avoid an error.
6324 Use char because int might match the return type of a GCC
6325 builtin and then its argument prototype would still apply. */
6326 #ifdef __cplusplus
6327 extern "C"
6328 #endif
6329 char lame_init ();
6331 main ()
6333 return lame_init ();
6335 return 0;
6337 _ACEOF
6338 if ac_fn_c_try_link "$LINENO"; then :
6339 ac_cv_lib_mp3lame_lame_init=yes
6340 else
6341 ac_cv_lib_mp3lame_lame_init=no
6343 rm -f core conftest.err conftest.$ac_objext \
6344 conftest$ac_exeext conftest.$ac_ext
6345 LIBS=$ac_check_lib_save_LIBS
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp3lame_lame_init" >&5
6348 $as_echo "$ac_cv_lib_mp3lame_lame_init" >&6; }
6349 if test "x$ac_cv_lib_mp3lame_lame_init" = xyes; then :
6350 cat >>confdefs.h <<_ACEOF
6351 #define HAVE_LIBMP3LAME 1
6352 _ACEOF
6354 LIBS="-lmp3lame $LIBS"
6356 else
6357 NO_LIBMP3LAME=1
6360 HASLAMEHEADER=
6361 for ac_header in lame.h
6362 do :
6363 ac_fn_c_check_header_mongrel "$LINENO" "lame.h" "ac_cv_header_lame_h" "$ac_includes_default"
6364 if test "x$ac_cv_header_lame_h" = xyes; then :
6365 cat >>confdefs.h <<_ACEOF
6366 #define HAVE_LAME_H 1
6367 _ACEOF
6368 HASLAMEHEADER=1
6371 done
6373 if test "x$NO_LIBMP3LAME" "!=" "x1" -a "x$HASLAMEHEADER" '!=' "x";then
6374 $as_echo "#define HAVE_LAME 1" >>confdefs.h
6381 xpdf_in_source=
6382 splash_in_source=
6383 xpdf_include=
6385 if test "x$USE_POPPLER" = "xtrue"; then
6387 $as_echo "#define HAVE_POPPLER 1" >>confdefs.h
6389 #PKG_CHECK_MODULES([POPPLER],[poppler poppler-splash],,[poppler_pkgconfig=no])
6390 if test "x$poppler_pkgconfig" = "xno"; then
6391 ac_ext=cpp
6392 ac_cpp='$CXXCPP $CPPFLAGS'
6393 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6394 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6395 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6398 ac_ext=cpp
6399 ac_cpp='$CXXCPP $CPPFLAGS'
6400 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6401 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6402 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
6404 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
6405 if test -z "$CXXCPP"; then
6406 if ${ac_cv_prog_CXXCPP+:} false; then :
6407 $as_echo_n "(cached) " >&6
6408 else
6409 # Double quotes because CXXCPP needs to be expanded
6410 for CXXCPP in "$CXX -E" "/lib/cpp"
6412 ac_preproc_ok=false
6413 for ac_cxx_preproc_warn_flag in '' yes
6415 # Use a header file that comes with gcc, so configuring glibc
6416 # with a fresh cross-compiler works.
6417 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6418 # <limits.h> exists even on freestanding compilers.
6419 # On the NeXT, cc -E runs the code through the compiler's parser,
6420 # not just through cpp. "Syntax error" is here to catch this case.
6421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6422 /* end confdefs.h. */
6423 #ifdef __STDC__
6424 # include <limits.h>
6425 #else
6426 # include <assert.h>
6427 #endif
6428 Syntax error
6429 _ACEOF
6430 if ac_fn_cxx_try_cpp "$LINENO"; then :
6432 else
6433 # Broken: fails on valid input.
6434 continue
6436 rm -f conftest.err conftest.i conftest.$ac_ext
6438 # OK, works on sane cases. Now check whether nonexistent headers
6439 # can be detected and how.
6440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6441 /* end confdefs.h. */
6442 #include <ac_nonexistent.h>
6443 _ACEOF
6444 if ac_fn_cxx_try_cpp "$LINENO"; then :
6445 # Broken: success on invalid input.
6446 continue
6447 else
6448 # Passes both tests.
6449 ac_preproc_ok=:
6450 break
6452 rm -f conftest.err conftest.i conftest.$ac_ext
6454 done
6455 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6456 rm -f conftest.i conftest.err conftest.$ac_ext
6457 if $ac_preproc_ok; then :
6458 break
6461 done
6462 ac_cv_prog_CXXCPP=$CXXCPP
6465 CXXCPP=$ac_cv_prog_CXXCPP
6466 else
6467 ac_cv_prog_CXXCPP=$CXXCPP
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
6470 $as_echo "$CXXCPP" >&6; }
6471 ac_preproc_ok=false
6472 for ac_cxx_preproc_warn_flag in '' yes
6474 # Use a header file that comes with gcc, so configuring glibc
6475 # with a fresh cross-compiler works.
6476 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6477 # <limits.h> exists even on freestanding compilers.
6478 # On the NeXT, cc -E runs the code through the compiler's parser,
6479 # not just through cpp. "Syntax error" is here to catch this case.
6480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6481 /* end confdefs.h. */
6482 #ifdef __STDC__
6483 # include <limits.h>
6484 #else
6485 # include <assert.h>
6486 #endif
6487 Syntax error
6488 _ACEOF
6489 if ac_fn_cxx_try_cpp "$LINENO"; then :
6491 else
6492 # Broken: fails on valid input.
6493 continue
6495 rm -f conftest.err conftest.i conftest.$ac_ext
6497 # OK, works on sane cases. Now check whether nonexistent headers
6498 # can be detected and how.
6499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6500 /* end confdefs.h. */
6501 #include <ac_nonexistent.h>
6502 _ACEOF
6503 if ac_fn_cxx_try_cpp "$LINENO"; then :
6504 # Broken: success on invalid input.
6505 continue
6506 else
6507 # Passes both tests.
6508 ac_preproc_ok=:
6509 break
6511 rm -f conftest.err conftest.i conftest.$ac_ext
6513 done
6514 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6515 rm -f conftest.i conftest.err conftest.$ac_ext
6516 if $ac_preproc_ok; then :
6518 else
6519 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6520 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6521 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
6522 See \`config.log' for more details" "$LINENO" 5; }
6525 ac_ext=cpp
6526 ac_cpp='$CXXCPP $CPPFLAGS'
6527 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6528 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6529 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6532 for ac_header in OutputDev.h
6533 do :
6534 ac_fn_cxx_check_header_mongrel "$LINENO" "OutputDev.h" "ac_cv_header_OutputDev_h" "$ac_includes_default"
6535 if test "x$ac_cv_header_OutputDev_h" = xyes; then :
6536 cat >>confdefs.h <<_ACEOF
6537 #define HAVE_OUTPUTDEV_H 1
6538 _ACEOF
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpoppler" >&5
6541 $as_echo_n "checking for main in -lpoppler... " >&6; }
6542 if ${ac_cv_lib_poppler_main+:} false; then :
6543 $as_echo_n "(cached) " >&6
6544 else
6545 ac_check_lib_save_LIBS=$LIBS
6546 LIBS="-lpoppler $LIBS"
6547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6548 /* end confdefs.h. */
6552 main ()
6554 return main ();
6556 return 0;
6558 _ACEOF
6559 if ac_fn_cxx_try_link "$LINENO"; then :
6560 ac_cv_lib_poppler_main=yes
6561 else
6562 ac_cv_lib_poppler_main=no
6564 rm -f core conftest.err conftest.$ac_objext \
6565 conftest$ac_exeext conftest.$ac_ext
6566 LIBS=$ac_check_lib_save_LIBS
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poppler_main" >&5
6569 $as_echo "$ac_cv_lib_poppler_main" >&6; }
6570 if test "x$ac_cv_lib_poppler_main" = xyes; then :
6571 cat >>confdefs.h <<_ACEOF
6572 #define HAVE_LIBPOPPLER 1
6573 _ACEOF
6575 LIBS="-lpoppler $LIBS"
6580 else
6581 as_fn_error $? "No poppler library found. This library is required." "$LINENO" 5
6584 done
6586 ac_ext=c
6587 ac_cpp='$CPP $CPPFLAGS'
6588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6592 else
6593 CPPFLAGS="$CPPFLAGS $POPPLER_CFLAGS"
6594 LIBS="$LIBS $POPPLER_LIBS"
6595 $as_echo "#define HAVE_POPPLER 1" >>confdefs.h
6598 else
6599 splash_in_source='$(splash_objects)'
6600 xpdf_in_source='$(xpdf_objects)'
6601 xpdf_include=' -I xpdf '
6608 # ------------------------------------------------------------------
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the filesystem normalizes file names" >&5
6612 $as_echo_n "checking whether the filesystem normalizes file names... " >&6; }
6614 echo test1 > __abcdefghijklmnopqrstuvwxyz.txt
6615 echo test2 > __ABCDEFGHIJKLMNOPQRSTUVWXYZ.txt
6616 if test `cat __abcdefghijklmnopqrstuvwxyz.txt` = "test2";then
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6618 $as_echo "yes" >&6; }
6620 $as_echo "#define LOWERCASE_UPPERCASE 1" >>confdefs.h
6622 else
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6624 $as_echo "no" >&6; }
6627 rm -f __abcdefghijklmnopqrstuvwxyz.txt
6628 rm -f __ABCDEFGHIJKLMNOPQRSTUVWXYZ.txt
6632 for ac_prog in avifile-config
6634 # Extract the first word of "$ac_prog", so it can be a program name with args.
6635 set dummy $ac_prog; ac_word=$2
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6637 $as_echo_n "checking for $ac_word... " >&6; }
6638 if ${ac_cv_prog_AVIFILE_CONFIG+:} false; then :
6639 $as_echo_n "(cached) " >&6
6640 else
6641 if test -n "$AVIFILE_CONFIG"; then
6642 ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
6643 else
6644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6645 for as_dir in $PATH
6647 IFS=$as_save_IFS
6648 test -z "$as_dir" && as_dir=.
6649 for ac_exec_ext in '' $ac_executable_extensions; do
6650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6651 ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
6652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6653 break 2
6655 done
6656 done
6657 IFS=$as_save_IFS
6661 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
6662 if test -n "$AVIFILE_CONFIG"; then
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AVIFILE_CONFIG" >&5
6664 $as_echo "$AVIFILE_CONFIG" >&6; }
6665 else
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6667 $as_echo "no" >&6; }
6671 test -n "$AVIFILE_CONFIG" && break
6672 done
6675 if test "x$AVIFILE_CONFIG" '!=' "x";then
6676 OLDCPPFLAGS="$CPPFLAGS"
6677 # temporarily add avifile paths to CPPFLAGS...
6678 CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
6679 for ac_header in avifile/version.h version.h
6680 do :
6681 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6682 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6683 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6684 cat >>confdefs.h <<_ACEOF
6685 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6686 _ACEOF
6690 done
6692 # ... and reset
6693 CPPFLAGS="$OLDCPPFLAGS"
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the avifile test program" >&5
6697 $as_echo_n "checking whether we can compile the avifile test program... " >&6; }
6699 if test "x${ac_cv_header_version_h}" '=' "xyes";then
6700 HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
6702 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
6703 HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
6706 cat > conftest.cpp << EOF
6708 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
6709 // so we have to introduce them this way
6710 $HAVE_VERSION_H_DEFINE
6711 $HAVE_AVIFILE_VERSION_H_DEFINE
6713 #ifdef HAVE_VERSION_H
6714 #include <version.h>
6715 #endif
6716 #ifdef HAVE_AVIFILE_VERSION_H
6717 #include <avifile/version.h>
6718 #endif
6720 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
6721 #include <avifile.h>
6722 #include <aviplay.h>
6723 #include <avm_fourcc.h>
6724 #include <avm_creators.h>
6725 #include <StreamInfo.h>
6726 #define VERSION6
6727 #else
6728 #include <avifile.h>
6729 #include <aviplay.h>
6730 #include <aviutil.h>
6731 #define Width width
6732 #define Height height
6733 #define Data data
6734 #define Bpp bpp
6735 #endif
6737 void test()
6739 IAviReadFile* player;
6740 IAviReadStream* astream;
6741 IAviReadStream* vstream;
6742 player = CreateIAviReadFile(0);
6743 astream = player->GetStream(0, AviStream::Audio);
6744 vstream = player->GetStream(0, AviStream::Video);
6745 vstream -> StartStreaming();
6746 astream -> StartStreaming();
6747 #ifndef VERSION6
6748 MainAVIHeader head;
6749 player->GetFileHeader(&head);
6750 head.dwMicroSecPerFrame;
6751 head.dwTotalFrames;
6752 head.dwStreams;
6753 head.dwWidth;
6754 head.dwHeight;
6755 head.dwMicroSecPerFrame;
6756 astream->GetEndPos(),
6757 astream->GetEndTime());
6758 player->StreamCount();
6759 #else
6760 StreamInfo*audioinfo;
6761 StreamInfo*videoinfo;
6762 audioinfo = astream->GetStreamInfo();
6763 videoinfo = vstream->GetStreamInfo();
6764 videoinfo->GetVideoWidth();
6765 videoinfo->GetVideoHeight();
6766 audioinfo->GetAudioSamplesPerSec();
6767 videoinfo->GetFps();
6768 #endif
6769 CImage*img = vstream->GetFrame();
6770 img->ToRGB();
6771 img->Data();
6772 img->Bpp();
6773 img->Width();
6774 img->Height();
6775 WAVEFORMATEX wave;
6776 astream->GetAudioFormatInfo(&wave,0);
6777 uint_t a,b;
6778 astream->ReadFrames(0,0,0,a,b);
6780 int main (int argc, char*argv)
6782 return 0;
6786 if test "x$AVIFILE_CONFIG" '!=' "x";then
6787 AVIFILE_LIBS=`$AVIFILE_CONFIG --libs`
6788 AVIFILE_CFLAGS=`$AVIFILE_CONFIG --cflags`
6789 avifile_link='$CXX $CPPFLAGS $CXXFLAGS $AVIFILE_CFLAGS conftest.cpp $AVIFILE_LIBS -o conftest${ac_exeext}'
6790 if { (eval echo avi2swf.m4:71: \"$avifile_link\") 1>&5; (eval $avifile_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6792 $as_echo "yes" >&6; }
6793 AVIFILE=true
6794 export AVIFILE
6796 $as_echo "#define AVIFILE true" >>confdefs.h
6798 else
6799 echo "configure: failed program was:" >&5
6800 cat conftest.cpp >&5
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6802 $as_echo "no" >&6; }
6804 else
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6806 $as_echo "no" >&6; }
6808 rm -f conftest*
6810 if test "x${AVIFILE}" = "xtrue"; then
6811 VIDEO_LIBS="$VIDEO_LIBS $AVIFILE_LIBS"
6812 VIDEO_CFLAGS="$VIDEO_CFLAGS $AVIFILE_CFLAGS"
6814 $as_echo "#define HAVE_AVIFILE 1" >>confdefs.h
6818 if test "x${WIN32}" != "x"; then
6819 #AC_CHECK_LIB(avifil32, AVIFileInit,AVIFIL32=true)
6820 #if test "x${AVIFIL32}" != "x"; then
6821 # VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
6823 VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
6824 AVIFIL32=true
6829 # ------------------------------------------------------------------
6831 if test "x${UNCOMPRESS}" = "xgzip"; then
6833 $as_echo "#define USE_GZIP 1" >>confdefs.h
6838 # ------------------------------------------------------------------
6841 # Extract the first word of "ruby", so it can be a program name with args.
6842 set dummy ruby; ac_word=$2
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6844 $as_echo_n "checking for $ac_word... " >&6; }
6845 if ${ac_cv_path_RUBY+:} false; then :
6846 $as_echo_n "(cached) " >&6
6847 else
6848 case $RUBY in
6849 [\\/]* | ?:[\\/]*)
6850 ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
6853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6854 for as_dir in $PATH
6856 IFS=$as_save_IFS
6857 test -z "$as_dir" && as_dir=.
6858 for ac_exec_ext in '' $ac_executable_extensions; do
6859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6860 ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
6861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6862 break 2
6864 done
6865 done
6866 IFS=$as_save_IFS
6869 esac
6871 RUBY=$ac_cv_path_RUBY
6872 if test -n "$RUBY"; then
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5
6874 $as_echo "$RUBY" >&6; }
6875 else
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6877 $as_echo "no" >&6; }
6882 RUBY_CPPFLAGS=""
6883 RUBY_LDFLAGS=""
6884 RUBY_LIBS=""
6886 rubylib=ruby18
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ruby's include directory" >&5
6889 $as_echo_n "checking for ruby's include directory... " >&6; }
6890 if test "x$RUBY" '!=' "x";then
6891 rubyinc=`$RUBY -e 'require "rbconfig";puts Config::expand(Config::CONFIG.send("\x5b\x5d", "archdir"))' 2>/dev/null`
6892 if test -d $rubyinc;then
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rubyinc" >&5
6894 $as_echo "$rubyinc" >&6; }
6896 # If we got a sensible archdir, we also ask ruby to supply us with CPPFLAGS
6897 # and LDFLAGS.
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ruby's cpp flags" >&5
6899 $as_echo_n "checking for ruby's cpp flags... " >&6; }
6900 rubycpp=`$RUBY -e 'require "rbconfig";puts Config::expand(Config::CONFIG.send("\x5b\x5d", "CPPFLAGS"))' 2>/dev/null`
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rubycpp" >&5
6902 $as_echo "$rubycpp" >&6; }
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ruby's ld flags" >&5
6905 $as_echo_n "checking for ruby's ld flags... " >&6; }
6906 rubyld=`$RUBY -e 'require "rbconfig";puts Config::expand(Config::CONFIG.send("\x5b\x5d", "LIBRUBYARG_SHARED"))' 2>/dev/null`
6907 rubyld2=`$RUBY -e 'require "rbconfig";v=Config::expand(Config::CONFIG.send("\x5b\x5d", "LIBRUBY_LDSHARED"));puts v.gsub(/^g?cc/,"")' 2>/dev/null`
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$rubyld $rubyld2\"" >&5
6909 $as_echo "\"$rubyld $rubyld2\"" >&6; }
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ruby library name" >&5
6912 $as_echo_n "checking for ruby library name... " >&6; }
6913 rubylib=`$RUBY -e 'require "rbconfig";puts Config::expand(Config::CONFIG.send("\x5b\x5d", "RUBY_SO_NAME"))' 2>/dev/null`
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rubylib" >&5
6915 $as_echo "$rubylib" >&6; }
6917 RUBY_CPPFLAGS="$rubycpp -I$rubyinc $RUBY_CPPFLAGS"
6918 RUBY_LDFLAGS="$rubyld $rubyld2 $RUBY_LDFLAGS"
6919 RUBY_INSTALLDIR="$rubyinc"
6920 else
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 'unknown'" >&5
6922 $as_echo "'unknown'" >&6; }
6924 else
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 'unknown'" >&5
6926 $as_echo "'unknown'" >&6; }
6929 #OLDLDFLAGS="$LDFLAGS"
6930 #LDFLAGS="$LDFLAGS $RUBY_LDFLAGS"
6931 #AC_CHECK_LIB($rubylib, rb_define_method, HAVE_RUBY_LIB=1,)
6932 #LDFLAGS="$OLDLDFLAGS"
6934 OLDCPPFLAGS="$CPPFLAGS"
6935 CPPFLAGS="$CPPFLAGS $RUBY_CPPFLAGS"
6936 for ac_header in ruby.h
6937 do :
6938 ac_fn_c_check_header_mongrel "$LINENO" "ruby.h" "ac_cv_header_ruby_h" "$ac_includes_default"
6939 if test "x$ac_cv_header_ruby_h" = xyes; then :
6940 cat >>confdefs.h <<_ACEOF
6941 #define HAVE_RUBY_H 1
6942 _ACEOF
6943 HAVE_RUBY_H=1
6946 done
6948 CPPFLAGS="$OLDCPPFLAGS"
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we should compile the ruby module" >&5
6951 $as_echo_n "checking whether we should compile the ruby module... " >&6; }
6952 if test "x${HAVE_RUBY_H}" '!=' "x";then
6953 #RUBY_LIBS="$RUBY_LIBS -l$rubylib"
6955 cat > conftest.c << EOF
6956 #include <ruby.h>
6957 static VALUE foobar;
6958 VALUE foobar_set_foo(VALUE module, VALUE _key, VALUE _value)
6960 return Qnil;
6962 int Init_foobar()
6964 foobar = rb_define_module("foobar");
6965 rb_define_module_function(foobar, "set_foo", foobar_set_foo, 2);
6966 return 0;
6968 int main() {return 0;}
6970 ac_link='$CC $SHARED $CPPFLAGS $RUBY_CPPFLAGS $CFLAGS conftest.c $LDFLAGS $RUBY_LDFLAGS $LIBS $RUBY_LIBS -o conftest${SLEXT}'
6971 if { (eval echo ruby.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${SLEXT}; then
6972 RUBY_OK=yes
6973 else
6974 echo "configure: failed program was:" >&5
6975 cat conftest.c >&5
6977 rm -f conftest*
6980 if test "x${RUBY_OK}" '=' "xyes"; then
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6982 $as_echo "yes" >&6; }
6987 else
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6989 $as_echo "no" >&6; }
6990 RUBY_CPPFLAGS=""
6991 RUBY_LDFLAGS=""
6992 RUBY_LIBS=""
6993 RUBY_INSTALLDIR=""
6997 if test "x$RUBY_OK" '!=' "xyes";then
6998 if test -d "lib/ruby/";then
6999 echo all install uninstall clean: > lib/ruby/Makefile
7001 # fail silently- the most users won't have any need for the
7002 # ruby interface anyway
7003 else
7004 if test -f "lib/ruby/Makefile.in";then
7005 rubygfx="lib/ruby/Makefile"
7009 # ------------------------------------------------------------------
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for missing libraries" >&5
7012 $as_echo_n "checking for missing libraries... " >&6; }
7014 if test "x$ZLIBMISSING" = "xtrue";then
7015 MISSINGLIBS="${MISSINGLIBS} zlib"
7016 DISABLEPNG2SWF=true
7017 PARTIAL=true
7019 if test "x$JPEGLIBMISSING" = "xtrue";then
7020 MISSINGLIBS="${MISSINGLIBS} jpeglib"
7021 DISABLEPDF2SWF=true
7022 DISABLEJPEG2SWF=true
7023 PARTIAL=true
7025 if test "x$PDFLIBMISSING" = "xtrue";then
7026 DISABLEPDF2PDF=true;
7028 #if test "x$T1LIBMISSING" = "xtrue";then
7029 # MISSINGLIBS="${MISSINGLIBS} t1lib"
7031 if test "x$UNGIFMISSING" = "xtrue";then
7032 DISABLEGIF2SWF=true
7033 MISSINGLIBS="${MISSINGLIBS} ungif"
7034 PARTIAL=true
7037 if test "x${ac_cv_header_pdflib_h}" '!=' "xyes";then
7038 DISABLEPDF2PDF=true;
7040 if test "x${ac_cv_header_jpeglib_h}" '!=' "xyes"; then
7041 DISABLEPDF2SWF=true;
7042 DISABLEJPEG2SWF=true;
7043 MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
7044 PARTIAL=true
7046 if test "x$HAVE_FREETYPE" '!=' "x1"; then
7047 DISABLEPDF2SWF=true;
7048 MISSINGLIBS="${MISSINGLIBS} freetype"
7049 PARTIAL=true
7051 #if test "x${ac_cv_header_t1lib_h}" '!=' "xyes"; then
7052 # MISSINGLIBS="${MISSINGLIBS} t1lib.h"
7054 if test "x${ac_cv_header_gif_lib_h}" '!=' "xyes"; then
7055 DISABLEGIF2SWF=true
7056 MISSINGLIBS="${MISSINGLIBS} gif_lib.h"
7057 PARTIAL=true
7059 if test "x${ac_cv_header_zlib_h}" '!=' "xyes"; then
7060 DISABLEPNG2SWF=true;
7061 MISSINGLIBS="${MISSINGLIBS} zlib.h"
7062 PARTIAL=true
7064 #if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
7065 # MISSINGLIBS="${MISSINGLIBS} avifile"
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${MISSINGLIBS}" >&5
7069 $as_echo "${MISSINGLIBS}" >&6; }
7071 # ------------------------------------------------------------------
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python version" >&5
7075 $as_echo_n "checking for Python version... " >&6; }
7077 if test "x$PYTHON_LIB" '!=' "x" -a "x$PYTHON_INCLUDES" '!=' "x";then
7078 # you can override the python detection by putting PYTHON_LIB
7079 # and PYTHON_INCLUDES into the environment
7080 case "$PYTHON_INCLUDES" in
7081 *python2.4*) PY_VERSION=2.4
7083 *python2.5*) PY_VERSION=2.5
7085 *python2.6*) PY_VERSION=2.6
7087 *python2.7*) PY_VERSION=2.7
7089 *python3.0*) PY_VERSION=3.0
7091 *python3.1*) PY_VERSION=3.1
7093 *python3.2*) PY_VERSION=3.2
7095 *python3.3*) PY_VERSION=3.3
7097 *) PY_VERSION=unknown
7099 esac
7100 else
7101 if test "x$PYTHON_LIB" '!=' "x" -o "x$PYTHON_INCLUDES" '!=' "x";then
7102 echo "Set both PYTHON_LIB and PYTHON_INCLUDES, or none at all"
7104 # iterate through version 2.4 to 3.3
7105 VERSIONS="2.4 2.5 2.6 2.7 3.0 3.1 3.2 3.3"
7106 case "$PYTHON" in
7107 2*) VERSIONS="2.4 2.5 2.6 2.7 $PYTHON"
7109 3*) VERSIONS="3.0 3.1 3.2 3.3 $PYTHON"
7111 esac
7112 for v in $VERSIONS; do
7113 # Linux
7114 if test -f "/usr/include/python$v/Python.h";then
7115 PY_VERSION=$v
7116 PYTHON_LIB="-lpython$PY_VERSION"
7117 if test -f "/usr/lib/python$v/site-packages/PIL/_imaging.so";then
7118 PYTHON_LIB2="$PYTHON_LIB /usr/lib/python$v/site-packages/PIL/_imaging.so"
7119 HAVE_PYTHON_IMAGING_LIB=1
7120 else
7121 PYTHON_LIB2="$PYTHON_LIB"
7123 PYTHON_INCLUDES="-I/usr/include/python$PY_VERSION"
7124 # Mac OS X
7125 elif test -f "/Library/Frameworks/Python.framework/Versions/$v/include/python$v/Python.h";then
7126 PY_VERSION=$v
7127 PYTHON_LIB="-framework Python"
7128 if test -f "/Library/Frameworks/Python.framework/Versions/$v/site-packages/PIL/_imaging.so";then
7129 PYTHON_LIB2="$PYTHON_LIB /Library/Python/$v/PIL/_imaging.so"
7130 HAVE_PYTHON_IMAGING_LIB=1
7131 else
7132 PYTHON_LIB2="$PYTHON_LIB"
7134 PYTHON_INCLUDES="-I/Library/Frameworks/Python.framework/Versions/$v/include/python$v/"
7135 # Mac OS X [Fink]:
7136 elif test "(" -f "/sw/lib/python$v/config/libpython$v.dylib" \
7137 -o -f "/sw/lib/python$v/config/libpython$v.a" \
7138 -o -f "/sw/lib/python$v/config/libpython$v.so" \
7139 ")" \
7140 -a -f "/sw/include/python$v/Python.h"; then
7141 PY_VERSION=$v
7142 PYTHON_LIB="-L /sw/lib/python$v/config/ -lpython$PY_VERSION /sw/lib/python$v/site-packages/PIL/_imaging.so"
7143 if test -f "/sw/lib/python$v/site-packages/PIL/_imaging.so";then
7144 PYTHON_LIB2="$PYTHON_LIB /sw/lib/python$v/site-packages/PIL/_imaging.so"
7145 HAVE_PYTHON_IMAGING_LIB=1
7146 else
7147 PYTHON_LIB2="$PYTHON_LIB"
7149 PYTHON_INCLUDES="-I /sw/include/python$v/"
7151 done
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_VERSION" >&5
7154 $as_echo "$PY_VERSION" >&6; }
7156 if test "x$PY_VERSION" "!=" "x"; then
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python executable" >&5
7158 $as_echo_n "checking for Python executable... " >&6; }
7159 if python$PY_VERSION -V 2>&5;then
7160 PYTHON_EXECUTABLE=python$PY_VERSION
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXECUTABLE" >&5
7163 $as_echo "$PYTHON_EXECUTABLE" >&6; }
7164 elif python -V >&5 2>&5;then
7165 if python -V 2>&1 | grep -q "\b$PY_VERSION"; then
7166 PYTHON_EXECUTABLE=python
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXECUTABLE" >&5
7169 $as_echo "$PYTHON_EXECUTABLE" >&6; }
7170 else
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"'python' executable is not version $PY_VERSION\"" >&5
7172 $as_echo "\"'python' executable is not version $PY_VERSION\"" >&6; }
7174 else
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7176 $as_echo "failed" >&6; }
7180 if test "x$PY_VERSION" "!=" "x" -a "x$PYTHON_EXECUTABLE" "!=" "x"; then
7181 export PYTHON_INCLUDES PYTHON_LIB
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the Python test program" >&5
7185 $as_echo_n "checking whether we can compile the Python test program... " >&6; }
7187 cat > conftest.c << EOF
7188 # include <Python.h>
7190 int main()
7192 int ret;
7193 ret = Py_Main(0, 0);
7194 int x; // check also for gcc 2.95.x incompatibilities
7195 return ret;
7199 ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS $PYTHON_LIB $LIBS -o conftest${ac_exeext}'
7200 if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7202 $as_echo "yes" >&6; }
7203 PYTHON_OK=yes
7204 else
7205 echo "configure: failed program was:" >&5
7206 cat conftest.c >&5
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7208 $as_echo "no" >&6; }
7210 rm -f conftest*
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python install path" >&5
7213 $as_echo_n "checking for Python install path... " >&6; }
7214 cat > _pypath.py << EOF
7215 import distutils
7216 import distutils.sysconfig
7217 import sys
7218 sys.stdout.write(distutils.sysconfig.get_python_lib(plat_specific=0,standard_lib=0))
7220 echo $PYTHON_EXECUTABLE _pypath.py 1>&5
7221 if $PYTHON_EXECUTABLE _pypath.py >_pypath.txt 2>&5;then
7222 PYTHON_INSTALL_PATH=`cat _pypath.txt`
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_INSTALL_PATH" >&5
7225 $as_echo "$PYTHON_INSTALL_PATH" >&6; }
7226 else
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7228 $as_echo "failed" >&6; }
7230 #rm -f _pypath.txt _pypath.py
7232 if test "x$PYTHON_OK" = "xyes";then
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python-Imaging" >&5
7234 $as_echo_n "checking for Python-Imaging... " >&6; }
7235 cat > conftest.c << EOF
7236 # include <Python.h>
7237 # include <Imaging.h>
7239 int main()
7241 Py_Main(0, 0);
7242 return 0;
7245 if test "$HAVE_PYTHON_IMAGING_LIB"; then
7246 ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS ${PYTHON_LIB2} $LIBS -o conftest${ac_exeext}'
7247 if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7248 PYTHON_LIB="${PYTHON_LIB2}"
7250 $as_echo "#define HAVE_PYTHON_IMAGING 1" >>confdefs.h
7252 HAVE_PYTHON_IMAGING=yes
7253 export HAVE_PYTHON_IMAGING
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7256 $as_echo "yes" >&6; }
7257 else
7258 echo "configure: failed program was:" >&5
7259 cat conftest.c >&5
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7261 $as_echo "no" >&6; }
7263 else
7264 echo "(didn't find the Python-Imaging libraries)" >&5
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7266 $as_echo "no" >&6; }
7269 rm -f conftest*
7273 if test "x$PYTHON_OK" '!=' "xyes" -o "$DISABLEPDF2SWF";then
7274 echo all install uninstall clean: > lib/python/Makefile
7275 # fail silently- the most users won't have any need for the
7276 # python interface anyway
7277 else
7278 pythongfx="lib/python/Makefile"
7281 # ------------------------------------------------------------------
7283 if test "x${MISSINGLIBS}" '!=' "x"; then
7284 echo "***************************************************"
7285 echo "* The following headers/libraries are missing: " ${MISSINGLIBS}
7288 avi2swf="avi2swf/Makefile"
7289 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
7290 #don't whine, avi2swf is outdated anyway
7291 #echo "* Disabling avi2swf tool..."
7292 echo all install uninstall clean: > avi2swf/Makefile
7293 avi2swf=
7296 pdf2swf_makefile="lib/pdf/Makefile"
7297 PDF2SWF='pdf2swf$(E)'
7298 LIBPDF='libpdf$(A)'
7300 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
7301 echo "* Disabling pdf2swf tool..."
7302 rm -f lib/pdf/Makefile
7303 echo all install uninstall clean libpdf libgfxpdf: > lib/pdf/Makefile
7304 pdf2swf_makefile=""
7305 PDF2SWF=
7306 LIBPDF=
7311 PDF2PDF='pdf2pdf$(E)'
7312 DEVICE_PDF='devices/pdf.$(O)'
7313 if test "x${DISABLEPDF2PDF}" = "xtrue"; then
7314 #echo "* Disabling pdf2pdf tool..."
7315 PDF2PDF=
7316 DEVICE_PDF=
7321 if test "x${ZLIBMISSING}" = "xtrue"; then
7322 echo
7323 echo "* Warning! Without zlib, you will not be able to read"
7324 echo "* or write compressed Flash MX files!"
7327 JPEG2SWF='jpeg2swf$(E)'
7328 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
7329 echo "* Disabling jpeg2swf tool..."
7330 JPEG2SWF=
7332 export JPEG2SWF
7335 GIF2SWF='gif2swf$(E)'
7336 if test "x${DISABLEGIF2SWF}" = "xtrue"; then
7337 echo "* Disabling gif2swf tool..."
7338 GIF2SWF=
7340 export GIF2SWF
7343 PNG2SWF='png2swf$(E)'
7344 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
7345 echo "* Disabling png2swf tool..."
7346 PNG2SWF=
7348 export PNG2SWF
7351 if test "x${MISSINGLIBS}" '!=' "x"; then
7352 if test "x${PARTIAL}" '=' "x"; then
7353 echo "* (never mind)"
7355 echo "***************************************************"
7358 # ------------------------------------------------------------------
7364 if test -f "release.in"; then release_in="./release"; fi
7365 if test -f "Makefile.new.in"; then mk_in="./Makefile.new"; fi
7366 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"
7367 ac_config_files="$ac_config_files ${FILES}"
7369 cat >confcache <<\_ACEOF
7370 # This file is a shell script that caches the results of configure
7371 # tests run on this system so they can be shared between configure
7372 # scripts and configure runs, see configure's option --config-cache.
7373 # It is not useful on other systems. If it contains results you don't
7374 # want to keep, you may remove or edit it.
7376 # config.status only pays attention to the cache file if you give it
7377 # the --recheck option to rerun configure.
7379 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7380 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7381 # following values.
7383 _ACEOF
7385 # The following way of writing the cache mishandles newlines in values,
7386 # but we know of no workaround that is simple, portable, and efficient.
7387 # So, we kill variables containing newlines.
7388 # Ultrix sh set writes to stderr and can't be redirected directly,
7389 # and sets the high bit in the cache file unless we assign to the vars.
7391 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7392 eval ac_val=\$$ac_var
7393 case $ac_val in #(
7394 *${as_nl}*)
7395 case $ac_var in #(
7396 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7397 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7398 esac
7399 case $ac_var in #(
7400 _ | IFS | as_nl) ;; #(
7401 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7402 *) { eval $ac_var=; unset $ac_var;} ;;
7403 esac ;;
7404 esac
7405 done
7407 (set) 2>&1 |
7408 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7409 *${as_nl}ac_space=\ *)
7410 # `set' does not quote correctly, so add quotes: double-quote
7411 # substitution turns \\\\ into \\, and sed turns \\ into \.
7412 sed -n \
7413 "s/'/'\\\\''/g;
7414 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7415 ;; #(
7417 # `set' quotes correctly as required by POSIX, so do not add quotes.
7418 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7420 esac |
7421 sort
7423 sed '
7424 /^ac_cv_env_/b end
7425 t clear
7426 :clear
7427 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7428 t end
7429 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7430 :end' >>confcache
7431 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7432 if test -w "$cache_file"; then
7433 if test "x$cache_file" != "x/dev/null"; then
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7435 $as_echo "$as_me: updating cache $cache_file" >&6;}
7436 if test ! -f "$cache_file" || test -h "$cache_file"; then
7437 cat confcache >"$cache_file"
7438 else
7439 case $cache_file in #(
7440 */* | ?:*)
7441 mv -f confcache "$cache_file"$$ &&
7442 mv -f "$cache_file"$$ "$cache_file" ;; #(
7444 mv -f confcache "$cache_file" ;;
7445 esac
7448 else
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7450 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7453 rm -f confcache
7455 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7456 # Let make expand exec_prefix.
7457 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7459 DEFS=-DHAVE_CONFIG_H
7461 ac_libobjs=
7462 ac_ltlibobjs=
7464 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7465 # 1. Remove the extension, and $U if already installed.
7466 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7467 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7468 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7469 # will be set to the directory where LIBOBJS objects are built.
7470 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7471 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7472 done
7473 LIBOBJS=$ac_libobjs
7475 LTLIBOBJS=$ac_ltlibobjs
7479 : "${CONFIG_STATUS=./config.status}"
7480 ac_write_fail=0
7481 ac_clean_files_save=$ac_clean_files
7482 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7484 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7485 as_write_fail=0
7486 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7487 #! $SHELL
7488 # Generated by $as_me.
7489 # Run this file to recreate the current configuration.
7490 # Compiler output produced by configure, useful for debugging
7491 # configure, is in config.log if it exists.
7493 debug=false
7494 ac_cs_recheck=false
7495 ac_cs_silent=false
7497 SHELL=\${CONFIG_SHELL-$SHELL}
7498 export SHELL
7499 _ASEOF
7500 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7501 ## -------------------- ##
7502 ## M4sh Initialization. ##
7503 ## -------------------- ##
7505 # Be more Bourne compatible
7506 DUALCASE=1; export DUALCASE # for MKS sh
7507 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7508 emulate sh
7509 NULLCMD=:
7510 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7511 # is contrary to our usage. Disable this feature.
7512 alias -g '${1+"$@"}'='"$@"'
7513 setopt NO_GLOB_SUBST
7514 else
7515 case `(set -o) 2>/dev/null` in #(
7516 *posix*) :
7517 set -o posix ;; #(
7518 *) :
7520 esac
7524 as_nl='
7526 export as_nl
7527 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7528 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7529 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7530 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7531 # Prefer a ksh shell builtin over an external printf program on Solaris,
7532 # but without wasting forks for bash or zsh.
7533 if test -z "$BASH_VERSION$ZSH_VERSION" \
7534 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7535 as_echo='print -r --'
7536 as_echo_n='print -rn --'
7537 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7538 as_echo='printf %s\n'
7539 as_echo_n='printf %s'
7540 else
7541 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7542 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7543 as_echo_n='/usr/ucb/echo -n'
7544 else
7545 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7546 as_echo_n_body='eval
7547 arg=$1;
7548 case $arg in #(
7549 *"$as_nl"*)
7550 expr "X$arg" : "X\\(.*\\)$as_nl";
7551 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7552 esac;
7553 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7555 export as_echo_n_body
7556 as_echo_n='sh -c $as_echo_n_body as_echo'
7558 export as_echo_body
7559 as_echo='sh -c $as_echo_body as_echo'
7562 # The user is always right.
7563 if test "${PATH_SEPARATOR+set}" != set; then
7564 PATH_SEPARATOR=:
7565 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7566 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7567 PATH_SEPARATOR=';'
7572 # IFS
7573 # We need space, tab and new line, in precisely that order. Quoting is
7574 # there to prevent editors from complaining about space-tab.
7575 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7576 # splitting by setting IFS to empty value.)
7577 IFS=" "" $as_nl"
7579 # Find who we are. Look in the path if we contain no directory separator.
7580 as_myself=
7581 case $0 in #((
7582 *[\\/]* ) as_myself=$0 ;;
7583 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7584 for as_dir in $PATH
7586 IFS=$as_save_IFS
7587 test -z "$as_dir" && as_dir=.
7588 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7589 done
7590 IFS=$as_save_IFS
7593 esac
7594 # We did not find ourselves, most probably we were run as `sh COMMAND'
7595 # in which case we are not to be found in the path.
7596 if test "x$as_myself" = x; then
7597 as_myself=$0
7599 if test ! -f "$as_myself"; then
7600 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7601 exit 1
7604 # Unset variables that we do not need and which cause bugs (e.g. in
7605 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7606 # suppresses any "Segmentation fault" message there. '((' could
7607 # trigger a bug in pdksh 5.2.14.
7608 for as_var in BASH_ENV ENV MAIL MAILPATH
7609 do eval test x\${$as_var+set} = xset \
7610 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7611 done
7612 PS1='$ '
7613 PS2='> '
7614 PS4='+ '
7616 # NLS nuisances.
7617 LC_ALL=C
7618 export LC_ALL
7619 LANGUAGE=C
7620 export LANGUAGE
7622 # CDPATH.
7623 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7626 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7627 # ----------------------------------------
7628 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7629 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7630 # script with STATUS, using 1 if that was 0.
7631 as_fn_error ()
7633 as_status=$1; test $as_status -eq 0 && as_status=1
7634 if test "$4"; then
7635 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7636 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7638 $as_echo "$as_me: error: $2" >&2
7639 as_fn_exit $as_status
7640 } # as_fn_error
7643 # as_fn_set_status STATUS
7644 # -----------------------
7645 # Set $? to STATUS, without forking.
7646 as_fn_set_status ()
7648 return $1
7649 } # as_fn_set_status
7651 # as_fn_exit STATUS
7652 # -----------------
7653 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7654 as_fn_exit ()
7656 set +e
7657 as_fn_set_status $1
7658 exit $1
7659 } # as_fn_exit
7661 # as_fn_unset VAR
7662 # ---------------
7663 # Portably unset VAR.
7664 as_fn_unset ()
7666 { eval $1=; unset $1;}
7668 as_unset=as_fn_unset
7669 # as_fn_append VAR VALUE
7670 # ----------------------
7671 # Append the text in VALUE to the end of the definition contained in VAR. Take
7672 # advantage of any shell optimizations that allow amortized linear growth over
7673 # repeated appends, instead of the typical quadratic growth present in naive
7674 # implementations.
7675 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7676 eval 'as_fn_append ()
7678 eval $1+=\$2
7680 else
7681 as_fn_append ()
7683 eval $1=\$$1\$2
7685 fi # as_fn_append
7687 # as_fn_arith ARG...
7688 # ------------------
7689 # Perform arithmetic evaluation on the ARGs, and store the result in the
7690 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7691 # must be portable across $(()) and expr.
7692 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7693 eval 'as_fn_arith ()
7695 as_val=$(( $* ))
7697 else
7698 as_fn_arith ()
7700 as_val=`expr "$@" || test $? -eq 1`
7702 fi # as_fn_arith
7705 if expr a : '\(a\)' >/dev/null 2>&1 &&
7706 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7707 as_expr=expr
7708 else
7709 as_expr=false
7712 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7713 as_basename=basename
7714 else
7715 as_basename=false
7718 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7719 as_dirname=dirname
7720 else
7721 as_dirname=false
7724 as_me=`$as_basename -- "$0" ||
7725 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7726 X"$0" : 'X\(//\)$' \| \
7727 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7728 $as_echo X/"$0" |
7729 sed '/^.*\/\([^/][^/]*\)\/*$/{
7730 s//\1/
7733 /^X\/\(\/\/\)$/{
7734 s//\1/
7737 /^X\/\(\/\).*/{
7738 s//\1/
7741 s/.*/./; q'`
7743 # Avoid depending upon Character Ranges.
7744 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7745 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7746 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7747 as_cr_digits='0123456789'
7748 as_cr_alnum=$as_cr_Letters$as_cr_digits
7750 ECHO_C= ECHO_N= ECHO_T=
7751 case `echo -n x` in #(((((
7752 -n*)
7753 case `echo 'xy\c'` in
7754 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7755 xy) ECHO_C='\c';;
7756 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7757 ECHO_T=' ';;
7758 esac;;
7760 ECHO_N='-n';;
7761 esac
7763 rm -f conf$$ conf$$.exe conf$$.file
7764 if test -d conf$$.dir; then
7765 rm -f conf$$.dir/conf$$.file
7766 else
7767 rm -f conf$$.dir
7768 mkdir conf$$.dir 2>/dev/null
7770 if (echo >conf$$.file) 2>/dev/null; then
7771 if ln -s conf$$.file conf$$ 2>/dev/null; then
7772 as_ln_s='ln -s'
7773 # ... but there are two gotchas:
7774 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7775 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7776 # In both cases, we have to default to `cp -p'.
7777 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7778 as_ln_s='cp -p'
7779 elif ln conf$$.file conf$$ 2>/dev/null; then
7780 as_ln_s=ln
7781 else
7782 as_ln_s='cp -p'
7784 else
7785 as_ln_s='cp -p'
7787 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7788 rmdir conf$$.dir 2>/dev/null
7791 # as_fn_mkdir_p
7792 # -------------
7793 # Create "$as_dir" as a directory, including parents if necessary.
7794 as_fn_mkdir_p ()
7797 case $as_dir in #(
7798 -*) as_dir=./$as_dir;;
7799 esac
7800 test -d "$as_dir" || eval $as_mkdir_p || {
7801 as_dirs=
7802 while :; do
7803 case $as_dir in #(
7804 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7805 *) as_qdir=$as_dir;;
7806 esac
7807 as_dirs="'$as_qdir' $as_dirs"
7808 as_dir=`$as_dirname -- "$as_dir" ||
7809 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7810 X"$as_dir" : 'X\(//\)[^/]' \| \
7811 X"$as_dir" : 'X\(//\)$' \| \
7812 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7813 $as_echo X"$as_dir" |
7814 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7815 s//\1/
7818 /^X\(\/\/\)[^/].*/{
7819 s//\1/
7822 /^X\(\/\/\)$/{
7823 s//\1/
7826 /^X\(\/\).*/{
7827 s//\1/
7830 s/.*/./; q'`
7831 test -d "$as_dir" && break
7832 done
7833 test -z "$as_dirs" || eval "mkdir $as_dirs"
7834 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7837 } # as_fn_mkdir_p
7838 if mkdir -p . 2>/dev/null; then
7839 as_mkdir_p='mkdir -p "$as_dir"'
7840 else
7841 test -d ./-p && rmdir ./-p
7842 as_mkdir_p=false
7845 if test -x / >/dev/null 2>&1; then
7846 as_test_x='test -x'
7847 else
7848 if ls -dL / >/dev/null 2>&1; then
7849 as_ls_L_option=L
7850 else
7851 as_ls_L_option=
7853 as_test_x='
7854 eval sh -c '\''
7855 if test -d "$1"; then
7856 test -d "$1/.";
7857 else
7858 case $1 in #(
7859 -*)set "./$1";;
7860 esac;
7861 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
7862 ???[sx]*):;;*)false;;esac;fi
7863 '\'' sh
7866 as_executable_p=$as_test_x
7868 # Sed expression to map a string onto a valid CPP name.
7869 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7871 # Sed expression to map a string onto a valid variable name.
7872 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7875 exec 6>&1
7876 ## ----------------------------------- ##
7877 ## Main body of $CONFIG_STATUS script. ##
7878 ## ----------------------------------- ##
7879 _ASEOF
7880 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7882 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7883 # Save the log message, to keep $0 and so on meaningful, and to
7884 # report actual input values of CONFIG_FILES etc. instead of their
7885 # values after options handling.
7886 ac_log="
7887 This file was extended by $as_me, which was
7888 generated by GNU Autoconf 2.68. Invocation command line was
7890 CONFIG_FILES = $CONFIG_FILES
7891 CONFIG_HEADERS = $CONFIG_HEADERS
7892 CONFIG_LINKS = $CONFIG_LINKS
7893 CONFIG_COMMANDS = $CONFIG_COMMANDS
7894 $ $0 $@
7896 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7899 _ACEOF
7901 case $ac_config_files in *"
7902 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7903 esac
7905 case $ac_config_headers in *"
7906 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7907 esac
7910 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7911 # Files that config.status was made for.
7912 config_files="$ac_config_files"
7913 config_headers="$ac_config_headers"
7915 _ACEOF
7917 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7918 ac_cs_usage="\
7919 \`$as_me' instantiates files and other configuration actions
7920 from templates according to the current configuration. Unless the files
7921 and actions are specified as TAGs, all are instantiated by default.
7923 Usage: $0 [OPTION]... [TAG]...
7925 -h, --help print this help, then exit
7926 -V, --version print version number and configuration settings, then exit
7927 --config print configuration, then exit
7928 -q, --quiet, --silent
7929 do not print progress messages
7930 -d, --debug don't remove temporary files
7931 --recheck update $as_me by reconfiguring in the same conditions
7932 --file=FILE[:TEMPLATE]
7933 instantiate the configuration file FILE
7934 --header=FILE[:TEMPLATE]
7935 instantiate the configuration header FILE
7937 Configuration files:
7938 $config_files
7940 Configuration headers:
7941 $config_headers
7943 Report bugs to the package provider."
7945 _ACEOF
7946 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7947 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7948 ac_cs_version="\\
7949 config.status
7950 configured by $0, generated by GNU Autoconf 2.68,
7951 with options \\"\$ac_cs_config\\"
7953 Copyright (C) 2010 Free Software Foundation, Inc.
7954 This config.status script is free software; the Free Software Foundation
7955 gives unlimited permission to copy, distribute and modify it."
7957 ac_pwd='$ac_pwd'
7958 srcdir='$srcdir'
7959 INSTALL='$INSTALL'
7960 test -n "\$AWK" || AWK=awk
7961 _ACEOF
7963 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7964 # The default lists apply if the user does not specify any file.
7965 ac_need_defaults=:
7966 while test $# != 0
7968 case $1 in
7969 --*=?*)
7970 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7971 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7972 ac_shift=:
7974 --*=)
7975 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7976 ac_optarg=
7977 ac_shift=:
7980 ac_option=$1
7981 ac_optarg=$2
7982 ac_shift=shift
7984 esac
7986 case $ac_option in
7987 # Handling of the options.
7988 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7989 ac_cs_recheck=: ;;
7990 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7991 $as_echo "$ac_cs_version"; exit ;;
7992 --config | --confi | --conf | --con | --co | --c )
7993 $as_echo "$ac_cs_config"; exit ;;
7994 --debug | --debu | --deb | --de | --d | -d )
7995 debug=: ;;
7996 --file | --fil | --fi | --f )
7997 $ac_shift
7998 case $ac_optarg in
7999 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8000 '') as_fn_error $? "missing file argument" ;;
8001 esac
8002 as_fn_append CONFIG_FILES " '$ac_optarg'"
8003 ac_need_defaults=false;;
8004 --header | --heade | --head | --hea )
8005 $ac_shift
8006 case $ac_optarg in
8007 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8008 esac
8009 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8010 ac_need_defaults=false;;
8011 --he | --h)
8012 # Conflict between --help and --header
8013 as_fn_error $? "ambiguous option: \`$1'
8014 Try \`$0 --help' for more information.";;
8015 --help | --hel | -h )
8016 $as_echo "$ac_cs_usage"; exit ;;
8017 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8018 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8019 ac_cs_silent=: ;;
8021 # This is an error.
8022 -*) as_fn_error $? "unrecognized option: \`$1'
8023 Try \`$0 --help' for more information." ;;
8025 *) as_fn_append ac_config_targets " $1"
8026 ac_need_defaults=false ;;
8028 esac
8029 shift
8030 done
8032 ac_configure_extra_args=
8034 if $ac_cs_silent; then
8035 exec 6>/dev/null
8036 ac_configure_extra_args="$ac_configure_extra_args --silent"
8039 _ACEOF
8040 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8041 if \$ac_cs_recheck; then
8042 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8043 shift
8044 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8045 CONFIG_SHELL='$SHELL'
8046 export CONFIG_SHELL
8047 exec "\$@"
8050 _ACEOF
8051 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8052 exec 5>>config.log
8054 echo
8055 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8056 ## Running $as_me. ##
8057 _ASBOX
8058 $as_echo "$ac_log"
8059 } >&5
8061 _ACEOF
8062 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8063 _ACEOF
8065 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8067 # Handling of arguments.
8068 for ac_config_target in $ac_config_targets
8070 case $ac_config_target in
8071 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8072 "${FILES}") CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
8074 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8075 esac
8076 done
8079 # If the user did not use the arguments to specify the items to instantiate,
8080 # then the envvar interface is used. Set only those that are not.
8081 # We use the long form for the default assignment because of an extremely
8082 # bizarre bug on SunOS 4.1.3.
8083 if $ac_need_defaults; then
8084 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8085 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8088 # Have a temporary directory for convenience. Make it in the build tree
8089 # simply because there is no reason against having it here, and in addition,
8090 # creating and moving files from /tmp can sometimes cause problems.
8091 # Hook for its removal unless debugging.
8092 # Note that there is a small window in which the directory will not be cleaned:
8093 # after its creation but before its name has been assigned to `$tmp'.
8094 $debug ||
8096 tmp= ac_tmp=
8097 trap 'exit_status=$?
8098 : "${ac_tmp:=$tmp}"
8099 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8101 trap 'as_fn_exit 1' 1 2 13 15
8103 # Create a (secure) tmp directory for tmp files.
8106 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8107 test -d "$tmp"
8108 } ||
8110 tmp=./conf$$-$RANDOM
8111 (umask 077 && mkdir "$tmp")
8112 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8113 ac_tmp=$tmp
8115 # Set up the scripts for CONFIG_FILES section.
8116 # No need to generate them if there are no CONFIG_FILES.
8117 # This happens for instance with `./config.status config.h'.
8118 if test -n "$CONFIG_FILES"; then
8121 ac_cr=`echo X | tr X '\015'`
8122 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8123 # But we know of no other shell where ac_cr would be empty at this
8124 # point, so we can use a bashism as a fallback.
8125 if test "x$ac_cr" = x; then
8126 eval ac_cr=\$\'\\r\'
8128 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8129 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8130 ac_cs_awk_cr='\\r'
8131 else
8132 ac_cs_awk_cr=$ac_cr
8135 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8136 _ACEOF
8140 echo "cat >conf$$subs.awk <<_ACEOF" &&
8141 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8142 echo "_ACEOF"
8143 } >conf$$subs.sh ||
8144 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8145 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8146 ac_delim='%!_!# '
8147 for ac_last_try in false false false false false :; do
8148 . ./conf$$subs.sh ||
8149 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8151 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8152 if test $ac_delim_n = $ac_delim_num; then
8153 break
8154 elif $ac_last_try; then
8155 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8156 else
8157 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8159 done
8160 rm -f conf$$subs.sh
8162 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8163 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8164 _ACEOF
8165 sed -n '
8167 s/^/S["/; s/!.*/"]=/
8170 s/^[^!]*!//
8171 :repl
8172 t repl
8173 s/'"$ac_delim"'$//
8174 t delim
8177 s/\(.\{148\}\)..*/\1/
8178 t more1
8179 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8182 b repl
8183 :more1
8184 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8187 s/.\{148\}//
8188 t nl
8189 :delim
8191 s/\(.\{148\}\)..*/\1/
8192 t more2
8193 s/["\\]/\\&/g; s/^/"/; s/$/"/
8196 :more2
8197 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8200 s/.\{148\}//
8201 t delim
8202 ' <conf$$subs.awk | sed '
8203 /^[^""]/{
8205 s/\n//
8207 ' >>$CONFIG_STATUS || ac_write_fail=1
8208 rm -f conf$$subs.awk
8209 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8210 _ACAWK
8211 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8212 for (key in S) S_is_set[key] = 1
8213 FS = "\a"
8217 line = $ 0
8218 nfields = split(line, field, "@")
8219 substed = 0
8220 len = length(field[1])
8221 for (i = 2; i < nfields; i++) {
8222 key = field[i]
8223 keylen = length(key)
8224 if (S_is_set[key]) {
8225 value = S[key]
8226 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8227 len += length(value) + length(field[++i])
8228 substed = 1
8229 } else
8230 len += 1 + keylen
8233 print line
8236 _ACAWK
8237 _ACEOF
8238 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8239 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8240 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8241 else
8243 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8244 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8245 _ACEOF
8247 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8248 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8249 # trailing colons and then remove the whole line if VPATH becomes empty
8250 # (actually we leave an empty line to preserve line numbers).
8251 if test "x$srcdir" = x.; then
8252 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8254 s///
8255 s/^/:/
8256 s/[ ]*$/:/
8257 s/:\$(srcdir):/:/g
8258 s/:\${srcdir}:/:/g
8259 s/:@srcdir@:/:/g
8260 s/^:*//
8261 s/:*$//
8263 s/\(=[ ]*\).*/\1/
8265 s/\n//
8266 s/^[^=]*=[ ]*$//
8270 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8271 fi # test -n "$CONFIG_FILES"
8273 # Set up the scripts for CONFIG_HEADERS section.
8274 # No need to generate them if there are no CONFIG_HEADERS.
8275 # This happens for instance with `./config.status Makefile'.
8276 if test -n "$CONFIG_HEADERS"; then
8277 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8278 BEGIN {
8279 _ACEOF
8281 # Transform confdefs.h into an awk script `defines.awk', embedded as
8282 # here-document in config.status, that substitutes the proper values into
8283 # config.h.in to produce config.h.
8285 # Create a delimiter string that does not exist in confdefs.h, to ease
8286 # handling of long lines.
8287 ac_delim='%!_!# '
8288 for ac_last_try in false false :; do
8289 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8290 if test -z "$ac_tt"; then
8291 break
8292 elif $ac_last_try; then
8293 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8294 else
8295 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8297 done
8299 # For the awk script, D is an array of macro values keyed by name,
8300 # likewise P contains macro parameters if any. Preserve backslash
8301 # newline sequences.
8303 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8304 sed -n '
8305 s/.\{148\}/&'"$ac_delim"'/g
8306 t rset
8307 :rset
8308 s/^[ ]*#[ ]*define[ ][ ]*/ /
8309 t def
8311 :def
8312 s/\\$//
8313 t bsnl
8314 s/["\\]/\\&/g
8315 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8316 D["\1"]=" \3"/p
8317 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8319 :bsnl
8320 s/["\\]/\\&/g
8321 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8322 D["\1"]=" \3\\\\\\n"\\/p
8323 t cont
8324 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8325 t cont
8327 :cont
8329 s/.\{148\}/&'"$ac_delim"'/g
8330 t clear
8331 :clear
8332 s/\\$//
8333 t bsnlc
8334 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8336 :bsnlc
8337 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8338 b cont
8339 ' <confdefs.h | sed '
8340 s/'"$ac_delim"'/"\\\
8341 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8343 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8344 for (key in D) D_is_set[key] = 1
8345 FS = "\a"
8347 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8348 line = \$ 0
8349 split(line, arg, " ")
8350 if (arg[1] == "#") {
8351 defundef = arg[2]
8352 mac1 = arg[3]
8353 } else {
8354 defundef = substr(arg[1], 2)
8355 mac1 = arg[2]
8357 split(mac1, mac2, "(") #)
8358 macro = mac2[1]
8359 prefix = substr(line, 1, index(line, defundef) - 1)
8360 if (D_is_set[macro]) {
8361 # Preserve the white space surrounding the "#".
8362 print prefix "define", macro P[macro] D[macro]
8363 next
8364 } else {
8365 # Replace #undef with comments. This is necessary, for example,
8366 # in the case of _POSIX_SOURCE, which is predefined and required
8367 # on some systems where configure will not decide to define it.
8368 if (defundef == "undef") {
8369 print "/*", prefix defundef, macro, "*/"
8370 next
8374 { print }
8375 _ACAWK
8376 _ACEOF
8377 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8378 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8379 fi # test -n "$CONFIG_HEADERS"
8382 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
8383 shift
8384 for ac_tag
8386 case $ac_tag in
8387 :[FHLC]) ac_mode=$ac_tag; continue;;
8388 esac
8389 case $ac_mode$ac_tag in
8390 :[FHL]*:*);;
8391 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8392 :[FH]-) ac_tag=-:-;;
8393 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8394 esac
8395 ac_save_IFS=$IFS
8396 IFS=:
8397 set x $ac_tag
8398 IFS=$ac_save_IFS
8399 shift
8400 ac_file=$1
8401 shift
8403 case $ac_mode in
8404 :L) ac_source=$1;;
8405 :[FH])
8406 ac_file_inputs=
8407 for ac_f
8409 case $ac_f in
8410 -) ac_f="$ac_tmp/stdin";;
8411 *) # Look for the file first in the build tree, then in the source tree
8412 # (if the path is not absolute). The absolute path cannot be DOS-style,
8413 # because $ac_f cannot contain `:'.
8414 test -f "$ac_f" ||
8415 case $ac_f in
8416 [\\/$]*) false;;
8417 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8418 esac ||
8419 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8420 esac
8421 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8422 as_fn_append ac_file_inputs " '$ac_f'"
8423 done
8425 # Let's still pretend it is `configure' which instantiates (i.e., don't
8426 # use $as_me), people would be surprised to read:
8427 # /* config.h. Generated by config.status. */
8428 configure_input='Generated from '`
8429 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8430 `' by configure.'
8431 if test x"$ac_file" != x-; then
8432 configure_input="$ac_file. $configure_input"
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8434 $as_echo "$as_me: creating $ac_file" >&6;}
8436 # Neutralize special characters interpreted by sed in replacement strings.
8437 case $configure_input in #(
8438 *\&* | *\|* | *\\* )
8439 ac_sed_conf_input=`$as_echo "$configure_input" |
8440 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8441 *) ac_sed_conf_input=$configure_input;;
8442 esac
8444 case $ac_tag in
8445 *:-:* | *:-) cat >"$ac_tmp/stdin" \
8446 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8447 esac
8449 esac
8451 ac_dir=`$as_dirname -- "$ac_file" ||
8452 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8453 X"$ac_file" : 'X\(//\)[^/]' \| \
8454 X"$ac_file" : 'X\(//\)$' \| \
8455 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8456 $as_echo X"$ac_file" |
8457 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8458 s//\1/
8461 /^X\(\/\/\)[^/].*/{
8462 s//\1/
8465 /^X\(\/\/\)$/{
8466 s//\1/
8469 /^X\(\/\).*/{
8470 s//\1/
8473 s/.*/./; q'`
8474 as_dir="$ac_dir"; as_fn_mkdir_p
8475 ac_builddir=.
8477 case "$ac_dir" in
8478 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8480 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8481 # A ".." for each directory in $ac_dir_suffix.
8482 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8483 case $ac_top_builddir_sub in
8484 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8485 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8486 esac ;;
8487 esac
8488 ac_abs_top_builddir=$ac_pwd
8489 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8490 # for backward compatibility:
8491 ac_top_builddir=$ac_top_build_prefix
8493 case $srcdir in
8494 .) # We are building in place.
8495 ac_srcdir=.
8496 ac_top_srcdir=$ac_top_builddir_sub
8497 ac_abs_top_srcdir=$ac_pwd ;;
8498 [\\/]* | ?:[\\/]* ) # Absolute name.
8499 ac_srcdir=$srcdir$ac_dir_suffix;
8500 ac_top_srcdir=$srcdir
8501 ac_abs_top_srcdir=$srcdir ;;
8502 *) # Relative name.
8503 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8504 ac_top_srcdir=$ac_top_build_prefix$srcdir
8505 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8506 esac
8507 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8510 case $ac_mode in
8513 # CONFIG_FILE
8516 case $INSTALL in
8517 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8518 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8519 esac
8520 _ACEOF
8522 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8523 # If the template does not know about datarootdir, expand it.
8524 # FIXME: This hack should be removed a few years after 2.60.
8525 ac_datarootdir_hack=; ac_datarootdir_seen=
8526 ac_sed_dataroot='
8527 /datarootdir/ {
8531 /@datadir@/p
8532 /@docdir@/p
8533 /@infodir@/p
8534 /@localedir@/p
8535 /@mandir@/p'
8536 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8537 *datarootdir*) ac_datarootdir_seen=yes;;
8538 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8540 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8541 _ACEOF
8542 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8543 ac_datarootdir_hack='
8544 s&@datadir@&$datadir&g
8545 s&@docdir@&$docdir&g
8546 s&@infodir@&$infodir&g
8547 s&@localedir@&$localedir&g
8548 s&@mandir@&$mandir&g
8549 s&\\\${datarootdir}&$datarootdir&g' ;;
8550 esac
8551 _ACEOF
8553 # Neutralize VPATH when `$srcdir' = `.'.
8554 # Shell code in configure.ac might set extrasub.
8555 # FIXME: do we really want to maintain this feature?
8556 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8557 ac_sed_extra="$ac_vpsub
8558 $extrasub
8559 _ACEOF
8560 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8562 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8563 s|@configure_input@|$ac_sed_conf_input|;t t
8564 s&@top_builddir@&$ac_top_builddir_sub&;t t
8565 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8566 s&@srcdir@&$ac_srcdir&;t t
8567 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8568 s&@top_srcdir@&$ac_top_srcdir&;t t
8569 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8570 s&@builddir@&$ac_builddir&;t t
8571 s&@abs_builddir@&$ac_abs_builddir&;t t
8572 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8573 s&@INSTALL@&$ac_INSTALL&;t t
8574 $ac_datarootdir_hack
8576 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8577 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8579 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8580 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8581 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8582 "$ac_tmp/out"`; test -z "$ac_out"; } &&
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8584 which seems to be undefined. Please make sure it is defined" >&5
8585 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8586 which seems to be undefined. Please make sure it is defined" >&2;}
8588 rm -f "$ac_tmp/stdin"
8589 case $ac_file in
8590 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8591 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8592 esac \
8593 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8597 # CONFIG_HEADER
8599 if test x"$ac_file" != x-; then
8601 $as_echo "/* $configure_input */" \
8602 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8603 } >"$ac_tmp/config.h" \
8604 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8605 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8607 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8608 else
8609 rm -f "$ac_file"
8610 mv "$ac_tmp/config.h" "$ac_file" \
8611 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8613 else
8614 $as_echo "/* $configure_input */" \
8615 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8616 || as_fn_error $? "could not create -" "$LINENO" 5
8621 esac
8623 done # for ac_tag
8626 as_fn_exit 0
8627 _ACEOF
8628 ac_clean_files=$ac_clean_files_save
8630 test $ac_write_fail = 0 ||
8631 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8634 # configure is writing to config.log, and then calls config.status.
8635 # config.status does its own redirection, appending to config.log.
8636 # Unfortunately, on DOS this fails, as config.log is still kept open
8637 # by configure, so config.status won't be able to write to it; its
8638 # output is simply discarded. So we exec the FD to /dev/null,
8639 # effectively closing config.log, so it can be properly (re)opened and
8640 # appended to by config.status. When coming back to configure, we
8641 # need to make the FD available again.
8642 if test "$no_create" != yes; then
8643 ac_cs_success=:
8644 ac_config_status_args=
8645 test "$silent" = yes &&
8646 ac_config_status_args="$ac_config_status_args --quiet"
8647 exec 5>/dev/null
8648 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8649 exec 5>>config.log
8650 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8651 # would make configure fail if this is the last instruction.
8652 $ac_cs_success || as_fn_exit 1
8654 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8656 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8662 # On development trees, create snapshots of config.status
8664 if test -f snapshot -a "x$CHECKMEM" = "x" -a "x$PROFILING" = "x";then
8665 if test "x${MINGW}" = "xyes"; then
8666 echo cp config.status config.status.win32
8667 cp config.status config.status.win32
8668 else
8669 if test "x$DEBUG" '=' "x" -a "x$OPTIMIZE" '=' "x";then
8670 echo cp config.status config.status.linux
8671 cp config.status config.status.linux
8673 if test "x$DEBUG" '!=' "x" -a "x$OPTIMIZE" '=' "x";then
8674 echo cp config.status config.status.debug
8675 cp config.status config.status.debug
8677 if test "x$DEBUG" = "x" -a "x$OPTIMIZE" '!=' "x"; then
8678 echo cp config.status config.status.optimize
8679 cp config.status config.status.optimize