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
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 crc32 in -lz""... $ac_c" 1>&6
1340 echo "configure:1341: checking for crc32 in -lz" >&5
1341 ac_lib_var=`echo z'_'crc32 | 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"
1391 echo $ac_n "checking for jpeg_write_raw_data in -ljpeg""... $ac_c" 1>&6
1392 echo "configure:1393: checking for jpeg_write_raw_data in -ljpeg" >&5
1393 ac_lib_var=`echo jpeg'_'jpeg_write_raw_data | sed 'y%./+-%__p_%'`
1394 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1395 echo $ac_n "(cached) $ac_c" 1>&6
1397 ac_save_LIBS="$LIBS"
1399 cat > conftest.$ac_ext <<EOF
1400 #line 1401 "configure"
1401 #include "confdefs.h"
1402 /* Override any gcc2 internal prototype to avoid an error. */
1403 /* We use char because int might match the return type of a gcc2
1404 builtin and then its argument prototype would still apply. */
1405 char jpeg_write_raw_data();
1408 jpeg_write_raw_data()
1411 if { (eval echo configure:1412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1413 eval "ac_cv_lib_$ac_lib_var=yes"
1415 echo "configure: failed program was:" >&5
1416 cat conftest.$ac_ext >&5
1418 eval "ac_cv_lib_$ac_lib_var=no"
1421 LIBS="$ac_save_LIBS"
1424 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1425 echo "$ac_t""yes" 1>&6
1426 ac_tr_lib=HAVE_LIB`echo jpeg | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1427 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1428 cat >> confdefs.h <<EOF
1429 #define $ac_tr_lib 1
1435 echo "$ac_t""no" 1>&6
1436 DISABLEPDF2SWF=true;
1437 DISABLEJPEG2SWF=true;
1438 MISSINGLIBS="${MISSINGLIBS} jpeglib"
1442 echo $ac_n "checking for T1_LoadFont in -lt1""... $ac_c" 1>&6
1443 echo "configure:1444: checking for T1_LoadFont in -lt1" >&5
1444 ac_lib_var=`echo t1'_'T1_LoadFont | sed 'y%./+-%__p_%'`
1445 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1446 echo $ac_n "(cached) $ac_c" 1>&6
1448 ac_save_LIBS="$LIBS"
1450 cat > conftest.$ac_ext <<EOF
1451 #line 1452 "configure"
1452 #include "confdefs.h"
1453 /* Override any gcc2 internal prototype to avoid an error. */
1454 /* We use char because int might match the return type of a gcc2
1455 builtin and then its argument prototype would still apply. */
1462 if { (eval echo configure:1463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1464 eval "ac_cv_lib_$ac_lib_var=yes"
1466 echo "configure: failed program was:" >&5
1467 cat conftest.$ac_ext >&5
1469 eval "ac_cv_lib_$ac_lib_var=no"
1472 LIBS="$ac_save_LIBS"
1475 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1476 echo "$ac_t""yes" 1>&6
1477 ac_tr_lib=HAVE_LIB`echo t1 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1478 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1479 cat >> confdefs.h <<EOF
1480 #define $ac_tr_lib 1
1486 echo "$ac_t""no" 1>&6
1487 DISABLEPDF2SWF=true;
1488 MISSINGLIBS="${MISSINGLIBS} T1lib"
1493 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
1494 echo "configure:1495: checking for pthread_create in -lpthread" >&5
1495 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
1496 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1497 echo $ac_n "(cached) $ac_c" 1>&6
1499 ac_save_LIBS="$LIBS"
1500 LIBS="-lpthread $LIBS"
1501 cat > conftest.$ac_ext <<EOF
1502 #line 1503 "configure"
1503 #include "confdefs.h"
1504 /* Override any gcc2 internal prototype to avoid an error. */
1505 /* We use char because int might match the return type of a gcc2
1506 builtin and then its argument prototype would still apply. */
1507 char pthread_create();
1513 if { (eval echo configure:1514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1515 eval "ac_cv_lib_$ac_lib_var=yes"
1517 echo "configure: failed program was:" >&5
1518 cat conftest.$ac_ext >&5
1520 eval "ac_cv_lib_$ac_lib_var=no"
1523 LIBS="$ac_save_LIBS"
1526 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1527 echo "$ac_t""yes" 1>&6
1528 ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1529 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1530 cat >> confdefs.h <<EOF
1531 #define $ac_tr_lib 1
1534 LIBS="-lpthread $LIBS"
1537 echo "$ac_t""no" 1>&6
1540 echo $ac_n "checking for XFlush in -lX11""... $ac_c" 1>&6
1541 echo "configure:1542: checking for XFlush in -lX11" >&5
1542 ac_lib_var=`echo X11'_'XFlush | sed 'y%./+-%__p_%'`
1543 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1544 echo $ac_n "(cached) $ac_c" 1>&6
1546 ac_save_LIBS="$LIBS"
1548 cat > conftest.$ac_ext <<EOF
1549 #line 1550 "configure"
1550 #include "confdefs.h"
1551 /* Override any gcc2 internal prototype to avoid an error. */
1552 /* We use char because int might match the return type of a gcc2
1553 builtin and then its argument prototype would still apply. */
1560 if { (eval echo configure:1561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1562 eval "ac_cv_lib_$ac_lib_var=yes"
1564 echo "configure: failed program was:" >&5
1565 cat conftest.$ac_ext >&5
1567 eval "ac_cv_lib_$ac_lib_var=no"
1570 LIBS="$ac_save_LIBS"
1573 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1574 echo "$ac_t""yes" 1>&6
1575 ac_tr_lib=HAVE_LIB`echo X11 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1576 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1577 cat >> confdefs.h <<EOF
1578 #define $ac_tr_lib 1
1584 echo "$ac_t""no" 1>&6
1589 # If we find X, set shell vars x_includes and x_libraries to the
1590 # paths, otherwise set no_x=yes.
1591 # Uses ac_ vars as temps to allow command line to override cache and checks.
1592 # --without-x overrides everything else, but does not touch the cache.
1593 echo $ac_n "checking for X""... $ac_c" 1>&6
1594 echo "configure:1595: checking for X" >&5
1596 # Check whether --with-x or --without-x was given.
1597 if test "${with_x+set}" = set; then
1602 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
1603 if test "x$with_x" = xno; then
1604 # The user explicitly disabled X.
1607 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
1608 # Both variables are already set.
1611 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1612 echo $ac_n "(cached) $ac_c" 1>&6
1614 # One or both of the vars are not set, and there is no cached value.
1615 ac_x_includes=NO ac_x_libraries=NO
1617 if mkdir conftestdir; then
1619 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1620 cat > Imakefile <<'EOF'
1622 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1624 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
1625 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1626 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1627 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1628 for ac_extension in a so sl; do
1629 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
1630 test -f $ac_im_libdir/libX11.$ac_extension; then
1631 ac_im_usrlibdir=$ac_im_libdir; break
1634 # Screen out bogus values from the imake configuration. They are
1635 # bogus both because they are the default anyway, and because
1636 # using them would break gcc on systems where it needs fixed includes.
1637 case "$ac_im_incroot" in
1639 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
1641 case "$ac_im_usrlibdir" in
1643 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
1650 if test "$ac_x_includes" = NO; then
1651 # Guess where to find include files, by looking for this one X11 .h file.
1652 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
1654 # First, try using that file with no special directory specified.
1655 cat > conftest.$ac_ext <<EOF
1656 #line 1657 "configure"
1657 #include "confdefs.h"
1658 #include <$x_direct_test_include>
1660 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1661 { (eval echo configure:1662: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1662 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1663 if test -z "$ac_err"; then
1665 # We can compile using X headers with no special include directory.
1669 echo "configure: failed program was:" >&5
1670 cat conftest.$ac_ext >&5
1672 # Look for the header file in a standard set of common directories.
1673 # Check X11 before X11Rn because it is often a symlink to the current release.
1676 /usr/X11R6/include \
1677 /usr/X11R5/include \
1678 /usr/X11R4/include \
1681 /usr/include/X11R6 \
1682 /usr/include/X11R5 \
1683 /usr/include/X11R4 \
1685 /usr/local/X11/include \
1686 /usr/local/X11R6/include \
1687 /usr/local/X11R5/include \
1688 /usr/local/X11R4/include \
1690 /usr/local/include/X11 \
1691 /usr/local/include/X11R6 \
1692 /usr/local/include/X11R5 \
1693 /usr/local/include/X11R4 \
1697 /usr/XFree86/include/X11 \
1700 /usr/local/include \
1701 /usr/unsupported/include \
1702 /usr/athena/include \
1703 /usr/local/x11r5/include \
1704 /usr/lpp/Xamples/include \
1706 /usr/openwin/include \
1707 /usr/openwin/share/include \
1710 if test -r "$ac_dir/$x_direct_test_include"; then
1711 ac_x_includes=$ac_dir
1717 fi # $ac_x_includes = NO
1719 if test "$ac_x_libraries" = NO; then
1720 # Check for the libraries.
1722 test -z "$x_direct_test_library" && x_direct_test_library=Xt
1723 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1725 # See if we find them without any special options.
1726 # Don't add to $LIBS permanently.
1727 ac_save_LIBS="$LIBS"
1728 LIBS="-l$x_direct_test_library $LIBS"
1729 cat > conftest.$ac_ext <<EOF
1730 #line 1731 "configure"
1731 #include "confdefs.h"
1734 ${x_direct_test_function}()
1737 if { (eval echo configure:1738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1739 LIBS="$ac_save_LIBS"
1740 # We can link X programs with no special library path.
1743 echo "configure: failed program was:" >&5
1744 cat conftest.$ac_ext >&5
1746 LIBS="$ac_save_LIBS"
1747 # First see if replacing the include by lib works.
1748 # Check X11 before X11Rn because it is often a symlink to the current release.
1749 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1760 /usr/local/X11/lib \
1761 /usr/local/X11R6/lib \
1762 /usr/local/X11R5/lib \
1763 /usr/local/X11R4/lib \
1765 /usr/local/lib/X11 \
1766 /usr/local/lib/X11R6 \
1767 /usr/local/lib/X11R5 \
1768 /usr/local/lib/X11R4 \
1772 /usr/XFree86/lib/X11 \
1776 /usr/unsupported/lib \
1778 /usr/local/x11r5/lib \
1779 /usr/lpp/Xamples/lib \
1783 /usr/openwin/share/lib \
1786 for ac_extension in a so sl; do
1787 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1788 ac_x_libraries=$ac_dir
1795 fi # $ac_x_libraries = NO
1797 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1798 # Didn't find X anywhere. Cache the known absence of X.
1799 ac_cv_have_x="have_x=no"
1801 # Record where we found X for the cache.
1802 ac_cv_have_x="have_x=yes \
1803 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1807 eval "$ac_cv_have_x"
1810 if test "$have_x" != yes; then
1811 echo "$ac_t""$have_x" 1>&6
1814 # If each of the values was on the command line, it overrides each guess.
1815 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1816 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1817 # Update the cache value to reflect the command line values.
1818 ac_cv_have_x="have_x=yes \
1819 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1820 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1824 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1826 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1827 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1828 echo "configure:1829: checking for $ac_hdr that defines DIR" >&5
1829 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1830 echo $ac_n "(cached) $ac_c" 1>&6
1832 cat > conftest.$ac_ext <<EOF
1833 #line 1834 "configure"
1834 #include "confdefs.h"
1835 #include <sys/types.h>
1841 if { (eval echo configure:1842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1843 eval "ac_cv_header_dirent_$ac_safe=yes"
1845 echo "configure: failed program was:" >&5
1846 cat conftest.$ac_ext >&5
1848 eval "ac_cv_header_dirent_$ac_safe=no"
1852 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1853 echo "$ac_t""yes" 1>&6
1854 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1855 cat >> confdefs.h <<EOF
1856 #define $ac_tr_hdr 1
1858 ac_header_dirent=$ac_hdr; break
1860 echo "$ac_t""no" 1>&6
1863 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1864 if test $ac_header_dirent = dirent.h; then
1865 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1866 echo "configure:1867: checking for opendir in -ldir" >&5
1867 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1868 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1869 echo $ac_n "(cached) $ac_c" 1>&6
1871 ac_save_LIBS="$LIBS"
1873 cat > conftest.$ac_ext <<EOF
1874 #line 1875 "configure"
1875 #include "confdefs.h"
1876 /* Override any gcc2 internal prototype to avoid an error. */
1877 /* We use char because int might match the return type of a gcc2
1878 builtin and then its argument prototype would still apply. */
1885 if { (eval echo configure:1886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1887 eval "ac_cv_lib_$ac_lib_var=yes"
1889 echo "configure: failed program was:" >&5
1890 cat conftest.$ac_ext >&5
1892 eval "ac_cv_lib_$ac_lib_var=no"
1895 LIBS="$ac_save_LIBS"
1898 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1899 echo "$ac_t""yes" 1>&6
1902 echo "$ac_t""no" 1>&6
1906 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1907 echo "configure:1908: checking for opendir in -lx" >&5
1908 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1909 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1910 echo $ac_n "(cached) $ac_c" 1>&6
1912 ac_save_LIBS="$LIBS"
1914 cat > conftest.$ac_ext <<EOF
1915 #line 1916 "configure"
1916 #include "confdefs.h"
1917 /* Override any gcc2 internal prototype to avoid an error. */
1918 /* We use char because int might match the return type of a gcc2
1919 builtin and then its argument prototype would still apply. */
1926 if { (eval echo configure:1927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1928 eval "ac_cv_lib_$ac_lib_var=yes"
1930 echo "configure: failed program was:" >&5
1931 cat conftest.$ac_ext >&5
1933 eval "ac_cv_lib_$ac_lib_var=no"
1936 LIBS="$ac_save_LIBS"
1939 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1940 echo "$ac_t""yes" 1>&6
1943 echo "$ac_t""no" 1>&6
1948 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1949 echo "configure:1950: checking for ANSI C header files" >&5
1950 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1951 echo $ac_n "(cached) $ac_c" 1>&6
1953 cat > conftest.$ac_ext <<EOF
1954 #line 1955 "configure"
1955 #include "confdefs.h"
1961 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1962 { (eval echo configure:1963: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1963 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1964 if test -z "$ac_err"; then
1966 ac_cv_header_stdc=yes
1969 echo "configure: failed program was:" >&5
1970 cat conftest.$ac_ext >&5
1972 ac_cv_header_stdc=no
1976 if test $ac_cv_header_stdc = yes; then
1977 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1978 cat > conftest.$ac_ext <<EOF
1979 #line 1980 "configure"
1980 #include "confdefs.h"
1983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1984 egrep "memchr" >/dev/null 2>&1; then
1988 ac_cv_header_stdc=no
1994 if test $ac_cv_header_stdc = yes; then
1995 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1996 cat > conftest.$ac_ext <<EOF
1997 #line 1998 "configure"
1998 #include "confdefs.h"
2001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2002 egrep "free" >/dev/null 2>&1; then
2006 ac_cv_header_stdc=no
2012 if test $ac_cv_header_stdc = yes; then
2013 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2014 if test "$cross_compiling" = yes; then
2017 cat > conftest.$ac_ext <<EOF
2018 #line 2019 "configure"
2019 #include "confdefs.h"
2021 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2022 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2023 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2024 int main () { int i; for (i = 0; i < 256; i++)
2025 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2029 if { (eval echo configure:2030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2033 echo "configure: failed program was:" >&5
2034 cat conftest.$ac_ext >&5
2036 ac_cv_header_stdc=no
2044 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2045 if test $ac_cv_header_stdc = yes; then
2046 cat >> confdefs.h <<\EOF
2047 #define STDC_HEADERS 1
2052 for ac_hdr in math.h fcntl.h limits.h malloc.h unistd.h memory.h zlib.h jpeglib.h t1lib.h
2054 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2055 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2056 echo "configure:2057: checking for $ac_hdr" >&5
2057 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2058 echo $ac_n "(cached) $ac_c" 1>&6
2060 cat > conftest.$ac_ext <<EOF
2061 #line 2062 "configure"
2062 #include "confdefs.h"
2065 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2066 { (eval echo configure:2067: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2067 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2068 if test -z "$ac_err"; then
2070 eval "ac_cv_header_$ac_safe=yes"
2073 echo "configure: failed program was:" >&5
2074 cat conftest.$ac_ext >&5
2076 eval "ac_cv_header_$ac_safe=no"
2080 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2081 echo "$ac_t""yes" 1>&6
2082 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2083 cat >> confdefs.h <<EOF
2084 #define $ac_tr_hdr 1
2088 echo "$ac_t""no" 1>&6
2093 if test "x${ac_cv_header_jpeglib_h}" != "xyes"; then
2094 DISABLEPDF2SWF=true;
2095 DISABLEJPEG2SWF=true;
2096 MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
2098 if test "x${ac_cv_header_t1lib_h}" != "xyes"; then
2099 DISABLEPDF2SWF=true;
2100 MISSINGLIBS="${MISSINGLIBS} t1lib.h"
2103 cat >> confdefs.h <<EOF
2104 #define PACKAGE "$PACKAGE"
2107 cat >> confdefs.h <<EOF
2108 #define VERSION "$VERSION"
2117 echo $ac_n "checking for working const""... $ac_c" 1>&6
2118 echo "configure:2119: checking for working const" >&5
2119 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2120 echo $ac_n "(cached) $ac_c" 1>&6
2122 cat > conftest.$ac_ext <<EOF
2123 #line 2124 "configure"
2124 #include "confdefs.h"
2128 /* Ultrix mips cc rejects this. */
2129 typedef int charset[2]; const charset x;
2130 /* SunOS 4.1.1 cc rejects this. */
2131 char const *const *ccp;
2133 /* NEC SVR4.0.2 mips cc rejects this. */
2134 struct point {int x, y;};
2135 static struct point const zero = {0,0};
2136 /* AIX XL C 1.02.0.0 rejects this.
2137 It does not let you subtract one const X* pointer from another in an arm
2138 of an if-expression whose if-part is not a constant expression */
2139 const char *g = "string";
2140 ccp = &g + (g ? g-g : 0);
2141 /* HPUX 7.0 cc rejects these. */
2144 ccp = (char const *const *) p;
2145 { /* SCO 3.2v4 cc rejects this. */
2147 char const *s = 0 ? (char *) 0 : (char const *) 0;
2151 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2153 const int *foo = &x[0];
2156 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2157 typedef const int *iptr;
2161 { /* AIX XL C 1.02.0.0 rejects this saying
2162 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2163 struct s { int j; const int *ap[3]; };
2164 struct s *b; b->j = 5;
2166 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2172 if { (eval echo configure:2173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2176 echo "configure: failed program was:" >&5
2177 cat conftest.$ac_ext >&5
2184 echo "$ac_t""$ac_cv_c_const" 1>&6
2185 if test $ac_cv_c_const = no; then
2186 cat >> confdefs.h <<\EOF
2192 echo $ac_n "checking for inline""... $ac_c" 1>&6
2193 echo "configure:2194: checking for inline" >&5
2194 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2195 echo $ac_n "(cached) $ac_c" 1>&6
2198 for ac_kw in inline __inline__ __inline; do
2199 cat > conftest.$ac_ext <<EOF
2200 #line 2201 "configure"
2201 #include "confdefs.h"
2207 if { (eval echo configure:2208: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2209 ac_cv_c_inline=$ac_kw; break
2211 echo "configure: failed program was:" >&5
2212 cat conftest.$ac_ext >&5
2219 echo "$ac_t""$ac_cv_c_inline" 1>&6
2220 case "$ac_cv_c_inline" in
2222 no) cat >> confdefs.h <<\EOF
2226 *) cat >> confdefs.h <<EOF
2227 #define inline $ac_cv_c_inline
2232 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2233 echo "configure:2234: checking for off_t" >&5
2234 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2235 echo $ac_n "(cached) $ac_c" 1>&6
2237 cat > conftest.$ac_ext <<EOF
2238 #line 2239 "configure"
2239 #include "confdefs.h"
2240 #include <sys/types.h>
2246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2247 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2249 ac_cv_type_off_t=yes
2257 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2258 if test $ac_cv_type_off_t = no; then
2259 cat >> confdefs.h <<\EOF
2265 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2266 echo "configure:2267: checking for size_t" >&5
2267 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2268 echo $ac_n "(cached) $ac_c" 1>&6
2270 cat > conftest.$ac_ext <<EOF
2271 #line 2272 "configure"
2272 #include "confdefs.h"
2273 #include <sys/types.h>
2279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2280 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2282 ac_cv_type_size_t=yes
2285 ac_cv_type_size_t=no
2290 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2291 if test $ac_cv_type_size_t = no; then
2292 cat >> confdefs.h <<\EOF
2293 #define size_t unsigned
2298 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2299 echo "configure:2300: checking whether struct tm is in sys/time.h or time.h" >&5
2300 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2301 echo $ac_n "(cached) $ac_c" 1>&6
2303 cat > conftest.$ac_ext <<EOF
2304 #line 2305 "configure"
2305 #include "confdefs.h"
2306 #include <sys/types.h>
2309 struct tm *tp; tp->tm_sec;
2312 if { (eval echo configure:2313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2314 ac_cv_struct_tm=time.h
2316 echo "configure: failed program was:" >&5
2317 cat conftest.$ac_ext >&5
2319 ac_cv_struct_tm=sys/time.h
2324 echo "$ac_t""$ac_cv_struct_tm" 1>&6
2325 if test $ac_cv_struct_tm = sys/time.h; then
2326 cat >> confdefs.h <<\EOF
2327 #define TM_IN_SYS_TIME 1
2333 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
2334 echo "configure:2335: checking for 8-bit clean memcmp" >&5
2335 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
2336 echo $ac_n "(cached) $ac_c" 1>&6
2338 if test "$cross_compiling" = yes; then
2339 ac_cv_func_memcmp_clean=no
2341 cat > conftest.$ac_ext <<EOF
2342 #line 2343 "configure"
2343 #include "confdefs.h"
2347 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
2348 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
2352 if { (eval echo configure:2353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2354 ac_cv_func_memcmp_clean=yes
2356 echo "configure: failed program was:" >&5
2357 cat conftest.$ac_ext >&5
2359 ac_cv_func_memcmp_clean=no
2366 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
2367 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
2369 for ac_hdr in unistd.h
2371 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2372 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2373 echo "configure:2374: checking for $ac_hdr" >&5
2374 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2375 echo $ac_n "(cached) $ac_c" 1>&6
2377 cat > conftest.$ac_ext <<EOF
2378 #line 2379 "configure"
2379 #include "confdefs.h"
2382 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2383 { (eval echo configure:2384: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2384 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2385 if test -z "$ac_err"; then
2387 eval "ac_cv_header_$ac_safe=yes"
2390 echo "configure: failed program was:" >&5
2391 cat conftest.$ac_ext >&5
2393 eval "ac_cv_header_$ac_safe=no"
2397 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2398 echo "$ac_t""yes" 1>&6
2399 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2400 cat >> confdefs.h <<EOF
2401 #define $ac_tr_hdr 1
2405 echo "$ac_t""no" 1>&6
2409 for ac_func in getpagesize
2411 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2412 echo "configure:2413: checking for $ac_func" >&5
2413 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2414 echo $ac_n "(cached) $ac_c" 1>&6
2416 cat > conftest.$ac_ext <<EOF
2417 #line 2418 "configure"
2418 #include "confdefs.h"
2419 /* System header to define __stub macros and hopefully few prototypes,
2420 which can conflict with char $ac_func(); below. */
2422 /* Override any gcc2 internal prototype to avoid an error. */
2423 /* We use char because int might match the return type of a gcc2
2424 builtin and then its argument prototype would still apply. */
2429 /* The GNU C library defines this for functions which it implements
2430 to always fail with ENOSYS. Some functions are actually named
2431 something starting with __ and the normal name is an alias. */
2432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2440 if { (eval echo configure:2441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2442 eval "ac_cv_func_$ac_func=yes"
2444 echo "configure: failed program was:" >&5
2445 cat conftest.$ac_ext >&5
2447 eval "ac_cv_func_$ac_func=no"
2452 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2453 echo "$ac_t""yes" 1>&6
2454 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2455 cat >> confdefs.h <<EOF
2456 #define $ac_tr_func 1
2460 echo "$ac_t""no" 1>&6
2464 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2465 echo "configure:2466: checking for working mmap" >&5
2466 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2467 echo $ac_n "(cached) $ac_c" 1>&6
2469 if test "$cross_compiling" = yes; then
2470 ac_cv_func_mmap_fixed_mapped=no
2472 cat > conftest.$ac_ext <<EOF
2473 #line 2474 "configure"
2474 #include "confdefs.h"
2476 /* Thanks to Mike Haertel and Jim Avera for this test.
2477 Here is a matrix of mmap possibilities:
2478 mmap private not fixed
2479 mmap private fixed at somewhere currently unmapped
2480 mmap private fixed at somewhere already mapped
2481 mmap shared not fixed
2482 mmap shared fixed at somewhere currently unmapped
2483 mmap shared fixed at somewhere already mapped
2484 For private mappings, we should verify that changes cannot be read()
2485 back from the file, nor mmap's back from the file at a different
2486 address. (There have been systems where private was not correctly
2487 implemented like the infamous i386 svr4.0, and systems where the
2488 VM page cache was not coherent with the filesystem buffer cache
2489 like early versions of FreeBSD and possibly contemporary NetBSD.)
2490 For shared mappings, we should conversely verify that changes get
2491 propogated back to all the places they're supposed to be.
2493 Grep wants private fixed already mapped.
2494 The main things grep needs to know about mmap are:
2495 * does it exist and is it safe to write into the mmap'd area
2496 * how to use it (BSD variants) */
2497 #include <sys/types.h>
2499 #include <sys/mman.h>
2501 /* This mess was copied from the GNU getpagesize.h. */
2502 #ifndef HAVE_GETPAGESIZE
2503 # ifdef HAVE_UNISTD_H
2504 # include <unistd.h>
2507 /* Assume that all systems that can run configure have sys/param.h. */
2508 # ifndef HAVE_SYS_PARAM_H
2509 # define HAVE_SYS_PARAM_H 1
2512 # ifdef _SC_PAGESIZE
2513 # define getpagesize() sysconf(_SC_PAGESIZE)
2514 # else /* no _SC_PAGESIZE */
2515 # ifdef HAVE_SYS_PARAM_H
2516 # include <sys/param.h>
2517 # ifdef EXEC_PAGESIZE
2518 # define getpagesize() EXEC_PAGESIZE
2519 # else /* no EXEC_PAGESIZE */
2521 # define getpagesize() NBPG * CLSIZE
2524 # endif /* no CLSIZE */
2525 # else /* no NBPG */
2527 # define getpagesize() NBPC
2528 # else /* no NBPC */
2530 # define getpagesize() PAGESIZE
2531 # endif /* PAGESIZE */
2532 # endif /* no NBPC */
2533 # endif /* no NBPG */
2534 # endif /* no EXEC_PAGESIZE */
2535 # else /* no HAVE_SYS_PARAM_H */
2536 # define getpagesize() 8192 /* punt totally */
2537 # endif /* no HAVE_SYS_PARAM_H */
2538 # endif /* no _SC_PAGESIZE */
2540 #endif /* no HAVE_GETPAGESIZE */
2543 extern "C" { void *malloc(unsigned); }
2551 char *data, *data2, *data3;
2555 pagesize = getpagesize();
2558 * First, make a file with some known garbage in it.
2560 data = malloc(pagesize);
2563 for (i = 0; i < pagesize; ++i)
2564 *(data + i) = rand();
2566 fd = creat("conftestmmap", 0600);
2569 if (write(fd, data, pagesize) != pagesize)
2574 * Next, try to mmap the file at a fixed address which
2575 * already has something else allocated at it. If we can,
2576 * also make sure that we see the same garbage.
2578 fd = open("conftestmmap", O_RDWR);
2581 data2 = malloc(2 * pagesize);
2584 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2585 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2586 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2588 for (i = 0; i < pagesize; ++i)
2589 if (*(data + i) != *(data2 + i))
2593 * Finally, make sure that changes to the mapped area
2594 * do not percolate back to the file as seen by read().
2595 * (This is a bug on some variants of i386 svr4.0.)
2597 for (i = 0; i < pagesize; ++i)
2598 *(data2 + i) = *(data2 + i) + 1;
2599 data3 = malloc(pagesize);
2602 if (read(fd, data3, pagesize) != pagesize)
2604 for (i = 0; i < pagesize; ++i)
2605 if (*(data + i) != *(data3 + i))
2608 unlink("conftestmmap");
2613 if { (eval echo configure:2614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2615 ac_cv_func_mmap_fixed_mapped=yes
2617 echo "configure: failed program was:" >&5
2618 cat conftest.$ac_ext >&5
2620 ac_cv_func_mmap_fixed_mapped=no
2627 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2628 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2629 cat >> confdefs.h <<\EOF
2635 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2636 echo "configure:2637: checking for vprintf" >&5
2637 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2638 echo $ac_n "(cached) $ac_c" 1>&6
2640 cat > conftest.$ac_ext <<EOF
2641 #line 2642 "configure"
2642 #include "confdefs.h"
2643 /* System header to define __stub macros and hopefully few prototypes,
2644 which can conflict with char vprintf(); below. */
2646 /* Override any gcc2 internal prototype to avoid an error. */
2647 /* We use char because int might match the return type of a gcc2
2648 builtin and then its argument prototype would still apply. */
2653 /* The GNU C library defines this for functions which it implements
2654 to always fail with ENOSYS. Some functions are actually named
2655 something starting with __ and the normal name is an alias. */
2656 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2664 if { (eval echo configure:2665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2666 eval "ac_cv_func_vprintf=yes"
2668 echo "configure: failed program was:" >&5
2669 cat conftest.$ac_ext >&5
2671 eval "ac_cv_func_vprintf=no"
2676 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2677 echo "$ac_t""yes" 1>&6
2678 cat >> confdefs.h <<\EOF
2679 #define HAVE_VPRINTF 1
2683 echo "$ac_t""no" 1>&6
2686 if test "$ac_cv_func_vprintf" != yes; then
2687 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2688 echo "configure:2689: checking for _doprnt" >&5
2689 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2690 echo $ac_n "(cached) $ac_c" 1>&6
2692 cat > conftest.$ac_ext <<EOF
2693 #line 2694 "configure"
2694 #include "confdefs.h"
2695 /* System header to define __stub macros and hopefully few prototypes,
2696 which can conflict with char _doprnt(); below. */
2698 /* Override any gcc2 internal prototype to avoid an error. */
2699 /* We use char because int might match the return type of a gcc2
2700 builtin and then its argument prototype would still apply. */
2705 /* The GNU C library defines this for functions which it implements
2706 to always fail with ENOSYS. Some functions are actually named
2707 something starting with __ and the normal name is an alias. */
2708 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2716 if { (eval echo configure:2717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2718 eval "ac_cv_func__doprnt=yes"
2720 echo "configure: failed program was:" >&5
2721 cat conftest.$ac_ext >&5
2723 eval "ac_cv_func__doprnt=no"
2728 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2729 echo "$ac_t""yes" 1>&6
2730 cat >> confdefs.h <<\EOF
2731 #define HAVE_DOPRNT 1
2735 echo "$ac_t""no" 1>&6
2740 for ac_func in getcwd putenv socket strcspn strdup strerror strstr
2742 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2743 echo "configure:2744: checking for $ac_func" >&5
2744 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2745 echo $ac_n "(cached) $ac_c" 1>&6
2747 cat > conftest.$ac_ext <<EOF
2748 #line 2749 "configure"
2749 #include "confdefs.h"
2750 /* System header to define __stub macros and hopefully few prototypes,
2751 which can conflict with char $ac_func(); below. */
2753 /* Override any gcc2 internal prototype to avoid an error. */
2754 /* We use char because int might match the return type of a gcc2
2755 builtin and then its argument prototype would still apply. */
2760 /* The GNU C library defines this for functions which it implements
2761 to always fail with ENOSYS. Some functions are actually named
2762 something starting with __ and the normal name is an alias. */
2763 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2771 if { (eval echo configure:2772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2773 eval "ac_cv_func_$ac_func=yes"
2775 echo "configure: failed program was:" >&5
2776 cat conftest.$ac_ext >&5
2778 eval "ac_cv_func_$ac_func=no"
2783 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2784 echo "$ac_t""yes" 1>&6
2785 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2786 cat >> confdefs.h <<EOF
2787 #define $ac_tr_func 1
2791 echo "$ac_t""no" 1>&6
2796 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
2797 echo "***************************************************"
2798 echo "The following headers/libraries are missing: " ${MISSINGLIBS}
2799 echo "Disabling pdf2swf tool..."
2801 echo all: > pdf2swf/Makefile
2802 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
2803 echo "Disabling jpeg2swf tool..."
2805 echo "***************************************************"
2806 FILES="./release Makefile lib/Makefile src/Makefile"
2808 FILES="./release Makefile lib/Makefile src/Makefile pdf2swf/Makefile pdf2swf/xpdf/Makefile pdf2swf/fonts/Makefile"
2812 cat > confcache <<\EOF
2813 # This file is a shell script that caches the results of configure
2814 # tests run on this system so they can be shared between configure
2815 # scripts and configure runs. It is not useful on other systems.
2816 # If it contains results you don't want to keep, you may remove or edit it.
2818 # By default, configure uses ./config.cache as the cache file,
2819 # creating it if it does not exist already. You can give configure
2820 # the --cache-file=FILE option to use a different cache file; that is
2821 # what configure does when it calls configure scripts in
2822 # subdirectories, so they share the cache.
2823 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2824 # config.status only pays attention to the cache file if you give it the
2825 # --recheck option to rerun configure.
2828 # The following way of writing the cache mishandles newlines in values,
2829 # but we know of no workaround that is simple, portable, and efficient.
2830 # So, don't put newlines in cache variables' values.
2831 # Ultrix sh set writes to stderr and can't be redirected directly,
2832 # and sets the high bit in the cache file unless we assign to the vars.
2834 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2836 # `set' does not quote correctly, so add quotes (double-quote substitution
2837 # turns \\\\ into \\, and sed turns \\ into \).
2839 -e "s/'/'\\\\''/g" \
2840 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2843 # `set' quotes correctly as required by POSIX, so do not add quotes.
2844 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2847 if cmp -s $cache_file confcache; then
2850 if test -w $cache_file; then
2851 echo "updating cache $cache_file"
2852 cat confcache > $cache_file
2854 echo "not updating unwritable cache $cache_file"
2859 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2861 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2862 # Let make expand exec_prefix.
2863 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2865 # Any assignment to VPATH causes Sun make to only execute
2866 # the first set of double-colon rules, so remove it if not needed.
2867 # If there is a colon in the path, we need to keep it.
2868 if test "x$srcdir" = x.; then
2869 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2872 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2874 DEFS=-DHAVE_CONFIG_H
2876 # Without the "./", some shells look in PATH for config.status.
2877 : ${CONFIG_STATUS=./config.status}
2879 echo creating $CONFIG_STATUS
2880 rm -f $CONFIG_STATUS
2881 cat > $CONFIG_STATUS <<EOF
2883 # Generated automatically by configure.
2884 # Run this file to recreate the current configuration.
2885 # This directory was configured as follows,
2886 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2888 # $0 $ac_configure_args
2890 # Compiler output produced by configure, useful for debugging
2891 # configure, is in ./config.log if it exists.
2893 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2896 case "\$ac_option" in
2897 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2898 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2899 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2900 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2901 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2903 -help | --help | --hel | --he | --h)
2904 echo "\$ac_cs_usage"; exit 0 ;;
2905 *) echo "\$ac_cs_usage"; exit 1 ;;
2909 ac_given_srcdir=$srcdir
2910 ac_given_INSTALL="$INSTALL"
2912 trap 'rm -fr `echo "${FILES} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2914 cat >> $CONFIG_STATUS <<EOF
2916 # Protect against being on the right side of a sed subst in config.status.
2917 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2918 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2922 s%@CFLAGS@%$CFLAGS%g
2923 s%@CPPFLAGS@%$CPPFLAGS%g
2924 s%@CXXFLAGS@%$CXXFLAGS%g
2925 s%@FFLAGS@%$FFLAGS%g
2927 s%@LDFLAGS@%$LDFLAGS%g
2929 s%@exec_prefix@%$exec_prefix%g
2930 s%@prefix@%$prefix%g
2931 s%@program_transform_name@%$program_transform_name%g
2932 s%@bindir@%$bindir%g
2933 s%@sbindir@%$sbindir%g
2934 s%@libexecdir@%$libexecdir%g
2935 s%@datadir@%$datadir%g
2936 s%@sysconfdir@%$sysconfdir%g
2937 s%@sharedstatedir@%$sharedstatedir%g
2938 s%@localstatedir@%$localstatedir%g
2939 s%@libdir@%$libdir%g
2940 s%@includedir@%$includedir%g
2941 s%@oldincludedir@%$oldincludedir%g
2942 s%@infodir@%$infodir%g
2943 s%@mandir@%$mandir%g
2948 s%@RANLIB@%$RANLIB%g
2949 s%@SET_MAKE@%$SET_MAKE%g
2950 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2951 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2952 s%@INSTALL_DATA@%$INSTALL_DATA%g
2954 s%@EXEEXT@%$EXEEXT%g
2955 s%@PACKAGE@%$PACKAGE%g
2956 s%@VERSION@%$VERSION%g
2957 s%@HAVE_UNISTD_H@%$HAVE_UNISTD_H%g
2958 s%@LIBOBJS@%$LIBOBJS%g
2963 cat >> $CONFIG_STATUS <<\EOF
2965 # Split the substitutions into bite-sized pieces for seds with
2966 # small command number limits, like on Digital OSF/1 and HP-UX.
2967 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2968 ac_file=1 # Number of current file.
2969 ac_beg=1 # First line for current file.
2970 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2973 while $ac_more_lines; do
2974 if test $ac_beg -gt 1; then
2975 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2977 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2979 if test ! -s conftest.s$ac_file; then
2981 rm -f conftest.s$ac_file
2983 if test -z "$ac_sed_cmds"; then
2984 ac_sed_cmds="sed -f conftest.s$ac_file"
2986 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2988 ac_file=`expr $ac_file + 1`
2990 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2993 if test -z "$ac_sed_cmds"; then
2998 cat >> $CONFIG_STATUS <<EOF
3000 CONFIG_FILES=\${CONFIG_FILES-"${FILES}"}
3002 cat >> $CONFIG_STATUS <<\EOF
3003 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3004 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3006 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3007 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3008 *) ac_file_in="${ac_file}.in" ;;
3011 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3013 # Remove last slash and all that follows it. Not all systems have dirname.
3014 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3015 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3016 # The file is in a subdirectory.
3017 test ! -d "$ac_dir" && mkdir "$ac_dir"
3018 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3019 # A "../" for each directory in $ac_dir_suffix.
3020 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3022 ac_dir_suffix= ac_dots=
3025 case "$ac_given_srcdir" in
3027 if test -z "$ac_dots"; then top_srcdir=.
3028 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3029 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3031 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3032 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3035 case "$ac_given_INSTALL" in
3036 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3037 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3040 echo creating "$ac_file"
3042 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3044 *Makefile*) ac_comsub="1i\\
3045 # $configure_input" ;;
3049 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3051 s%@configure_input@%$configure_input%g
3052 s%@srcdir@%$srcdir%g
3053 s%@top_srcdir@%$top_srcdir%g
3054 s%@INSTALL@%$INSTALL%g
3055 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3059 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3060 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3062 # ac_d sets the value in "#define NAME VALUE" lines.
3063 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3064 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3067 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3068 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3069 ac_uB='\([ ]\)%\1#\2define\3'
3072 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3073 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3074 ac_eB='$%\1#\2define\3'
3078 if test "${CONFIG_HEADERS+set}" != set; then
3080 cat >> $CONFIG_STATUS <<EOF
3081 CONFIG_HEADERS="config.h"
3083 cat >> $CONFIG_STATUS <<\EOF
3085 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3086 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3088 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3089 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3090 *) ac_file_in="${ac_file}.in" ;;
3093 echo creating $ac_file
3095 rm -f conftest.frag conftest.in conftest.out
3096 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3097 cat $ac_file_inputs > conftest.in
3101 # Transform confdefs.h into a sed script conftest.vals that substitutes
3102 # the proper values into config.h.in to produce config.h. And first:
3103 # Protect against being on the right side of a sed subst in config.status.
3104 # Protect against being in an unquoted here document in config.status.
3106 cat > conftest.hdr <<\EOF
3109 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3113 sed -n -f conftest.hdr confdefs.h > conftest.vals
3116 # This sed command replaces #undef with comments. This is necessary, for
3117 # example, in the case of _POSIX_SOURCE, which is predefined and required
3118 # on some systems where configure will not decide to define it.
3119 cat >> conftest.vals <<\EOF
3120 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3123 # Break up conftest.vals because some shells have a limit on
3124 # the size of here documents, and old seds have small limits too.
3129 ac_lines=`grep -c . conftest.vals`
3130 # grep -c gives empty output for an empty file on some AIX systems.
3131 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3132 # Write a limited-size here document to conftest.frag.
3133 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3134 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3136 sed -f conftest.frag conftest.in > conftest.out
3138 mv conftest.out conftest.in
3140 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3142 mv conftest.tail conftest.vals
3146 cat >> $CONFIG_STATUS <<\EOF
3147 rm -f conftest.frag conftest.h
3148 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3149 cat conftest.in >> conftest.h
3151 if cmp -s $ac_file conftest.h 2>/dev/null; then
3152 echo "$ac_file is unchanged"
3155 # Remove last slash and all that follows it. Not all systems have dirname.
3156 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3157 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3158 # The file is in a subdirectory.
3159 test ! -d "$ac_dir" && mkdir "$ac_dir"
3162 mv conftest.h $ac_file
3167 cat >> $CONFIG_STATUS <<EOF
3170 cat >> $CONFIG_STATUS <<\EOF
3174 chmod +x $CONFIG_STATUS
3175 rm -fr confdefs* $ac_clean_files
3176 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1