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.";
1570 echo $ac_n "checking for crc32 in -lz""... $ac_c" 1>&6
1571 echo "configure:1572: checking for crc32 in -lz" >&5
1572 ac_lib_var=`echo z'_'crc32 | sed 'y%./+-%__p_%'`
1573 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1574 echo $ac_n "(cached) $ac_c" 1>&6
1576 ac_save_LIBS="$LIBS"
1578 cat > conftest.$ac_ext <<EOF
1579 #line 1580 "configure"
1580 #include "confdefs.h"
1581 /* Override any gcc2 internal prototype to avoid an error. */
1582 /* We use char because int might match the return type of a gcc2
1583 builtin and then its argument prototype would still apply. */
1590 if { (eval echo configure:1591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1592 eval "ac_cv_lib_$ac_lib_var=yes"
1594 echo "configure: failed program was:" >&5
1595 cat conftest.$ac_ext >&5
1597 eval "ac_cv_lib_$ac_lib_var=no"
1600 LIBS="$ac_save_LIBS"
1603 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1604 echo "$ac_t""yes" 1>&6
1605 ac_tr_lib=HAVE_LIB`echo z | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1606 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1607 cat >> confdefs.h <<EOF
1608 #define $ac_tr_lib 1
1614 echo "$ac_t""no" 1>&6
1615 echo "Error: The zlib compression library is required."
1616 DISABLEPDF2SWF=true;
1617 MISSINGLIBS="${MISSINGLIBS} zlib"
1622 echo $ac_n "checking for jpeg_write_raw_data in -ljpeg""... $ac_c" 1>&6
1623 echo "configure:1624: checking for jpeg_write_raw_data in -ljpeg" >&5
1624 ac_lib_var=`echo jpeg'_'jpeg_write_raw_data | sed 'y%./+-%__p_%'`
1625 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1626 echo $ac_n "(cached) $ac_c" 1>&6
1628 ac_save_LIBS="$LIBS"
1630 cat > conftest.$ac_ext <<EOF
1631 #line 1632 "configure"
1632 #include "confdefs.h"
1633 /* Override any gcc2 internal prototype to avoid an error. */
1634 /* We use char because int might match the return type of a gcc2
1635 builtin and then its argument prototype would still apply. */
1636 char jpeg_write_raw_data();
1639 jpeg_write_raw_data()
1642 if { (eval echo configure:1643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1644 eval "ac_cv_lib_$ac_lib_var=yes"
1646 echo "configure: failed program was:" >&5
1647 cat conftest.$ac_ext >&5
1649 eval "ac_cv_lib_$ac_lib_var=no"
1652 LIBS="$ac_save_LIBS"
1655 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1656 echo "$ac_t""yes" 1>&6
1657 ac_tr_lib=HAVE_LIB`echo jpeg | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1658 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1659 cat >> confdefs.h <<EOF
1660 #define $ac_tr_lib 1
1666 echo "$ac_t""no" 1>&6
1667 DISABLEPDF2SWF=true;
1668 DISABLEJPEG2SWF=true;
1669 MISSINGLIBS="${MISSINGLIBS} jpeglib"
1673 echo $ac_n "checking for T1_LoadFont in -lt1""... $ac_c" 1>&6
1674 echo "configure:1675: checking for T1_LoadFont in -lt1" >&5
1675 ac_lib_var=`echo t1'_'T1_LoadFont | sed 'y%./+-%__p_%'`
1676 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1677 echo $ac_n "(cached) $ac_c" 1>&6
1679 ac_save_LIBS="$LIBS"
1681 cat > conftest.$ac_ext <<EOF
1682 #line 1683 "configure"
1683 #include "confdefs.h"
1684 /* Override any gcc2 internal prototype to avoid an error. */
1685 /* We use char because int might match the return type of a gcc2
1686 builtin and then its argument prototype would still apply. */
1693 if { (eval echo configure:1694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1695 eval "ac_cv_lib_$ac_lib_var=yes"
1697 echo "configure: failed program was:" >&5
1698 cat conftest.$ac_ext >&5
1700 eval "ac_cv_lib_$ac_lib_var=no"
1703 LIBS="$ac_save_LIBS"
1706 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1707 echo "$ac_t""yes" 1>&6
1708 ac_tr_lib=HAVE_LIB`echo t1 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1709 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1710 cat >> confdefs.h <<EOF
1711 #define $ac_tr_lib 1
1717 echo "$ac_t""no" 1>&6
1718 DISABLEPDF2SWF=true;
1719 MISSINGLIBS="${MISSINGLIBS} T1lib"
1724 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
1725 echo "configure:1726: checking for pthread_create in -lpthread" >&5
1726 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
1727 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1728 echo $ac_n "(cached) $ac_c" 1>&6
1730 ac_save_LIBS="$LIBS"
1731 LIBS="-lpthread $LIBS"
1732 cat > conftest.$ac_ext <<EOF
1733 #line 1734 "configure"
1734 #include "confdefs.h"
1735 /* Override any gcc2 internal prototype to avoid an error. */
1736 /* We use char because int might match the return type of a gcc2
1737 builtin and then its argument prototype would still apply. */
1738 char pthread_create();
1744 if { (eval echo configure:1745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1746 eval "ac_cv_lib_$ac_lib_var=yes"
1748 echo "configure: failed program was:" >&5
1749 cat conftest.$ac_ext >&5
1751 eval "ac_cv_lib_$ac_lib_var=no"
1754 LIBS="$ac_save_LIBS"
1757 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1758 echo "$ac_t""yes" 1>&6
1759 ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1760 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1761 cat >> confdefs.h <<EOF
1762 #define $ac_tr_lib 1
1765 LIBS="-lpthread $LIBS"
1768 echo "$ac_t""no" 1>&6
1771 echo $ac_n "checking for XFlush in -lX11""... $ac_c" 1>&6
1772 echo "configure:1773: checking for XFlush in -lX11" >&5
1773 ac_lib_var=`echo X11'_'XFlush | sed 'y%./+-%__p_%'`
1774 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1775 echo $ac_n "(cached) $ac_c" 1>&6
1777 ac_save_LIBS="$LIBS"
1779 cat > conftest.$ac_ext <<EOF
1780 #line 1781 "configure"
1781 #include "confdefs.h"
1782 /* Override any gcc2 internal prototype to avoid an error. */
1783 /* We use char because int might match the return type of a gcc2
1784 builtin and then its argument prototype would still apply. */
1791 if { (eval echo configure:1792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1793 eval "ac_cv_lib_$ac_lib_var=yes"
1795 echo "configure: failed program was:" >&5
1796 cat conftest.$ac_ext >&5
1798 eval "ac_cv_lib_$ac_lib_var=no"
1801 LIBS="$ac_save_LIBS"
1804 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1805 echo "$ac_t""yes" 1>&6
1806 ac_tr_lib=HAVE_LIB`echo X11 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1807 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1808 cat >> confdefs.h <<EOF
1809 #define $ac_tr_lib 1
1815 echo "$ac_t""no" 1>&6
1822 # If we find X, set shell vars x_includes and x_libraries to the
1823 # paths, otherwise set no_x=yes.
1824 # Uses ac_ vars as temps to allow command line to override cache and checks.
1825 # --without-x overrides everything else, but does not touch the cache.
1826 echo $ac_n "checking for X""... $ac_c" 1>&6
1827 echo "configure:1828: checking for X" >&5
1829 # Check whether --with-x or --without-x was given.
1830 if test "${with_x+set}" = set; then
1835 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
1836 if test "x$with_x" = xno; then
1837 # The user explicitly disabled X.
1840 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
1841 # Both variables are already set.
1844 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1845 echo $ac_n "(cached) $ac_c" 1>&6
1847 # One or both of the vars are not set, and there is no cached value.
1848 ac_x_includes=NO ac_x_libraries=NO
1850 if mkdir conftestdir; then
1852 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1853 cat > Imakefile <<'EOF'
1855 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1857 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
1858 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1859 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1860 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1861 for ac_extension in a so sl; do
1862 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
1863 test -f $ac_im_libdir/libX11.$ac_extension; then
1864 ac_im_usrlibdir=$ac_im_libdir; break
1867 # Screen out bogus values from the imake configuration. They are
1868 # bogus both because they are the default anyway, and because
1869 # using them would break gcc on systems where it needs fixed includes.
1870 case "$ac_im_incroot" in
1872 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
1874 case "$ac_im_usrlibdir" in
1876 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
1883 if test "$ac_x_includes" = NO; then
1884 # Guess where to find include files, by looking for this one X11 .h file.
1885 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
1887 # First, try using that file with no special directory specified.
1888 cat > conftest.$ac_ext <<EOF
1889 #line 1890 "configure"
1890 #include "confdefs.h"
1891 #include <$x_direct_test_include>
1893 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1894 { (eval echo configure:1895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1895 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1896 if test -z "$ac_err"; then
1898 # We can compile using X headers with no special include directory.
1902 echo "configure: failed program was:" >&5
1903 cat conftest.$ac_ext >&5
1905 # Look for the header file in a standard set of common directories.
1906 # Check X11 before X11Rn because it is often a symlink to the current release.
1909 /usr/X11R6/include \
1910 /usr/X11R5/include \
1911 /usr/X11R4/include \
1914 /usr/include/X11R6 \
1915 /usr/include/X11R5 \
1916 /usr/include/X11R4 \
1918 /usr/local/X11/include \
1919 /usr/local/X11R6/include \
1920 /usr/local/X11R5/include \
1921 /usr/local/X11R4/include \
1923 /usr/local/include/X11 \
1924 /usr/local/include/X11R6 \
1925 /usr/local/include/X11R5 \
1926 /usr/local/include/X11R4 \
1930 /usr/XFree86/include/X11 \
1933 /usr/local/include \
1934 /usr/unsupported/include \
1935 /usr/athena/include \
1936 /usr/local/x11r5/include \
1937 /usr/lpp/Xamples/include \
1939 /usr/openwin/include \
1940 /usr/openwin/share/include \
1943 if test -r "$ac_dir/$x_direct_test_include"; then
1944 ac_x_includes=$ac_dir
1950 fi # $ac_x_includes = NO
1952 if test "$ac_x_libraries" = NO; then
1953 # Check for the libraries.
1955 test -z "$x_direct_test_library" && x_direct_test_library=Xt
1956 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1958 # See if we find them without any special options.
1959 # Don't add to $LIBS permanently.
1960 ac_save_LIBS="$LIBS"
1961 LIBS="-l$x_direct_test_library $LIBS"
1962 cat > conftest.$ac_ext <<EOF
1963 #line 1964 "configure"
1964 #include "confdefs.h"
1967 ${x_direct_test_function}()
1970 if { (eval echo configure:1971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1972 LIBS="$ac_save_LIBS"
1973 # We can link X programs with no special library path.
1976 echo "configure: failed program was:" >&5
1977 cat conftest.$ac_ext >&5
1979 LIBS="$ac_save_LIBS"
1980 # First see if replacing the include by lib works.
1981 # Check X11 before X11Rn because it is often a symlink to the current release.
1982 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1993 /usr/local/X11/lib \
1994 /usr/local/X11R6/lib \
1995 /usr/local/X11R5/lib \
1996 /usr/local/X11R4/lib \
1998 /usr/local/lib/X11 \
1999 /usr/local/lib/X11R6 \
2000 /usr/local/lib/X11R5 \
2001 /usr/local/lib/X11R4 \
2005 /usr/XFree86/lib/X11 \
2009 /usr/unsupported/lib \
2011 /usr/local/x11r5/lib \
2012 /usr/lpp/Xamples/lib \
2016 /usr/openwin/share/lib \
2019 for ac_extension in a so sl; do
2020 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
2021 ac_x_libraries=$ac_dir
2028 fi # $ac_x_libraries = NO
2030 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
2031 # Didn't find X anywhere. Cache the known absence of X.
2032 ac_cv_have_x="have_x=no"
2034 # Record where we found X for the cache.
2035 ac_cv_have_x="have_x=yes \
2036 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2040 eval "$ac_cv_have_x"
2043 if test "$have_x" != yes; then
2044 echo "$ac_t""$have_x" 1>&6
2047 # If each of the values was on the command line, it overrides each guess.
2048 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2049 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2050 # Update the cache value to reflect the command line values.
2051 ac_cv_have_x="have_x=yes \
2052 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2053 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
2057 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2059 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2060 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2061 echo "configure:2062: checking for $ac_hdr that defines DIR" >&5
2062 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2063 echo $ac_n "(cached) $ac_c" 1>&6
2065 cat > conftest.$ac_ext <<EOF
2066 #line 2067 "configure"
2067 #include "confdefs.h"
2068 #include <sys/types.h>
2074 if { (eval echo configure:2075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2076 eval "ac_cv_header_dirent_$ac_safe=yes"
2078 echo "configure: failed program was:" >&5
2079 cat conftest.$ac_ext >&5
2081 eval "ac_cv_header_dirent_$ac_safe=no"
2085 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2086 echo "$ac_t""yes" 1>&6
2087 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2088 cat >> confdefs.h <<EOF
2089 #define $ac_tr_hdr 1
2091 ac_header_dirent=$ac_hdr; break
2093 echo "$ac_t""no" 1>&6
2096 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2097 if test $ac_header_dirent = dirent.h; then
2098 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2099 echo "configure:2100: checking for opendir in -ldir" >&5
2100 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2101 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2102 echo $ac_n "(cached) $ac_c" 1>&6
2104 ac_save_LIBS="$LIBS"
2106 cat > conftest.$ac_ext <<EOF
2107 #line 2108 "configure"
2108 #include "confdefs.h"
2109 /* Override any gcc2 internal prototype to avoid an error. */
2110 /* We use char because int might match the return type of a gcc2
2111 builtin and then its argument prototype would still apply. */
2118 if { (eval echo configure:2119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2120 eval "ac_cv_lib_$ac_lib_var=yes"
2122 echo "configure: failed program was:" >&5
2123 cat conftest.$ac_ext >&5
2125 eval "ac_cv_lib_$ac_lib_var=no"
2128 LIBS="$ac_save_LIBS"
2131 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2132 echo "$ac_t""yes" 1>&6
2135 echo "$ac_t""no" 1>&6
2139 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2140 echo "configure:2141: checking for opendir in -lx" >&5
2141 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2142 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2143 echo $ac_n "(cached) $ac_c" 1>&6
2145 ac_save_LIBS="$LIBS"
2147 cat > conftest.$ac_ext <<EOF
2148 #line 2149 "configure"
2149 #include "confdefs.h"
2150 /* Override any gcc2 internal prototype to avoid an error. */
2151 /* We use char because int might match the return type of a gcc2
2152 builtin and then its argument prototype would still apply. */
2159 if { (eval echo configure:2160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2161 eval "ac_cv_lib_$ac_lib_var=yes"
2163 echo "configure: failed program was:" >&5
2164 cat conftest.$ac_ext >&5
2166 eval "ac_cv_lib_$ac_lib_var=no"
2169 LIBS="$ac_save_LIBS"
2172 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2173 echo "$ac_t""yes" 1>&6
2176 echo "$ac_t""no" 1>&6
2181 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2182 echo "configure:2183: checking for ANSI C header files" >&5
2183 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2184 echo $ac_n "(cached) $ac_c" 1>&6
2186 cat > conftest.$ac_ext <<EOF
2187 #line 2188 "configure"
2188 #include "confdefs.h"
2194 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2195 { (eval echo configure:2196: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2196 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2197 if test -z "$ac_err"; then
2199 ac_cv_header_stdc=yes
2202 echo "configure: failed program was:" >&5
2203 cat conftest.$ac_ext >&5
2205 ac_cv_header_stdc=no
2209 if test $ac_cv_header_stdc = yes; then
2210 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2211 cat > conftest.$ac_ext <<EOF
2212 #line 2213 "configure"
2213 #include "confdefs.h"
2216 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2217 egrep "memchr" >/dev/null 2>&1; then
2221 ac_cv_header_stdc=no
2227 if test $ac_cv_header_stdc = yes; then
2228 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2229 cat > conftest.$ac_ext <<EOF
2230 #line 2231 "configure"
2231 #include "confdefs.h"
2234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2235 egrep "free" >/dev/null 2>&1; then
2239 ac_cv_header_stdc=no
2245 if test $ac_cv_header_stdc = yes; then
2246 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2247 if test "$cross_compiling" = yes; then
2250 cat > conftest.$ac_ext <<EOF
2251 #line 2252 "configure"
2252 #include "confdefs.h"
2254 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2255 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2256 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2257 int main () { int i; for (i = 0; i < 256; i++)
2258 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2262 if { (eval echo configure:2263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2266 echo "configure: failed program was:" >&5
2267 cat conftest.$ac_ext >&5
2269 ac_cv_header_stdc=no
2277 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2278 if test $ac_cv_header_stdc = yes; then
2279 cat >> confdefs.h <<\EOF
2280 #define STDC_HEADERS 1
2285 for ac_hdr in math.h fcntl.h limits.h malloc.h unistd.h memory.h zlib.h jpeglib.h t1lib.h
2287 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2288 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2289 echo "configure:2290: checking for $ac_hdr" >&5
2290 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2291 echo $ac_n "(cached) $ac_c" 1>&6
2293 cat > conftest.$ac_ext <<EOF
2294 #line 2295 "configure"
2295 #include "confdefs.h"
2298 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2299 { (eval echo configure:2300: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2300 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2301 if test -z "$ac_err"; then
2303 eval "ac_cv_header_$ac_safe=yes"
2306 echo "configure: failed program was:" >&5
2307 cat conftest.$ac_ext >&5
2309 eval "ac_cv_header_$ac_safe=no"
2313 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2314 echo "$ac_t""yes" 1>&6
2315 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2316 cat >> confdefs.h <<EOF
2317 #define $ac_tr_hdr 1
2321 echo "$ac_t""no" 1>&6
2329 echo $ac_n "checking for working const""... $ac_c" 1>&6
2330 echo "configure:2331: checking for working const" >&5
2331 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2332 echo $ac_n "(cached) $ac_c" 1>&6
2334 cat > conftest.$ac_ext <<EOF
2335 #line 2336 "configure"
2336 #include "confdefs.h"
2340 /* Ultrix mips cc rejects this. */
2341 typedef int charset[2]; const charset x;
2342 /* SunOS 4.1.1 cc rejects this. */
2343 char const *const *ccp;
2345 /* NEC SVR4.0.2 mips cc rejects this. */
2346 struct point {int x, y;};
2347 static struct point const zero = {0,0};
2348 /* AIX XL C 1.02.0.0 rejects this.
2349 It does not let you subtract one const X* pointer from another in an arm
2350 of an if-expression whose if-part is not a constant expression */
2351 const char *g = "string";
2352 ccp = &g + (g ? g-g : 0);
2353 /* HPUX 7.0 cc rejects these. */
2356 ccp = (char const *const *) p;
2357 { /* SCO 3.2v4 cc rejects this. */
2359 char const *s = 0 ? (char *) 0 : (char const *) 0;
2363 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2365 const int *foo = &x[0];
2368 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2369 typedef const int *iptr;
2373 { /* AIX XL C 1.02.0.0 rejects this saying
2374 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2375 struct s { int j; const int *ap[3]; };
2376 struct s *b; b->j = 5;
2378 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2384 if { (eval echo configure:2385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2388 echo "configure: failed program was:" >&5
2389 cat conftest.$ac_ext >&5
2396 echo "$ac_t""$ac_cv_c_const" 1>&6
2397 if test $ac_cv_c_const = no; then
2398 cat >> confdefs.h <<\EOF
2404 echo $ac_n "checking for inline""... $ac_c" 1>&6
2405 echo "configure:2406: checking for inline" >&5
2406 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2407 echo $ac_n "(cached) $ac_c" 1>&6
2410 for ac_kw in inline __inline__ __inline; do
2411 cat > conftest.$ac_ext <<EOF
2412 #line 2413 "configure"
2413 #include "confdefs.h"
2419 if { (eval echo configure:2420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2421 ac_cv_c_inline=$ac_kw; break
2423 echo "configure: failed program was:" >&5
2424 cat conftest.$ac_ext >&5
2431 echo "$ac_t""$ac_cv_c_inline" 1>&6
2432 case "$ac_cv_c_inline" in
2434 no) cat >> confdefs.h <<\EOF
2438 *) cat >> confdefs.h <<EOF
2439 #define inline $ac_cv_c_inline
2444 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2445 echo "configure:2446: checking for off_t" >&5
2446 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2447 echo $ac_n "(cached) $ac_c" 1>&6
2449 cat > conftest.$ac_ext <<EOF
2450 #line 2451 "configure"
2451 #include "confdefs.h"
2452 #include <sys/types.h>
2458 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2459 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2461 ac_cv_type_off_t=yes
2469 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2470 if test $ac_cv_type_off_t = no; then
2471 cat >> confdefs.h <<\EOF
2477 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2478 echo "configure:2479: checking for size_t" >&5
2479 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2480 echo $ac_n "(cached) $ac_c" 1>&6
2482 cat > conftest.$ac_ext <<EOF
2483 #line 2484 "configure"
2484 #include "confdefs.h"
2485 #include <sys/types.h>
2491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2492 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2494 ac_cv_type_size_t=yes
2497 ac_cv_type_size_t=no
2502 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2503 if test $ac_cv_type_size_t = no; then
2504 cat >> confdefs.h <<\EOF
2505 #define size_t unsigned
2510 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2511 echo "configure:2512: checking whether struct tm is in sys/time.h or time.h" >&5
2512 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2513 echo $ac_n "(cached) $ac_c" 1>&6
2515 cat > conftest.$ac_ext <<EOF
2516 #line 2517 "configure"
2517 #include "confdefs.h"
2518 #include <sys/types.h>
2521 struct tm *tp; tp->tm_sec;
2524 if { (eval echo configure:2525: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2526 ac_cv_struct_tm=time.h
2528 echo "configure: failed program was:" >&5
2529 cat conftest.$ac_ext >&5
2531 ac_cv_struct_tm=sys/time.h
2536 echo "$ac_t""$ac_cv_struct_tm" 1>&6
2537 if test $ac_cv_struct_tm = sys/time.h; then
2538 cat >> confdefs.h <<\EOF
2539 #define TM_IN_SYS_TIME 1
2545 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
2546 echo "configure:2547: checking for 8-bit clean memcmp" >&5
2547 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
2548 echo $ac_n "(cached) $ac_c" 1>&6
2550 if test "$cross_compiling" = yes; then
2551 ac_cv_func_memcmp_clean=no
2553 cat > conftest.$ac_ext <<EOF
2554 #line 2555 "configure"
2555 #include "confdefs.h"
2559 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
2560 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
2564 if { (eval echo configure:2565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2566 ac_cv_func_memcmp_clean=yes
2568 echo "configure: failed program was:" >&5
2569 cat conftest.$ac_ext >&5
2571 ac_cv_func_memcmp_clean=no
2578 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
2579 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
2581 for ac_hdr in unistd.h
2583 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2584 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2585 echo "configure:2586: checking for $ac_hdr" >&5
2586 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2587 echo $ac_n "(cached) $ac_c" 1>&6
2589 cat > conftest.$ac_ext <<EOF
2590 #line 2591 "configure"
2591 #include "confdefs.h"
2594 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2595 { (eval echo configure:2596: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2596 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2597 if test -z "$ac_err"; then
2599 eval "ac_cv_header_$ac_safe=yes"
2602 echo "configure: failed program was:" >&5
2603 cat conftest.$ac_ext >&5
2605 eval "ac_cv_header_$ac_safe=no"
2609 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2610 echo "$ac_t""yes" 1>&6
2611 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2612 cat >> confdefs.h <<EOF
2613 #define $ac_tr_hdr 1
2617 echo "$ac_t""no" 1>&6
2621 for ac_func in getpagesize
2623 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2624 echo "configure:2625: checking for $ac_func" >&5
2625 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2626 echo $ac_n "(cached) $ac_c" 1>&6
2628 cat > conftest.$ac_ext <<EOF
2629 #line 2630 "configure"
2630 #include "confdefs.h"
2631 /* System header to define __stub macros and hopefully few prototypes,
2632 which can conflict with char $ac_func(); below. */
2634 /* Override any gcc2 internal prototype to avoid an error. */
2635 /* We use char because int might match the return type of a gcc2
2636 builtin and then its argument prototype would still apply. */
2641 /* The GNU C library defines this for functions which it implements
2642 to always fail with ENOSYS. Some functions are actually named
2643 something starting with __ and the normal name is an alias. */
2644 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2652 if { (eval echo configure:2653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2654 eval "ac_cv_func_$ac_func=yes"
2656 echo "configure: failed program was:" >&5
2657 cat conftest.$ac_ext >&5
2659 eval "ac_cv_func_$ac_func=no"
2664 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2665 echo "$ac_t""yes" 1>&6
2666 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2667 cat >> confdefs.h <<EOF
2668 #define $ac_tr_func 1
2672 echo "$ac_t""no" 1>&6
2676 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2677 echo "configure:2678: checking for working mmap" >&5
2678 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2679 echo $ac_n "(cached) $ac_c" 1>&6
2681 if test "$cross_compiling" = yes; then
2682 ac_cv_func_mmap_fixed_mapped=no
2684 cat > conftest.$ac_ext <<EOF
2685 #line 2686 "configure"
2686 #include "confdefs.h"
2688 /* Thanks to Mike Haertel and Jim Avera for this test.
2689 Here is a matrix of mmap possibilities:
2690 mmap private not fixed
2691 mmap private fixed at somewhere currently unmapped
2692 mmap private fixed at somewhere already mapped
2693 mmap shared not fixed
2694 mmap shared fixed at somewhere currently unmapped
2695 mmap shared fixed at somewhere already mapped
2696 For private mappings, we should verify that changes cannot be read()
2697 back from the file, nor mmap's back from the file at a different
2698 address. (There have been systems where private was not correctly
2699 implemented like the infamous i386 svr4.0, and systems where the
2700 VM page cache was not coherent with the filesystem buffer cache
2701 like early versions of FreeBSD and possibly contemporary NetBSD.)
2702 For shared mappings, we should conversely verify that changes get
2703 propogated back to all the places they're supposed to be.
2705 Grep wants private fixed already mapped.
2706 The main things grep needs to know about mmap are:
2707 * does it exist and is it safe to write into the mmap'd area
2708 * how to use it (BSD variants) */
2709 #include <sys/types.h>
2711 #include <sys/mman.h>
2713 /* This mess was copied from the GNU getpagesize.h. */
2714 #ifndef HAVE_GETPAGESIZE
2715 # ifdef HAVE_UNISTD_H
2716 # include <unistd.h>
2719 /* Assume that all systems that can run configure have sys/param.h. */
2720 # ifndef HAVE_SYS_PARAM_H
2721 # define HAVE_SYS_PARAM_H 1
2724 # ifdef _SC_PAGESIZE
2725 # define getpagesize() sysconf(_SC_PAGESIZE)
2726 # else /* no _SC_PAGESIZE */
2727 # ifdef HAVE_SYS_PARAM_H
2728 # include <sys/param.h>
2729 # ifdef EXEC_PAGESIZE
2730 # define getpagesize() EXEC_PAGESIZE
2731 # else /* no EXEC_PAGESIZE */
2733 # define getpagesize() NBPG * CLSIZE
2736 # endif /* no CLSIZE */
2737 # else /* no NBPG */
2739 # define getpagesize() NBPC
2740 # else /* no NBPC */
2742 # define getpagesize() PAGESIZE
2743 # endif /* PAGESIZE */
2744 # endif /* no NBPC */
2745 # endif /* no NBPG */
2746 # endif /* no EXEC_PAGESIZE */
2747 # else /* no HAVE_SYS_PARAM_H */
2748 # define getpagesize() 8192 /* punt totally */
2749 # endif /* no HAVE_SYS_PARAM_H */
2750 # endif /* no _SC_PAGESIZE */
2752 #endif /* no HAVE_GETPAGESIZE */
2755 extern "C" { void *malloc(unsigned); }
2763 char *data, *data2, *data3;
2767 pagesize = getpagesize();
2770 * First, make a file with some known garbage in it.
2772 data = malloc(pagesize);
2775 for (i = 0; i < pagesize; ++i)
2776 *(data + i) = rand();
2778 fd = creat("conftestmmap", 0600);
2781 if (write(fd, data, pagesize) != pagesize)
2786 * Next, try to mmap the file at a fixed address which
2787 * already has something else allocated at it. If we can,
2788 * also make sure that we see the same garbage.
2790 fd = open("conftestmmap", O_RDWR);
2793 data2 = malloc(2 * pagesize);
2796 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2797 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2798 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2800 for (i = 0; i < pagesize; ++i)
2801 if (*(data + i) != *(data2 + i))
2805 * Finally, make sure that changes to the mapped area
2806 * do not percolate back to the file as seen by read().
2807 * (This is a bug on some variants of i386 svr4.0.)
2809 for (i = 0; i < pagesize; ++i)
2810 *(data2 + i) = *(data2 + i) + 1;
2811 data3 = malloc(pagesize);
2814 if (read(fd, data3, pagesize) != pagesize)
2816 for (i = 0; i < pagesize; ++i)
2817 if (*(data + i) != *(data3 + i))
2820 unlink("conftestmmap");
2825 if { (eval echo configure:2826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2827 ac_cv_func_mmap_fixed_mapped=yes
2829 echo "configure: failed program was:" >&5
2830 cat conftest.$ac_ext >&5
2832 ac_cv_func_mmap_fixed_mapped=no
2839 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2840 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2841 cat >> confdefs.h <<\EOF
2847 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2848 echo "configure:2849: checking for vprintf" >&5
2849 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2850 echo $ac_n "(cached) $ac_c" 1>&6
2852 cat > conftest.$ac_ext <<EOF
2853 #line 2854 "configure"
2854 #include "confdefs.h"
2855 /* System header to define __stub macros and hopefully few prototypes,
2856 which can conflict with char vprintf(); below. */
2858 /* Override any gcc2 internal prototype to avoid an error. */
2859 /* We use char because int might match the return type of a gcc2
2860 builtin and then its argument prototype would still apply. */
2865 /* The GNU C library defines this for functions which it implements
2866 to always fail with ENOSYS. Some functions are actually named
2867 something starting with __ and the normal name is an alias. */
2868 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2876 if { (eval echo configure:2877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2878 eval "ac_cv_func_vprintf=yes"
2880 echo "configure: failed program was:" >&5
2881 cat conftest.$ac_ext >&5
2883 eval "ac_cv_func_vprintf=no"
2888 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2889 echo "$ac_t""yes" 1>&6
2890 cat >> confdefs.h <<\EOF
2891 #define HAVE_VPRINTF 1
2895 echo "$ac_t""no" 1>&6
2898 if test "$ac_cv_func_vprintf" != yes; then
2899 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2900 echo "configure:2901: checking for _doprnt" >&5
2901 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2902 echo $ac_n "(cached) $ac_c" 1>&6
2904 cat > conftest.$ac_ext <<EOF
2905 #line 2906 "configure"
2906 #include "confdefs.h"
2907 /* System header to define __stub macros and hopefully few prototypes,
2908 which can conflict with char _doprnt(); below. */
2910 /* Override any gcc2 internal prototype to avoid an error. */
2911 /* We use char because int might match the return type of a gcc2
2912 builtin and then its argument prototype would still apply. */
2917 /* The GNU C library defines this for functions which it implements
2918 to always fail with ENOSYS. Some functions are actually named
2919 something starting with __ and the normal name is an alias. */
2920 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2928 if { (eval echo configure:2929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2930 eval "ac_cv_func__doprnt=yes"
2932 echo "configure: failed program was:" >&5
2933 cat conftest.$ac_ext >&5
2935 eval "ac_cv_func__doprnt=no"
2940 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2941 echo "$ac_t""yes" 1>&6
2942 cat >> confdefs.h <<\EOF
2943 #define HAVE_DOPRNT 1
2947 echo "$ac_t""no" 1>&6
2952 for ac_func in getcwd putenv socket strcspn strdup strerror strstr
2954 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2955 echo "configure:2956: checking for $ac_func" >&5
2956 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2957 echo $ac_n "(cached) $ac_c" 1>&6
2959 cat > conftest.$ac_ext <<EOF
2960 #line 2961 "configure"
2961 #include "confdefs.h"
2962 /* System header to define __stub macros and hopefully few prototypes,
2963 which can conflict with char $ac_func(); below. */
2965 /* Override any gcc2 internal prototype to avoid an error. */
2966 /* We use char because int might match the return type of a gcc2
2967 builtin and then its argument prototype would still apply. */
2972 /* The GNU C library defines this for functions which it implements
2973 to always fail with ENOSYS. Some functions are actually named
2974 something starting with __ and the normal name is an alias. */
2975 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2983 if { (eval echo configure:2984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2985 eval "ac_cv_func_$ac_func=yes"
2987 echo "configure: failed program was:" >&5
2988 cat conftest.$ac_ext >&5
2990 eval "ac_cv_func_$ac_func=no"
2995 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2996 echo "$ac_t""yes" 1>&6
2997 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2998 cat >> confdefs.h <<EOF
2999 #define $ac_tr_func 1
3003 echo "$ac_t""no" 1>&6
3009 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
3010 echo "***************************************************"
3011 echo "The following libraries are missing: " ${MISSINGLIBS}
3012 echo "Disabling pdf2swf tool..."
3014 echo all: > pdf2swf/Makefile
3015 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
3016 echo "Disabling jpeg2swf tool..."
3018 echo "***************************************************"
3020 cat > confcache <<\EOF
3021 # This file is a shell script that caches the results of configure
3022 # tests run on this system so they can be shared between configure
3023 # scripts and configure runs. It is not useful on other systems.
3024 # If it contains results you don't want to keep, you may remove or edit it.
3026 # By default, configure uses ./config.cache as the cache file,
3027 # creating it if it does not exist already. You can give configure
3028 # the --cache-file=FILE option to use a different cache file; that is
3029 # what configure does when it calls configure scripts in
3030 # subdirectories, so they share the cache.
3031 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3032 # config.status only pays attention to the cache file if you give it the
3033 # --recheck option to rerun configure.
3036 # The following way of writing the cache mishandles newlines in values,
3037 # but we know of no workaround that is simple, portable, and efficient.
3038 # So, don't put newlines in cache variables' values.
3039 # Ultrix sh set writes to stderr and can't be redirected directly,
3040 # and sets the high bit in the cache file unless we assign to the vars.
3042 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3044 # `set' does not quote correctly, so add quotes (double-quote substitution
3045 # turns \\\\ into \\, and sed turns \\ into \).
3047 -e "s/'/'\\\\''/g" \
3048 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3051 # `set' quotes correctly as required by POSIX, so do not add quotes.
3052 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3055 if cmp -s $cache_file confcache; then
3058 if test -w $cache_file; then
3059 echo "updating cache $cache_file"
3060 cat confcache > $cache_file
3062 echo "not updating unwritable cache $cache_file"
3067 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3069 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3070 # Let make expand exec_prefix.
3071 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3073 # Any assignment to VPATH causes Sun make to only execute
3074 # the first set of double-colon rules, so remove it if not needed.
3075 # If there is a colon in the path, we need to keep it.
3076 if test "x$srcdir" = x.; then
3077 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3080 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3082 DEFS=-DHAVE_CONFIG_H
3084 # Without the "./", some shells look in PATH for config.status.
3085 : ${CONFIG_STATUS=./config.status}
3087 echo creating $CONFIG_STATUS
3088 rm -f $CONFIG_STATUS
3089 cat > $CONFIG_STATUS <<EOF
3091 # Generated automatically by configure.
3092 # Run this file to recreate the current configuration.
3093 # This directory was configured as follows,
3094 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3096 # $0 $ac_configure_args
3098 # Compiler output produced by configure, useful for debugging
3099 # configure, is in ./config.log if it exists.
3101 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3104 case "\$ac_option" in
3105 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3106 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3107 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3108 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3109 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3111 -help | --help | --hel | --he | --h)
3112 echo "\$ac_cs_usage"; exit 0 ;;
3113 *) echo "\$ac_cs_usage"; exit 1 ;;
3117 ac_given_srcdir=$srcdir
3118 ac_given_INSTALL="$INSTALL"
3120 trap 'rm -fr `echo "./release Makefile lib/Makefile src/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3122 cat >> $CONFIG_STATUS <<EOF
3124 # Protect against being on the right side of a sed subst in config.status.
3125 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3126 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3130 s%@CFLAGS@%$CFLAGS%g
3131 s%@CPPFLAGS@%$CPPFLAGS%g
3132 s%@CXXFLAGS@%$CXXFLAGS%g
3133 s%@FFLAGS@%$FFLAGS%g
3135 s%@LDFLAGS@%$LDFLAGS%g
3137 s%@exec_prefix@%$exec_prefix%g
3138 s%@prefix@%$prefix%g
3139 s%@program_transform_name@%$program_transform_name%g
3140 s%@bindir@%$bindir%g
3141 s%@sbindir@%$sbindir%g
3142 s%@libexecdir@%$libexecdir%g
3143 s%@datadir@%$datadir%g
3144 s%@sysconfdir@%$sysconfdir%g
3145 s%@sharedstatedir@%$sharedstatedir%g
3146 s%@localstatedir@%$localstatedir%g
3147 s%@libdir@%$libdir%g
3148 s%@includedir@%$includedir%g
3149 s%@oldincludedir@%$oldincludedir%g
3150 s%@infodir@%$infodir%g
3151 s%@mandir@%$mandir%g
3152 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3153 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3154 s%@INSTALL_DATA@%$INSTALL_DATA%g
3155 s%@PACKAGE@%$PACKAGE%g
3156 s%@VERSION@%$VERSION%g
3157 s%@ACLOCAL@%$ACLOCAL%g
3158 s%@AUTOCONF@%$AUTOCONF%g
3159 s%@AUTOMAKE@%$AUTOMAKE%g
3160 s%@AUTOHEADER@%$AUTOHEADER%g
3161 s%@MAKEINFO@%$MAKEINFO%g
3162 s%@SET_MAKE@%$SET_MAKE%g
3167 s%@RANLIB@%$RANLIB%g
3169 s%@EXEEXT@%$EXEEXT%g
3170 s%@HAVE_UNISTD_H@%$HAVE_UNISTD_H%g
3171 s%@LIBOBJS@%$LIBOBJS%g
3176 cat >> $CONFIG_STATUS <<\EOF
3178 # Split the substitutions into bite-sized pieces for seds with
3179 # small command number limits, like on Digital OSF/1 and HP-UX.
3180 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3181 ac_file=1 # Number of current file.
3182 ac_beg=1 # First line for current file.
3183 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3186 while $ac_more_lines; do
3187 if test $ac_beg -gt 1; then
3188 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3190 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3192 if test ! -s conftest.s$ac_file; then
3194 rm -f conftest.s$ac_file
3196 if test -z "$ac_sed_cmds"; then
3197 ac_sed_cmds="sed -f conftest.s$ac_file"
3199 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3201 ac_file=`expr $ac_file + 1`
3203 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3206 if test -z "$ac_sed_cmds"; then
3211 cat >> $CONFIG_STATUS <<EOF
3213 CONFIG_FILES=\${CONFIG_FILES-"./release Makefile lib/Makefile src/Makefile"}
3215 cat >> $CONFIG_STATUS <<\EOF
3216 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3217 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3219 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3220 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3221 *) ac_file_in="${ac_file}.in" ;;
3224 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3226 # Remove last slash and all that follows it. Not all systems have dirname.
3227 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3228 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3229 # The file is in a subdirectory.
3230 test ! -d "$ac_dir" && mkdir "$ac_dir"
3231 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3232 # A "../" for each directory in $ac_dir_suffix.
3233 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3235 ac_dir_suffix= ac_dots=
3238 case "$ac_given_srcdir" in
3240 if test -z "$ac_dots"; then top_srcdir=.
3241 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3242 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3244 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3245 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3248 case "$ac_given_INSTALL" in
3249 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3250 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3253 echo creating "$ac_file"
3255 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3257 *Makefile*) ac_comsub="1i\\
3258 # $configure_input" ;;
3262 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3264 s%@configure_input@%$configure_input%g
3265 s%@srcdir@%$srcdir%g
3266 s%@top_srcdir@%$top_srcdir%g
3267 s%@INSTALL@%$INSTALL%g
3268 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3272 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3273 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3275 # ac_d sets the value in "#define NAME VALUE" lines.
3276 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3277 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3280 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3281 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3282 ac_uB='\([ ]\)%\1#\2define\3'
3285 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3286 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3287 ac_eB='$%\1#\2define\3'
3291 if test "${CONFIG_HEADERS+set}" != set; then
3293 cat >> $CONFIG_STATUS <<EOF
3294 CONFIG_HEADERS="config.h"
3296 cat >> $CONFIG_STATUS <<\EOF
3298 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3299 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3301 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3302 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3303 *) ac_file_in="${ac_file}.in" ;;
3306 echo creating $ac_file
3308 rm -f conftest.frag conftest.in conftest.out
3309 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3310 cat $ac_file_inputs > conftest.in
3314 # Transform confdefs.h into a sed script conftest.vals that substitutes
3315 # the proper values into config.h.in to produce config.h. And first:
3316 # Protect against being on the right side of a sed subst in config.status.
3317 # Protect against being in an unquoted here document in config.status.
3319 cat > conftest.hdr <<\EOF
3322 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3326 sed -n -f conftest.hdr confdefs.h > conftest.vals
3329 # This sed command replaces #undef with comments. This is necessary, for
3330 # example, in the case of _POSIX_SOURCE, which is predefined and required
3331 # on some systems where configure will not decide to define it.
3332 cat >> conftest.vals <<\EOF
3333 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3336 # Break up conftest.vals because some shells have a limit on
3337 # the size of here documents, and old seds have small limits too.
3342 ac_lines=`grep -c . conftest.vals`
3343 # grep -c gives empty output for an empty file on some AIX systems.
3344 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3345 # Write a limited-size here document to conftest.frag.
3346 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3347 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3349 sed -f conftest.frag conftest.in > conftest.out
3351 mv conftest.out conftest.in
3353 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3355 mv conftest.tail conftest.vals
3359 cat >> $CONFIG_STATUS <<\EOF
3360 rm -f conftest.frag conftest.h
3361 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3362 cat conftest.in >> conftest.h
3364 if cmp -s $ac_file conftest.h 2>/dev/null; then
3365 echo "$ac_file is unchanged"
3368 # Remove last slash and all that follows it. Not all systems have dirname.
3369 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3370 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3371 # The file is in a subdirectory.
3372 test ! -d "$ac_dir" && mkdir "$ac_dir"
3375 mv conftest.h $ac_file
3380 cat >> $CONFIG_STATUS <<EOF
3384 cat >> $CONFIG_STATUS <<\EOF
3385 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
3389 chmod +x $CONFIG_STATUS
3390 rm -fr confdefs* $ac_clean_files
3391 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3395 cat > confcache <<\EOF
3396 # This file is a shell script that caches the results of configure
3397 # tests run on this system so they can be shared between configure
3398 # scripts and configure runs. It is not useful on other systems.
3399 # If it contains results you don't want to keep, you may remove or edit it.
3401 # By default, configure uses ./config.cache as the cache file,
3402 # creating it if it does not exist already. You can give configure
3403 # the --cache-file=FILE option to use a different cache file; that is
3404 # what configure does when it calls configure scripts in
3405 # subdirectories, so they share the cache.
3406 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3407 # config.status only pays attention to the cache file if you give it the
3408 # --recheck option to rerun configure.
3411 # The following way of writing the cache mishandles newlines in values,
3412 # but we know of no workaround that is simple, portable, and efficient.
3413 # So, don't put newlines in cache variables' values.
3414 # Ultrix sh set writes to stderr and can't be redirected directly,
3415 # and sets the high bit in the cache file unless we assign to the vars.
3417 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3419 # `set' does not quote correctly, so add quotes (double-quote substitution
3420 # turns \\\\ into \\, and sed turns \\ into \).
3422 -e "s/'/'\\\\''/g" \
3423 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3426 # `set' quotes correctly as required by POSIX, so do not add quotes.
3427 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3430 if cmp -s $cache_file confcache; then
3433 if test -w $cache_file; then
3434 echo "updating cache $cache_file"
3435 cat confcache > $cache_file
3437 echo "not updating unwritable cache $cache_file"
3442 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3444 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3445 # Let make expand exec_prefix.
3446 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3448 # Any assignment to VPATH causes Sun make to only execute
3449 # the first set of double-colon rules, so remove it if not needed.
3450 # If there is a colon in the path, we need to keep it.
3451 if test "x$srcdir" = x.; then
3452 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3455 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3457 DEFS=-DHAVE_CONFIG_H
3459 # Without the "./", some shells look in PATH for config.status.
3460 : ${CONFIG_STATUS=./config.status}
3462 echo creating $CONFIG_STATUS
3463 rm -f $CONFIG_STATUS
3464 cat > $CONFIG_STATUS <<EOF
3466 # Generated automatically by configure.
3467 # Run this file to recreate the current configuration.
3468 # This directory was configured as follows,
3469 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3471 # $0 $ac_configure_args
3473 # Compiler output produced by configure, useful for debugging
3474 # configure, is in ./config.log if it exists.
3476 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3479 case "\$ac_option" in
3480 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3481 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3482 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3483 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3484 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3486 -help | --help | --hel | --he | --h)
3487 echo "\$ac_cs_usage"; exit 0 ;;
3488 *) echo "\$ac_cs_usage"; exit 1 ;;
3492 ac_given_srcdir=$srcdir
3493 ac_given_INSTALL="$INSTALL"
3495 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
3497 cat >> $CONFIG_STATUS <<EOF
3499 # Protect against being on the right side of a sed subst in config.status.
3500 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3501 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3508 cat >> $CONFIG_STATUS <<\EOF
3510 # Split the substitutions into bite-sized pieces for seds with
3511 # small command number limits, like on Digital OSF/1 and HP-UX.
3512 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3513 ac_file=1 # Number of current file.
3514 ac_beg=1 # First line for current file.
3515 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3518 while $ac_more_lines; do
3519 if test $ac_beg -gt 1; then
3520 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3522 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3524 if test ! -s conftest.s$ac_file; then
3526 rm -f conftest.s$ac_file
3528 if test -z "$ac_sed_cmds"; then
3529 ac_sed_cmds="sed -f conftest.s$ac_file"
3531 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3533 ac_file=`expr $ac_file + 1`
3535 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3538 if test -z "$ac_sed_cmds"; then
3543 cat >> $CONFIG_STATUS <<EOF
3545 CONFIG_FILES=\${CONFIG_FILES-"./release Makefile lib/Makefile src/Makefile pdf2swf/Makefile pdf2swf/xpdf/Makefile pdf2swf/fonts/Makefile"}
3547 cat >> $CONFIG_STATUS <<\EOF
3548 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3549 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3551 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3552 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3553 *) ac_file_in="${ac_file}.in" ;;
3556 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3558 # Remove last slash and all that follows it. Not all systems have dirname.
3559 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3560 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3561 # The file is in a subdirectory.
3562 test ! -d "$ac_dir" && mkdir "$ac_dir"
3563 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3564 # A "../" for each directory in $ac_dir_suffix.
3565 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3567 ac_dir_suffix= ac_dots=
3570 case "$ac_given_srcdir" in
3572 if test -z "$ac_dots"; then top_srcdir=.
3573 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3574 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3576 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3577 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3580 case "$ac_given_INSTALL" in
3581 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3582 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3585 echo creating "$ac_file"
3587 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3589 *Makefile*) ac_comsub="1i\\
3590 # $configure_input" ;;
3594 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3596 s%@configure_input@%$configure_input%g
3597 s%@srcdir@%$srcdir%g
3598 s%@top_srcdir@%$top_srcdir%g
3599 s%@INSTALL@%$INSTALL%g
3600 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3604 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3605 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3607 # ac_d sets the value in "#define NAME VALUE" lines.
3608 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3609 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3612 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3613 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3614 ac_uB='\([ ]\)%\1#\2define\3'
3617 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3618 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3619 ac_eB='$%\1#\2define\3'
3623 if test "${CONFIG_HEADERS+set}" != set; then
3625 cat >> $CONFIG_STATUS <<EOF
3626 CONFIG_HEADERS="config.h"
3628 cat >> $CONFIG_STATUS <<\EOF
3630 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3631 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3633 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3634 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3635 *) ac_file_in="${ac_file}.in" ;;
3638 echo creating $ac_file
3640 rm -f conftest.frag conftest.in conftest.out
3641 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3642 cat $ac_file_inputs > conftest.in
3646 # Transform confdefs.h into a sed script conftest.vals that substitutes
3647 # the proper values into config.h.in to produce config.h. And first:
3648 # Protect against being on the right side of a sed subst in config.status.
3649 # Protect against being in an unquoted here document in config.status.
3651 cat > conftest.hdr <<\EOF
3654 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3658 sed -n -f conftest.hdr confdefs.h > conftest.vals
3661 # This sed command replaces #undef with comments. This is necessary, for
3662 # example, in the case of _POSIX_SOURCE, which is predefined and required
3663 # on some systems where configure will not decide to define it.
3664 cat >> conftest.vals <<\EOF
3665 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3668 # Break up conftest.vals because some shells have a limit on
3669 # the size of here documents, and old seds have small limits too.
3674 ac_lines=`grep -c . conftest.vals`
3675 # grep -c gives empty output for an empty file on some AIX systems.
3676 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3677 # Write a limited-size here document to conftest.frag.
3678 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3679 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3681 sed -f conftest.frag conftest.in > conftest.out
3683 mv conftest.out conftest.in
3685 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3687 mv conftest.tail conftest.vals
3691 cat >> $CONFIG_STATUS <<\EOF
3692 rm -f conftest.frag conftest.h
3693 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3694 cat conftest.in >> conftest.h
3696 if cmp -s $ac_file conftest.h 2>/dev/null; then
3697 echo "$ac_file is unchanged"
3700 # Remove last slash and all that follows it. Not all systems have dirname.
3701 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3702 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3703 # The file is in a subdirectory.
3704 test ! -d "$ac_dir" && mkdir "$ac_dir"
3707 mv conftest.h $ac_file
3712 cat >> $CONFIG_STATUS <<EOF
3715 cat >> $CONFIG_STATUS <<\EOF
3719 chmod +x $CONFIG_STATUS
3720 rm -fr confdefs* $ac_clean_files
3721 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1