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.
456 ac_unique_file=pdf2swf/swfoutput.h
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=
527 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
528 if test -f $ac_dir/install-sh; then
530 ac_install_sh="$ac_aux_dir/install-sh -c"
532 elif test -f $ac_dir/install.sh; then
534 ac_install_sh="$ac_aux_dir/install.sh -c"
538 if test -z "$ac_aux_dir"; then
539 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
541 ac_config_guess=$ac_aux_dir/config.guess
542 ac_config_sub=$ac_aux_dir/config.sub
543 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
545 # Find a good install program. We prefer a C program (faster),
546 # so one script is as good as another. But avoid the broken or
547 # incompatible versions:
548 # SysV /etc/install, /usr/sbin/install
549 # SunOS /usr/etc/install
552 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
553 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
554 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
555 # ./install, which can be erroneously created by make from ./install.sh.
556 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
557 echo "configure:558: checking for a BSD compatible install" >&5
558 if test -z "$INSTALL"; then
559 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
560 echo $ac_n "(cached) $ac_c" 1>&6
562 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
563 for ac_dir in $PATH; do
564 # Account for people who put trailing slashes in PATH elements.
566 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
568 # OSF1 and SCO ODT 3.0 have their own names for install.
569 # Don't use installbsd from OSF since it installs stuff as root
571 for ac_prog in ginstall scoinst install; do
572 if test -f $ac_dir/$ac_prog; then
573 if test $ac_prog = install &&
574 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
575 # AIX install. It has an incompatible calling convention.
578 ac_cv_path_install="$ac_dir/$ac_prog -c"
589 if test "${ac_cv_path_install+set}" = set; then
590 INSTALL="$ac_cv_path_install"
592 # As a last resort, use the slow shell script. We don't cache a
593 # path for INSTALL within a source directory, because that will
594 # break other packages using the cache if that directory is
595 # removed, or if the path is relative.
596 INSTALL="$ac_install_sh"
599 echo "$ac_t""$INSTALL" 1>&6
601 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
602 # It thinks the first close brace ends the variable substitution.
603 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
605 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
607 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
609 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
610 echo "configure:611: checking whether build environment is sane" >&5
613 echo timestamp > conftestfile
614 # Do `set' in a subshell so we don't clobber the current shell's
615 # arguments. Must try -L first in case configure is actually a
616 # symlink; some systems play weird games with the mod time of symlinks
617 # (eg FreeBSD returns the mod time of the symlink's containing
620 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
621 if test "$*" = "X"; then
623 set X `ls -t $srcdir/configure conftestfile`
625 if test "$*" != "X $srcdir/configure conftestfile" \
626 && test "$*" != "X conftestfile $srcdir/configure"; then
628 # If neither matched, then we have a broken ls. This can happen
629 # if, for instance, CONFIG_SHELL is bash and it inherits a
630 # broken ls alias from the environment. This has actually
631 # happened. Such a system could not be considered "sane".
632 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
633 alias in your environment" 1>&2; exit 1; }
636 test "$2" = conftestfile
642 { echo "configure: error: newly created file is older than distributed files!
643 Check your system clock" 1>&2; exit 1; }
646 echo "$ac_t""yes" 1>&6
647 if test "$program_transform_name" = s,x,x,; then
648 program_transform_name=
650 # Double any \ or $. echo might interpret backslashes.
651 cat <<\EOF_SED > conftestsed
652 s,\\,\\\\,g; s,\$,$$,g
654 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
657 test "$program_prefix" != NONE &&
658 program_transform_name="s,^,${program_prefix},; $program_transform_name"
659 # Use a double $ so make ignores it.
660 test "$program_suffix" != NONE &&
661 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
663 # sed with no file args requires a program.
664 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
666 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
667 echo "configure:668: checking whether ${MAKE-make} sets \${MAKE}" >&5
668 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
669 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
670 echo $ac_n "(cached) $ac_c" 1>&6
672 cat > conftestmake <<\EOF
674 @echo 'ac_maketemp="${MAKE}"'
676 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
677 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
678 if test -n "$ac_maketemp"; then
679 eval ac_cv_prog_make_${ac_make}_set=yes
681 eval ac_cv_prog_make_${ac_make}_set=no
685 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
686 echo "$ac_t""yes" 1>&6
689 echo "$ac_t""no" 1>&6
690 SET_MAKE="MAKE=${MAKE-make}"
698 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
699 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
701 cat >> confdefs.h <<EOF
702 #define PACKAGE "$PACKAGE"
705 cat >> confdefs.h <<EOF
706 #define VERSION "$VERSION"
711 missing_dir=`cd $ac_aux_dir && pwd`
712 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
713 echo "configure:714: checking for working aclocal" >&5
714 # Run test in a subshell; some versions of sh will print an error if
715 # an executable is not found, even if stderr is redirected.
716 # Redirect stdin to placate older versions of autoconf. Sigh.
717 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
719 echo "$ac_t""found" 1>&6
721 ACLOCAL="$missing_dir/missing aclocal"
722 echo "$ac_t""missing" 1>&6
725 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
726 echo "configure:727: checking for working autoconf" >&5
727 # Run test in a subshell; some versions of sh will print an error if
728 # an executable is not found, even if stderr is redirected.
729 # Redirect stdin to placate older versions of autoconf. Sigh.
730 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
732 echo "$ac_t""found" 1>&6
734 AUTOCONF="$missing_dir/missing autoconf"
735 echo "$ac_t""missing" 1>&6
738 echo $ac_n "checking for working automake""... $ac_c" 1>&6
739 echo "configure:740: checking for working automake" >&5
740 # Run test in a subshell; some versions of sh will print an error if
741 # an executable is not found, even if stderr is redirected.
742 # Redirect stdin to placate older versions of autoconf. Sigh.
743 if (automake --version) < /dev/null > /dev/null 2>&1; then
745 echo "$ac_t""found" 1>&6
747 AUTOMAKE="$missing_dir/missing automake"
748 echo "$ac_t""missing" 1>&6
751 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
752 echo "configure:753: checking for working autoheader" >&5
753 # Run test in a subshell; some versions of sh will print an error if
754 # an executable is not found, even if stderr is redirected.
755 # Redirect stdin to placate older versions of autoconf. Sigh.
756 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
757 AUTOHEADER=autoheader
758 echo "$ac_t""found" 1>&6
760 AUTOHEADER="$missing_dir/missing autoheader"
761 echo "$ac_t""missing" 1>&6
764 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
765 echo "configure:766: checking for working makeinfo" >&5
766 # Run test in a subshell; some versions of sh will print an error if
767 # an executable is not found, even if stderr is redirected.
768 # Redirect stdin to placate older versions of autoconf. Sigh.
769 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
771 echo "$ac_t""found" 1>&6
773 MAKEINFO="$missing_dir/missing makeinfo"
774 echo "$ac_t""missing" 1>&6
778 if test "$program_transform_name" = s,x,x,; then
779 program_transform_name=
781 # Double any \ or $. echo might interpret backslashes.
782 cat <<\EOF_SED > conftestsed
783 s,\\,\\\\,g; s,\$,$$,g
785 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
788 test "$program_prefix" != NONE &&
789 program_transform_name="s,^,${program_prefix},; $program_transform_name"
790 # Use a double $ so make ignores it.
791 test "$program_suffix" != NONE &&
792 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
794 # sed with no file args requires a program.
795 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
799 CFLAGS="-O2 -fomit-frame-pointer"
801 CXXFLAGS="-O2 -fomit-frame-pointer"
802 for ac_prog in mawk gawk nawk awk
804 # Extract the first word of "$ac_prog", so it can be a program name with args.
805 set dummy $ac_prog; ac_word=$2
806 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
807 echo "configure:808: checking for $ac_word" >&5
808 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
809 echo $ac_n "(cached) $ac_c" 1>&6
811 if test -n "$AWK"; then
812 ac_cv_prog_AWK="$AWK" # Let the user override the test.
814 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
816 for ac_dir in $ac_dummy; do
817 test -z "$ac_dir" && ac_dir=.
818 if test -f $ac_dir/$ac_word; then
819 ac_cv_prog_AWK="$ac_prog"
826 AWK="$ac_cv_prog_AWK"
827 if test -n "$AWK"; then
828 echo "$ac_t""$AWK" 1>&6
830 echo "$ac_t""no" 1>&6
833 test -n "$AWK" && break
836 # Extract the first word of "gcc", so it can be a program name with args.
837 set dummy gcc; ac_word=$2
838 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
839 echo "configure:840: checking for $ac_word" >&5
840 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
841 echo $ac_n "(cached) $ac_c" 1>&6
843 if test -n "$CC"; then
844 ac_cv_prog_CC="$CC" # Let the user override the test.
846 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
848 for ac_dir in $ac_dummy; do
849 test -z "$ac_dir" && ac_dir=.
850 if test -f $ac_dir/$ac_word; then
859 if test -n "$CC"; then
860 echo "$ac_t""$CC" 1>&6
862 echo "$ac_t""no" 1>&6
865 if test -z "$CC"; then
866 # Extract the first word of "cc", so it can be a program name with args.
867 set dummy cc; ac_word=$2
868 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
869 echo "configure:870: checking for $ac_word" >&5
870 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
871 echo $ac_n "(cached) $ac_c" 1>&6
873 if test -n "$CC"; then
874 ac_cv_prog_CC="$CC" # Let the user override the test.
876 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
879 for ac_dir in $ac_dummy; do
880 test -z "$ac_dir" && ac_dir=.
881 if test -f $ac_dir/$ac_word; then
882 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
891 if test $ac_prog_rejected = yes; then
892 # We found a bogon in the path, so make sure we never use it.
893 set dummy $ac_cv_prog_CC
895 if test $# -gt 0; then
896 # We chose a different compiler from the bogus one.
897 # However, it has the same basename, so the bogon will be chosen
898 # first if we set CC to just the basename; use the full file name.
900 set dummy "$ac_dir/$ac_word" "$@"
908 if test -n "$CC"; then
909 echo "$ac_t""$CC" 1>&6
911 echo "$ac_t""no" 1>&6
914 if test -z "$CC"; then
917 # Extract the first word of "cl", so it can be a program name with args.
918 set dummy cl; ac_word=$2
919 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
920 echo "configure:921: checking for $ac_word" >&5
921 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
922 echo $ac_n "(cached) $ac_c" 1>&6
924 if test -n "$CC"; then
925 ac_cv_prog_CC="$CC" # Let the user override the test.
927 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
929 for ac_dir in $ac_dummy; do
930 test -z "$ac_dir" && ac_dir=.
931 if test -f $ac_dir/$ac_word; then
940 if test -n "$CC"; then
941 echo "$ac_t""$CC" 1>&6
943 echo "$ac_t""no" 1>&6
948 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
951 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
952 echo "configure:953: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
955 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
956 ac_cpp='$CPP $CPPFLAGS'
957 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
958 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
959 cross_compiling=$ac_cv_prog_cc_cross
961 cat > conftest.$ac_ext << EOF
963 #line 964 "configure"
964 #include "confdefs.h"
968 if { (eval echo configure:969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
969 ac_cv_prog_cc_works=yes
970 # If we can't run a trivial program, we are probably using a cross compiler.
971 if (./conftest; exit) 2>/dev/null; then
972 ac_cv_prog_cc_cross=no
974 ac_cv_prog_cc_cross=yes
977 echo "configure: failed program was:" >&5
978 cat conftest.$ac_ext >&5
979 ac_cv_prog_cc_works=no
983 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
984 ac_cpp='$CPP $CPPFLAGS'
985 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
986 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
987 cross_compiling=$ac_cv_prog_cc_cross
989 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
990 if test $ac_cv_prog_cc_works = no; then
991 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
993 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
994 echo "configure:995: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
995 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
996 cross_compiling=$ac_cv_prog_cc_cross
998 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
999 echo "configure:1000: checking whether we are using GNU C" >&5
1000 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1001 echo $ac_n "(cached) $ac_c" 1>&6
1003 cat > conftest.c <<EOF
1008 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1015 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1017 if test $ac_cv_prog_gcc = yes; then
1023 ac_test_CFLAGS="${CFLAGS+set}"
1024 ac_save_CFLAGS="$CFLAGS"
1026 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1027 echo "configure:1028: checking whether ${CC-cc} accepts -g" >&5
1028 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1029 echo $ac_n "(cached) $ac_c" 1>&6
1031 echo 'void f(){}' > conftest.c
1032 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1041 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1042 if test "$ac_test_CFLAGS" = set; then
1043 CFLAGS="$ac_save_CFLAGS"
1044 elif test $ac_cv_prog_cc_g = yes; then
1045 if test "$GCC" = yes; then
1051 if test "$GCC" = yes; then
1058 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1059 echo "configure:1060: checking how to run the C preprocessor" >&5
1060 # On Suns, sometimes $CPP names a directory.
1061 if test -n "$CPP" && test -d "$CPP"; then
1064 if test -z "$CPP"; then
1065 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1066 echo $ac_n "(cached) $ac_c" 1>&6
1068 # This must be in double quotes, not single quotes, because CPP may get
1069 # substituted into the Makefile and "${CC-cc}" will confuse make.
1071 # On the NeXT, cc -E runs the code through the compiler's parser,
1072 # not just through cpp.
1073 cat > conftest.$ac_ext <<EOF
1074 #line 1075 "configure"
1075 #include "confdefs.h"
1079 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1080 { (eval echo configure:1081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1081 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1082 if test -z "$ac_err"; then
1086 echo "configure: failed program was:" >&5
1087 cat conftest.$ac_ext >&5
1089 CPP="${CC-cc} -E -traditional-cpp"
1090 cat > conftest.$ac_ext <<EOF
1091 #line 1092 "configure"
1092 #include "confdefs.h"
1096 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1097 { (eval echo configure:1098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1098 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1099 if test -z "$ac_err"; then
1103 echo "configure: failed program was:" >&5
1104 cat conftest.$ac_ext >&5
1106 CPP="${CC-cc} -nologo -E"
1107 cat > conftest.$ac_ext <<EOF
1108 #line 1109 "configure"
1109 #include "confdefs.h"
1113 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1114 { (eval echo configure:1115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1115 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1116 if test -z "$ac_err"; then
1120 echo "configure: failed program was:" >&5
1121 cat conftest.$ac_ext >&5
1130 ac_cv_prog_CPP="$CPP"
1132 CPP="$ac_cv_prog_CPP"
1134 ac_cv_prog_CPP="$CPP"
1136 echo "$ac_t""$CPP" 1>&6
1138 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1140 # Extract the first word of "$ac_prog", so it can be a program name with args.
1141 set dummy $ac_prog; ac_word=$2
1142 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1143 echo "configure:1144: checking for $ac_word" >&5
1144 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1145 echo $ac_n "(cached) $ac_c" 1>&6
1147 if test -n "$CXX"; then
1148 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1150 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1152 for ac_dir in $ac_dummy; do
1153 test -z "$ac_dir" && ac_dir=.
1154 if test -f $ac_dir/$ac_word; then
1155 ac_cv_prog_CXX="$ac_prog"
1162 CXX="$ac_cv_prog_CXX"
1163 if test -n "$CXX"; then
1164 echo "$ac_t""$CXX" 1>&6
1166 echo "$ac_t""no" 1>&6
1169 test -n "$CXX" && break
1171 test -n "$CXX" || CXX="gcc"
1174 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1175 echo "configure:1176: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1178 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1179 ac_cpp='$CXXCPP $CPPFLAGS'
1180 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1181 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1182 cross_compiling=$ac_cv_prog_cxx_cross
1184 cat > conftest.$ac_ext << EOF
1186 #line 1187 "configure"
1187 #include "confdefs.h"
1189 int main(){return(0);}
1191 if { (eval echo configure:1192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1192 ac_cv_prog_cxx_works=yes
1193 # If we can't run a trivial program, we are probably using a cross compiler.
1194 if (./conftest; exit) 2>/dev/null; then
1195 ac_cv_prog_cxx_cross=no
1197 ac_cv_prog_cxx_cross=yes
1200 echo "configure: failed program was:" >&5
1201 cat conftest.$ac_ext >&5
1202 ac_cv_prog_cxx_works=no
1206 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1207 ac_cpp='$CPP $CPPFLAGS'
1208 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1209 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1210 cross_compiling=$ac_cv_prog_cc_cross
1212 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1213 if test $ac_cv_prog_cxx_works = no; then
1214 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1216 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1217 echo "configure:1218: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1218 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1219 cross_compiling=$ac_cv_prog_cxx_cross
1221 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1222 echo "configure:1223: checking whether we are using GNU C++" >&5
1223 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1224 echo $ac_n "(cached) $ac_c" 1>&6
1226 cat > conftest.C <<EOF
1231 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1232: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1238 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1240 if test $ac_cv_prog_gxx = yes; then
1246 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1247 ac_save_CXXFLAGS="$CXXFLAGS"
1249 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1250 echo "configure:1251: checking whether ${CXX-g++} accepts -g" >&5
1251 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1252 echo $ac_n "(cached) $ac_c" 1>&6
1254 echo 'void f(){}' > conftest.cc
1255 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1256 ac_cv_prog_cxx_g=yes
1264 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1265 if test "$ac_test_CXXFLAGS" = set; then
1266 CXXFLAGS="$ac_save_CXXFLAGS"
1267 elif test $ac_cv_prog_cxx_g = yes; then
1268 if test "$GXX" = yes; then
1274 if test "$GXX" = yes; then
1281 # Extract the first word of "ranlib", so it can be a program name with args.
1282 set dummy ranlib; ac_word=$2
1283 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1284 echo "configure:1285: checking for $ac_word" >&5
1285 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1286 echo $ac_n "(cached) $ac_c" 1>&6
1288 if test -n "$RANLIB"; then
1289 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1291 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1293 for ac_dir in $ac_dummy; do
1294 test -z "$ac_dir" && ac_dir=.
1295 if test -f $ac_dir/$ac_word; then
1296 ac_cv_prog_RANLIB="ranlib"
1301 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1304 RANLIB="$ac_cv_prog_RANLIB"
1305 if test -n "$RANLIB"; then
1306 echo "$ac_t""$RANLIB" 1>&6
1308 echo "$ac_t""no" 1>&6
1311 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1312 echo "configure:1313: checking whether ${MAKE-make} sets \${MAKE}" >&5
1313 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1314 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1315 echo $ac_n "(cached) $ac_c" 1>&6
1317 cat > conftestmake <<\EOF
1319 @echo 'ac_maketemp="${MAKE}"'
1321 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1322 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1323 if test -n "$ac_maketemp"; then
1324 eval ac_cv_prog_make_${ac_make}_set=yes
1326 eval ac_cv_prog_make_${ac_make}_set=no
1330 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1331 echo "$ac_t""yes" 1>&6
1334 echo "$ac_t""no" 1>&6
1335 SET_MAKE="MAKE=${MAKE-make}"
1338 # Find a good install program. We prefer a C program (faster),
1339 # so one script is as good as another. But avoid the broken or
1340 # incompatible versions:
1341 # SysV /etc/install, /usr/sbin/install
1342 # SunOS /usr/etc/install
1343 # IRIX /sbin/install
1345 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1346 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1347 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1348 # ./install, which can be erroneously created by make from ./install.sh.
1349 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1350 echo "configure:1351: checking for a BSD compatible install" >&5
1351 if test -z "$INSTALL"; then
1352 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1353 echo $ac_n "(cached) $ac_c" 1>&6
1355 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1356 for ac_dir in $PATH; do
1357 # Account for people who put trailing slashes in PATH elements.
1359 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1361 # OSF1 and SCO ODT 3.0 have their own names for install.
1362 # Don't use installbsd from OSF since it installs stuff as root
1364 for ac_prog in ginstall scoinst install; do
1365 if test -f $ac_dir/$ac_prog; then
1366 if test $ac_prog = install &&
1367 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1368 # AIX install. It has an incompatible calling convention.
1371 ac_cv_path_install="$ac_dir/$ac_prog -c"
1382 if test "${ac_cv_path_install+set}" = set; then
1383 INSTALL="$ac_cv_path_install"
1385 # As a last resort, use the slow shell script. We don't cache a
1386 # path for INSTALL within a source directory, because that will
1387 # break other packages using the cache if that directory is
1388 # removed, or if the path is relative.
1389 INSTALL="$ac_install_sh"
1392 echo "$ac_t""$INSTALL" 1>&6
1394 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1395 # It thinks the first close brace ends the variable substitution.
1396 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1398 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1400 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1402 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1403 echo "configure:1404: checking whether ln -s works" >&5
1404 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1405 echo $ac_n "(cached) $ac_c" 1>&6
1408 if ln -s X conftestdata 2>/dev/null
1411 ac_cv_prog_LN_S="ln -s"
1416 LN_S="$ac_cv_prog_LN_S"
1417 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1418 echo "$ac_t""yes" 1>&6
1420 echo "$ac_t""no" 1>&6
1424 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1425 echo "configure:1426: checking for Cygwin environment" >&5
1426 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1427 echo $ac_n "(cached) $ac_c" 1>&6
1429 cat > conftest.$ac_ext <<EOF
1430 #line 1431 "configure"
1431 #include "confdefs.h"
1436 #define __CYGWIN__ __CYGWIN32__
1441 if { (eval echo configure:1442: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1445 echo "configure: failed program was:" >&5
1446 cat conftest.$ac_ext >&5
1454 echo "$ac_t""$ac_cv_cygwin" 1>&6
1456 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1457 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1458 echo "configure:1459: checking for mingw32 environment" >&5
1459 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1460 echo $ac_n "(cached) $ac_c" 1>&6
1462 cat > conftest.$ac_ext <<EOF
1463 #line 1464 "configure"
1464 #include "confdefs.h"
1470 if { (eval echo configure:1471: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1474 echo "configure: failed program was:" >&5
1475 cat conftest.$ac_ext >&5
1483 echo "$ac_t""$ac_cv_mingw32" 1>&6
1485 test "$ac_cv_mingw32" = yes && MINGW32=yes
1488 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1489 echo "configure:1490: checking for executable suffix" >&5
1490 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1491 echo $ac_n "(cached) $ac_c" 1>&6
1493 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1497 echo 'int main () { return 0; }' > conftest.$ac_ext
1499 if { (eval echo configure:1500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1500 for file in conftest.*; do
1502 *.c | *.o | *.obj) ;;
1503 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1507 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1510 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1515 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1516 echo "$ac_t""${ac_cv_exeext}" 1>&6
1520 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
1521 echo "configure:1522: checking for sin in -lm" >&5
1522 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
1523 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1524 echo $ac_n "(cached) $ac_c" 1>&6
1526 ac_save_LIBS="$LIBS"
1528 cat > conftest.$ac_ext <<EOF
1529 #line 1530 "configure"
1530 #include "confdefs.h"
1531 /* Override any gcc2 internal prototype to avoid an error. */
1532 /* We use char because int might match the return type of a gcc2
1533 builtin and then its argument prototype would still apply. */
1540 if { (eval echo configure:1541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1542 eval "ac_cv_lib_$ac_lib_var=yes"
1544 echo "configure: failed program was:" >&5
1545 cat conftest.$ac_ext >&5
1547 eval "ac_cv_lib_$ac_lib_var=no"
1550 LIBS="$ac_save_LIBS"
1553 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1554 echo "$ac_t""yes" 1>&6
1555 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1556 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1557 cat >> confdefs.h <<EOF
1558 #define $ac_tr_lib 1
1564 echo "$ac_t""no" 1>&6
1565 echo "Error: Math library not found.";exit
1568 echo $ac_n "checking for jpeg_write_raw_data in -ljpeg""... $ac_c" 1>&6
1569 echo "configure:1570: checking for jpeg_write_raw_data in -ljpeg" >&5
1570 ac_lib_var=`echo jpeg'_'jpeg_write_raw_data | sed 'y%./+-%__p_%'`
1571 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1572 echo $ac_n "(cached) $ac_c" 1>&6
1574 ac_save_LIBS="$LIBS"
1576 cat > conftest.$ac_ext <<EOF
1577 #line 1578 "configure"
1578 #include "confdefs.h"
1579 /* Override any gcc2 internal prototype to avoid an error. */
1580 /* We use char because int might match the return type of a gcc2
1581 builtin and then its argument prototype would still apply. */
1582 char jpeg_write_raw_data();
1585 jpeg_write_raw_data()
1588 if { (eval echo configure:1589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1590 eval "ac_cv_lib_$ac_lib_var=yes"
1592 echo "configure: failed program was:" >&5
1593 cat conftest.$ac_ext >&5
1595 eval "ac_cv_lib_$ac_lib_var=no"
1598 LIBS="$ac_save_LIBS"
1601 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1602 echo "$ac_t""yes" 1>&6
1603 ac_tr_lib=HAVE_LIB`echo jpeg | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1604 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1605 cat >> confdefs.h <<EOF
1606 #define $ac_tr_lib 1
1612 echo "$ac_t""no" 1>&6
1613 echo "Error: The jpeg library 'jpeglib' is required.";exit
1616 echo $ac_n "checking for crc32 in -lz""... $ac_c" 1>&6
1617 echo "configure:1618: checking for crc32 in -lz" >&5
1618 ac_lib_var=`echo z'_'crc32 | sed 'y%./+-%__p_%'`
1619 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1620 echo $ac_n "(cached) $ac_c" 1>&6
1622 ac_save_LIBS="$LIBS"
1624 cat > conftest.$ac_ext <<EOF
1625 #line 1626 "configure"
1626 #include "confdefs.h"
1627 /* Override any gcc2 internal prototype to avoid an error. */
1628 /* We use char because int might match the return type of a gcc2
1629 builtin and then its argument prototype would still apply. */
1636 if { (eval echo configure:1637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1638 eval "ac_cv_lib_$ac_lib_var=yes"
1640 echo "configure: failed program was:" >&5
1641 cat conftest.$ac_ext >&5
1643 eval "ac_cv_lib_$ac_lib_var=no"
1646 LIBS="$ac_save_LIBS"
1649 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1650 echo "$ac_t""yes" 1>&6
1651 ac_tr_lib=HAVE_LIB`echo z | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1652 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1653 cat >> confdefs.h <<EOF
1654 #define $ac_tr_lib 1
1660 echo "$ac_t""no" 1>&6
1661 echo "Error: The zlib compression library is required.";exit
1664 echo $ac_n "checking for T1_LoadFont in -lt1""... $ac_c" 1>&6
1665 echo "configure:1666: checking for T1_LoadFont in -lt1" >&5
1666 ac_lib_var=`echo t1'_'T1_LoadFont | sed 'y%./+-%__p_%'`
1667 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1668 echo $ac_n "(cached) $ac_c" 1>&6
1670 ac_save_LIBS="$LIBS"
1672 cat > conftest.$ac_ext <<EOF
1673 #line 1674 "configure"
1674 #include "confdefs.h"
1675 /* Override any gcc2 internal prototype to avoid an error. */
1676 /* We use char because int might match the return type of a gcc2
1677 builtin and then its argument prototype would still apply. */
1684 if { (eval echo configure:1685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1686 eval "ac_cv_lib_$ac_lib_var=yes"
1688 echo "configure: failed program was:" >&5
1689 cat conftest.$ac_ext >&5
1691 eval "ac_cv_lib_$ac_lib_var=no"
1694 LIBS="$ac_save_LIBS"
1697 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1698 echo "$ac_t""yes" 1>&6
1699 ac_tr_lib=HAVE_LIB`echo t1 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1700 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1701 cat >> confdefs.h <<EOF
1702 #define $ac_tr_lib 1
1708 echo "$ac_t""no" 1>&6
1709 echo "Error: the T1lib truetype handling library is required.";exit
1712 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
1713 echo "configure:1714: checking for pthread_create in -lpthread" >&5
1714 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
1715 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1716 echo $ac_n "(cached) $ac_c" 1>&6
1718 ac_save_LIBS="$LIBS"
1719 LIBS="-lpthread $LIBS"
1720 cat > conftest.$ac_ext <<EOF
1721 #line 1722 "configure"
1722 #include "confdefs.h"
1723 /* Override any gcc2 internal prototype to avoid an error. */
1724 /* We use char because int might match the return type of a gcc2
1725 builtin and then its argument prototype would still apply. */
1726 char pthread_create();
1732 if { (eval echo configure:1733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1734 eval "ac_cv_lib_$ac_lib_var=yes"
1736 echo "configure: failed program was:" >&5
1737 cat conftest.$ac_ext >&5
1739 eval "ac_cv_lib_$ac_lib_var=no"
1742 LIBS="$ac_save_LIBS"
1745 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1746 echo "$ac_t""yes" 1>&6
1747 ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1748 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1749 cat >> confdefs.h <<EOF
1750 #define $ac_tr_lib 1
1753 LIBS="-lpthread $LIBS"
1756 echo "$ac_t""no" 1>&6
1759 echo $ac_n "checking for XFlush in -lX11""... $ac_c" 1>&6
1760 echo "configure:1761: checking for XFlush in -lX11" >&5
1761 ac_lib_var=`echo X11'_'XFlush | sed 'y%./+-%__p_%'`
1762 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1763 echo $ac_n "(cached) $ac_c" 1>&6
1765 ac_save_LIBS="$LIBS"
1767 cat > conftest.$ac_ext <<EOF
1768 #line 1769 "configure"
1769 #include "confdefs.h"
1770 /* Override any gcc2 internal prototype to avoid an error. */
1771 /* We use char because int might match the return type of a gcc2
1772 builtin and then its argument prototype would still apply. */
1779 if { (eval echo configure:1780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1781 eval "ac_cv_lib_$ac_lib_var=yes"
1783 echo "configure: failed program was:" >&5
1784 cat conftest.$ac_ext >&5
1786 eval "ac_cv_lib_$ac_lib_var=no"
1789 LIBS="$ac_save_LIBS"
1792 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1793 echo "$ac_t""yes" 1>&6
1794 ac_tr_lib=HAVE_LIB`echo X11 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1795 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1796 cat >> confdefs.h <<EOF
1797 #define $ac_tr_lib 1
1803 echo "$ac_t""no" 1>&6
1810 # If we find X, set shell vars x_includes and x_libraries to the
1811 # paths, otherwise set no_x=yes.
1812 # Uses ac_ vars as temps to allow command line to override cache and checks.
1813 # --without-x overrides everything else, but does not touch the cache.
1814 echo $ac_n "checking for X""... $ac_c" 1>&6
1815 echo "configure:1816: checking for X" >&5
1817 # Check whether --with-x or --without-x was given.
1818 if test "${with_x+set}" = set; then
1823 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
1824 if test "x$with_x" = xno; then
1825 # The user explicitly disabled X.
1828 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
1829 # Both variables are already set.
1832 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1833 echo $ac_n "(cached) $ac_c" 1>&6
1835 # One or both of the vars are not set, and there is no cached value.
1836 ac_x_includes=NO ac_x_libraries=NO
1838 if mkdir conftestdir; then
1840 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1841 cat > Imakefile <<'EOF'
1843 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1845 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
1846 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1847 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1848 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1849 for ac_extension in a so sl; do
1850 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
1851 test -f $ac_im_libdir/libX11.$ac_extension; then
1852 ac_im_usrlibdir=$ac_im_libdir; break
1855 # Screen out bogus values from the imake configuration. They are
1856 # bogus both because they are the default anyway, and because
1857 # using them would break gcc on systems where it needs fixed includes.
1858 case "$ac_im_incroot" in
1860 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
1862 case "$ac_im_usrlibdir" in
1864 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
1871 if test "$ac_x_includes" = NO; then
1872 # Guess where to find include files, by looking for this one X11 .h file.
1873 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
1875 # First, try using that file with no special directory specified.
1876 cat > conftest.$ac_ext <<EOF
1877 #line 1878 "configure"
1878 #include "confdefs.h"
1879 #include <$x_direct_test_include>
1881 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1882 { (eval echo configure:1883: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1883 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1884 if test -z "$ac_err"; then
1886 # We can compile using X headers with no special include directory.
1890 echo "configure: failed program was:" >&5
1891 cat conftest.$ac_ext >&5
1893 # Look for the header file in a standard set of common directories.
1894 # Check X11 before X11Rn because it is often a symlink to the current release.
1897 /usr/X11R6/include \
1898 /usr/X11R5/include \
1899 /usr/X11R4/include \
1902 /usr/include/X11R6 \
1903 /usr/include/X11R5 \
1904 /usr/include/X11R4 \
1906 /usr/local/X11/include \
1907 /usr/local/X11R6/include \
1908 /usr/local/X11R5/include \
1909 /usr/local/X11R4/include \
1911 /usr/local/include/X11 \
1912 /usr/local/include/X11R6 \
1913 /usr/local/include/X11R5 \
1914 /usr/local/include/X11R4 \
1918 /usr/XFree86/include/X11 \
1921 /usr/local/include \
1922 /usr/unsupported/include \
1923 /usr/athena/include \
1924 /usr/local/x11r5/include \
1925 /usr/lpp/Xamples/include \
1927 /usr/openwin/include \
1928 /usr/openwin/share/include \
1931 if test -r "$ac_dir/$x_direct_test_include"; then
1932 ac_x_includes=$ac_dir
1938 fi # $ac_x_includes = NO
1940 if test "$ac_x_libraries" = NO; then
1941 # Check for the libraries.
1943 test -z "$x_direct_test_library" && x_direct_test_library=Xt
1944 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1946 # See if we find them without any special options.
1947 # Don't add to $LIBS permanently.
1948 ac_save_LIBS="$LIBS"
1949 LIBS="-l$x_direct_test_library $LIBS"
1950 cat > conftest.$ac_ext <<EOF
1951 #line 1952 "configure"
1952 #include "confdefs.h"
1955 ${x_direct_test_function}()
1958 if { (eval echo configure:1959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1960 LIBS="$ac_save_LIBS"
1961 # We can link X programs with no special library path.
1964 echo "configure: failed program was:" >&5
1965 cat conftest.$ac_ext >&5
1967 LIBS="$ac_save_LIBS"
1968 # First see if replacing the include by lib works.
1969 # Check X11 before X11Rn because it is often a symlink to the current release.
1970 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1981 /usr/local/X11/lib \
1982 /usr/local/X11R6/lib \
1983 /usr/local/X11R5/lib \
1984 /usr/local/X11R4/lib \
1986 /usr/local/lib/X11 \
1987 /usr/local/lib/X11R6 \
1988 /usr/local/lib/X11R5 \
1989 /usr/local/lib/X11R4 \
1993 /usr/XFree86/lib/X11 \
1997 /usr/unsupported/lib \
1999 /usr/local/x11r5/lib \
2000 /usr/lpp/Xamples/lib \
2004 /usr/openwin/share/lib \
2007 for ac_extension in a so sl; do
2008 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
2009 ac_x_libraries=$ac_dir
2016 fi # $ac_x_libraries = NO
2018 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
2019 # Didn't find X anywhere. Cache the known absence of X.
2020 ac_cv_have_x="have_x=no"
2022 # Record where we found X for the cache.
2023 ac_cv_have_x="have_x=yes \
2024 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2028 eval "$ac_cv_have_x"
2031 if test "$have_x" != yes; then
2032 echo "$ac_t""$have_x" 1>&6
2035 # If each of the values was on the command line, it overrides each guess.
2036 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2037 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2038 # Update the cache value to reflect the command line values.
2039 ac_cv_have_x="have_x=yes \
2040 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2041 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
2045 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2047 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2048 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2049 echo "configure:2050: checking for $ac_hdr that defines DIR" >&5
2050 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2051 echo $ac_n "(cached) $ac_c" 1>&6
2053 cat > conftest.$ac_ext <<EOF
2054 #line 2055 "configure"
2055 #include "confdefs.h"
2056 #include <sys/types.h>
2062 if { (eval echo configure:2063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2064 eval "ac_cv_header_dirent_$ac_safe=yes"
2066 echo "configure: failed program was:" >&5
2067 cat conftest.$ac_ext >&5
2069 eval "ac_cv_header_dirent_$ac_safe=no"
2073 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2074 echo "$ac_t""yes" 1>&6
2075 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2076 cat >> confdefs.h <<EOF
2077 #define $ac_tr_hdr 1
2079 ac_header_dirent=$ac_hdr; break
2081 echo "$ac_t""no" 1>&6
2084 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2085 if test $ac_header_dirent = dirent.h; then
2086 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2087 echo "configure:2088: checking for opendir in -ldir" >&5
2088 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2089 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2090 echo $ac_n "(cached) $ac_c" 1>&6
2092 ac_save_LIBS="$LIBS"
2094 cat > conftest.$ac_ext <<EOF
2095 #line 2096 "configure"
2096 #include "confdefs.h"
2097 /* Override any gcc2 internal prototype to avoid an error. */
2098 /* We use char because int might match the return type of a gcc2
2099 builtin and then its argument prototype would still apply. */
2106 if { (eval echo configure:2107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2108 eval "ac_cv_lib_$ac_lib_var=yes"
2110 echo "configure: failed program was:" >&5
2111 cat conftest.$ac_ext >&5
2113 eval "ac_cv_lib_$ac_lib_var=no"
2116 LIBS="$ac_save_LIBS"
2119 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2120 echo "$ac_t""yes" 1>&6
2123 echo "$ac_t""no" 1>&6
2127 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2128 echo "configure:2129: checking for opendir in -lx" >&5
2129 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2130 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2131 echo $ac_n "(cached) $ac_c" 1>&6
2133 ac_save_LIBS="$LIBS"
2135 cat > conftest.$ac_ext <<EOF
2136 #line 2137 "configure"
2137 #include "confdefs.h"
2138 /* Override any gcc2 internal prototype to avoid an error. */
2139 /* We use char because int might match the return type of a gcc2
2140 builtin and then its argument prototype would still apply. */
2147 if { (eval echo configure:2148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2149 eval "ac_cv_lib_$ac_lib_var=yes"
2151 echo "configure: failed program was:" >&5
2152 cat conftest.$ac_ext >&5
2154 eval "ac_cv_lib_$ac_lib_var=no"
2157 LIBS="$ac_save_LIBS"
2160 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2161 echo "$ac_t""yes" 1>&6
2164 echo "$ac_t""no" 1>&6
2169 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2170 echo "configure:2171: checking for ANSI C header files" >&5
2171 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2172 echo $ac_n "(cached) $ac_c" 1>&6
2174 cat > conftest.$ac_ext <<EOF
2175 #line 2176 "configure"
2176 #include "confdefs.h"
2182 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2183 { (eval echo configure:2184: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2184 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2185 if test -z "$ac_err"; then
2187 ac_cv_header_stdc=yes
2190 echo "configure: failed program was:" >&5
2191 cat conftest.$ac_ext >&5
2193 ac_cv_header_stdc=no
2197 if test $ac_cv_header_stdc = yes; then
2198 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2199 cat > conftest.$ac_ext <<EOF
2200 #line 2201 "configure"
2201 #include "confdefs.h"
2204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2205 egrep "memchr" >/dev/null 2>&1; then
2209 ac_cv_header_stdc=no
2215 if test $ac_cv_header_stdc = yes; then
2216 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2217 cat > conftest.$ac_ext <<EOF
2218 #line 2219 "configure"
2219 #include "confdefs.h"
2222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2223 egrep "free" >/dev/null 2>&1; then
2227 ac_cv_header_stdc=no
2233 if test $ac_cv_header_stdc = yes; then
2234 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2235 if test "$cross_compiling" = yes; then
2238 cat > conftest.$ac_ext <<EOF
2239 #line 2240 "configure"
2240 #include "confdefs.h"
2242 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2243 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2244 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2245 int main () { int i; for (i = 0; i < 256; i++)
2246 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2250 if { (eval echo configure:2251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2254 echo "configure: failed program was:" >&5
2255 cat conftest.$ac_ext >&5
2257 ac_cv_header_stdc=no
2265 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2266 if test $ac_cv_header_stdc = yes; then
2267 cat >> confdefs.h <<\EOF
2268 #define STDC_HEADERS 1
2273 for ac_hdr in math.h fcntl.h limits.h malloc.h unistd.h memory.h zlib.h jpeglib.h t1lib.h
2275 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2276 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2277 echo "configure:2278: checking for $ac_hdr" >&5
2278 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2279 echo $ac_n "(cached) $ac_c" 1>&6
2281 cat > conftest.$ac_ext <<EOF
2282 #line 2283 "configure"
2283 #include "confdefs.h"
2286 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2287 { (eval echo configure:2288: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2288 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2289 if test -z "$ac_err"; then
2291 eval "ac_cv_header_$ac_safe=yes"
2294 echo "configure: failed program was:" >&5
2295 cat conftest.$ac_ext >&5
2297 eval "ac_cv_header_$ac_safe=no"
2301 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2302 echo "$ac_t""yes" 1>&6
2303 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2304 cat >> confdefs.h <<EOF
2305 #define $ac_tr_hdr 1
2309 echo "$ac_t""no" 1>&6
2317 echo $ac_n "checking for working const""... $ac_c" 1>&6
2318 echo "configure:2319: checking for working const" >&5
2319 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2320 echo $ac_n "(cached) $ac_c" 1>&6
2322 cat > conftest.$ac_ext <<EOF
2323 #line 2324 "configure"
2324 #include "confdefs.h"
2328 /* Ultrix mips cc rejects this. */
2329 typedef int charset[2]; const charset x;
2330 /* SunOS 4.1.1 cc rejects this. */
2331 char const *const *ccp;
2333 /* NEC SVR4.0.2 mips cc rejects this. */
2334 struct point {int x, y;};
2335 static struct point const zero = {0,0};
2336 /* AIX XL C 1.02.0.0 rejects this.
2337 It does not let you subtract one const X* pointer from another in an arm
2338 of an if-expression whose if-part is not a constant expression */
2339 const char *g = "string";
2340 ccp = &g + (g ? g-g : 0);
2341 /* HPUX 7.0 cc rejects these. */
2344 ccp = (char const *const *) p;
2345 { /* SCO 3.2v4 cc rejects this. */
2347 char const *s = 0 ? (char *) 0 : (char const *) 0;
2351 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2353 const int *foo = &x[0];
2356 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2357 typedef const int *iptr;
2361 { /* AIX XL C 1.02.0.0 rejects this saying
2362 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2363 struct s { int j; const int *ap[3]; };
2364 struct s *b; b->j = 5;
2366 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2372 if { (eval echo configure:2373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2376 echo "configure: failed program was:" >&5
2377 cat conftest.$ac_ext >&5
2384 echo "$ac_t""$ac_cv_c_const" 1>&6
2385 if test $ac_cv_c_const = no; then
2386 cat >> confdefs.h <<\EOF
2392 echo $ac_n "checking for inline""... $ac_c" 1>&6
2393 echo "configure:2394: checking for inline" >&5
2394 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2395 echo $ac_n "(cached) $ac_c" 1>&6
2398 for ac_kw in inline __inline__ __inline; do
2399 cat > conftest.$ac_ext <<EOF
2400 #line 2401 "configure"
2401 #include "confdefs.h"
2407 if { (eval echo configure:2408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2409 ac_cv_c_inline=$ac_kw; break
2411 echo "configure: failed program was:" >&5
2412 cat conftest.$ac_ext >&5
2419 echo "$ac_t""$ac_cv_c_inline" 1>&6
2420 case "$ac_cv_c_inline" in
2422 no) cat >> confdefs.h <<\EOF
2426 *) cat >> confdefs.h <<EOF
2427 #define inline $ac_cv_c_inline
2432 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2433 echo "configure:2434: checking for off_t" >&5
2434 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2435 echo $ac_n "(cached) $ac_c" 1>&6
2437 cat > conftest.$ac_ext <<EOF
2438 #line 2439 "configure"
2439 #include "confdefs.h"
2440 #include <sys/types.h>
2446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2447 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2449 ac_cv_type_off_t=yes
2457 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2458 if test $ac_cv_type_off_t = no; then
2459 cat >> confdefs.h <<\EOF
2465 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2466 echo "configure:2467: checking for size_t" >&5
2467 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2468 echo $ac_n "(cached) $ac_c" 1>&6
2470 cat > conftest.$ac_ext <<EOF
2471 #line 2472 "configure"
2472 #include "confdefs.h"
2473 #include <sys/types.h>
2479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2480 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2482 ac_cv_type_size_t=yes
2485 ac_cv_type_size_t=no
2490 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2491 if test $ac_cv_type_size_t = no; then
2492 cat >> confdefs.h <<\EOF
2493 #define size_t unsigned
2498 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2499 echo "configure:2500: checking whether struct tm is in sys/time.h or time.h" >&5
2500 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2501 echo $ac_n "(cached) $ac_c" 1>&6
2503 cat > conftest.$ac_ext <<EOF
2504 #line 2505 "configure"
2505 #include "confdefs.h"
2506 #include <sys/types.h>
2509 struct tm *tp; tp->tm_sec;
2512 if { (eval echo configure:2513: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2514 ac_cv_struct_tm=time.h
2516 echo "configure: failed program was:" >&5
2517 cat conftest.$ac_ext >&5
2519 ac_cv_struct_tm=sys/time.h
2524 echo "$ac_t""$ac_cv_struct_tm" 1>&6
2525 if test $ac_cv_struct_tm = sys/time.h; then
2526 cat >> confdefs.h <<\EOF
2527 #define TM_IN_SYS_TIME 1
2533 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
2534 echo "configure:2535: checking for 8-bit clean memcmp" >&5
2535 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
2536 echo $ac_n "(cached) $ac_c" 1>&6
2538 if test "$cross_compiling" = yes; then
2539 ac_cv_func_memcmp_clean=no
2541 cat > conftest.$ac_ext <<EOF
2542 #line 2543 "configure"
2543 #include "confdefs.h"
2547 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
2548 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
2552 if { (eval echo configure:2553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2554 ac_cv_func_memcmp_clean=yes
2556 echo "configure: failed program was:" >&5
2557 cat conftest.$ac_ext >&5
2559 ac_cv_func_memcmp_clean=no
2566 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
2567 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
2569 for ac_hdr in unistd.h
2571 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2572 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2573 echo "configure:2574: checking for $ac_hdr" >&5
2574 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2575 echo $ac_n "(cached) $ac_c" 1>&6
2577 cat > conftest.$ac_ext <<EOF
2578 #line 2579 "configure"
2579 #include "confdefs.h"
2582 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2583 { (eval echo configure:2584: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2584 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2585 if test -z "$ac_err"; then
2587 eval "ac_cv_header_$ac_safe=yes"
2590 echo "configure: failed program was:" >&5
2591 cat conftest.$ac_ext >&5
2593 eval "ac_cv_header_$ac_safe=no"
2597 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2598 echo "$ac_t""yes" 1>&6
2599 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2600 cat >> confdefs.h <<EOF
2601 #define $ac_tr_hdr 1
2605 echo "$ac_t""no" 1>&6
2609 for ac_func in getpagesize
2611 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2612 echo "configure:2613: checking for $ac_func" >&5
2613 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2614 echo $ac_n "(cached) $ac_c" 1>&6
2616 cat > conftest.$ac_ext <<EOF
2617 #line 2618 "configure"
2618 #include "confdefs.h"
2619 /* System header to define __stub macros and hopefully few prototypes,
2620 which can conflict with char $ac_func(); below. */
2622 /* Override any gcc2 internal prototype to avoid an error. */
2623 /* We use char because int might match the return type of a gcc2
2624 builtin and then its argument prototype would still apply. */
2629 /* The GNU C library defines this for functions which it implements
2630 to always fail with ENOSYS. Some functions are actually named
2631 something starting with __ and the normal name is an alias. */
2632 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2640 if { (eval echo configure:2641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2642 eval "ac_cv_func_$ac_func=yes"
2644 echo "configure: failed program was:" >&5
2645 cat conftest.$ac_ext >&5
2647 eval "ac_cv_func_$ac_func=no"
2652 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2653 echo "$ac_t""yes" 1>&6
2654 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2655 cat >> confdefs.h <<EOF
2656 #define $ac_tr_func 1
2660 echo "$ac_t""no" 1>&6
2664 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2665 echo "configure:2666: checking for working mmap" >&5
2666 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2667 echo $ac_n "(cached) $ac_c" 1>&6
2669 if test "$cross_compiling" = yes; then
2670 ac_cv_func_mmap_fixed_mapped=no
2672 cat > conftest.$ac_ext <<EOF
2673 #line 2674 "configure"
2674 #include "confdefs.h"
2676 /* Thanks to Mike Haertel and Jim Avera for this test.
2677 Here is a matrix of mmap possibilities:
2678 mmap private not fixed
2679 mmap private fixed at somewhere currently unmapped
2680 mmap private fixed at somewhere already mapped
2681 mmap shared not fixed
2682 mmap shared fixed at somewhere currently unmapped
2683 mmap shared fixed at somewhere already mapped
2684 For private mappings, we should verify that changes cannot be read()
2685 back from the file, nor mmap's back from the file at a different
2686 address. (There have been systems where private was not correctly
2687 implemented like the infamous i386 svr4.0, and systems where the
2688 VM page cache was not coherent with the filesystem buffer cache
2689 like early versions of FreeBSD and possibly contemporary NetBSD.)
2690 For shared mappings, we should conversely verify that changes get
2691 propogated back to all the places they're supposed to be.
2693 Grep wants private fixed already mapped.
2694 The main things grep needs to know about mmap are:
2695 * does it exist and is it safe to write into the mmap'd area
2696 * how to use it (BSD variants) */
2697 #include <sys/types.h>
2699 #include <sys/mman.h>
2701 /* This mess was copied from the GNU getpagesize.h. */
2702 #ifndef HAVE_GETPAGESIZE
2703 # ifdef HAVE_UNISTD_H
2704 # include <unistd.h>
2707 /* Assume that all systems that can run configure have sys/param.h. */
2708 # ifndef HAVE_SYS_PARAM_H
2709 # define HAVE_SYS_PARAM_H 1
2712 # ifdef _SC_PAGESIZE
2713 # define getpagesize() sysconf(_SC_PAGESIZE)
2714 # else /* no _SC_PAGESIZE */
2715 # ifdef HAVE_SYS_PARAM_H
2716 # include <sys/param.h>
2717 # ifdef EXEC_PAGESIZE
2718 # define getpagesize() EXEC_PAGESIZE
2719 # else /* no EXEC_PAGESIZE */
2721 # define getpagesize() NBPG * CLSIZE
2724 # endif /* no CLSIZE */
2725 # else /* no NBPG */
2727 # define getpagesize() NBPC
2728 # else /* no NBPC */
2730 # define getpagesize() PAGESIZE
2731 # endif /* PAGESIZE */
2732 # endif /* no NBPC */
2733 # endif /* no NBPG */
2734 # endif /* no EXEC_PAGESIZE */
2735 # else /* no HAVE_SYS_PARAM_H */
2736 # define getpagesize() 8192 /* punt totally */
2737 # endif /* no HAVE_SYS_PARAM_H */
2738 # endif /* no _SC_PAGESIZE */
2740 #endif /* no HAVE_GETPAGESIZE */
2743 extern "C" { void *malloc(unsigned); }
2751 char *data, *data2, *data3;
2755 pagesize = getpagesize();
2758 * First, make a file with some known garbage in it.
2760 data = malloc(pagesize);
2763 for (i = 0; i < pagesize; ++i)
2764 *(data + i) = rand();
2766 fd = creat("conftestmmap", 0600);
2769 if (write(fd, data, pagesize) != pagesize)
2774 * Next, try to mmap the file at a fixed address which
2775 * already has something else allocated at it. If we can,
2776 * also make sure that we see the same garbage.
2778 fd = open("conftestmmap", O_RDWR);
2781 data2 = malloc(2 * pagesize);
2784 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2785 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2786 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2788 for (i = 0; i < pagesize; ++i)
2789 if (*(data + i) != *(data2 + i))
2793 * Finally, make sure that changes to the mapped area
2794 * do not percolate back to the file as seen by read().
2795 * (This is a bug on some variants of i386 svr4.0.)
2797 for (i = 0; i < pagesize; ++i)
2798 *(data2 + i) = *(data2 + i) + 1;
2799 data3 = malloc(pagesize);
2802 if (read(fd, data3, pagesize) != pagesize)
2804 for (i = 0; i < pagesize; ++i)
2805 if (*(data + i) != *(data3 + i))
2808 unlink("conftestmmap");
2813 if { (eval echo configure:2814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2815 ac_cv_func_mmap_fixed_mapped=yes
2817 echo "configure: failed program was:" >&5
2818 cat conftest.$ac_ext >&5
2820 ac_cv_func_mmap_fixed_mapped=no
2827 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2828 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2829 cat >> confdefs.h <<\EOF
2835 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2836 echo "configure:2837: checking for vprintf" >&5
2837 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2838 echo $ac_n "(cached) $ac_c" 1>&6
2840 cat > conftest.$ac_ext <<EOF
2841 #line 2842 "configure"
2842 #include "confdefs.h"
2843 /* System header to define __stub macros and hopefully few prototypes,
2844 which can conflict with char vprintf(); below. */
2846 /* Override any gcc2 internal prototype to avoid an error. */
2847 /* We use char because int might match the return type of a gcc2
2848 builtin and then its argument prototype would still apply. */
2853 /* The GNU C library defines this for functions which it implements
2854 to always fail with ENOSYS. Some functions are actually named
2855 something starting with __ and the normal name is an alias. */
2856 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2864 if { (eval echo configure:2865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2866 eval "ac_cv_func_vprintf=yes"
2868 echo "configure: failed program was:" >&5
2869 cat conftest.$ac_ext >&5
2871 eval "ac_cv_func_vprintf=no"
2876 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2877 echo "$ac_t""yes" 1>&6
2878 cat >> confdefs.h <<\EOF
2879 #define HAVE_VPRINTF 1
2883 echo "$ac_t""no" 1>&6
2886 if test "$ac_cv_func_vprintf" != yes; then
2887 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2888 echo "configure:2889: checking for _doprnt" >&5
2889 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2890 echo $ac_n "(cached) $ac_c" 1>&6
2892 cat > conftest.$ac_ext <<EOF
2893 #line 2894 "configure"
2894 #include "confdefs.h"
2895 /* System header to define __stub macros and hopefully few prototypes,
2896 which can conflict with char _doprnt(); below. */
2898 /* Override any gcc2 internal prototype to avoid an error. */
2899 /* We use char because int might match the return type of a gcc2
2900 builtin and then its argument prototype would still apply. */
2905 /* The GNU C library defines this for functions which it implements
2906 to always fail with ENOSYS. Some functions are actually named
2907 something starting with __ and the normal name is an alias. */
2908 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2916 if { (eval echo configure:2917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2918 eval "ac_cv_func__doprnt=yes"
2920 echo "configure: failed program was:" >&5
2921 cat conftest.$ac_ext >&5
2923 eval "ac_cv_func__doprnt=no"
2928 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2929 echo "$ac_t""yes" 1>&6
2930 cat >> confdefs.h <<\EOF
2931 #define HAVE_DOPRNT 1
2935 echo "$ac_t""no" 1>&6
2940 for ac_func in getcwd putenv socket strcspn strdup strerror strstr
2942 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2943 echo "configure:2944: checking for $ac_func" >&5
2944 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2945 echo $ac_n "(cached) $ac_c" 1>&6
2947 cat > conftest.$ac_ext <<EOF
2948 #line 2949 "configure"
2949 #include "confdefs.h"
2950 /* System header to define __stub macros and hopefully few prototypes,
2951 which can conflict with char $ac_func(); below. */
2953 /* Override any gcc2 internal prototype to avoid an error. */
2954 /* We use char because int might match the return type of a gcc2
2955 builtin and then its argument prototype would still apply. */
2960 /* The GNU C library defines this for functions which it implements
2961 to always fail with ENOSYS. Some functions are actually named
2962 something starting with __ and the normal name is an alias. */
2963 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2971 if { (eval echo configure:2972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2973 eval "ac_cv_func_$ac_func=yes"
2975 echo "configure: failed program was:" >&5
2976 cat conftest.$ac_ext >&5
2978 eval "ac_cv_func_$ac_func=no"
2983 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2984 echo "$ac_t""yes" 1>&6
2985 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2986 cat >> confdefs.h <<EOF
2987 #define $ac_tr_func 1
2991 echo "$ac_t""no" 1>&6
2997 cat > confcache <<\EOF
2998 # This file is a shell script that caches the results of configure
2999 # tests run on this system so they can be shared between configure
3000 # scripts and configure runs. It is not useful on other systems.
3001 # If it contains results you don't want to keep, you may remove or edit it.
3003 # By default, configure uses ./config.cache as the cache file,
3004 # creating it if it does not exist already. You can give configure
3005 # the --cache-file=FILE option to use a different cache file; that is
3006 # what configure does when it calls configure scripts in
3007 # subdirectories, so they share the cache.
3008 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3009 # config.status only pays attention to the cache file if you give it the
3010 # --recheck option to rerun configure.
3013 # The following way of writing the cache mishandles newlines in values,
3014 # but we know of no workaround that is simple, portable, and efficient.
3015 # So, don't put newlines in cache variables' values.
3016 # Ultrix sh set writes to stderr and can't be redirected directly,
3017 # and sets the high bit in the cache file unless we assign to the vars.
3019 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3021 # `set' does not quote correctly, so add quotes (double-quote substitution
3022 # turns \\\\ into \\, and sed turns \\ into \).
3024 -e "s/'/'\\\\''/g" \
3025 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3028 # `set' quotes correctly as required by POSIX, so do not add quotes.
3029 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3032 if cmp -s $cache_file confcache; then
3035 if test -w $cache_file; then
3036 echo "updating cache $cache_file"
3037 cat confcache > $cache_file
3039 echo "not updating unwritable cache $cache_file"
3044 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3046 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3047 # Let make expand exec_prefix.
3048 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3050 # Any assignment to VPATH causes Sun make to only execute
3051 # the first set of double-colon rules, so remove it if not needed.
3052 # If there is a colon in the path, we need to keep it.
3053 if test "x$srcdir" = x.; then
3054 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3057 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3059 DEFS=-DHAVE_CONFIG_H
3061 # Without the "./", some shells look in PATH for config.status.
3062 : ${CONFIG_STATUS=./config.status}
3064 echo creating $CONFIG_STATUS
3065 rm -f $CONFIG_STATUS
3066 cat > $CONFIG_STATUS <<EOF
3068 # Generated automatically by configure.
3069 # Run this file to recreate the current configuration.
3070 # This directory was configured as follows,
3071 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3073 # $0 $ac_configure_args
3075 # Compiler output produced by configure, useful for debugging
3076 # configure, is in ./config.log if it exists.
3078 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3081 case "\$ac_option" in
3082 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3083 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3084 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3085 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3086 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3088 -help | --help | --hel | --he | --h)
3089 echo "\$ac_cs_usage"; exit 0 ;;
3090 *) echo "\$ac_cs_usage"; exit 1 ;;
3094 ac_given_srcdir=$srcdir
3095 ac_given_INSTALL="$INSTALL"
3097 trap 'rm -fr `echo "./release Makefile lib/Makefile src/Makefile pdf2swf/Makefile pdf2swf/xpdf/Makefile pdf2swf/fonts/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3099 cat >> $CONFIG_STATUS <<EOF
3101 # Protect against being on the right side of a sed subst in config.status.
3102 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3103 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3107 s%@CFLAGS@%$CFLAGS%g
3108 s%@CPPFLAGS@%$CPPFLAGS%g
3109 s%@CXXFLAGS@%$CXXFLAGS%g
3110 s%@FFLAGS@%$FFLAGS%g
3112 s%@LDFLAGS@%$LDFLAGS%g
3114 s%@exec_prefix@%$exec_prefix%g
3115 s%@prefix@%$prefix%g
3116 s%@program_transform_name@%$program_transform_name%g
3117 s%@bindir@%$bindir%g
3118 s%@sbindir@%$sbindir%g
3119 s%@libexecdir@%$libexecdir%g
3120 s%@datadir@%$datadir%g
3121 s%@sysconfdir@%$sysconfdir%g
3122 s%@sharedstatedir@%$sharedstatedir%g
3123 s%@localstatedir@%$localstatedir%g
3124 s%@libdir@%$libdir%g
3125 s%@includedir@%$includedir%g
3126 s%@oldincludedir@%$oldincludedir%g
3127 s%@infodir@%$infodir%g
3128 s%@mandir@%$mandir%g
3129 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3130 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3131 s%@INSTALL_DATA@%$INSTALL_DATA%g
3132 s%@PACKAGE@%$PACKAGE%g
3133 s%@VERSION@%$VERSION%g
3134 s%@ACLOCAL@%$ACLOCAL%g
3135 s%@AUTOCONF@%$AUTOCONF%g
3136 s%@AUTOMAKE@%$AUTOMAKE%g
3137 s%@AUTOHEADER@%$AUTOHEADER%g
3138 s%@MAKEINFO@%$MAKEINFO%g
3139 s%@SET_MAKE@%$SET_MAKE%g
3144 s%@RANLIB@%$RANLIB%g
3146 s%@EXEEXT@%$EXEEXT%g
3147 s%@HAVE_UNISTD_H@%$HAVE_UNISTD_H%g
3148 s%@LIBOBJS@%$LIBOBJS%g
3153 cat >> $CONFIG_STATUS <<\EOF
3155 # Split the substitutions into bite-sized pieces for seds with
3156 # small command number limits, like on Digital OSF/1 and HP-UX.
3157 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3158 ac_file=1 # Number of current file.
3159 ac_beg=1 # First line for current file.
3160 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3163 while $ac_more_lines; do
3164 if test $ac_beg -gt 1; then
3165 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3167 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3169 if test ! -s conftest.s$ac_file; then
3171 rm -f conftest.s$ac_file
3173 if test -z "$ac_sed_cmds"; then
3174 ac_sed_cmds="sed -f conftest.s$ac_file"
3176 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3178 ac_file=`expr $ac_file + 1`
3180 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3183 if test -z "$ac_sed_cmds"; then
3188 cat >> $CONFIG_STATUS <<EOF
3190 CONFIG_FILES=\${CONFIG_FILES-"./release Makefile lib/Makefile src/Makefile pdf2swf/Makefile pdf2swf/xpdf/Makefile pdf2swf/fonts/Makefile"}
3192 cat >> $CONFIG_STATUS <<\EOF
3193 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3194 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3196 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3197 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3198 *) ac_file_in="${ac_file}.in" ;;
3201 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3203 # Remove last slash and all that follows it. Not all systems have dirname.
3204 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3205 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3206 # The file is in a subdirectory.
3207 test ! -d "$ac_dir" && mkdir "$ac_dir"
3208 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3209 # A "../" for each directory in $ac_dir_suffix.
3210 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3212 ac_dir_suffix= ac_dots=
3215 case "$ac_given_srcdir" in
3217 if test -z "$ac_dots"; then top_srcdir=.
3218 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3219 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3221 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3222 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3225 case "$ac_given_INSTALL" in
3226 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3227 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3230 echo creating "$ac_file"
3232 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3234 *Makefile*) ac_comsub="1i\\
3235 # $configure_input" ;;
3239 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3241 s%@configure_input@%$configure_input%g
3242 s%@srcdir@%$srcdir%g
3243 s%@top_srcdir@%$top_srcdir%g
3244 s%@INSTALL@%$INSTALL%g
3245 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3249 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3250 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3252 # ac_d sets the value in "#define NAME VALUE" lines.
3253 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3254 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3257 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3258 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3259 ac_uB='\([ ]\)%\1#\2define\3'
3262 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3263 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3264 ac_eB='$%\1#\2define\3'
3268 if test "${CONFIG_HEADERS+set}" != set; then
3270 cat >> $CONFIG_STATUS <<EOF
3271 CONFIG_HEADERS="config.h"
3273 cat >> $CONFIG_STATUS <<\EOF
3275 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3276 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3278 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3279 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3280 *) ac_file_in="${ac_file}.in" ;;
3283 echo creating $ac_file
3285 rm -f conftest.frag conftest.in conftest.out
3286 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3287 cat $ac_file_inputs > conftest.in
3291 # Transform confdefs.h into a sed script conftest.vals that substitutes
3292 # the proper values into config.h.in to produce config.h. And first:
3293 # Protect against being on the right side of a sed subst in config.status.
3294 # Protect against being in an unquoted here document in config.status.
3296 cat > conftest.hdr <<\EOF
3299 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3303 sed -n -f conftest.hdr confdefs.h > conftest.vals
3306 # This sed command replaces #undef with comments. This is necessary, for
3307 # example, in the case of _POSIX_SOURCE, which is predefined and required
3308 # on some systems where configure will not decide to define it.
3309 cat >> conftest.vals <<\EOF
3310 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3313 # Break up conftest.vals because some shells have a limit on
3314 # the size of here documents, and old seds have small limits too.
3319 ac_lines=`grep -c . conftest.vals`
3320 # grep -c gives empty output for an empty file on some AIX systems.
3321 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3322 # Write a limited-size here document to conftest.frag.
3323 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3324 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3326 sed -f conftest.frag conftest.in > conftest.out
3328 mv conftest.out conftest.in
3330 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3332 mv conftest.tail conftest.vals
3336 cat >> $CONFIG_STATUS <<\EOF
3337 rm -f conftest.frag conftest.h
3338 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3339 cat conftest.in >> conftest.h
3341 if cmp -s $ac_file conftest.h 2>/dev/null; then
3342 echo "$ac_file is unchanged"
3345 # Remove last slash and all that follows it. Not all systems have dirname.
3346 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3347 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3348 # The file is in a subdirectory.
3349 test ! -d "$ac_dir" && mkdir "$ac_dir"
3352 mv conftest.h $ac_file
3357 cat >> $CONFIG_STATUS <<EOF
3361 cat >> $CONFIG_STATUS <<\EOF
3362 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
3366 chmod +x $CONFIG_STATUS
3367 rm -fr confdefs* $ac_clean_files
3368 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1