3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 # Initialize some variables set by options.
16 # The variables have the same names as the options, with
17 # dashes changed to underlines.
19 cache_file=./config.cache
28 program_transform_name=s,x,x,
36 bindir='${exec_prefix}/bin'
37 sbindir='${exec_prefix}/sbin'
38 libexecdir='${exec_prefix}/libexec'
39 datadir='${prefix}/share'
40 sysconfdir='${prefix}/etc'
41 sharedstatedir='${prefix}/com'
42 localstatedir='${prefix}/var'
43 libdir='${exec_prefix}/lib'
44 includedir='${prefix}/include'
45 oldincludedir='/usr/include'
46 infodir='${prefix}/info'
47 mandir='${prefix}/man'
49 # Initialize some other variables.
52 SHELL=${CONFIG_SHELL-/bin/sh}
53 # Maximum number of lines to put in a shell here document.
60 # If the previous option needs an argument, assign it.
61 if test -n "$ac_prev"; then
62 eval "$ac_prev=\$ac_option"
68 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
72 # Accept the important Cygnus configure options, so we can diagnose typos.
76 -bindir | --bindir | --bindi | --bind | --bin | --bi)
78 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
79 bindir="$ac_optarg" ;;
81 -build | --build | --buil | --bui | --bu)
83 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
86 -cache-file | --cache-file | --cache-fil | --cache-fi \
87 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
89 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
90 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
91 cache_file="$ac_optarg" ;;
93 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
95 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
97 datadir="$ac_optarg" ;;
99 -disable-* | --disable-*)
100 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
101 # Reject names that are not valid shell variable names.
102 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
103 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
105 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
106 eval "enable_${ac_feature}=no" ;;
108 -enable-* | --enable-*)
109 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
110 # Reject names that are not valid shell variable names.
111 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
112 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
114 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
119 eval "enable_${ac_feature}='$ac_optarg'" ;;
121 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
122 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
123 | --exec | --exe | --ex)
124 ac_prev=exec_prefix ;;
125 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
126 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
127 | --exec=* | --exe=* | --ex=*)
128 exec_prefix="$ac_optarg" ;;
130 -gas | --gas | --ga | --g)
131 # Obsolete; use --with-gas.
134 -help | --help | --hel | --he)
135 # Omit some internal or obsolete options to make the list less imposing.
136 # This message is too long to be a string in the A/UX 3.1 sh.
138 Usage: configure [options] [host]
139 Options: [defaults in brackets after descriptions]
141 --cache-file=FILE cache test results in FILE
142 --help print this message
143 --no-create do not create output files
144 --quiet, --silent do not print \`checking...' messages
145 --version print the version of autoconf that created configure
146 Directory and file names:
147 --prefix=PREFIX install architecture-independent files in PREFIX
149 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
151 --bindir=DIR user executables in DIR [EPREFIX/bin]
152 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
153 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
154 --datadir=DIR read-only architecture-independent data in DIR
156 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
157 --sharedstatedir=DIR modifiable architecture-independent data in DIR
159 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
160 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
161 --includedir=DIR C header files in DIR [PREFIX/include]
162 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
163 --infodir=DIR info documentation in DIR [PREFIX/info]
164 --mandir=DIR man documentation in DIR [PREFIX/man]
165 --srcdir=DIR find the sources in DIR [configure dir or ..]
166 --program-prefix=PREFIX prepend PREFIX to installed program names
167 --program-suffix=SUFFIX append SUFFIX to installed program names
168 --program-transform-name=PROGRAM
169 run sed PROGRAM on installed program names
173 --build=BUILD configure for building on BUILD [BUILD=HOST]
174 --host=HOST configure for HOST [guessed]
175 --target=TARGET configure for TARGET [TARGET=HOST]
176 Features and packages:
177 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
178 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
179 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
180 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
181 --x-includes=DIR X include files are in DIR
182 --x-libraries=DIR X library files are in DIR
184 if test -n "$ac_help"; then
185 echo "--enable and --with options recognized:$ac_help"
189 -host | --host | --hos | --ho)
191 -host=* | --host=* | --hos=* | --ho=*)
194 -includedir | --includedir | --includedi | --included | --include \
195 | --includ | --inclu | --incl | --inc)
196 ac_prev=includedir ;;
197 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
198 | --includ=* | --inclu=* | --incl=* | --inc=*)
199 includedir="$ac_optarg" ;;
201 -infodir | --infodir | --infodi | --infod | --info | --inf)
203 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
204 infodir="$ac_optarg" ;;
206 -libdir | --libdir | --libdi | --libd)
208 -libdir=* | --libdir=* | --libdi=* | --libd=*)
209 libdir="$ac_optarg" ;;
211 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
212 | --libexe | --libex | --libe)
213 ac_prev=libexecdir ;;
214 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
215 | --libexe=* | --libex=* | --libe=*)
216 libexecdir="$ac_optarg" ;;
218 -localstatedir | --localstatedir | --localstatedi | --localstated \
219 | --localstate | --localstat | --localsta | --localst \
220 | --locals | --local | --loca | --loc | --lo)
221 ac_prev=localstatedir ;;
222 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
223 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
224 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
225 localstatedir="$ac_optarg" ;;
227 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
229 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
230 mandir="$ac_optarg" ;;
233 # Obsolete; use --without-fp.
236 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
240 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
241 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
244 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
245 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
246 | --oldin | --oldi | --old | --ol | --o)
247 ac_prev=oldincludedir ;;
248 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
249 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
250 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
251 oldincludedir="$ac_optarg" ;;
253 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
255 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
256 prefix="$ac_optarg" ;;
258 -program-prefix | --program-prefix | --program-prefi | --program-pref \
259 | --program-pre | --program-pr | --program-p)
260 ac_prev=program_prefix ;;
261 -program-prefix=* | --program-prefix=* | --program-prefi=* \
262 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
263 program_prefix="$ac_optarg" ;;
265 -program-suffix | --program-suffix | --program-suffi | --program-suff \
266 | --program-suf | --program-su | --program-s)
267 ac_prev=program_suffix ;;
268 -program-suffix=* | --program-suffix=* | --program-suffi=* \
269 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
270 program_suffix="$ac_optarg" ;;
272 -program-transform-name | --program-transform-name \
273 | --program-transform-nam | --program-transform-na \
274 | --program-transform-n | --program-transform- \
275 | --program-transform | --program-transfor \
276 | --program-transfo | --program-transf \
277 | --program-trans | --program-tran \
278 | --progr-tra | --program-tr | --program-t)
279 ac_prev=program_transform_name ;;
280 -program-transform-name=* | --program-transform-name=* \
281 | --program-transform-nam=* | --program-transform-na=* \
282 | --program-transform-n=* | --program-transform-=* \
283 | --program-transform=* | --program-transfor=* \
284 | --program-transfo=* | --program-transf=* \
285 | --program-trans=* | --program-tran=* \
286 | --progr-tra=* | --program-tr=* | --program-t=*)
287 program_transform_name="$ac_optarg" ;;
289 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
290 | -silent | --silent | --silen | --sile | --sil)
293 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
295 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
297 sbindir="$ac_optarg" ;;
299 -sharedstatedir | --sharedstatedir | --sharedstatedi \
300 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
301 | --sharedst | --shareds | --shared | --share | --shar \
303 ac_prev=sharedstatedir ;;
304 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
305 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
306 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
308 sharedstatedir="$ac_optarg" ;;
310 -site | --site | --sit)
312 -site=* | --site=* | --sit=*)
315 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
317 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
318 srcdir="$ac_optarg" ;;
320 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
321 | --syscon | --sysco | --sysc | --sys | --sy)
322 ac_prev=sysconfdir ;;
323 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
324 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
325 sysconfdir="$ac_optarg" ;;
327 -target | --target | --targe | --targ | --tar | --ta | --t)
329 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
330 target="$ac_optarg" ;;
332 -v | -verbose | --verbose | --verbos | --verbo | --verb)
335 -version | --version | --versio | --versi | --vers)
336 echo "configure generated by autoconf version 2.13"
340 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
341 # Reject names that are not valid shell variable names.
342 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
343 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
345 ac_package=`echo $ac_package| sed 's/-/_/g'`
350 eval "with_${ac_package}='$ac_optarg'" ;;
352 -without-* | --without-*)
353 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
354 # Reject names that are not valid shell variable names.
355 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
356 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
358 ac_package=`echo $ac_package| sed 's/-/_/g'`
359 eval "with_${ac_package}=no" ;;
362 # Obsolete; use --with-x.
365 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
366 | --x-incl | --x-inc | --x-in | --x-i)
367 ac_prev=x_includes ;;
368 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
369 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
370 x_includes="$ac_optarg" ;;
372 -x-libraries | --x-libraries | --x-librarie | --x-librari \
373 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
374 ac_prev=x_libraries ;;
375 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
376 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
377 x_libraries="$ac_optarg" ;;
379 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
383 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
384 echo "configure: warning: $ac_option: invalid host type" 1>&2
386 if test "x$nonopt" != xNONE; then
387 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
395 if test -n "$ac_prev"; then
396 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
399 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
401 # File descriptor usage:
404 # 2 errors and warnings
405 # 3 some systems may open it to /dev/tty
406 # 4 used on the Kubota Titan
407 # 6 checking for... messages and results
408 # 5 compiler messages saved in config.log
409 if test "$silent" = yes; then
417 This file contains any messages produced by compilers while
418 running configure, to aid debugging if configure makes a mistake.
421 # Strip out --no-create and --no-recursion so they do not pile up.
422 # Also quote any args containing shell metacharacters.
427 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
428 | --no-cr | --no-c) ;;
429 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
430 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
431 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
432 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
433 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
438 # Only set these to C if already set. These must not be set unconditionally
439 # because not all systems understand e.g. LANG=C (notably SCO).
440 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
441 # Non-C LC_CTYPE values break the ctype check.
442 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
443 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
444 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
445 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
447 # confdefs.h avoids OS command line length limits that DEFS can exceed.
448 rm -rf conftest* confdefs.h
449 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
452 # A filename unique to this package, relative to the directory that
453 # configure is in, which we can look for to find out if srcdir is correct.
456 # Find the source files, if location was not specified.
457 if test -z "$srcdir"; then
458 ac_srcdir_defaulted=yes
459 # Try the directory containing this script, then its parent.
461 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
462 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
464 if test ! -r $srcdir/$ac_unique_file; then
468 ac_srcdir_defaulted=no
470 if test ! -r $srcdir/$ac_unique_file; then
471 if test "$ac_srcdir_defaulted" = yes; then
472 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
474 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
477 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
479 # Prefer explicitly selected file to automatically selected ones.
480 if test -z "$CONFIG_SITE"; then
481 if test "x$prefix" != xNONE; then
482 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
484 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
487 for ac_site_file in $CONFIG_SITE; do
488 if test -r "$ac_site_file"; then
489 echo "loading site script $ac_site_file"
494 if test -r "$cache_file"; then
495 echo "loading cache $cache_file"
498 echo "creating cache $cache_file"
503 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
504 ac_cpp='$CPP $CPPFLAGS'
505 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
506 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
507 cross_compiling=$ac_cv_prog_cc_cross
511 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
512 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
513 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
520 ac_n= ac_c='\c' ac_t=
525 export PACKAGE=swftools
528 export CFLAGS="-O2 -fomit-frame-pointer"
529 export CXXFLAGS="-O2 -fomit-frame-pointer"
531 # Extract the first word of "gcc", so it can be a program name with args.
532 set dummy gcc; ac_word=$2
533 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
534 echo "configure:535: checking for $ac_word" >&5
535 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
536 echo $ac_n "(cached) $ac_c" 1>&6
538 if test -n "$CC"; then
539 ac_cv_prog_CC="$CC" # Let the user override the test.
541 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
543 for ac_dir in $ac_dummy; do
544 test -z "$ac_dir" && ac_dir=.
545 if test -f $ac_dir/$ac_word; then
554 if test -n "$CC"; then
555 echo "$ac_t""$CC" 1>&6
557 echo "$ac_t""no" 1>&6
560 if test -z "$CC"; then
561 # Extract the first word of "cc", so it can be a program name with args.
562 set dummy cc; ac_word=$2
563 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
564 echo "configure:565: checking for $ac_word" >&5
565 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
566 echo $ac_n "(cached) $ac_c" 1>&6
568 if test -n "$CC"; then
569 ac_cv_prog_CC="$CC" # Let the user override the test.
571 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
574 for ac_dir in $ac_dummy; do
575 test -z "$ac_dir" && ac_dir=.
576 if test -f $ac_dir/$ac_word; then
577 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
586 if test $ac_prog_rejected = yes; then
587 # We found a bogon in the path, so make sure we never use it.
588 set dummy $ac_cv_prog_CC
590 if test $# -gt 0; then
591 # We chose a different compiler from the bogus one.
592 # However, it has the same basename, so the bogon will be chosen
593 # first if we set CC to just the basename; use the full file name.
595 set dummy "$ac_dir/$ac_word" "$@"
603 if test -n "$CC"; then
604 echo "$ac_t""$CC" 1>&6
606 echo "$ac_t""no" 1>&6
609 if test -z "$CC"; then
612 # Extract the first word of "cl", so it can be a program name with args.
613 set dummy cl; ac_word=$2
614 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
615 echo "configure:616: checking for $ac_word" >&5
616 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
617 echo $ac_n "(cached) $ac_c" 1>&6
619 if test -n "$CC"; then
620 ac_cv_prog_CC="$CC" # Let the user override the test.
622 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
624 for ac_dir in $ac_dummy; do
625 test -z "$ac_dir" && ac_dir=.
626 if test -f $ac_dir/$ac_word; then
635 if test -n "$CC"; then
636 echo "$ac_t""$CC" 1>&6
638 echo "$ac_t""no" 1>&6
643 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
646 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
647 echo "configure:648: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
650 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
651 ac_cpp='$CPP $CPPFLAGS'
652 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
653 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
654 cross_compiling=$ac_cv_prog_cc_cross
656 cat > conftest.$ac_ext << EOF
658 #line 659 "configure"
659 #include "confdefs.h"
663 if { (eval echo configure:664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
664 ac_cv_prog_cc_works=yes
665 # If we can't run a trivial program, we are probably using a cross compiler.
666 if (./conftest; exit) 2>/dev/null; then
667 ac_cv_prog_cc_cross=no
669 ac_cv_prog_cc_cross=yes
672 echo "configure: failed program was:" >&5
673 cat conftest.$ac_ext >&5
674 ac_cv_prog_cc_works=no
678 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
679 ac_cpp='$CPP $CPPFLAGS'
680 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
681 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
682 cross_compiling=$ac_cv_prog_cc_cross
684 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
685 if test $ac_cv_prog_cc_works = no; then
686 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
688 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
689 echo "configure:690: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
690 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
691 cross_compiling=$ac_cv_prog_cc_cross
693 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
694 echo "configure:695: checking whether we are using GNU C" >&5
695 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
696 echo $ac_n "(cached) $ac_c" 1>&6
698 cat > conftest.c <<EOF
703 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:704: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
710 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
712 if test $ac_cv_prog_gcc = yes; then
718 ac_test_CFLAGS="${CFLAGS+set}"
719 ac_save_CFLAGS="$CFLAGS"
721 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
722 echo "configure:723: checking whether ${CC-cc} accepts -g" >&5
723 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
724 echo $ac_n "(cached) $ac_c" 1>&6
726 echo 'void f(){}' > conftest.c
727 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
736 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
737 if test "$ac_test_CFLAGS" = set; then
738 CFLAGS="$ac_save_CFLAGS"
739 elif test $ac_cv_prog_cc_g = yes; then
740 if test "$GCC" = yes; then
746 if test "$GCC" = yes; then
753 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
754 echo "configure:755: checking how to run the C preprocessor" >&5
755 # On Suns, sometimes $CPP names a directory.
756 if test -n "$CPP" && test -d "$CPP"; then
759 if test -z "$CPP"; then
760 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
761 echo $ac_n "(cached) $ac_c" 1>&6
763 # This must be in double quotes, not single quotes, because CPP may get
764 # substituted into the Makefile and "${CC-cc}" will confuse make.
766 # On the NeXT, cc -E runs the code through the compiler's parser,
767 # not just through cpp.
768 cat > conftest.$ac_ext <<EOF
769 #line 770 "configure"
770 #include "confdefs.h"
774 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
775 { (eval echo configure:776: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
776 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
777 if test -z "$ac_err"; then
781 echo "configure: failed program was:" >&5
782 cat conftest.$ac_ext >&5
784 CPP="${CC-cc} -E -traditional-cpp"
785 cat > conftest.$ac_ext <<EOF
786 #line 787 "configure"
787 #include "confdefs.h"
791 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
792 { (eval echo configure:793: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
793 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
794 if test -z "$ac_err"; then
798 echo "configure: failed program was:" >&5
799 cat conftest.$ac_ext >&5
801 CPP="${CC-cc} -nologo -E"
802 cat > conftest.$ac_ext <<EOF
803 #line 804 "configure"
804 #include "confdefs.h"
808 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
809 { (eval echo configure:810: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
810 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
811 if test -z "$ac_err"; then
815 echo "configure: failed program was:" >&5
816 cat conftest.$ac_ext >&5
825 ac_cv_prog_CPP="$CPP"
827 CPP="$ac_cv_prog_CPP"
829 ac_cv_prog_CPP="$CPP"
831 echo "$ac_t""$CPP" 1>&6
833 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
835 # Extract the first word of "$ac_prog", so it can be a program name with args.
836 set dummy $ac_prog; ac_word=$2
837 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
838 echo "configure:839: checking for $ac_word" >&5
839 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
840 echo $ac_n "(cached) $ac_c" 1>&6
842 if test -n "$CXX"; then
843 ac_cv_prog_CXX="$CXX" # Let the user override the test.
845 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
847 for ac_dir in $ac_dummy; do
848 test -z "$ac_dir" && ac_dir=.
849 if test -f $ac_dir/$ac_word; then
850 ac_cv_prog_CXX="$ac_prog"
857 CXX="$ac_cv_prog_CXX"
858 if test -n "$CXX"; then
859 echo "$ac_t""$CXX" 1>&6
861 echo "$ac_t""no" 1>&6
864 test -n "$CXX" && break
866 test -n "$CXX" || CXX="gcc"
869 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
870 echo "configure:871: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
873 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
874 ac_cpp='$CXXCPP $CPPFLAGS'
875 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
876 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
877 cross_compiling=$ac_cv_prog_cxx_cross
879 cat > conftest.$ac_ext << EOF
881 #line 882 "configure"
882 #include "confdefs.h"
884 int main(){return(0);}
886 if { (eval echo configure:887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
887 ac_cv_prog_cxx_works=yes
888 # If we can't run a trivial program, we are probably using a cross compiler.
889 if (./conftest; exit) 2>/dev/null; then
890 ac_cv_prog_cxx_cross=no
892 ac_cv_prog_cxx_cross=yes
895 echo "configure: failed program was:" >&5
896 cat conftest.$ac_ext >&5
897 ac_cv_prog_cxx_works=no
901 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
902 ac_cpp='$CPP $CPPFLAGS'
903 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
904 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
905 cross_compiling=$ac_cv_prog_cc_cross
907 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
908 if test $ac_cv_prog_cxx_works = no; then
909 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
911 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
912 echo "configure:913: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
913 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
914 cross_compiling=$ac_cv_prog_cxx_cross
916 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
917 echo "configure:918: checking whether we are using GNU C++" >&5
918 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
919 echo $ac_n "(cached) $ac_c" 1>&6
921 cat > conftest.C <<EOF
926 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
933 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
935 if test $ac_cv_prog_gxx = yes; then
941 ac_test_CXXFLAGS="${CXXFLAGS+set}"
942 ac_save_CXXFLAGS="$CXXFLAGS"
944 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
945 echo "configure:946: checking whether ${CXX-g++} accepts -g" >&5
946 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
947 echo $ac_n "(cached) $ac_c" 1>&6
949 echo 'void f(){}' > conftest.cc
950 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
959 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
960 if test "$ac_test_CXXFLAGS" = set; then
961 CXXFLAGS="$ac_save_CXXFLAGS"
962 elif test $ac_cv_prog_cxx_g = yes; then
963 if test "$GXX" = yes; then
969 if test "$GXX" = yes; then
976 # Extract the first word of "ranlib", so it can be a program name with args.
977 set dummy ranlib; ac_word=$2
978 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
979 echo "configure:980: checking for $ac_word" >&5
980 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
981 echo $ac_n "(cached) $ac_c" 1>&6
983 if test -n "$RANLIB"; then
984 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
986 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
988 for ac_dir in $ac_dummy; do
989 test -z "$ac_dir" && ac_dir=.
990 if test -f $ac_dir/$ac_word; then
991 ac_cv_prog_RANLIB="ranlib"
996 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
999 RANLIB="$ac_cv_prog_RANLIB"
1000 if test -n "$RANLIB"; then
1001 echo "$ac_t""$RANLIB" 1>&6
1003 echo "$ac_t""no" 1>&6
1006 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1007 echo "configure:1008: checking whether ${MAKE-make} sets \${MAKE}" >&5
1008 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1009 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1010 echo $ac_n "(cached) $ac_c" 1>&6
1012 cat > conftestmake <<\EOF
1014 @echo 'ac_maketemp="${MAKE}"'
1016 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1017 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1018 if test -n "$ac_maketemp"; then
1019 eval ac_cv_prog_make_${ac_make}_set=yes
1021 eval ac_cv_prog_make_${ac_make}_set=no
1025 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1026 echo "$ac_t""yes" 1>&6
1029 echo "$ac_t""no" 1>&6
1030 SET_MAKE="MAKE=${MAKE-make}"
1034 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1035 if test -f $ac_dir/install-sh; then
1037 ac_install_sh="$ac_aux_dir/install-sh -c"
1039 elif test -f $ac_dir/install.sh; then
1041 ac_install_sh="$ac_aux_dir/install.sh -c"
1045 if test -z "$ac_aux_dir"; then
1046 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1048 ac_config_guess=$ac_aux_dir/config.guess
1049 ac_config_sub=$ac_aux_dir/config.sub
1050 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1052 # Find a good install program. We prefer a C program (faster),
1053 # so one script is as good as another. But avoid the broken or
1054 # incompatible versions:
1055 # SysV /etc/install, /usr/sbin/install
1056 # SunOS /usr/etc/install
1057 # IRIX /sbin/install
1059 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1060 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1061 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1062 # ./install, which can be erroneously created by make from ./install.sh.
1063 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1064 echo "configure:1065: checking for a BSD compatible install" >&5
1065 if test -z "$INSTALL"; then
1066 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1067 echo $ac_n "(cached) $ac_c" 1>&6
1069 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1070 for ac_dir in $PATH; do
1071 # Account for people who put trailing slashes in PATH elements.
1073 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1075 # OSF1 and SCO ODT 3.0 have their own names for install.
1076 # Don't use installbsd from OSF since it installs stuff as root
1078 for ac_prog in ginstall scoinst install; do
1079 if test -f $ac_dir/$ac_prog; then
1080 if test $ac_prog = install &&
1081 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1082 # AIX install. It has an incompatible calling convention.
1085 ac_cv_path_install="$ac_dir/$ac_prog -c"
1096 if test "${ac_cv_path_install+set}" = set; then
1097 INSTALL="$ac_cv_path_install"
1099 # As a last resort, use the slow shell script. We don't cache a
1100 # path for INSTALL within a source directory, because that will
1101 # break other packages using the cache if that directory is
1102 # removed, or if the path is relative.
1103 INSTALL="$ac_install_sh"
1106 echo "$ac_t""$INSTALL" 1>&6
1108 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1109 # It thinks the first close brace ends the variable substitution.
1110 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1112 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1114 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1116 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1117 echo "configure:1118: checking whether ln -s works" >&5
1118 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1119 echo $ac_n "(cached) $ac_c" 1>&6
1122 if ln -s X conftestdata 2>/dev/null
1125 ac_cv_prog_LN_S="ln -s"
1130 LN_S="$ac_cv_prog_LN_S"
1131 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1132 echo "$ac_t""yes" 1>&6
1134 echo "$ac_t""no" 1>&6
1137 for ac_prog in gzip uncompress compress
1139 # Extract the first word of "$ac_prog", so it can be a program name with args.
1140 set dummy $ac_prog; ac_word=$2
1141 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1142 echo "configure:1143: checking for $ac_word" >&5
1143 if eval "test \"`echo '$''{'ac_cv_prog_UNCOMPRESS'+set}'`\" = set"; then
1144 echo $ac_n "(cached) $ac_c" 1>&6
1146 if test -n "$UNCOMPRESS"; then
1147 ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
1149 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1151 for ac_dir in $ac_dummy; do
1152 test -z "$ac_dir" && ac_dir=.
1153 if test -f $ac_dir/$ac_word; then
1154 ac_cv_prog_UNCOMPRESS="$ac_prog"
1161 UNCOMPRESS="$ac_cv_prog_UNCOMPRESS"
1162 if test -n "$UNCOMPRESS"; then
1163 echo "$ac_t""$UNCOMPRESS" 1>&6
1165 echo "$ac_t""no" 1>&6
1168 test -n "$UNCOMPRESS" && break
1172 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1173 echo "configure:1174: checking for Cygwin environment" >&5
1174 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1175 echo $ac_n "(cached) $ac_c" 1>&6
1177 cat > conftest.$ac_ext <<EOF
1178 #line 1179 "configure"
1179 #include "confdefs.h"
1184 #define __CYGWIN__ __CYGWIN32__
1189 if { (eval echo configure:1190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1193 echo "configure: failed program was:" >&5
1194 cat conftest.$ac_ext >&5
1202 echo "$ac_t""$ac_cv_cygwin" 1>&6
1204 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1205 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1206 echo "configure:1207: checking for mingw32 environment" >&5
1207 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1208 echo $ac_n "(cached) $ac_c" 1>&6
1210 cat > conftest.$ac_ext <<EOF
1211 #line 1212 "configure"
1212 #include "confdefs.h"
1218 if { (eval echo configure:1219: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1222 echo "configure: failed program was:" >&5
1223 cat conftest.$ac_ext >&5
1231 echo "$ac_t""$ac_cv_mingw32" 1>&6
1233 test "$ac_cv_mingw32" = yes && MINGW32=yes
1236 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1237 echo "configure:1238: checking for executable suffix" >&5
1238 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1239 echo $ac_n "(cached) $ac_c" 1>&6
1241 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1245 echo 'int main () { return 0; }' > conftest.$ac_ext
1247 if { (eval echo configure:1248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1248 for file in conftest.*; do
1250 *.c | *.o | *.obj) ;;
1251 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1255 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1258 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1263 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1264 echo "$ac_t""${ac_cv_exeext}" 1>&6
1268 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
1269 echo "configure:1270: checking for sin in -lm" >&5
1270 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
1271 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1272 echo $ac_n "(cached) $ac_c" 1>&6
1274 ac_save_LIBS="$LIBS"
1276 cat > conftest.$ac_ext <<EOF
1277 #line 1278 "configure"
1278 #include "confdefs.h"
1279 /* Override any gcc2 internal prototype to avoid an error. */
1280 /* We use char because int might match the return type of a gcc2
1281 builtin and then its argument prototype would still apply. */
1288 if { (eval echo configure:1289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1290 eval "ac_cv_lib_$ac_lib_var=yes"
1292 echo "configure: failed program was:" >&5
1293 cat conftest.$ac_ext >&5
1295 eval "ac_cv_lib_$ac_lib_var=no"
1298 LIBS="$ac_save_LIBS"
1301 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1302 echo "$ac_t""yes" 1>&6
1303 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1304 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1305 cat >> confdefs.h <<EOF
1306 #define $ac_tr_lib 1
1312 echo "$ac_t""no" 1>&6
1313 echo "Error: Math library not found.";
1318 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
1319 echo "configure:1320: checking for deflate in -lz" >&5
1320 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
1321 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1322 echo $ac_n "(cached) $ac_c" 1>&6
1324 ac_save_LIBS="$LIBS"
1326 cat > conftest.$ac_ext <<EOF
1327 #line 1328 "configure"
1328 #include "confdefs.h"
1329 /* Override any gcc2 internal prototype to avoid an error. */
1330 /* We use char because int might match the return type of a gcc2
1331 builtin and then its argument prototype would still apply. */
1338 if { (eval echo configure:1339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1340 eval "ac_cv_lib_$ac_lib_var=yes"
1342 echo "configure: failed program was:" >&5
1343 cat conftest.$ac_ext >&5
1345 eval "ac_cv_lib_$ac_lib_var=no"
1348 LIBS="$ac_save_LIBS"
1351 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1352 echo "$ac_t""yes" 1>&6
1353 ac_tr_lib=HAVE_LIB`echo z | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1354 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1355 cat >> confdefs.h <<EOF
1356 #define $ac_tr_lib 1
1362 echo "$ac_t""no" 1>&6
1363 echo "Error: The zlib compression library is required."
1364 DISABLEPDF2SWF=true;
1365 MISSINGLIBS="${MISSINGLIBS} zlib"
1369 echo $ac_n "checking for jpeg_write_raw_data in -ljpeg""... $ac_c" 1>&6
1370 echo "configure:1371: checking for jpeg_write_raw_data in -ljpeg" >&5
1371 ac_lib_var=`echo jpeg'_'jpeg_write_raw_data | sed 'y%./+-%__p_%'`
1372 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1373 echo $ac_n "(cached) $ac_c" 1>&6
1375 ac_save_LIBS="$LIBS"
1377 cat > conftest.$ac_ext <<EOF
1378 #line 1379 "configure"
1379 #include "confdefs.h"
1380 /* Override any gcc2 internal prototype to avoid an error. */
1381 /* We use char because int might match the return type of a gcc2
1382 builtin and then its argument prototype would still apply. */
1383 char jpeg_write_raw_data();
1386 jpeg_write_raw_data()
1389 if { (eval echo configure:1390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1391 eval "ac_cv_lib_$ac_lib_var=yes"
1393 echo "configure: failed program was:" >&5
1394 cat conftest.$ac_ext >&5
1396 eval "ac_cv_lib_$ac_lib_var=no"
1399 LIBS="$ac_save_LIBS"
1402 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1403 echo "$ac_t""yes" 1>&6
1404 ac_tr_lib=HAVE_LIB`echo jpeg | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1405 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1406 cat >> confdefs.h <<EOF
1407 #define $ac_tr_lib 1
1413 echo "$ac_t""no" 1>&6
1414 DISABLEPDF2SWF=true;
1415 DISABLEJPEG2SWF=true;
1416 MISSINGLIBS="${MISSINGLIBS} jpeglib"
1420 echo $ac_n "checking for T1_LoadFont in -lt1""... $ac_c" 1>&6
1421 echo "configure:1422: checking for T1_LoadFont in -lt1" >&5
1422 ac_lib_var=`echo t1'_'T1_LoadFont | sed 'y%./+-%__p_%'`
1423 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1424 echo $ac_n "(cached) $ac_c" 1>&6
1426 ac_save_LIBS="$LIBS"
1428 cat > conftest.$ac_ext <<EOF
1429 #line 1430 "configure"
1430 #include "confdefs.h"
1431 /* Override any gcc2 internal prototype to avoid an error. */
1432 /* We use char because int might match the return type of a gcc2
1433 builtin and then its argument prototype would still apply. */
1440 if { (eval echo configure:1441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1442 eval "ac_cv_lib_$ac_lib_var=yes"
1444 echo "configure: failed program was:" >&5
1445 cat conftest.$ac_ext >&5
1447 eval "ac_cv_lib_$ac_lib_var=no"
1450 LIBS="$ac_save_LIBS"
1453 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1454 echo "$ac_t""yes" 1>&6
1455 ac_tr_lib=HAVE_LIB`echo t1 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1456 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1457 cat >> confdefs.h <<EOF
1458 #define $ac_tr_lib 1
1464 echo "$ac_t""no" 1>&6
1465 DISABLEPDF2SWF=true;
1466 MISSINGLIBS="${MISSINGLIBS} T1lib"
1472 echo $ac_n "checking for byte order""... $ac_c" 1>&6
1473 echo "configure:1474: checking for byte order" >&5
1474 if test "$cross_compiling" = yes; then
1477 cat > conftest.$ac_ext <<EOF
1478 #line 1479 "configure"
1479 #include "confdefs.h"
1481 int main (int argc, char *argv[])
1488 if { (eval echo configure:1489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1492 echo "configure: failed program was:" >&5
1493 cat conftest.$ac_ext >&5
1502 if test "x${CROSSCOMPILE}" = "x1"; then
1503 echo "$ac_t""we are cross compiling- trying to guess from system type" 1>&6
1505 # Do some error checking and defaulting for the host and target type.
1507 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1510 # 1. You are not allowed to specify --host, --target, and nonopt at the
1512 # 2. Host defaults to nonopt.
1513 # 3. If nonopt is not specified, then host defaults to the current host,
1514 # as determined by config.guess.
1515 # 4. Target and build default to nonopt.
1516 # 5. If nonopt is not specified, then target and build default to host.
1518 # The aliases save the names the user supplied, while $host etc.
1519 # will get canonicalized.
1520 case $host---$target---$nonopt in
1521 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1522 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1526 # Make sure we can run config.sub.
1527 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1528 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1531 echo $ac_n "checking host system type""... $ac_c" 1>&6
1532 echo "configure:1533: checking host system type" >&5
1535 case "$host_alias" in
1539 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1540 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1542 *) host_alias=$nonopt ;;
1546 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1547 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1548 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1549 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1550 echo "$ac_t""$host" 1>&6
1552 echo $ac_n "checking target system type""... $ac_c" 1>&6
1553 echo "configure:1554: checking target system type" >&5
1555 target_alias=$target
1556 case "$target_alias" in
1559 NONE) target_alias=$host_alias ;;
1560 *) target_alias=$nonopt ;;
1564 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1565 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1566 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1567 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1568 echo "$ac_t""$target" 1>&6
1570 echo $ac_n "checking build system type""... $ac_c" 1>&6
1571 echo "configure:1572: checking build system type" >&5
1574 case "$build_alias" in
1577 NONE) build_alias=$host_alias ;;
1578 *) build_alias=$nonopt ;;
1582 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1583 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1584 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1585 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1586 echo "$ac_t""$build" 1>&6
1588 test "$host_alias" != "$target_alias" &&
1589 test "$program_prefix$program_suffix$program_transform_name" = \
1591 program_prefix=${target_alias}-
1593 echo $ac_n "checking for byte order, try 2""... $ac_c" 1>&6
1594 echo "configure:1595: checking for byte order, try 2" >&5
1599 *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
1606 if test "x${LITTLEENDIAN}" = "x1"; then
1607 echo "$ac_t""little endian" 1>&6
1611 if test "x${BIGENDIAN}" = "x1"; then
1612 echo "$ac_t""big endian" 1>&6
1615 export WORDS_BIGENDIAN
1616 cat >> confdefs.h <<EOF
1617 #define WORDS_BIGENDIAN 1
1621 if test "x${BYTEORDERCHECKOK}" != "x1"; then
1622 echo "$ac_t""unknown" 1>&6
1623 echo Byte order could not determined. Try to insert your system type into aclocal.m4 about line 21
1629 echo $ac_n "checking whether system() can handle command substitution""... $ac_c" 1>&6
1630 echo "configure:1631: checking whether system() can handle command substitution" >&5
1631 if test "$cross_compiling" = yes; then
1634 cat > conftest.$ac_ext <<EOF
1635 #line 1636 "configure"
1636 #include "confdefs.h"
1639 int main (int argc, char*argv[])
1641 return system("echo `echo 0` > config.tmp2");
1645 if { (eval echo configure:1646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1649 echo "configure: failed program was:" >&5
1650 cat conftest.$ac_ext >&5
1656 if test "x${OK}" = "xOK";then
1657 test -s config.tmp2 || OK=
1660 if test "x${CROSSCOMPILE}" = "x1";then
1663 if test "x${OK}" = "xOK";then
1665 echo "$ac_t""yes" 1>&6
1666 export SYSTEM_BACKTICKS=1
1667 cat >> confdefs.h <<EOF
1668 #define SYSTEM_BACKTICKS 1
1672 echo "$ac_t""no" 1>&6
1677 if test "$program_transform_name" = s,x,x,; then
1678 program_transform_name=
1680 # Double any \ or $. echo might interpret backslashes.
1681 cat <<\EOF_SED > conftestsed
1682 s,\\,\\\\,g; s,\$,$$,g
1684 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1687 test "$program_prefix" != NONE &&
1688 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1689 # Use a double $ so make ignores it.
1690 test "$program_suffix" != NONE &&
1691 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1693 # sed with no file args requires a program.
1694 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1700 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1702 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1703 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1704 echo "configure:1705: checking for $ac_hdr that defines DIR" >&5
1705 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1706 echo $ac_n "(cached) $ac_c" 1>&6
1708 cat > conftest.$ac_ext <<EOF
1709 #line 1710 "configure"
1710 #include "confdefs.h"
1711 #include <sys/types.h>
1717 if { (eval echo configure:1718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1719 eval "ac_cv_header_dirent_$ac_safe=yes"
1721 echo "configure: failed program was:" >&5
1722 cat conftest.$ac_ext >&5
1724 eval "ac_cv_header_dirent_$ac_safe=no"
1728 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1729 echo "$ac_t""yes" 1>&6
1730 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1731 cat >> confdefs.h <<EOF
1732 #define $ac_tr_hdr 1
1734 ac_header_dirent=$ac_hdr; break
1736 echo "$ac_t""no" 1>&6
1739 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1740 if test $ac_header_dirent = dirent.h; then
1741 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1742 echo "configure:1743: checking for opendir in -ldir" >&5
1743 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1744 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1745 echo $ac_n "(cached) $ac_c" 1>&6
1747 ac_save_LIBS="$LIBS"
1749 cat > conftest.$ac_ext <<EOF
1750 #line 1751 "configure"
1751 #include "confdefs.h"
1752 /* Override any gcc2 internal prototype to avoid an error. */
1753 /* We use char because int might match the return type of a gcc2
1754 builtin and then its argument prototype would still apply. */
1761 if { (eval echo configure:1762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1763 eval "ac_cv_lib_$ac_lib_var=yes"
1765 echo "configure: failed program was:" >&5
1766 cat conftest.$ac_ext >&5
1768 eval "ac_cv_lib_$ac_lib_var=no"
1771 LIBS="$ac_save_LIBS"
1774 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1775 echo "$ac_t""yes" 1>&6
1778 echo "$ac_t""no" 1>&6
1782 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1783 echo "configure:1784: checking for opendir in -lx" >&5
1784 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1785 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1786 echo $ac_n "(cached) $ac_c" 1>&6
1788 ac_save_LIBS="$LIBS"
1790 cat > conftest.$ac_ext <<EOF
1791 #line 1792 "configure"
1792 #include "confdefs.h"
1793 /* Override any gcc2 internal prototype to avoid an error. */
1794 /* We use char because int might match the return type of a gcc2
1795 builtin and then its argument prototype would still apply. */
1802 if { (eval echo configure:1803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1804 eval "ac_cv_lib_$ac_lib_var=yes"
1806 echo "configure: failed program was:" >&5
1807 cat conftest.$ac_ext >&5
1809 eval "ac_cv_lib_$ac_lib_var=no"
1812 LIBS="$ac_save_LIBS"
1815 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1816 echo "$ac_t""yes" 1>&6
1819 echo "$ac_t""no" 1>&6
1824 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1825 echo "configure:1826: checking for ANSI C header files" >&5
1826 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1827 echo $ac_n "(cached) $ac_c" 1>&6
1829 cat > conftest.$ac_ext <<EOF
1830 #line 1831 "configure"
1831 #include "confdefs.h"
1837 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1838 { (eval echo configure:1839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1839 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1840 if test -z "$ac_err"; then
1842 ac_cv_header_stdc=yes
1845 echo "configure: failed program was:" >&5
1846 cat conftest.$ac_ext >&5
1848 ac_cv_header_stdc=no
1852 if test $ac_cv_header_stdc = yes; then
1853 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1854 cat > conftest.$ac_ext <<EOF
1855 #line 1856 "configure"
1856 #include "confdefs.h"
1859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1860 egrep "memchr" >/dev/null 2>&1; then
1864 ac_cv_header_stdc=no
1870 if test $ac_cv_header_stdc = yes; then
1871 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1872 cat > conftest.$ac_ext <<EOF
1873 #line 1874 "configure"
1874 #include "confdefs.h"
1877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1878 egrep "free" >/dev/null 2>&1; then
1882 ac_cv_header_stdc=no
1888 if test $ac_cv_header_stdc = yes; then
1889 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1890 if test "$cross_compiling" = yes; then
1893 cat > conftest.$ac_ext <<EOF
1894 #line 1895 "configure"
1895 #include "confdefs.h"
1897 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1898 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1899 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1900 int main () { int i; for (i = 0; i < 256; i++)
1901 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1905 if { (eval echo configure:1906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1909 echo "configure: failed program was:" >&5
1910 cat conftest.$ac_ext >&5
1912 ac_cv_header_stdc=no
1920 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1921 if test $ac_cv_header_stdc = yes; then
1922 cat >> confdefs.h <<\EOF
1923 #define STDC_HEADERS 1
1928 for ac_hdr in math.h fcntl.h limits.h malloc.h unistd.h memory.h zlib.h jpeglib.h t1lib.h sys/stat.h sys/types.h
1930 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1931 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1932 echo "configure:1933: checking for $ac_hdr" >&5
1933 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1934 echo $ac_n "(cached) $ac_c" 1>&6
1936 cat > conftest.$ac_ext <<EOF
1937 #line 1938 "configure"
1938 #include "confdefs.h"
1941 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1942 { (eval echo configure:1943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1943 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1944 if test -z "$ac_err"; then
1946 eval "ac_cv_header_$ac_safe=yes"
1949 echo "configure: failed program was:" >&5
1950 cat conftest.$ac_ext >&5
1952 eval "ac_cv_header_$ac_safe=no"
1956 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1957 echo "$ac_t""yes" 1>&6
1958 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1959 cat >> confdefs.h <<EOF
1960 #define $ac_tr_hdr 1
1964 echo "$ac_t""no" 1>&6
1969 if test "x${ac_cv_header_jpeglib_h}" != "xyes"; then
1970 DISABLEPDF2SWF=true;
1971 DISABLEJPEG2SWF=true;
1972 MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
1974 if test "x${ac_cv_header_t1lib_h}" != "xyes"; then
1975 DISABLEPDF2SWF=true;
1976 MISSINGLIBS="${MISSINGLIBS} t1lib.h"
1978 if test "x${ac_cv_header_zlib_h}" != "xyes"; then
1979 DISABLEPDF2SWF=true;
1980 MISSINGLIBS="${MISSINGLIBS} zlib.h"
1983 cat >> confdefs.h <<EOF
1984 #define PACKAGE "$PACKAGE"
1987 cat >> confdefs.h <<EOF
1988 #define VERSION "$VERSION"
1997 echo $ac_n "checking for working const""... $ac_c" 1>&6
1998 echo "configure:1999: checking for working const" >&5
1999 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2000 echo $ac_n "(cached) $ac_c" 1>&6
2002 cat > conftest.$ac_ext <<EOF
2003 #line 2004 "configure"
2004 #include "confdefs.h"
2008 /* Ultrix mips cc rejects this. */
2009 typedef int charset[2]; const charset x;
2010 /* SunOS 4.1.1 cc rejects this. */
2011 char const *const *ccp;
2013 /* NEC SVR4.0.2 mips cc rejects this. */
2014 struct point {int x, y;};
2015 static struct point const zero = {0,0};
2016 /* AIX XL C 1.02.0.0 rejects this.
2017 It does not let you subtract one const X* pointer from another in an arm
2018 of an if-expression whose if-part is not a constant expression */
2019 const char *g = "string";
2020 ccp = &g + (g ? g-g : 0);
2021 /* HPUX 7.0 cc rejects these. */
2024 ccp = (char const *const *) p;
2025 { /* SCO 3.2v4 cc rejects this. */
2027 char const *s = 0 ? (char *) 0 : (char const *) 0;
2031 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2033 const int *foo = &x[0];
2036 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2037 typedef const int *iptr;
2041 { /* AIX XL C 1.02.0.0 rejects this saying
2042 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2043 struct s { int j; const int *ap[3]; };
2044 struct s *b; b->j = 5;
2046 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2052 if { (eval echo configure:2053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2056 echo "configure: failed program was:" >&5
2057 cat conftest.$ac_ext >&5
2064 echo "$ac_t""$ac_cv_c_const" 1>&6
2065 if test $ac_cv_c_const = no; then
2066 cat >> confdefs.h <<\EOF
2072 echo $ac_n "checking for inline""... $ac_c" 1>&6
2073 echo "configure:2074: checking for inline" >&5
2074 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2075 echo $ac_n "(cached) $ac_c" 1>&6
2078 for ac_kw in inline __inline__ __inline; do
2079 cat > conftest.$ac_ext <<EOF
2080 #line 2081 "configure"
2081 #include "confdefs.h"
2087 if { (eval echo configure:2088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2089 ac_cv_c_inline=$ac_kw; break
2091 echo "configure: failed program was:" >&5
2092 cat conftest.$ac_ext >&5
2099 echo "$ac_t""$ac_cv_c_inline" 1>&6
2100 case "$ac_cv_c_inline" in
2102 no) cat >> confdefs.h <<\EOF
2106 *) cat >> confdefs.h <<EOF
2107 #define inline $ac_cv_c_inline
2112 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2113 echo "configure:2114: checking for off_t" >&5
2114 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2115 echo $ac_n "(cached) $ac_c" 1>&6
2117 cat > conftest.$ac_ext <<EOF
2118 #line 2119 "configure"
2119 #include "confdefs.h"
2120 #include <sys/types.h>
2126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2127 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2129 ac_cv_type_off_t=yes
2137 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2138 if test $ac_cv_type_off_t = no; then
2139 cat >> confdefs.h <<\EOF
2145 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2146 echo "configure:2147: checking for size_t" >&5
2147 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2148 echo $ac_n "(cached) $ac_c" 1>&6
2150 cat > conftest.$ac_ext <<EOF
2151 #line 2152 "configure"
2152 #include "confdefs.h"
2153 #include <sys/types.h>
2159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2160 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2162 ac_cv_type_size_t=yes
2165 ac_cv_type_size_t=no
2170 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2171 if test $ac_cv_type_size_t = no; then
2172 cat >> confdefs.h <<\EOF
2173 #define size_t unsigned
2178 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2179 echo "configure:2180: checking whether struct tm is in sys/time.h or time.h" >&5
2180 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2181 echo $ac_n "(cached) $ac_c" 1>&6
2183 cat > conftest.$ac_ext <<EOF
2184 #line 2185 "configure"
2185 #include "confdefs.h"
2186 #include <sys/types.h>
2189 struct tm *tp; tp->tm_sec;
2192 if { (eval echo configure:2193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2194 ac_cv_struct_tm=time.h
2196 echo "configure: failed program was:" >&5
2197 cat conftest.$ac_ext >&5
2199 ac_cv_struct_tm=sys/time.h
2204 echo "$ac_t""$ac_cv_struct_tm" 1>&6
2205 if test $ac_cv_struct_tm = sys/time.h; then
2206 cat >> confdefs.h <<\EOF
2207 #define TM_IN_SYS_TIME 1
2212 echo $ac_n "checking for boolean""... $ac_c" 1>&6
2213 echo "configure:2214: checking for boolean" >&5
2214 if eval "test \"`echo '$''{'ac_cv_type_boolean'+set}'`\" = set"; then
2215 echo $ac_n "(cached) $ac_c" 1>&6
2217 cat > conftest.$ac_ext <<EOF
2218 #line 2219 "configure"
2219 #include "confdefs.h"
2220 #include <sys/types.h>
2226 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2227 egrep "(^|[^a-zA-Z_0-9])boolean[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2229 ac_cv_type_boolean=yes
2232 ac_cv_type_boolean=no
2237 echo "$ac_t""$ac_cv_type_boolean" 1>&6
2238 if test $ac_cv_type_boolean = no; then
2239 cat >> confdefs.h <<\EOF
2246 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
2247 echo "configure:2248: checking for 8-bit clean memcmp" >&5
2248 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
2249 echo $ac_n "(cached) $ac_c" 1>&6
2251 if test "$cross_compiling" = yes; then
2252 ac_cv_func_memcmp_clean=no
2254 cat > conftest.$ac_ext <<EOF
2255 #line 2256 "configure"
2256 #include "confdefs.h"
2260 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
2261 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
2265 if { (eval echo configure:2266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2267 ac_cv_func_memcmp_clean=yes
2269 echo "configure: failed program was:" >&5
2270 cat conftest.$ac_ext >&5
2272 ac_cv_func_memcmp_clean=no
2279 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
2280 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
2282 for ac_hdr in unistd.h
2284 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2285 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2286 echo "configure:2287: checking for $ac_hdr" >&5
2287 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2288 echo $ac_n "(cached) $ac_c" 1>&6
2290 cat > conftest.$ac_ext <<EOF
2291 #line 2292 "configure"
2292 #include "confdefs.h"
2295 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2296 { (eval echo configure:2297: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2297 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2298 if test -z "$ac_err"; then
2300 eval "ac_cv_header_$ac_safe=yes"
2303 echo "configure: failed program was:" >&5
2304 cat conftest.$ac_ext >&5
2306 eval "ac_cv_header_$ac_safe=no"
2310 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2311 echo "$ac_t""yes" 1>&6
2312 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2313 cat >> confdefs.h <<EOF
2314 #define $ac_tr_hdr 1
2318 echo "$ac_t""no" 1>&6
2322 for ac_func in getpagesize
2324 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2325 echo "configure:2326: checking for $ac_func" >&5
2326 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2327 echo $ac_n "(cached) $ac_c" 1>&6
2329 cat > conftest.$ac_ext <<EOF
2330 #line 2331 "configure"
2331 #include "confdefs.h"
2332 /* System header to define __stub macros and hopefully few prototypes,
2333 which can conflict with char $ac_func(); below. */
2335 /* Override any gcc2 internal prototype to avoid an error. */
2336 /* We use char because int might match the return type of a gcc2
2337 builtin and then its argument prototype would still apply. */
2342 /* The GNU C library defines this for functions which it implements
2343 to always fail with ENOSYS. Some functions are actually named
2344 something starting with __ and the normal name is an alias. */
2345 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2353 if { (eval echo configure:2354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2355 eval "ac_cv_func_$ac_func=yes"
2357 echo "configure: failed program was:" >&5
2358 cat conftest.$ac_ext >&5
2360 eval "ac_cv_func_$ac_func=no"
2365 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2366 echo "$ac_t""yes" 1>&6
2367 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2368 cat >> confdefs.h <<EOF
2369 #define $ac_tr_func 1
2373 echo "$ac_t""no" 1>&6
2377 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2378 echo "configure:2379: checking for working mmap" >&5
2379 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2380 echo $ac_n "(cached) $ac_c" 1>&6
2382 if test "$cross_compiling" = yes; then
2383 ac_cv_func_mmap_fixed_mapped=no
2385 cat > conftest.$ac_ext <<EOF
2386 #line 2387 "configure"
2387 #include "confdefs.h"
2389 /* Thanks to Mike Haertel and Jim Avera for this test.
2390 Here is a matrix of mmap possibilities:
2391 mmap private not fixed
2392 mmap private fixed at somewhere currently unmapped
2393 mmap private fixed at somewhere already mapped
2394 mmap shared not fixed
2395 mmap shared fixed at somewhere currently unmapped
2396 mmap shared fixed at somewhere already mapped
2397 For private mappings, we should verify that changes cannot be read()
2398 back from the file, nor mmap's back from the file at a different
2399 address. (There have been systems where private was not correctly
2400 implemented like the infamous i386 svr4.0, and systems where the
2401 VM page cache was not coherent with the filesystem buffer cache
2402 like early versions of FreeBSD and possibly contemporary NetBSD.)
2403 For shared mappings, we should conversely verify that changes get
2404 propogated back to all the places they're supposed to be.
2406 Grep wants private fixed already mapped.
2407 The main things grep needs to know about mmap are:
2408 * does it exist and is it safe to write into the mmap'd area
2409 * how to use it (BSD variants) */
2410 #include <sys/types.h>
2412 #include <sys/mman.h>
2414 /* This mess was copied from the GNU getpagesize.h. */
2415 #ifndef HAVE_GETPAGESIZE
2416 # ifdef HAVE_UNISTD_H
2417 # include <unistd.h>
2420 /* Assume that all systems that can run configure have sys/param.h. */
2421 # ifndef HAVE_SYS_PARAM_H
2422 # define HAVE_SYS_PARAM_H 1
2425 # ifdef _SC_PAGESIZE
2426 # define getpagesize() sysconf(_SC_PAGESIZE)
2427 # else /* no _SC_PAGESIZE */
2428 # ifdef HAVE_SYS_PARAM_H
2429 # include <sys/param.h>
2430 # ifdef EXEC_PAGESIZE
2431 # define getpagesize() EXEC_PAGESIZE
2432 # else /* no EXEC_PAGESIZE */
2434 # define getpagesize() NBPG * CLSIZE
2437 # endif /* no CLSIZE */
2438 # else /* no NBPG */
2440 # define getpagesize() NBPC
2441 # else /* no NBPC */
2443 # define getpagesize() PAGESIZE
2444 # endif /* PAGESIZE */
2445 # endif /* no NBPC */
2446 # endif /* no NBPG */
2447 # endif /* no EXEC_PAGESIZE */
2448 # else /* no HAVE_SYS_PARAM_H */
2449 # define getpagesize() 8192 /* punt totally */
2450 # endif /* no HAVE_SYS_PARAM_H */
2451 # endif /* no _SC_PAGESIZE */
2453 #endif /* no HAVE_GETPAGESIZE */
2456 extern "C" { void *malloc(unsigned); }
2464 char *data, *data2, *data3;
2468 pagesize = getpagesize();
2471 * First, make a file with some known garbage in it.
2473 data = malloc(pagesize);
2476 for (i = 0; i < pagesize; ++i)
2477 *(data + i) = rand();
2479 fd = creat("conftestmmap", 0600);
2482 if (write(fd, data, pagesize) != pagesize)
2487 * Next, try to mmap the file at a fixed address which
2488 * already has something else allocated at it. If we can,
2489 * also make sure that we see the same garbage.
2491 fd = open("conftestmmap", O_RDWR);
2494 data2 = malloc(2 * pagesize);
2497 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2498 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2499 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2501 for (i = 0; i < pagesize; ++i)
2502 if (*(data + i) != *(data2 + i))
2506 * Finally, make sure that changes to the mapped area
2507 * do not percolate back to the file as seen by read().
2508 * (This is a bug on some variants of i386 svr4.0.)
2510 for (i = 0; i < pagesize; ++i)
2511 *(data2 + i) = *(data2 + i) + 1;
2512 data3 = malloc(pagesize);
2515 if (read(fd, data3, pagesize) != pagesize)
2517 for (i = 0; i < pagesize; ++i)
2518 if (*(data + i) != *(data3 + i))
2521 unlink("conftestmmap");
2526 if { (eval echo configure:2527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2528 ac_cv_func_mmap_fixed_mapped=yes
2530 echo "configure: failed program was:" >&5
2531 cat conftest.$ac_ext >&5
2533 ac_cv_func_mmap_fixed_mapped=no
2540 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2541 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2542 cat >> confdefs.h <<\EOF
2548 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2549 echo "configure:2550: checking for vprintf" >&5
2550 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2551 echo $ac_n "(cached) $ac_c" 1>&6
2553 cat > conftest.$ac_ext <<EOF
2554 #line 2555 "configure"
2555 #include "confdefs.h"
2556 /* System header to define __stub macros and hopefully few prototypes,
2557 which can conflict with char vprintf(); below. */
2559 /* Override any gcc2 internal prototype to avoid an error. */
2560 /* We use char because int might match the return type of a gcc2
2561 builtin and then its argument prototype would still apply. */
2566 /* The GNU C library defines this for functions which it implements
2567 to always fail with ENOSYS. Some functions are actually named
2568 something starting with __ and the normal name is an alias. */
2569 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2577 if { (eval echo configure:2578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2579 eval "ac_cv_func_vprintf=yes"
2581 echo "configure: failed program was:" >&5
2582 cat conftest.$ac_ext >&5
2584 eval "ac_cv_func_vprintf=no"
2589 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2590 echo "$ac_t""yes" 1>&6
2591 cat >> confdefs.h <<\EOF
2592 #define HAVE_VPRINTF 1
2596 echo "$ac_t""no" 1>&6
2599 if test "$ac_cv_func_vprintf" != yes; then
2600 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2601 echo "configure:2602: checking for _doprnt" >&5
2602 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2603 echo $ac_n "(cached) $ac_c" 1>&6
2605 cat > conftest.$ac_ext <<EOF
2606 #line 2607 "configure"
2607 #include "confdefs.h"
2608 /* System header to define __stub macros and hopefully few prototypes,
2609 which can conflict with char _doprnt(); below. */
2611 /* Override any gcc2 internal prototype to avoid an error. */
2612 /* We use char because int might match the return type of a gcc2
2613 builtin and then its argument prototype would still apply. */
2618 /* The GNU C library defines this for functions which it implements
2619 to always fail with ENOSYS. Some functions are actually named
2620 something starting with __ and the normal name is an alias. */
2621 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2629 if { (eval echo configure:2630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2631 eval "ac_cv_func__doprnt=yes"
2633 echo "configure: failed program was:" >&5
2634 cat conftest.$ac_ext >&5
2636 eval "ac_cv_func__doprnt=no"
2641 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2642 echo "$ac_t""yes" 1>&6
2643 cat >> confdefs.h <<\EOF
2644 #define HAVE_DOPRNT 1
2648 echo "$ac_t""no" 1>&6
2653 for ac_func in getcwd putenv socket strcspn strdup strerror strstr lrand48 rand srand48 srand
2655 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2656 echo "configure:2657: checking for $ac_func" >&5
2657 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2658 echo $ac_n "(cached) $ac_c" 1>&6
2660 cat > conftest.$ac_ext <<EOF
2661 #line 2662 "configure"
2662 #include "confdefs.h"
2663 /* System header to define __stub macros and hopefully few prototypes,
2664 which can conflict with char $ac_func(); below. */
2666 /* Override any gcc2 internal prototype to avoid an error. */
2667 /* We use char because int might match the return type of a gcc2
2668 builtin and then its argument prototype would still apply. */
2673 /* The GNU C library defines this for functions which it implements
2674 to always fail with ENOSYS. Some functions are actually named
2675 something starting with __ and the normal name is an alias. */
2676 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2684 if { (eval echo configure:2685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2686 eval "ac_cv_func_$ac_func=yes"
2688 echo "configure: failed program was:" >&5
2689 cat conftest.$ac_ext >&5
2691 eval "ac_cv_func_$ac_func=no"
2696 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2697 echo "$ac_t""yes" 1>&6
2698 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2699 cat >> confdefs.h <<EOF
2700 #define $ac_tr_func 1
2704 echo "$ac_t""no" 1>&6
2709 if test "x${UNCOMPRESS}" = "xgzip"; then
2710 cat >> confdefs.h <<EOF
2717 export JPEG2SWF='jpeg2swf$(EXEEXT)'
2718 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
2719 echo "***************************************************"
2720 echo "The following headers/libraries are missing: " ${MISSINGLIBS}
2721 echo "Disabling pdf2swf tool..."
2722 rm -f pdf2swf/Makefile
2723 echo all: > pdf2swf/Makefile
2724 echo install: >> pdf2swf/Makefile
2725 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
2726 echo "Disabling jpeg2swf tool..."
2729 echo "***************************************************"
2730 FILES="./release Makefile lib/Makefile src/Makefile swfs/Makefile"
2732 FILES="./release Makefile lib/Makefile src/Makefile pdf2swf/Makefile pdf2swf/xpdf/Makefile pdf2swf/ttf2pt1/Makefile pdf2swf/fonts/Makefile swfs/Makefile"
2737 cat > confcache <<\EOF
2738 # This file is a shell script that caches the results of configure
2739 # tests run on this system so they can be shared between configure
2740 # scripts and configure runs. It is not useful on other systems.
2741 # If it contains results you don't want to keep, you may remove or edit it.
2743 # By default, configure uses ./config.cache as the cache file,
2744 # creating it if it does not exist already. You can give configure
2745 # the --cache-file=FILE option to use a different cache file; that is
2746 # what configure does when it calls configure scripts in
2747 # subdirectories, so they share the cache.
2748 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2749 # config.status only pays attention to the cache file if you give it the
2750 # --recheck option to rerun configure.
2753 # The following way of writing the cache mishandles newlines in values,
2754 # but we know of no workaround that is simple, portable, and efficient.
2755 # So, don't put newlines in cache variables' values.
2756 # Ultrix sh set writes to stderr and can't be redirected directly,
2757 # and sets the high bit in the cache file unless we assign to the vars.
2759 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2761 # `set' does not quote correctly, so add quotes (double-quote substitution
2762 # turns \\\\ into \\, and sed turns \\ into \).
2764 -e "s/'/'\\\\''/g" \
2765 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2768 # `set' quotes correctly as required by POSIX, so do not add quotes.
2769 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2772 if cmp -s $cache_file confcache; then
2775 if test -w $cache_file; then
2776 echo "updating cache $cache_file"
2777 cat confcache > $cache_file
2779 echo "not updating unwritable cache $cache_file"
2784 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2786 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2787 # Let make expand exec_prefix.
2788 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2790 # Any assignment to VPATH causes Sun make to only execute
2791 # the first set of double-colon rules, so remove it if not needed.
2792 # If there is a colon in the path, we need to keep it.
2793 if test "x$srcdir" = x.; then
2794 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2797 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2799 DEFS=-DHAVE_CONFIG_H
2801 # Without the "./", some shells look in PATH for config.status.
2802 : ${CONFIG_STATUS=./config.status}
2804 echo creating $CONFIG_STATUS
2805 rm -f $CONFIG_STATUS
2806 cat > $CONFIG_STATUS <<EOF
2808 # Generated automatically by configure.
2809 # Run this file to recreate the current configuration.
2810 # This directory was configured as follows,
2811 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2813 # $0 $ac_configure_args
2815 # Compiler output produced by configure, useful for debugging
2816 # configure, is in ./config.log if it exists.
2818 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2821 case "\$ac_option" in
2822 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2823 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2824 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2825 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2826 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2828 -help | --help | --hel | --he | --h)
2829 echo "\$ac_cs_usage"; exit 0 ;;
2830 *) echo "\$ac_cs_usage"; exit 1 ;;
2834 ac_given_srcdir=$srcdir
2835 ac_given_INSTALL="$INSTALL"
2837 trap 'rm -fr `echo "${FILES} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2839 cat >> $CONFIG_STATUS <<EOF
2841 # Protect against being on the right side of a sed subst in config.status.
2842 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2843 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2847 s%@CFLAGS@%$CFLAGS%g
2848 s%@CPPFLAGS@%$CPPFLAGS%g
2849 s%@CXXFLAGS@%$CXXFLAGS%g
2850 s%@FFLAGS@%$FFLAGS%g
2852 s%@LDFLAGS@%$LDFLAGS%g
2854 s%@exec_prefix@%$exec_prefix%g
2855 s%@prefix@%$prefix%g
2856 s%@program_transform_name@%$program_transform_name%g
2857 s%@bindir@%$bindir%g
2858 s%@sbindir@%$sbindir%g
2859 s%@libexecdir@%$libexecdir%g
2860 s%@datadir@%$datadir%g
2861 s%@sysconfdir@%$sysconfdir%g
2862 s%@sharedstatedir@%$sharedstatedir%g
2863 s%@localstatedir@%$localstatedir%g
2864 s%@libdir@%$libdir%g
2865 s%@includedir@%$includedir%g
2866 s%@oldincludedir@%$oldincludedir%g
2867 s%@infodir@%$infodir%g
2868 s%@mandir@%$mandir%g
2872 s%@RANLIB@%$RANLIB%g
2873 s%@SET_MAKE@%$SET_MAKE%g
2874 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2875 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2876 s%@INSTALL_DATA@%$INSTALL_DATA%g
2878 s%@UNCOMPRESS@%$UNCOMPRESS%g
2879 s%@EXEEXT@%$EXEEXT%g
2881 s%@host_alias@%$host_alias%g
2882 s%@host_cpu@%$host_cpu%g
2883 s%@host_vendor@%$host_vendor%g
2884 s%@host_os@%$host_os%g
2885 s%@target@%$target%g
2886 s%@target_alias@%$target_alias%g
2887 s%@target_cpu@%$target_cpu%g
2888 s%@target_vendor@%$target_vendor%g
2889 s%@target_os@%$target_os%g
2891 s%@build_alias@%$build_alias%g
2892 s%@build_cpu@%$build_cpu%g
2893 s%@build_vendor@%$build_vendor%g
2894 s%@build_os@%$build_os%g
2895 s%@WORDS_BIGENDIAN@%$WORDS_BIGENDIAN%g
2896 s%@SYSTEM_BACKTICKS@%$SYSTEM_BACKTICKS%g
2897 s%@PACKAGE@%$PACKAGE%g
2898 s%@VERSION@%$VERSION%g
2899 s%@HAVE_UNISTD_H@%$HAVE_UNISTD_H%g
2900 s%@LIBOBJS@%$LIBOBJS%g
2901 s%@USE_GZIP@%$USE_GZIP%g
2902 s%@JPEG2SWF@%$JPEG2SWF%g
2907 cat >> $CONFIG_STATUS <<\EOF
2909 # Split the substitutions into bite-sized pieces for seds with
2910 # small command number limits, like on Digital OSF/1 and HP-UX.
2911 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2912 ac_file=1 # Number of current file.
2913 ac_beg=1 # First line for current file.
2914 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2917 while $ac_more_lines; do
2918 if test $ac_beg -gt 1; then
2919 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2921 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2923 if test ! -s conftest.s$ac_file; then
2925 rm -f conftest.s$ac_file
2927 if test -z "$ac_sed_cmds"; then
2928 ac_sed_cmds="sed -f conftest.s$ac_file"
2930 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2932 ac_file=`expr $ac_file + 1`
2934 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2937 if test -z "$ac_sed_cmds"; then
2942 cat >> $CONFIG_STATUS <<EOF
2944 CONFIG_FILES=\${CONFIG_FILES-"${FILES}"}
2946 cat >> $CONFIG_STATUS <<\EOF
2947 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2948 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2950 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2951 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2952 *) ac_file_in="${ac_file}.in" ;;
2955 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2957 # Remove last slash and all that follows it. Not all systems have dirname.
2958 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2959 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2960 # The file is in a subdirectory.
2961 test ! -d "$ac_dir" && mkdir "$ac_dir"
2962 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2963 # A "../" for each directory in $ac_dir_suffix.
2964 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2966 ac_dir_suffix= ac_dots=
2969 case "$ac_given_srcdir" in
2971 if test -z "$ac_dots"; then top_srcdir=.
2972 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2973 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2975 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2976 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2979 case "$ac_given_INSTALL" in
2980 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2981 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2984 echo creating "$ac_file"
2986 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2988 *Makefile*) ac_comsub="1i\\
2989 # $configure_input" ;;
2993 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2995 s%@configure_input@%$configure_input%g
2996 s%@srcdir@%$srcdir%g
2997 s%@top_srcdir@%$top_srcdir%g
2998 s%@INSTALL@%$INSTALL%g
2999 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3003 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3004 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3006 # ac_d sets the value in "#define NAME VALUE" lines.
3007 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3008 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3011 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3012 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3013 ac_uB='\([ ]\)%\1#\2define\3'
3016 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3017 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3018 ac_eB='$%\1#\2define\3'
3022 if test "${CONFIG_HEADERS+set}" != set; then
3024 cat >> $CONFIG_STATUS <<EOF
3025 CONFIG_HEADERS="config.h"
3027 cat >> $CONFIG_STATUS <<\EOF
3029 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3030 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3032 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3033 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3034 *) ac_file_in="${ac_file}.in" ;;
3037 echo creating $ac_file
3039 rm -f conftest.frag conftest.in conftest.out
3040 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3041 cat $ac_file_inputs > conftest.in
3045 # Transform confdefs.h into a sed script conftest.vals that substitutes
3046 # the proper values into config.h.in to produce config.h. And first:
3047 # Protect against being on the right side of a sed subst in config.status.
3048 # Protect against being in an unquoted here document in config.status.
3050 cat > conftest.hdr <<\EOF
3053 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3057 sed -n -f conftest.hdr confdefs.h > conftest.vals
3060 # This sed command replaces #undef with comments. This is necessary, for
3061 # example, in the case of _POSIX_SOURCE, which is predefined and required
3062 # on some systems where configure will not decide to define it.
3063 cat >> conftest.vals <<\EOF
3064 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3067 # Break up conftest.vals because some shells have a limit on
3068 # the size of here documents, and old seds have small limits too.
3073 ac_lines=`grep -c . conftest.vals`
3074 # grep -c gives empty output for an empty file on some AIX systems.
3075 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3076 # Write a limited-size here document to conftest.frag.
3077 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3078 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3080 sed -f conftest.frag conftest.in > conftest.out
3082 mv conftest.out conftest.in
3084 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3086 mv conftest.tail conftest.vals
3090 cat >> $CONFIG_STATUS <<\EOF
3091 rm -f conftest.frag conftest.h
3092 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3093 cat conftest.in >> conftest.h
3095 if cmp -s $ac_file conftest.h 2>/dev/null; then
3096 echo "$ac_file is unchanged"
3099 # Remove last slash and all that follows it. Not all systems have dirname.
3100 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3101 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3102 # The file is in a subdirectory.
3103 test ! -d "$ac_dir" && mkdir "$ac_dir"
3106 mv conftest.h $ac_file
3111 cat >> $CONFIG_STATUS <<EOF
3114 cat >> $CONFIG_STATUS <<\EOF
3118 chmod +x $CONFIG_STATUS
3119 rm -fr confdefs* $ac_clean_files
3120 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1