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 --with-x use the X Window System"
17 # Initialize some variables set by options.
18 # The variables have the same names as the options, with
19 # dashes changed to underlines.
21 cache_file=./config.cache
30 program_transform_name=s,x,x,
38 bindir='${exec_prefix}/bin'
39 sbindir='${exec_prefix}/sbin'
40 libexecdir='${exec_prefix}/libexec'
41 datadir='${prefix}/share'
42 sysconfdir='${prefix}/etc'
43 sharedstatedir='${prefix}/com'
44 localstatedir='${prefix}/var'
45 libdir='${exec_prefix}/lib'
46 includedir='${prefix}/include'
47 oldincludedir='/usr/include'
48 infodir='${prefix}/info'
49 mandir='${prefix}/man'
51 # Initialize some other variables.
54 SHELL=${CONFIG_SHELL-/bin/sh}
55 # Maximum number of lines to put in a shell here document.
62 # If the previous option needs an argument, assign it.
63 if test -n "$ac_prev"; then
64 eval "$ac_prev=\$ac_option"
70 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
74 # Accept the important Cygnus configure options, so we can diagnose typos.
78 -bindir | --bindir | --bindi | --bind | --bin | --bi)
80 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
81 bindir="$ac_optarg" ;;
83 -build | --build | --buil | --bui | --bu)
85 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
88 -cache-file | --cache-file | --cache-fil | --cache-fi \
89 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
91 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
92 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
93 cache_file="$ac_optarg" ;;
95 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
97 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
99 datadir="$ac_optarg" ;;
101 -disable-* | --disable-*)
102 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
103 # Reject names that are not valid shell variable names.
104 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
105 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
107 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
108 eval "enable_${ac_feature}=no" ;;
110 -enable-* | --enable-*)
111 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
112 # Reject names that are not valid shell variable names.
113 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
114 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
116 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
121 eval "enable_${ac_feature}='$ac_optarg'" ;;
123 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
124 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
125 | --exec | --exe | --ex)
126 ac_prev=exec_prefix ;;
127 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
128 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
129 | --exec=* | --exe=* | --ex=*)
130 exec_prefix="$ac_optarg" ;;
132 -gas | --gas | --ga | --g)
133 # Obsolete; use --with-gas.
136 -help | --help | --hel | --he)
137 # Omit some internal or obsolete options to make the list less imposing.
138 # This message is too long to be a string in the A/UX 3.1 sh.
140 Usage: configure [options] [host]
141 Options: [defaults in brackets after descriptions]
143 --cache-file=FILE cache test results in FILE
144 --help print this message
145 --no-create do not create output files
146 --quiet, --silent do not print \`checking...' messages
147 --version print the version of autoconf that created configure
148 Directory and file names:
149 --prefix=PREFIX install architecture-independent files in PREFIX
151 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
153 --bindir=DIR user executables in DIR [EPREFIX/bin]
154 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
155 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
156 --datadir=DIR read-only architecture-independent data in DIR
158 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
159 --sharedstatedir=DIR modifiable architecture-independent data in DIR
161 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
162 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
163 --includedir=DIR C header files in DIR [PREFIX/include]
164 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
165 --infodir=DIR info documentation in DIR [PREFIX/info]
166 --mandir=DIR man documentation in DIR [PREFIX/man]
167 --srcdir=DIR find the sources in DIR [configure dir or ..]
168 --program-prefix=PREFIX prepend PREFIX to installed program names
169 --program-suffix=SUFFIX append SUFFIX to installed program names
170 --program-transform-name=PROGRAM
171 run sed PROGRAM on installed program names
175 --build=BUILD configure for building on BUILD [BUILD=HOST]
176 --host=HOST configure for HOST [guessed]
177 --target=TARGET configure for TARGET [TARGET=HOST]
178 Features and packages:
179 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
180 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
181 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
182 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
183 --x-includes=DIR X include files are in DIR
184 --x-libraries=DIR X library files are in DIR
186 if test -n "$ac_help"; then
187 echo "--enable and --with options recognized:$ac_help"
191 -host | --host | --hos | --ho)
193 -host=* | --host=* | --hos=* | --ho=*)
196 -includedir | --includedir | --includedi | --included | --include \
197 | --includ | --inclu | --incl | --inc)
198 ac_prev=includedir ;;
199 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
200 | --includ=* | --inclu=* | --incl=* | --inc=*)
201 includedir="$ac_optarg" ;;
203 -infodir | --infodir | --infodi | --infod | --info | --inf)
205 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
206 infodir="$ac_optarg" ;;
208 -libdir | --libdir | --libdi | --libd)
210 -libdir=* | --libdir=* | --libdi=* | --libd=*)
211 libdir="$ac_optarg" ;;
213 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
214 | --libexe | --libex | --libe)
215 ac_prev=libexecdir ;;
216 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
217 | --libexe=* | --libex=* | --libe=*)
218 libexecdir="$ac_optarg" ;;
220 -localstatedir | --localstatedir | --localstatedi | --localstated \
221 | --localstate | --localstat | --localsta | --localst \
222 | --locals | --local | --loca | --loc | --lo)
223 ac_prev=localstatedir ;;
224 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
225 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
226 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
227 localstatedir="$ac_optarg" ;;
229 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
231 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
232 mandir="$ac_optarg" ;;
235 # Obsolete; use --without-fp.
238 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
242 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
243 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
246 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
247 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
248 | --oldin | --oldi | --old | --ol | --o)
249 ac_prev=oldincludedir ;;
250 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
251 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
252 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
253 oldincludedir="$ac_optarg" ;;
255 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
257 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
258 prefix="$ac_optarg" ;;
260 -program-prefix | --program-prefix | --program-prefi | --program-pref \
261 | --program-pre | --program-pr | --program-p)
262 ac_prev=program_prefix ;;
263 -program-prefix=* | --program-prefix=* | --program-prefi=* \
264 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
265 program_prefix="$ac_optarg" ;;
267 -program-suffix | --program-suffix | --program-suffi | --program-suff \
268 | --program-suf | --program-su | --program-s)
269 ac_prev=program_suffix ;;
270 -program-suffix=* | --program-suffix=* | --program-suffi=* \
271 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
272 program_suffix="$ac_optarg" ;;
274 -program-transform-name | --program-transform-name \
275 | --program-transform-nam | --program-transform-na \
276 | --program-transform-n | --program-transform- \
277 | --program-transform | --program-transfor \
278 | --program-transfo | --program-transf \
279 | --program-trans | --program-tran \
280 | --progr-tra | --program-tr | --program-t)
281 ac_prev=program_transform_name ;;
282 -program-transform-name=* | --program-transform-name=* \
283 | --program-transform-nam=* | --program-transform-na=* \
284 | --program-transform-n=* | --program-transform-=* \
285 | --program-transform=* | --program-transfor=* \
286 | --program-transfo=* | --program-transf=* \
287 | --program-trans=* | --program-tran=* \
288 | --progr-tra=* | --program-tr=* | --program-t=*)
289 program_transform_name="$ac_optarg" ;;
291 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
292 | -silent | --silent | --silen | --sile | --sil)
295 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
297 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
299 sbindir="$ac_optarg" ;;
301 -sharedstatedir | --sharedstatedir | --sharedstatedi \
302 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
303 | --sharedst | --shareds | --shared | --share | --shar \
305 ac_prev=sharedstatedir ;;
306 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
307 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
308 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
310 sharedstatedir="$ac_optarg" ;;
312 -site | --site | --sit)
314 -site=* | --site=* | --sit=*)
317 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
319 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
320 srcdir="$ac_optarg" ;;
322 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
323 | --syscon | --sysco | --sysc | --sys | --sy)
324 ac_prev=sysconfdir ;;
325 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
326 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
327 sysconfdir="$ac_optarg" ;;
329 -target | --target | --targe | --targ | --tar | --ta | --t)
331 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
332 target="$ac_optarg" ;;
334 -v | -verbose | --verbose | --verbos | --verbo | --verb)
337 -version | --version | --versio | --versi | --vers)
338 echo "configure generated by autoconf version 2.13"
342 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
343 # Reject names that are not valid shell variable names.
344 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
345 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
347 ac_package=`echo $ac_package| sed 's/-/_/g'`
352 eval "with_${ac_package}='$ac_optarg'" ;;
354 -without-* | --without-*)
355 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
356 # Reject names that are not valid shell variable names.
357 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
358 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
360 ac_package=`echo $ac_package| sed 's/-/_/g'`
361 eval "with_${ac_package}=no" ;;
364 # Obsolete; use --with-x.
367 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
368 | --x-incl | --x-inc | --x-in | --x-i)
369 ac_prev=x_includes ;;
370 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
371 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
372 x_includes="$ac_optarg" ;;
374 -x-libraries | --x-libraries | --x-librarie | --x-librari \
375 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
376 ac_prev=x_libraries ;;
377 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
378 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
379 x_libraries="$ac_optarg" ;;
381 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
385 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
386 echo "configure: warning: $ac_option: invalid host type" 1>&2
388 if test "x$nonopt" != xNONE; then
389 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
397 if test -n "$ac_prev"; then
398 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
401 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
403 # File descriptor usage:
406 # 2 errors and warnings
407 # 3 some systems may open it to /dev/tty
408 # 4 used on the Kubota Titan
409 # 6 checking for... messages and results
410 # 5 compiler messages saved in config.log
411 if test "$silent" = yes; then
419 This file contains any messages produced by compilers while
420 running configure, to aid debugging if configure makes a mistake.
423 # Strip out --no-create and --no-recursion so they do not pile up.
424 # Also quote any args containing shell metacharacters.
429 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
430 | --no-cr | --no-c) ;;
431 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
432 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
433 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
434 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
435 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
440 # Only set these to C if already set. These must not be set unconditionally
441 # because not all systems understand e.g. LANG=C (notably SCO).
442 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
443 # Non-C LC_CTYPE values break the ctype check.
444 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
445 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
446 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
447 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
449 # confdefs.h avoids OS command line length limits that DEFS can exceed.
450 rm -rf conftest* confdefs.h
451 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
454 # A filename unique to this package, relative to the directory that
455 # configure is in, which we can look for to find out if srcdir is correct.
458 # Find the source files, if location was not specified.
459 if test -z "$srcdir"; then
460 ac_srcdir_defaulted=yes
461 # Try the directory containing this script, then its parent.
463 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
464 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
466 if test ! -r $srcdir/$ac_unique_file; then
470 ac_srcdir_defaulted=no
472 if test ! -r $srcdir/$ac_unique_file; then
473 if test "$ac_srcdir_defaulted" = yes; then
474 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
476 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
479 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
481 # Prefer explicitly selected file to automatically selected ones.
482 if test -z "$CONFIG_SITE"; then
483 if test "x$prefix" != xNONE; then
484 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
486 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
489 for ac_site_file in $CONFIG_SITE; do
490 if test -r "$ac_site_file"; then
491 echo "loading site script $ac_site_file"
496 if test -r "$cache_file"; then
497 echo "loading cache $cache_file"
500 echo "creating cache $cache_file"
505 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
506 ac_cpp='$CPP $CPPFLAGS'
507 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
508 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
509 cross_compiling=$ac_cv_prog_cc_cross
513 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
514 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
515 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
522 ac_n= ac_c='\c' ac_t=
526 if test "$program_transform_name" = s,x,x,; then
527 program_transform_name=
529 # Double any \ or $. echo might interpret backslashes.
530 cat <<\EOF_SED > conftestsed
531 s,\\,\\\\,g; s,\$,$$,g
533 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
536 test "$program_prefix" != NONE &&
537 program_transform_name="s,^,${program_prefix},; $program_transform_name"
538 # Use a double $ so make ignores it.
539 test "$program_suffix" != NONE &&
540 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
542 # sed with no file args requires a program.
543 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
546 export PACKAGE=swftools
547 export VERSION=pre0.1.0
549 export CFLAGS="-O2 -fomit-frame-pointer"
550 export CXXFLAGS="-O2 -fomit-frame-pointer"
552 for ac_prog in mawk gawk nawk awk
554 # Extract the first word of "$ac_prog", so it can be a program name with args.
555 set dummy $ac_prog; ac_word=$2
556 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
557 echo "configure:558: checking for $ac_word" >&5
558 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
559 echo $ac_n "(cached) $ac_c" 1>&6
561 if test -n "$AWK"; then
562 ac_cv_prog_AWK="$AWK" # Let the user override the test.
564 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
566 for ac_dir in $ac_dummy; do
567 test -z "$ac_dir" && ac_dir=.
568 if test -f $ac_dir/$ac_word; then
569 ac_cv_prog_AWK="$ac_prog"
576 AWK="$ac_cv_prog_AWK"
577 if test -n "$AWK"; then
578 echo "$ac_t""$AWK" 1>&6
580 echo "$ac_t""no" 1>&6
583 test -n "$AWK" && break
586 # Extract the first word of "gcc", so it can be a program name with args.
587 set dummy gcc; ac_word=$2
588 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
589 echo "configure:590: checking for $ac_word" >&5
590 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
591 echo $ac_n "(cached) $ac_c" 1>&6
593 if test -n "$CC"; then
594 ac_cv_prog_CC="$CC" # Let the user override the test.
596 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
598 for ac_dir in $ac_dummy; do
599 test -z "$ac_dir" && ac_dir=.
600 if test -f $ac_dir/$ac_word; then
609 if test -n "$CC"; then
610 echo "$ac_t""$CC" 1>&6
612 echo "$ac_t""no" 1>&6
615 if test -z "$CC"; then
616 # Extract the first word of "cc", so it can be a program name with args.
617 set dummy cc; ac_word=$2
618 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
619 echo "configure:620: checking for $ac_word" >&5
620 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
621 echo $ac_n "(cached) $ac_c" 1>&6
623 if test -n "$CC"; then
624 ac_cv_prog_CC="$CC" # Let the user override the test.
626 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
629 for ac_dir in $ac_dummy; do
630 test -z "$ac_dir" && ac_dir=.
631 if test -f $ac_dir/$ac_word; then
632 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
641 if test $ac_prog_rejected = yes; then
642 # We found a bogon in the path, so make sure we never use it.
643 set dummy $ac_cv_prog_CC
645 if test $# -gt 0; then
646 # We chose a different compiler from the bogus one.
647 # However, it has the same basename, so the bogon will be chosen
648 # first if we set CC to just the basename; use the full file name.
650 set dummy "$ac_dir/$ac_word" "$@"
658 if test -n "$CC"; then
659 echo "$ac_t""$CC" 1>&6
661 echo "$ac_t""no" 1>&6
664 if test -z "$CC"; then
667 # Extract the first word of "cl", so it can be a program name with args.
668 set dummy cl; ac_word=$2
669 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
670 echo "configure:671: checking for $ac_word" >&5
671 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
672 echo $ac_n "(cached) $ac_c" 1>&6
674 if test -n "$CC"; then
675 ac_cv_prog_CC="$CC" # Let the user override the test.
677 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
679 for ac_dir in $ac_dummy; do
680 test -z "$ac_dir" && ac_dir=.
681 if test -f $ac_dir/$ac_word; then
690 if test -n "$CC"; then
691 echo "$ac_t""$CC" 1>&6
693 echo "$ac_t""no" 1>&6
698 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
701 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
702 echo "configure:703: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
705 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
706 ac_cpp='$CPP $CPPFLAGS'
707 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
708 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
709 cross_compiling=$ac_cv_prog_cc_cross
711 cat > conftest.$ac_ext << EOF
713 #line 714 "configure"
714 #include "confdefs.h"
718 if { (eval echo configure:719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
719 ac_cv_prog_cc_works=yes
720 # If we can't run a trivial program, we are probably using a cross compiler.
721 if (./conftest; exit) 2>/dev/null; then
722 ac_cv_prog_cc_cross=no
724 ac_cv_prog_cc_cross=yes
727 echo "configure: failed program was:" >&5
728 cat conftest.$ac_ext >&5
729 ac_cv_prog_cc_works=no
733 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
734 ac_cpp='$CPP $CPPFLAGS'
735 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
736 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
737 cross_compiling=$ac_cv_prog_cc_cross
739 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
740 if test $ac_cv_prog_cc_works = no; then
741 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
743 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
744 echo "configure:745: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
745 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
746 cross_compiling=$ac_cv_prog_cc_cross
748 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
749 echo "configure:750: checking whether we are using GNU C" >&5
750 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
751 echo $ac_n "(cached) $ac_c" 1>&6
753 cat > conftest.c <<EOF
758 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:759: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
765 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
767 if test $ac_cv_prog_gcc = yes; then
773 ac_test_CFLAGS="${CFLAGS+set}"
774 ac_save_CFLAGS="$CFLAGS"
776 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
777 echo "configure:778: checking whether ${CC-cc} accepts -g" >&5
778 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
779 echo $ac_n "(cached) $ac_c" 1>&6
781 echo 'void f(){}' > conftest.c
782 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
791 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
792 if test "$ac_test_CFLAGS" = set; then
793 CFLAGS="$ac_save_CFLAGS"
794 elif test $ac_cv_prog_cc_g = yes; then
795 if test "$GCC" = yes; then
801 if test "$GCC" = yes; then
808 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
809 echo "configure:810: checking how to run the C preprocessor" >&5
810 # On Suns, sometimes $CPP names a directory.
811 if test -n "$CPP" && test -d "$CPP"; then
814 if test -z "$CPP"; then
815 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
816 echo $ac_n "(cached) $ac_c" 1>&6
818 # This must be in double quotes, not single quotes, because CPP may get
819 # substituted into the Makefile and "${CC-cc}" will confuse make.
821 # On the NeXT, cc -E runs the code through the compiler's parser,
822 # not just through cpp.
823 cat > conftest.$ac_ext <<EOF
824 #line 825 "configure"
825 #include "confdefs.h"
829 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
830 { (eval echo configure:831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
831 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
832 if test -z "$ac_err"; then
836 echo "configure: failed program was:" >&5
837 cat conftest.$ac_ext >&5
839 CPP="${CC-cc} -E -traditional-cpp"
840 cat > conftest.$ac_ext <<EOF
841 #line 842 "configure"
842 #include "confdefs.h"
846 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
847 { (eval echo configure:848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
848 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
849 if test -z "$ac_err"; then
853 echo "configure: failed program was:" >&5
854 cat conftest.$ac_ext >&5
856 CPP="${CC-cc} -nologo -E"
857 cat > conftest.$ac_ext <<EOF
858 #line 859 "configure"
859 #include "confdefs.h"
863 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
864 { (eval echo configure:865: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
865 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
866 if test -z "$ac_err"; then
870 echo "configure: failed program was:" >&5
871 cat conftest.$ac_ext >&5
880 ac_cv_prog_CPP="$CPP"
882 CPP="$ac_cv_prog_CPP"
884 ac_cv_prog_CPP="$CPP"
886 echo "$ac_t""$CPP" 1>&6
888 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
890 # Extract the first word of "$ac_prog", so it can be a program name with args.
891 set dummy $ac_prog; ac_word=$2
892 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
893 echo "configure:894: checking for $ac_word" >&5
894 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
895 echo $ac_n "(cached) $ac_c" 1>&6
897 if test -n "$CXX"; then
898 ac_cv_prog_CXX="$CXX" # Let the user override the test.
900 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
902 for ac_dir in $ac_dummy; do
903 test -z "$ac_dir" && ac_dir=.
904 if test -f $ac_dir/$ac_word; then
905 ac_cv_prog_CXX="$ac_prog"
912 CXX="$ac_cv_prog_CXX"
913 if test -n "$CXX"; then
914 echo "$ac_t""$CXX" 1>&6
916 echo "$ac_t""no" 1>&6
919 test -n "$CXX" && break
921 test -n "$CXX" || CXX="gcc"
924 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
925 echo "configure:926: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
928 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
929 ac_cpp='$CXXCPP $CPPFLAGS'
930 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
931 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
932 cross_compiling=$ac_cv_prog_cxx_cross
934 cat > conftest.$ac_ext << EOF
936 #line 937 "configure"
937 #include "confdefs.h"
939 int main(){return(0);}
941 if { (eval echo configure:942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
942 ac_cv_prog_cxx_works=yes
943 # If we can't run a trivial program, we are probably using a cross compiler.
944 if (./conftest; exit) 2>/dev/null; then
945 ac_cv_prog_cxx_cross=no
947 ac_cv_prog_cxx_cross=yes
950 echo "configure: failed program was:" >&5
951 cat conftest.$ac_ext >&5
952 ac_cv_prog_cxx_works=no
956 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
957 ac_cpp='$CPP $CPPFLAGS'
958 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
959 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
960 cross_compiling=$ac_cv_prog_cc_cross
962 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
963 if test $ac_cv_prog_cxx_works = no; then
964 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
966 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
967 echo "configure:968: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
968 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
969 cross_compiling=$ac_cv_prog_cxx_cross
971 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
972 echo "configure:973: checking whether we are using GNU C++" >&5
973 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
974 echo $ac_n "(cached) $ac_c" 1>&6
976 cat > conftest.C <<EOF
981 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
988 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
990 if test $ac_cv_prog_gxx = yes; then
996 ac_test_CXXFLAGS="${CXXFLAGS+set}"
997 ac_save_CXXFLAGS="$CXXFLAGS"
999 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1000 echo "configure:1001: checking whether ${CXX-g++} accepts -g" >&5
1001 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1002 echo $ac_n "(cached) $ac_c" 1>&6
1004 echo 'void f(){}' > conftest.cc
1005 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1006 ac_cv_prog_cxx_g=yes
1014 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1015 if test "$ac_test_CXXFLAGS" = set; then
1016 CXXFLAGS="$ac_save_CXXFLAGS"
1017 elif test $ac_cv_prog_cxx_g = yes; then
1018 if test "$GXX" = yes; then
1024 if test "$GXX" = yes; then
1031 # Extract the first word of "ranlib", so it can be a program name with args.
1032 set dummy ranlib; ac_word=$2
1033 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1034 echo "configure:1035: checking for $ac_word" >&5
1035 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1036 echo $ac_n "(cached) $ac_c" 1>&6
1038 if test -n "$RANLIB"; then
1039 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1041 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1043 for ac_dir in $ac_dummy; do
1044 test -z "$ac_dir" && ac_dir=.
1045 if test -f $ac_dir/$ac_word; then
1046 ac_cv_prog_RANLIB="ranlib"
1051 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1054 RANLIB="$ac_cv_prog_RANLIB"
1055 if test -n "$RANLIB"; then
1056 echo "$ac_t""$RANLIB" 1>&6
1058 echo "$ac_t""no" 1>&6
1061 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1062 echo "configure:1063: checking whether ${MAKE-make} sets \${MAKE}" >&5
1063 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1064 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1065 echo $ac_n "(cached) $ac_c" 1>&6
1067 cat > conftestmake <<\EOF
1069 @echo 'ac_maketemp="${MAKE}"'
1071 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1072 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1073 if test -n "$ac_maketemp"; then
1074 eval ac_cv_prog_make_${ac_make}_set=yes
1076 eval ac_cv_prog_make_${ac_make}_set=no
1080 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1081 echo "$ac_t""yes" 1>&6
1084 echo "$ac_t""no" 1>&6
1085 SET_MAKE="MAKE=${MAKE-make}"
1089 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1090 if test -f $ac_dir/install-sh; then
1092 ac_install_sh="$ac_aux_dir/install-sh -c"
1094 elif test -f $ac_dir/install.sh; then
1096 ac_install_sh="$ac_aux_dir/install.sh -c"
1100 if test -z "$ac_aux_dir"; then
1101 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1103 ac_config_guess=$ac_aux_dir/config.guess
1104 ac_config_sub=$ac_aux_dir/config.sub
1105 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1107 # Find a good install program. We prefer a C program (faster),
1108 # so one script is as good as another. But avoid the broken or
1109 # incompatible versions:
1110 # SysV /etc/install, /usr/sbin/install
1111 # SunOS /usr/etc/install
1112 # IRIX /sbin/install
1114 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1115 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1116 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1117 # ./install, which can be erroneously created by make from ./install.sh.
1118 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1119 echo "configure:1120: checking for a BSD compatible install" >&5
1120 if test -z "$INSTALL"; then
1121 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1122 echo $ac_n "(cached) $ac_c" 1>&6
1124 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1125 for ac_dir in $PATH; do
1126 # Account for people who put trailing slashes in PATH elements.
1128 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1130 # OSF1 and SCO ODT 3.0 have their own names for install.
1131 # Don't use installbsd from OSF since it installs stuff as root
1133 for ac_prog in ginstall scoinst install; do
1134 if test -f $ac_dir/$ac_prog; then
1135 if test $ac_prog = install &&
1136 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1137 # AIX install. It has an incompatible calling convention.
1140 ac_cv_path_install="$ac_dir/$ac_prog -c"
1151 if test "${ac_cv_path_install+set}" = set; then
1152 INSTALL="$ac_cv_path_install"
1154 # As a last resort, use the slow shell script. We don't cache a
1155 # path for INSTALL within a source directory, because that will
1156 # break other packages using the cache if that directory is
1157 # removed, or if the path is relative.
1158 INSTALL="$ac_install_sh"
1161 echo "$ac_t""$INSTALL" 1>&6
1163 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1164 # It thinks the first close brace ends the variable substitution.
1165 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1167 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1169 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1171 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1172 echo "configure:1173: checking whether ln -s works" >&5
1173 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1174 echo $ac_n "(cached) $ac_c" 1>&6
1177 if ln -s X conftestdata 2>/dev/null
1180 ac_cv_prog_LN_S="ln -s"
1185 LN_S="$ac_cv_prog_LN_S"
1186 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1187 echo "$ac_t""yes" 1>&6
1189 echo "$ac_t""no" 1>&6
1193 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1194 echo "configure:1195: checking for Cygwin environment" >&5
1195 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1196 echo $ac_n "(cached) $ac_c" 1>&6
1198 cat > conftest.$ac_ext <<EOF
1199 #line 1200 "configure"
1200 #include "confdefs.h"
1205 #define __CYGWIN__ __CYGWIN32__
1210 if { (eval echo configure:1211: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1214 echo "configure: failed program was:" >&5
1215 cat conftest.$ac_ext >&5
1223 echo "$ac_t""$ac_cv_cygwin" 1>&6
1225 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1226 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1227 echo "configure:1228: checking for mingw32 environment" >&5
1228 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1229 echo $ac_n "(cached) $ac_c" 1>&6
1231 cat > conftest.$ac_ext <<EOF
1232 #line 1233 "configure"
1233 #include "confdefs.h"
1239 if { (eval echo configure:1240: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1243 echo "configure: failed program was:" >&5
1244 cat conftest.$ac_ext >&5
1252 echo "$ac_t""$ac_cv_mingw32" 1>&6
1254 test "$ac_cv_mingw32" = yes && MINGW32=yes
1257 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1258 echo "configure:1259: checking for executable suffix" >&5
1259 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1260 echo $ac_n "(cached) $ac_c" 1>&6
1262 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1266 echo 'int main () { return 0; }' > conftest.$ac_ext
1268 if { (eval echo configure:1269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1269 for file in conftest.*; do
1271 *.c | *.o | *.obj) ;;
1272 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1276 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1279 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1284 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1285 echo "$ac_t""${ac_cv_exeext}" 1>&6
1289 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
1290 echo "configure:1291: checking for sin in -lm" >&5
1291 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
1292 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1293 echo $ac_n "(cached) $ac_c" 1>&6
1295 ac_save_LIBS="$LIBS"
1297 cat > conftest.$ac_ext <<EOF
1298 #line 1299 "configure"
1299 #include "confdefs.h"
1300 /* Override any gcc2 internal prototype to avoid an error. */
1301 /* We use char because int might match the return type of a gcc2
1302 builtin and then its argument prototype would still apply. */
1309 if { (eval echo configure:1310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1311 eval "ac_cv_lib_$ac_lib_var=yes"
1313 echo "configure: failed program was:" >&5
1314 cat conftest.$ac_ext >&5
1316 eval "ac_cv_lib_$ac_lib_var=no"
1319 LIBS="$ac_save_LIBS"
1322 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1323 echo "$ac_t""yes" 1>&6
1324 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1325 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1326 cat >> confdefs.h <<EOF
1327 #define $ac_tr_lib 1
1333 echo "$ac_t""no" 1>&6
1334 echo "Error: Math library not found.";
1339 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
1340 echo "configure:1341: checking for deflate in -lz" >&5
1341 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
1342 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1343 echo $ac_n "(cached) $ac_c" 1>&6
1345 ac_save_LIBS="$LIBS"
1347 cat > conftest.$ac_ext <<EOF
1348 #line 1349 "configure"
1349 #include "confdefs.h"
1350 /* Override any gcc2 internal prototype to avoid an error. */
1351 /* We use char because int might match the return type of a gcc2
1352 builtin and then its argument prototype would still apply. */
1359 if { (eval echo configure:1360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1361 eval "ac_cv_lib_$ac_lib_var=yes"
1363 echo "configure: failed program was:" >&5
1364 cat conftest.$ac_ext >&5
1366 eval "ac_cv_lib_$ac_lib_var=no"
1369 LIBS="$ac_save_LIBS"
1372 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1373 echo "$ac_t""yes" 1>&6
1374 ac_tr_lib=HAVE_LIB`echo z | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1375 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1376 cat >> confdefs.h <<EOF
1377 #define $ac_tr_lib 1
1383 echo "$ac_t""no" 1>&6
1384 echo "Error: The zlib compression library is required."
1385 DISABLEPDF2SWF=true;
1386 MISSINGLIBS="${MISSINGLIBS} zlib"
1390 echo $ac_n "checking for jpeg_write_raw_data in -ljpeg""... $ac_c" 1>&6
1391 echo "configure:1392: checking for jpeg_write_raw_data in -ljpeg" >&5
1392 ac_lib_var=`echo jpeg'_'jpeg_write_raw_data | sed 'y%./+-%__p_%'`
1393 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1394 echo $ac_n "(cached) $ac_c" 1>&6
1396 ac_save_LIBS="$LIBS"
1398 cat > conftest.$ac_ext <<EOF
1399 #line 1400 "configure"
1400 #include "confdefs.h"
1401 /* Override any gcc2 internal prototype to avoid an error. */
1402 /* We use char because int might match the return type of a gcc2
1403 builtin and then its argument prototype would still apply. */
1404 char jpeg_write_raw_data();
1407 jpeg_write_raw_data()
1410 if { (eval echo configure:1411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1412 eval "ac_cv_lib_$ac_lib_var=yes"
1414 echo "configure: failed program was:" >&5
1415 cat conftest.$ac_ext >&5
1417 eval "ac_cv_lib_$ac_lib_var=no"
1420 LIBS="$ac_save_LIBS"
1423 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1424 echo "$ac_t""yes" 1>&6
1425 ac_tr_lib=HAVE_LIB`echo jpeg | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1426 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1427 cat >> confdefs.h <<EOF
1428 #define $ac_tr_lib 1
1434 echo "$ac_t""no" 1>&6
1435 DISABLEPDF2SWF=true;
1436 DISABLEJPEG2SWF=true;
1437 MISSINGLIBS="${MISSINGLIBS} jpeglib"
1441 echo $ac_n "checking for T1_LoadFont in -lt1""... $ac_c" 1>&6
1442 echo "configure:1443: checking for T1_LoadFont in -lt1" >&5
1443 ac_lib_var=`echo t1'_'T1_LoadFont | sed 'y%./+-%__p_%'`
1444 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1445 echo $ac_n "(cached) $ac_c" 1>&6
1447 ac_save_LIBS="$LIBS"
1449 cat > conftest.$ac_ext <<EOF
1450 #line 1451 "configure"
1451 #include "confdefs.h"
1452 /* Override any gcc2 internal prototype to avoid an error. */
1453 /* We use char because int might match the return type of a gcc2
1454 builtin and then its argument prototype would still apply. */
1461 if { (eval echo configure:1462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1463 eval "ac_cv_lib_$ac_lib_var=yes"
1465 echo "configure: failed program was:" >&5
1466 cat conftest.$ac_ext >&5
1468 eval "ac_cv_lib_$ac_lib_var=no"
1471 LIBS="$ac_save_LIBS"
1474 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1475 echo "$ac_t""yes" 1>&6
1476 ac_tr_lib=HAVE_LIB`echo t1 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1477 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1478 cat >> confdefs.h <<EOF
1479 #define $ac_tr_lib 1
1485 echo "$ac_t""no" 1>&6
1486 DISABLEPDF2SWF=true;
1487 MISSINGLIBS="${MISSINGLIBS} T1lib"
1494 # If we find X, set shell vars x_includes and x_libraries to the
1495 # paths, otherwise set no_x=yes.
1496 # Uses ac_ vars as temps to allow command line to override cache and checks.
1497 # --without-x overrides everything else, but does not touch the cache.
1498 echo $ac_n "checking for X""... $ac_c" 1>&6
1499 echo "configure:1500: checking for X" >&5
1501 # Check whether --with-x or --without-x was given.
1502 if test "${with_x+set}" = set; then
1507 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
1508 if test "x$with_x" = xno; then
1509 # The user explicitly disabled X.
1512 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
1513 # Both variables are already set.
1516 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1517 echo $ac_n "(cached) $ac_c" 1>&6
1519 # One or both of the vars are not set, and there is no cached value.
1520 ac_x_includes=NO ac_x_libraries=NO
1522 if mkdir conftestdir; then
1524 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1525 cat > Imakefile <<'EOF'
1527 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1529 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
1530 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1531 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1532 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1533 for ac_extension in a so sl; do
1534 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
1535 test -f $ac_im_libdir/libX11.$ac_extension; then
1536 ac_im_usrlibdir=$ac_im_libdir; break
1539 # Screen out bogus values from the imake configuration. They are
1540 # bogus both because they are the default anyway, and because
1541 # using them would break gcc on systems where it needs fixed includes.
1542 case "$ac_im_incroot" in
1544 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
1546 case "$ac_im_usrlibdir" in
1548 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
1555 if test "$ac_x_includes" = NO; then
1556 # Guess where to find include files, by looking for this one X11 .h file.
1557 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
1559 # First, try using that file with no special directory specified.
1560 cat > conftest.$ac_ext <<EOF
1561 #line 1562 "configure"
1562 #include "confdefs.h"
1563 #include <$x_direct_test_include>
1565 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1566 { (eval echo configure:1567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1567 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1568 if test -z "$ac_err"; then
1570 # We can compile using X headers with no special include directory.
1574 echo "configure: failed program was:" >&5
1575 cat conftest.$ac_ext >&5
1577 # Look for the header file in a standard set of common directories.
1578 # Check X11 before X11Rn because it is often a symlink to the current release.
1581 /usr/X11R6/include \
1582 /usr/X11R5/include \
1583 /usr/X11R4/include \
1586 /usr/include/X11R6 \
1587 /usr/include/X11R5 \
1588 /usr/include/X11R4 \
1590 /usr/local/X11/include \
1591 /usr/local/X11R6/include \
1592 /usr/local/X11R5/include \
1593 /usr/local/X11R4/include \
1595 /usr/local/include/X11 \
1596 /usr/local/include/X11R6 \
1597 /usr/local/include/X11R5 \
1598 /usr/local/include/X11R4 \
1602 /usr/XFree86/include/X11 \
1605 /usr/local/include \
1606 /usr/unsupported/include \
1607 /usr/athena/include \
1608 /usr/local/x11r5/include \
1609 /usr/lpp/Xamples/include \
1611 /usr/openwin/include \
1612 /usr/openwin/share/include \
1615 if test -r "$ac_dir/$x_direct_test_include"; then
1616 ac_x_includes=$ac_dir
1622 fi # $ac_x_includes = NO
1624 if test "$ac_x_libraries" = NO; then
1625 # Check for the libraries.
1627 test -z "$x_direct_test_library" && x_direct_test_library=Xt
1628 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1630 # See if we find them without any special options.
1631 # Don't add to $LIBS permanently.
1632 ac_save_LIBS="$LIBS"
1633 LIBS="-l$x_direct_test_library $LIBS"
1634 cat > conftest.$ac_ext <<EOF
1635 #line 1636 "configure"
1636 #include "confdefs.h"
1639 ${x_direct_test_function}()
1642 if { (eval echo configure:1643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1644 LIBS="$ac_save_LIBS"
1645 # We can link X programs with no special library path.
1648 echo "configure: failed program was:" >&5
1649 cat conftest.$ac_ext >&5
1651 LIBS="$ac_save_LIBS"
1652 # First see if replacing the include by lib works.
1653 # Check X11 before X11Rn because it is often a symlink to the current release.
1654 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1665 /usr/local/X11/lib \
1666 /usr/local/X11R6/lib \
1667 /usr/local/X11R5/lib \
1668 /usr/local/X11R4/lib \
1670 /usr/local/lib/X11 \
1671 /usr/local/lib/X11R6 \
1672 /usr/local/lib/X11R5 \
1673 /usr/local/lib/X11R4 \
1677 /usr/XFree86/lib/X11 \
1681 /usr/unsupported/lib \
1683 /usr/local/x11r5/lib \
1684 /usr/lpp/Xamples/lib \
1688 /usr/openwin/share/lib \
1691 for ac_extension in a so sl; do
1692 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1693 ac_x_libraries=$ac_dir
1700 fi # $ac_x_libraries = NO
1702 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1703 # Didn't find X anywhere. Cache the known absence of X.
1704 ac_cv_have_x="have_x=no"
1706 # Record where we found X for the cache.
1707 ac_cv_have_x="have_x=yes \
1708 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1712 eval "$ac_cv_have_x"
1715 if test "$have_x" != yes; then
1716 echo "$ac_t""$have_x" 1>&6
1719 # If each of the values was on the command line, it overrides each guess.
1720 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1721 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1722 # Update the cache value to reflect the command line values.
1723 ac_cv_have_x="have_x=yes \
1724 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1725 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1729 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1731 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1732 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1733 echo "configure:1734: checking for $ac_hdr that defines DIR" >&5
1734 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1735 echo $ac_n "(cached) $ac_c" 1>&6
1737 cat > conftest.$ac_ext <<EOF
1738 #line 1739 "configure"
1739 #include "confdefs.h"
1740 #include <sys/types.h>
1746 if { (eval echo configure:1747: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1748 eval "ac_cv_header_dirent_$ac_safe=yes"
1750 echo "configure: failed program was:" >&5
1751 cat conftest.$ac_ext >&5
1753 eval "ac_cv_header_dirent_$ac_safe=no"
1757 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1758 echo "$ac_t""yes" 1>&6
1759 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1760 cat >> confdefs.h <<EOF
1761 #define $ac_tr_hdr 1
1763 ac_header_dirent=$ac_hdr; break
1765 echo "$ac_t""no" 1>&6
1768 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1769 if test $ac_header_dirent = dirent.h; then
1770 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1771 echo "configure:1772: checking for opendir in -ldir" >&5
1772 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1773 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1774 echo $ac_n "(cached) $ac_c" 1>&6
1776 ac_save_LIBS="$LIBS"
1778 cat > conftest.$ac_ext <<EOF
1779 #line 1780 "configure"
1780 #include "confdefs.h"
1781 /* Override any gcc2 internal prototype to avoid an error. */
1782 /* We use char because int might match the return type of a gcc2
1783 builtin and then its argument prototype would still apply. */
1790 if { (eval echo configure:1791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1792 eval "ac_cv_lib_$ac_lib_var=yes"
1794 echo "configure: failed program was:" >&5
1795 cat conftest.$ac_ext >&5
1797 eval "ac_cv_lib_$ac_lib_var=no"
1800 LIBS="$ac_save_LIBS"
1803 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1804 echo "$ac_t""yes" 1>&6
1807 echo "$ac_t""no" 1>&6
1811 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1812 echo "configure:1813: checking for opendir in -lx" >&5
1813 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1814 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1815 echo $ac_n "(cached) $ac_c" 1>&6
1817 ac_save_LIBS="$LIBS"
1819 cat > conftest.$ac_ext <<EOF
1820 #line 1821 "configure"
1821 #include "confdefs.h"
1822 /* Override any gcc2 internal prototype to avoid an error. */
1823 /* We use char because int might match the return type of a gcc2
1824 builtin and then its argument prototype would still apply. */
1831 if { (eval echo configure:1832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1833 eval "ac_cv_lib_$ac_lib_var=yes"
1835 echo "configure: failed program was:" >&5
1836 cat conftest.$ac_ext >&5
1838 eval "ac_cv_lib_$ac_lib_var=no"
1841 LIBS="$ac_save_LIBS"
1844 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1845 echo "$ac_t""yes" 1>&6
1848 echo "$ac_t""no" 1>&6
1853 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1854 echo "configure:1855: checking for ANSI C header files" >&5
1855 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1856 echo $ac_n "(cached) $ac_c" 1>&6
1858 cat > conftest.$ac_ext <<EOF
1859 #line 1860 "configure"
1860 #include "confdefs.h"
1866 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1867 { (eval echo configure:1868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1868 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1869 if test -z "$ac_err"; then
1871 ac_cv_header_stdc=yes
1874 echo "configure: failed program was:" >&5
1875 cat conftest.$ac_ext >&5
1877 ac_cv_header_stdc=no
1881 if test $ac_cv_header_stdc = yes; then
1882 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1883 cat > conftest.$ac_ext <<EOF
1884 #line 1885 "configure"
1885 #include "confdefs.h"
1888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1889 egrep "memchr" >/dev/null 2>&1; then
1893 ac_cv_header_stdc=no
1899 if test $ac_cv_header_stdc = yes; then
1900 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1901 cat > conftest.$ac_ext <<EOF
1902 #line 1903 "configure"
1903 #include "confdefs.h"
1906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1907 egrep "free" >/dev/null 2>&1; then
1911 ac_cv_header_stdc=no
1917 if test $ac_cv_header_stdc = yes; then
1918 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1919 if test "$cross_compiling" = yes; then
1922 cat > conftest.$ac_ext <<EOF
1923 #line 1924 "configure"
1924 #include "confdefs.h"
1926 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1927 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1928 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1929 int main () { int i; for (i = 0; i < 256; i++)
1930 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1934 if { (eval echo configure:1935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1938 echo "configure: failed program was:" >&5
1939 cat conftest.$ac_ext >&5
1941 ac_cv_header_stdc=no
1949 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1950 if test $ac_cv_header_stdc = yes; then
1951 cat >> confdefs.h <<\EOF
1952 #define STDC_HEADERS 1
1957 for ac_hdr in math.h fcntl.h limits.h malloc.h unistd.h memory.h zlib.h jpeglib.h t1lib.h
1959 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1960 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1961 echo "configure:1962: checking for $ac_hdr" >&5
1962 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1963 echo $ac_n "(cached) $ac_c" 1>&6
1965 cat > conftest.$ac_ext <<EOF
1966 #line 1967 "configure"
1967 #include "confdefs.h"
1970 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1971 { (eval echo configure:1972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1972 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1973 if test -z "$ac_err"; then
1975 eval "ac_cv_header_$ac_safe=yes"
1978 echo "configure: failed program was:" >&5
1979 cat conftest.$ac_ext >&5
1981 eval "ac_cv_header_$ac_safe=no"
1985 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1986 echo "$ac_t""yes" 1>&6
1987 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1988 cat >> confdefs.h <<EOF
1989 #define $ac_tr_hdr 1
1993 echo "$ac_t""no" 1>&6
1998 if test "x${ac_cv_header_jpeglib_h}" != "xyes"; then
1999 DISABLEPDF2SWF=true;
2000 DISABLEJPEG2SWF=true;
2001 MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
2003 if test "x${ac_cv_header_t1lib_h}" != "xyes"; then
2004 DISABLEPDF2SWF=true;
2005 MISSINGLIBS="${MISSINGLIBS} t1lib.h"
2008 cat >> confdefs.h <<EOF
2009 #define PACKAGE "$PACKAGE"
2012 cat >> confdefs.h <<EOF
2013 #define VERSION "$VERSION"
2022 echo $ac_n "checking for working const""... $ac_c" 1>&6
2023 echo "configure:2024: checking for working const" >&5
2024 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2025 echo $ac_n "(cached) $ac_c" 1>&6
2027 cat > conftest.$ac_ext <<EOF
2028 #line 2029 "configure"
2029 #include "confdefs.h"
2033 /* Ultrix mips cc rejects this. */
2034 typedef int charset[2]; const charset x;
2035 /* SunOS 4.1.1 cc rejects this. */
2036 char const *const *ccp;
2038 /* NEC SVR4.0.2 mips cc rejects this. */
2039 struct point {int x, y;};
2040 static struct point const zero = {0,0};
2041 /* AIX XL C 1.02.0.0 rejects this.
2042 It does not let you subtract one const X* pointer from another in an arm
2043 of an if-expression whose if-part is not a constant expression */
2044 const char *g = "string";
2045 ccp = &g + (g ? g-g : 0);
2046 /* HPUX 7.0 cc rejects these. */
2049 ccp = (char const *const *) p;
2050 { /* SCO 3.2v4 cc rejects this. */
2052 char const *s = 0 ? (char *) 0 : (char const *) 0;
2056 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2058 const int *foo = &x[0];
2061 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2062 typedef const int *iptr;
2066 { /* AIX XL C 1.02.0.0 rejects this saying
2067 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2068 struct s { int j; const int *ap[3]; };
2069 struct s *b; b->j = 5;
2071 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2077 if { (eval echo configure:2078: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2081 echo "configure: failed program was:" >&5
2082 cat conftest.$ac_ext >&5
2089 echo "$ac_t""$ac_cv_c_const" 1>&6
2090 if test $ac_cv_c_const = no; then
2091 cat >> confdefs.h <<\EOF
2097 echo $ac_n "checking for inline""... $ac_c" 1>&6
2098 echo "configure:2099: checking for inline" >&5
2099 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2100 echo $ac_n "(cached) $ac_c" 1>&6
2103 for ac_kw in inline __inline__ __inline; do
2104 cat > conftest.$ac_ext <<EOF
2105 #line 2106 "configure"
2106 #include "confdefs.h"
2112 if { (eval echo configure:2113: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2114 ac_cv_c_inline=$ac_kw; break
2116 echo "configure: failed program was:" >&5
2117 cat conftest.$ac_ext >&5
2124 echo "$ac_t""$ac_cv_c_inline" 1>&6
2125 case "$ac_cv_c_inline" in
2127 no) cat >> confdefs.h <<\EOF
2131 *) cat >> confdefs.h <<EOF
2132 #define inline $ac_cv_c_inline
2137 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2138 echo "configure:2139: checking for off_t" >&5
2139 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2140 echo $ac_n "(cached) $ac_c" 1>&6
2142 cat > conftest.$ac_ext <<EOF
2143 #line 2144 "configure"
2144 #include "confdefs.h"
2145 #include <sys/types.h>
2151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2152 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2154 ac_cv_type_off_t=yes
2162 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2163 if test $ac_cv_type_off_t = no; then
2164 cat >> confdefs.h <<\EOF
2170 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2171 echo "configure:2172: checking for size_t" >&5
2172 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2173 echo $ac_n "(cached) $ac_c" 1>&6
2175 cat > conftest.$ac_ext <<EOF
2176 #line 2177 "configure"
2177 #include "confdefs.h"
2178 #include <sys/types.h>
2184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2185 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2187 ac_cv_type_size_t=yes
2190 ac_cv_type_size_t=no
2195 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2196 if test $ac_cv_type_size_t = no; then
2197 cat >> confdefs.h <<\EOF
2198 #define size_t unsigned
2203 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2204 echo "configure:2205: checking whether struct tm is in sys/time.h or time.h" >&5
2205 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2206 echo $ac_n "(cached) $ac_c" 1>&6
2208 cat > conftest.$ac_ext <<EOF
2209 #line 2210 "configure"
2210 #include "confdefs.h"
2211 #include <sys/types.h>
2214 struct tm *tp; tp->tm_sec;
2217 if { (eval echo configure:2218: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2219 ac_cv_struct_tm=time.h
2221 echo "configure: failed program was:" >&5
2222 cat conftest.$ac_ext >&5
2224 ac_cv_struct_tm=sys/time.h
2229 echo "$ac_t""$ac_cv_struct_tm" 1>&6
2230 if test $ac_cv_struct_tm = sys/time.h; then
2231 cat >> confdefs.h <<\EOF
2232 #define TM_IN_SYS_TIME 1
2238 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
2239 echo "configure:2240: checking for 8-bit clean memcmp" >&5
2240 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
2241 echo $ac_n "(cached) $ac_c" 1>&6
2243 if test "$cross_compiling" = yes; then
2244 ac_cv_func_memcmp_clean=no
2246 cat > conftest.$ac_ext <<EOF
2247 #line 2248 "configure"
2248 #include "confdefs.h"
2252 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
2253 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
2257 if { (eval echo configure:2258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2259 ac_cv_func_memcmp_clean=yes
2261 echo "configure: failed program was:" >&5
2262 cat conftest.$ac_ext >&5
2264 ac_cv_func_memcmp_clean=no
2271 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
2272 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
2274 for ac_hdr in unistd.h
2276 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2277 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2278 echo "configure:2279: checking for $ac_hdr" >&5
2279 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2280 echo $ac_n "(cached) $ac_c" 1>&6
2282 cat > conftest.$ac_ext <<EOF
2283 #line 2284 "configure"
2284 #include "confdefs.h"
2287 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2288 { (eval echo configure:2289: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2289 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2290 if test -z "$ac_err"; then
2292 eval "ac_cv_header_$ac_safe=yes"
2295 echo "configure: failed program was:" >&5
2296 cat conftest.$ac_ext >&5
2298 eval "ac_cv_header_$ac_safe=no"
2302 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2303 echo "$ac_t""yes" 1>&6
2304 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2305 cat >> confdefs.h <<EOF
2306 #define $ac_tr_hdr 1
2310 echo "$ac_t""no" 1>&6
2314 for ac_func in getpagesize
2316 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2317 echo "configure:2318: checking for $ac_func" >&5
2318 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2319 echo $ac_n "(cached) $ac_c" 1>&6
2321 cat > conftest.$ac_ext <<EOF
2322 #line 2323 "configure"
2323 #include "confdefs.h"
2324 /* System header to define __stub macros and hopefully few prototypes,
2325 which can conflict with char $ac_func(); below. */
2327 /* Override any gcc2 internal prototype to avoid an error. */
2328 /* We use char because int might match the return type of a gcc2
2329 builtin and then its argument prototype would still apply. */
2334 /* The GNU C library defines this for functions which it implements
2335 to always fail with ENOSYS. Some functions are actually named
2336 something starting with __ and the normal name is an alias. */
2337 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2345 if { (eval echo configure:2346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2347 eval "ac_cv_func_$ac_func=yes"
2349 echo "configure: failed program was:" >&5
2350 cat conftest.$ac_ext >&5
2352 eval "ac_cv_func_$ac_func=no"
2357 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2358 echo "$ac_t""yes" 1>&6
2359 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2360 cat >> confdefs.h <<EOF
2361 #define $ac_tr_func 1
2365 echo "$ac_t""no" 1>&6
2369 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2370 echo "configure:2371: checking for working mmap" >&5
2371 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2372 echo $ac_n "(cached) $ac_c" 1>&6
2374 if test "$cross_compiling" = yes; then
2375 ac_cv_func_mmap_fixed_mapped=no
2377 cat > conftest.$ac_ext <<EOF
2378 #line 2379 "configure"
2379 #include "confdefs.h"
2381 /* Thanks to Mike Haertel and Jim Avera for this test.
2382 Here is a matrix of mmap possibilities:
2383 mmap private not fixed
2384 mmap private fixed at somewhere currently unmapped
2385 mmap private fixed at somewhere already mapped
2386 mmap shared not fixed
2387 mmap shared fixed at somewhere currently unmapped
2388 mmap shared fixed at somewhere already mapped
2389 For private mappings, we should verify that changes cannot be read()
2390 back from the file, nor mmap's back from the file at a different
2391 address. (There have been systems where private was not correctly
2392 implemented like the infamous i386 svr4.0, and systems where the
2393 VM page cache was not coherent with the filesystem buffer cache
2394 like early versions of FreeBSD and possibly contemporary NetBSD.)
2395 For shared mappings, we should conversely verify that changes get
2396 propogated back to all the places they're supposed to be.
2398 Grep wants private fixed already mapped.
2399 The main things grep needs to know about mmap are:
2400 * does it exist and is it safe to write into the mmap'd area
2401 * how to use it (BSD variants) */
2402 #include <sys/types.h>
2404 #include <sys/mman.h>
2406 /* This mess was copied from the GNU getpagesize.h. */
2407 #ifndef HAVE_GETPAGESIZE
2408 # ifdef HAVE_UNISTD_H
2409 # include <unistd.h>
2412 /* Assume that all systems that can run configure have sys/param.h. */
2413 # ifndef HAVE_SYS_PARAM_H
2414 # define HAVE_SYS_PARAM_H 1
2417 # ifdef _SC_PAGESIZE
2418 # define getpagesize() sysconf(_SC_PAGESIZE)
2419 # else /* no _SC_PAGESIZE */
2420 # ifdef HAVE_SYS_PARAM_H
2421 # include <sys/param.h>
2422 # ifdef EXEC_PAGESIZE
2423 # define getpagesize() EXEC_PAGESIZE
2424 # else /* no EXEC_PAGESIZE */
2426 # define getpagesize() NBPG * CLSIZE
2429 # endif /* no CLSIZE */
2430 # else /* no NBPG */
2432 # define getpagesize() NBPC
2433 # else /* no NBPC */
2435 # define getpagesize() PAGESIZE
2436 # endif /* PAGESIZE */
2437 # endif /* no NBPC */
2438 # endif /* no NBPG */
2439 # endif /* no EXEC_PAGESIZE */
2440 # else /* no HAVE_SYS_PARAM_H */
2441 # define getpagesize() 8192 /* punt totally */
2442 # endif /* no HAVE_SYS_PARAM_H */
2443 # endif /* no _SC_PAGESIZE */
2445 #endif /* no HAVE_GETPAGESIZE */
2448 extern "C" { void *malloc(unsigned); }
2456 char *data, *data2, *data3;
2460 pagesize = getpagesize();
2463 * First, make a file with some known garbage in it.
2465 data = malloc(pagesize);
2468 for (i = 0; i < pagesize; ++i)
2469 *(data + i) = rand();
2471 fd = creat("conftestmmap", 0600);
2474 if (write(fd, data, pagesize) != pagesize)
2479 * Next, try to mmap the file at a fixed address which
2480 * already has something else allocated at it. If we can,
2481 * also make sure that we see the same garbage.
2483 fd = open("conftestmmap", O_RDWR);
2486 data2 = malloc(2 * pagesize);
2489 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2490 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2491 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2493 for (i = 0; i < pagesize; ++i)
2494 if (*(data + i) != *(data2 + i))
2498 * Finally, make sure that changes to the mapped area
2499 * do not percolate back to the file as seen by read().
2500 * (This is a bug on some variants of i386 svr4.0.)
2502 for (i = 0; i < pagesize; ++i)
2503 *(data2 + i) = *(data2 + i) + 1;
2504 data3 = malloc(pagesize);
2507 if (read(fd, data3, pagesize) != pagesize)
2509 for (i = 0; i < pagesize; ++i)
2510 if (*(data + i) != *(data3 + i))
2513 unlink("conftestmmap");
2518 if { (eval echo configure:2519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2520 ac_cv_func_mmap_fixed_mapped=yes
2522 echo "configure: failed program was:" >&5
2523 cat conftest.$ac_ext >&5
2525 ac_cv_func_mmap_fixed_mapped=no
2532 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2533 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2534 cat >> confdefs.h <<\EOF
2540 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2541 echo "configure:2542: checking for vprintf" >&5
2542 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2543 echo $ac_n "(cached) $ac_c" 1>&6
2545 cat > conftest.$ac_ext <<EOF
2546 #line 2547 "configure"
2547 #include "confdefs.h"
2548 /* System header to define __stub macros and hopefully few prototypes,
2549 which can conflict with char vprintf(); below. */
2551 /* Override any gcc2 internal prototype to avoid an error. */
2552 /* We use char because int might match the return type of a gcc2
2553 builtin and then its argument prototype would still apply. */
2558 /* The GNU C library defines this for functions which it implements
2559 to always fail with ENOSYS. Some functions are actually named
2560 something starting with __ and the normal name is an alias. */
2561 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2569 if { (eval echo configure:2570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2571 eval "ac_cv_func_vprintf=yes"
2573 echo "configure: failed program was:" >&5
2574 cat conftest.$ac_ext >&5
2576 eval "ac_cv_func_vprintf=no"
2581 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2582 echo "$ac_t""yes" 1>&6
2583 cat >> confdefs.h <<\EOF
2584 #define HAVE_VPRINTF 1
2588 echo "$ac_t""no" 1>&6
2591 if test "$ac_cv_func_vprintf" != yes; then
2592 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2593 echo "configure:2594: checking for _doprnt" >&5
2594 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2595 echo $ac_n "(cached) $ac_c" 1>&6
2597 cat > conftest.$ac_ext <<EOF
2598 #line 2599 "configure"
2599 #include "confdefs.h"
2600 /* System header to define __stub macros and hopefully few prototypes,
2601 which can conflict with char _doprnt(); below. */
2603 /* Override any gcc2 internal prototype to avoid an error. */
2604 /* We use char because int might match the return type of a gcc2
2605 builtin and then its argument prototype would still apply. */
2610 /* The GNU C library defines this for functions which it implements
2611 to always fail with ENOSYS. Some functions are actually named
2612 something starting with __ and the normal name is an alias. */
2613 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2621 if { (eval echo configure:2622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2623 eval "ac_cv_func__doprnt=yes"
2625 echo "configure: failed program was:" >&5
2626 cat conftest.$ac_ext >&5
2628 eval "ac_cv_func__doprnt=no"
2633 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2634 echo "$ac_t""yes" 1>&6
2635 cat >> confdefs.h <<\EOF
2636 #define HAVE_DOPRNT 1
2640 echo "$ac_t""no" 1>&6
2645 for ac_func in getcwd putenv socket strcspn strdup strerror strstr
2647 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2648 echo "configure:2649: checking for $ac_func" >&5
2649 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2650 echo $ac_n "(cached) $ac_c" 1>&6
2652 cat > conftest.$ac_ext <<EOF
2653 #line 2654 "configure"
2654 #include "confdefs.h"
2655 /* System header to define __stub macros and hopefully few prototypes,
2656 which can conflict with char $ac_func(); below. */
2658 /* Override any gcc2 internal prototype to avoid an error. */
2659 /* We use char because int might match the return type of a gcc2
2660 builtin and then its argument prototype would still apply. */
2665 /* The GNU C library defines this for functions which it implements
2666 to always fail with ENOSYS. Some functions are actually named
2667 something starting with __ and the normal name is an alias. */
2668 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2676 if { (eval echo configure:2677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2678 eval "ac_cv_func_$ac_func=yes"
2680 echo "configure: failed program was:" >&5
2681 cat conftest.$ac_ext >&5
2683 eval "ac_cv_func_$ac_func=no"
2688 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2689 echo "$ac_t""yes" 1>&6
2690 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2691 cat >> confdefs.h <<EOF
2692 #define $ac_tr_func 1
2696 echo "$ac_t""no" 1>&6
2701 export JPEG2SWF='jpeg2swf$(EXEEXT)'
2702 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
2703 echo "***************************************************"
2704 echo "The following headers/libraries are missing: " ${MISSINGLIBS}
2705 echo "Disabling pdf2swf tool..."
2706 rm -f pdf2swf/Makefile
2707 echo all: > pdf2swf/Makefile
2708 echo install: >> pdf2swf/Makefile
2709 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
2710 echo "Disabling jpeg2swf tool..."
2713 echo "***************************************************"
2714 FILES="./release Makefile lib/Makefile src/Makefile"
2716 FILES="./release Makefile lib/Makefile src/Makefile pdf2swf/Makefile pdf2swf/xpdf/Makefile pdf2swf/fonts/Makefile"
2721 cat > confcache <<\EOF
2722 # This file is a shell script that caches the results of configure
2723 # tests run on this system so they can be shared between configure
2724 # scripts and configure runs. It is not useful on other systems.
2725 # If it contains results you don't want to keep, you may remove or edit it.
2727 # By default, configure uses ./config.cache as the cache file,
2728 # creating it if it does not exist already. You can give configure
2729 # the --cache-file=FILE option to use a different cache file; that is
2730 # what configure does when it calls configure scripts in
2731 # subdirectories, so they share the cache.
2732 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2733 # config.status only pays attention to the cache file if you give it the
2734 # --recheck option to rerun configure.
2737 # The following way of writing the cache mishandles newlines in values,
2738 # but we know of no workaround that is simple, portable, and efficient.
2739 # So, don't put newlines in cache variables' values.
2740 # Ultrix sh set writes to stderr and can't be redirected directly,
2741 # and sets the high bit in the cache file unless we assign to the vars.
2743 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2745 # `set' does not quote correctly, so add quotes (double-quote substitution
2746 # turns \\\\ into \\, and sed turns \\ into \).
2748 -e "s/'/'\\\\''/g" \
2749 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2752 # `set' quotes correctly as required by POSIX, so do not add quotes.
2753 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2756 if cmp -s $cache_file confcache; then
2759 if test -w $cache_file; then
2760 echo "updating cache $cache_file"
2761 cat confcache > $cache_file
2763 echo "not updating unwritable cache $cache_file"
2768 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2770 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2771 # Let make expand exec_prefix.
2772 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2774 # Any assignment to VPATH causes Sun make to only execute
2775 # the first set of double-colon rules, so remove it if not needed.
2776 # If there is a colon in the path, we need to keep it.
2777 if test "x$srcdir" = x.; then
2778 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2781 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2783 DEFS=-DHAVE_CONFIG_H
2785 # Without the "./", some shells look in PATH for config.status.
2786 : ${CONFIG_STATUS=./config.status}
2788 echo creating $CONFIG_STATUS
2789 rm -f $CONFIG_STATUS
2790 cat > $CONFIG_STATUS <<EOF
2792 # Generated automatically by configure.
2793 # Run this file to recreate the current configuration.
2794 # This directory was configured as follows,
2795 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2797 # $0 $ac_configure_args
2799 # Compiler output produced by configure, useful for debugging
2800 # configure, is in ./config.log if it exists.
2802 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2805 case "\$ac_option" in
2806 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2807 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2808 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2809 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2810 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2812 -help | --help | --hel | --he | --h)
2813 echo "\$ac_cs_usage"; exit 0 ;;
2814 *) echo "\$ac_cs_usage"; exit 1 ;;
2818 ac_given_srcdir=$srcdir
2819 ac_given_INSTALL="$INSTALL"
2821 trap 'rm -fr `echo "${FILES} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2823 cat >> $CONFIG_STATUS <<EOF
2825 # Protect against being on the right side of a sed subst in config.status.
2826 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2827 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2831 s%@CFLAGS@%$CFLAGS%g
2832 s%@CPPFLAGS@%$CPPFLAGS%g
2833 s%@CXXFLAGS@%$CXXFLAGS%g
2834 s%@FFLAGS@%$FFLAGS%g
2836 s%@LDFLAGS@%$LDFLAGS%g
2838 s%@exec_prefix@%$exec_prefix%g
2839 s%@prefix@%$prefix%g
2840 s%@program_transform_name@%$program_transform_name%g
2841 s%@bindir@%$bindir%g
2842 s%@sbindir@%$sbindir%g
2843 s%@libexecdir@%$libexecdir%g
2844 s%@datadir@%$datadir%g
2845 s%@sysconfdir@%$sysconfdir%g
2846 s%@sharedstatedir@%$sharedstatedir%g
2847 s%@localstatedir@%$localstatedir%g
2848 s%@libdir@%$libdir%g
2849 s%@includedir@%$includedir%g
2850 s%@oldincludedir@%$oldincludedir%g
2851 s%@infodir@%$infodir%g
2852 s%@mandir@%$mandir%g
2857 s%@RANLIB@%$RANLIB%g
2858 s%@SET_MAKE@%$SET_MAKE%g
2859 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2860 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2861 s%@INSTALL_DATA@%$INSTALL_DATA%g
2863 s%@EXEEXT@%$EXEEXT%g
2864 s%@PACKAGE@%$PACKAGE%g
2865 s%@VERSION@%$VERSION%g
2866 s%@HAVE_UNISTD_H@%$HAVE_UNISTD_H%g
2867 s%@LIBOBJS@%$LIBOBJS%g
2868 s%@JPEG2SWF@%$JPEG2SWF%g
2873 cat >> $CONFIG_STATUS <<\EOF
2875 # Split the substitutions into bite-sized pieces for seds with
2876 # small command number limits, like on Digital OSF/1 and HP-UX.
2877 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2878 ac_file=1 # Number of current file.
2879 ac_beg=1 # First line for current file.
2880 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2883 while $ac_more_lines; do
2884 if test $ac_beg -gt 1; then
2885 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2887 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2889 if test ! -s conftest.s$ac_file; then
2891 rm -f conftest.s$ac_file
2893 if test -z "$ac_sed_cmds"; then
2894 ac_sed_cmds="sed -f conftest.s$ac_file"
2896 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2898 ac_file=`expr $ac_file + 1`
2900 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2903 if test -z "$ac_sed_cmds"; then
2908 cat >> $CONFIG_STATUS <<EOF
2910 CONFIG_FILES=\${CONFIG_FILES-"${FILES}"}
2912 cat >> $CONFIG_STATUS <<\EOF
2913 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2914 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2916 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2917 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2918 *) ac_file_in="${ac_file}.in" ;;
2921 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2923 # Remove last slash and all that follows it. Not all systems have dirname.
2924 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2925 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2926 # The file is in a subdirectory.
2927 test ! -d "$ac_dir" && mkdir "$ac_dir"
2928 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2929 # A "../" for each directory in $ac_dir_suffix.
2930 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2932 ac_dir_suffix= ac_dots=
2935 case "$ac_given_srcdir" in
2937 if test -z "$ac_dots"; then top_srcdir=.
2938 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2939 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2941 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2942 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2945 case "$ac_given_INSTALL" in
2946 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2947 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2950 echo creating "$ac_file"
2952 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2954 *Makefile*) ac_comsub="1i\\
2955 # $configure_input" ;;
2959 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2961 s%@configure_input@%$configure_input%g
2962 s%@srcdir@%$srcdir%g
2963 s%@top_srcdir@%$top_srcdir%g
2964 s%@INSTALL@%$INSTALL%g
2965 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2969 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2970 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2972 # ac_d sets the value in "#define NAME VALUE" lines.
2973 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2974 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2977 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2978 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2979 ac_uB='\([ ]\)%\1#\2define\3'
2982 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2983 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2984 ac_eB='$%\1#\2define\3'
2988 if test "${CONFIG_HEADERS+set}" != set; then
2990 cat >> $CONFIG_STATUS <<EOF
2991 CONFIG_HEADERS="config.h"
2993 cat >> $CONFIG_STATUS <<\EOF
2995 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2996 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2998 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2999 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3000 *) ac_file_in="${ac_file}.in" ;;
3003 echo creating $ac_file
3005 rm -f conftest.frag conftest.in conftest.out
3006 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3007 cat $ac_file_inputs > conftest.in
3011 # Transform confdefs.h into a sed script conftest.vals that substitutes
3012 # the proper values into config.h.in to produce config.h. And first:
3013 # Protect against being on the right side of a sed subst in config.status.
3014 # Protect against being in an unquoted here document in config.status.
3016 cat > conftest.hdr <<\EOF
3019 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3023 sed -n -f conftest.hdr confdefs.h > conftest.vals
3026 # This sed command replaces #undef with comments. This is necessary, for
3027 # example, in the case of _POSIX_SOURCE, which is predefined and required
3028 # on some systems where configure will not decide to define it.
3029 cat >> conftest.vals <<\EOF
3030 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3033 # Break up conftest.vals because some shells have a limit on
3034 # the size of here documents, and old seds have small limits too.
3039 ac_lines=`grep -c . conftest.vals`
3040 # grep -c gives empty output for an empty file on some AIX systems.
3041 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3042 # Write a limited-size here document to conftest.frag.
3043 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3044 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3046 sed -f conftest.frag conftest.in > conftest.out
3048 mv conftest.out conftest.in
3050 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3052 mv conftest.tail conftest.vals
3056 cat >> $CONFIG_STATUS <<\EOF
3057 rm -f conftest.frag conftest.h
3058 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3059 cat conftest.in >> conftest.h
3061 if cmp -s $ac_file conftest.h 2>/dev/null; then
3062 echo "$ac_file is unchanged"
3065 # Remove last slash and all that follows it. Not all systems have dirname.
3066 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3067 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3068 # The file is in a subdirectory.
3069 test ! -d "$ac_dir" && mkdir "$ac_dir"
3072 mv conftest.h $ac_file
3077 cat >> $CONFIG_STATUS <<EOF
3080 cat >> $CONFIG_STATUS <<\EOF
3084 chmod +x $CONFIG_STATUS
3085 rm -fr confdefs* $ac_clean_files
3086 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1