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=src/xappl.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
780 # Extract the first word of "gcc", so it can be a program name with args.
781 set dummy gcc; ac_word=$2
782 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
783 echo "configure:784: checking for $ac_word" >&5
784 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
785 echo $ac_n "(cached) $ac_c" 1>&6
787 if test -n "$CC"; then
788 ac_cv_prog_CC="$CC" # Let the user override the test.
790 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
792 for ac_dir in $ac_dummy; do
793 test -z "$ac_dir" && ac_dir=.
794 if test -f $ac_dir/$ac_word; then
803 if test -n "$CC"; then
804 echo "$ac_t""$CC" 1>&6
806 echo "$ac_t""no" 1>&6
809 if test -z "$CC"; then
810 # Extract the first word of "cc", so it can be a program name with args.
811 set dummy cc; ac_word=$2
812 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
813 echo "configure:814: checking for $ac_word" >&5
814 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
815 echo $ac_n "(cached) $ac_c" 1>&6
817 if test -n "$CC"; then
818 ac_cv_prog_CC="$CC" # Let the user override the test.
820 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
823 for ac_dir in $ac_dummy; do
824 test -z "$ac_dir" && ac_dir=.
825 if test -f $ac_dir/$ac_word; then
826 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
835 if test $ac_prog_rejected = yes; then
836 # We found a bogon in the path, so make sure we never use it.
837 set dummy $ac_cv_prog_CC
839 if test $# -gt 0; then
840 # We chose a different compiler from the bogus one.
841 # However, it has the same basename, so the bogon will be chosen
842 # first if we set CC to just the basename; use the full file name.
844 set dummy "$ac_dir/$ac_word" "$@"
852 if test -n "$CC"; then
853 echo "$ac_t""$CC" 1>&6
855 echo "$ac_t""no" 1>&6
858 if test -z "$CC"; then
861 # Extract the first word of "cl", so it can be a program name with args.
862 set dummy cl; ac_word=$2
863 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
864 echo "configure:865: checking for $ac_word" >&5
865 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
866 echo $ac_n "(cached) $ac_c" 1>&6
868 if test -n "$CC"; then
869 ac_cv_prog_CC="$CC" # Let the user override the test.
871 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
873 for ac_dir in $ac_dummy; do
874 test -z "$ac_dir" && ac_dir=.
875 if test -f $ac_dir/$ac_word; then
884 if test -n "$CC"; then
885 echo "$ac_t""$CC" 1>&6
887 echo "$ac_t""no" 1>&6
892 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
895 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
896 echo "configure:897: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
899 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
900 ac_cpp='$CPP $CPPFLAGS'
901 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
902 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
903 cross_compiling=$ac_cv_prog_cc_cross
905 cat > conftest.$ac_ext << EOF
907 #line 908 "configure"
908 #include "confdefs.h"
912 if { (eval echo configure:913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
913 ac_cv_prog_cc_works=yes
914 # If we can't run a trivial program, we are probably using a cross compiler.
915 if (./conftest; exit) 2>/dev/null; then
916 ac_cv_prog_cc_cross=no
918 ac_cv_prog_cc_cross=yes
921 echo "configure: failed program was:" >&5
922 cat conftest.$ac_ext >&5
923 ac_cv_prog_cc_works=no
927 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
928 ac_cpp='$CPP $CPPFLAGS'
929 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
930 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
931 cross_compiling=$ac_cv_prog_cc_cross
933 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
934 if test $ac_cv_prog_cc_works = no; then
935 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
937 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
938 echo "configure:939: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
939 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
940 cross_compiling=$ac_cv_prog_cc_cross
942 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
943 echo "configure:944: checking whether we are using GNU C" >&5
944 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
945 echo $ac_n "(cached) $ac_c" 1>&6
947 cat > conftest.c <<EOF
952 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:953: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
959 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
961 if test $ac_cv_prog_gcc = yes; then
967 ac_test_CFLAGS="${CFLAGS+set}"
968 ac_save_CFLAGS="$CFLAGS"
970 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
971 echo "configure:972: checking whether ${CC-cc} accepts -g" >&5
972 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
973 echo $ac_n "(cached) $ac_c" 1>&6
975 echo 'void f(){}' > conftest.c
976 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
985 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
986 if test "$ac_test_CFLAGS" = set; then
987 CFLAGS="$ac_save_CFLAGS"
988 elif test $ac_cv_prog_cc_g = yes; then
989 if test "$GCC" = yes; then
995 if test "$GCC" = yes; then
1002 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1004 # Extract the first word of "$ac_prog", so it can be a program name with args.
1005 set dummy $ac_prog; ac_word=$2
1006 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1007 echo "configure:1008: checking for $ac_word" >&5
1008 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1009 echo $ac_n "(cached) $ac_c" 1>&6
1011 if test -n "$CXX"; then
1012 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1014 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1016 for ac_dir in $ac_dummy; do
1017 test -z "$ac_dir" && ac_dir=.
1018 if test -f $ac_dir/$ac_word; then
1019 ac_cv_prog_CXX="$ac_prog"
1026 CXX="$ac_cv_prog_CXX"
1027 if test -n "$CXX"; then
1028 echo "$ac_t""$CXX" 1>&6
1030 echo "$ac_t""no" 1>&6
1033 test -n "$CXX" && break
1035 test -n "$CXX" || CXX="gcc"
1038 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1039 echo "configure:1040: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1042 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1043 ac_cpp='$CXXCPP $CPPFLAGS'
1044 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1045 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1046 cross_compiling=$ac_cv_prog_cxx_cross
1048 cat > conftest.$ac_ext << EOF
1050 #line 1051 "configure"
1051 #include "confdefs.h"
1053 int main(){return(0);}
1055 if { (eval echo configure:1056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1056 ac_cv_prog_cxx_works=yes
1057 # If we can't run a trivial program, we are probably using a cross compiler.
1058 if (./conftest; exit) 2>/dev/null; then
1059 ac_cv_prog_cxx_cross=no
1061 ac_cv_prog_cxx_cross=yes
1064 echo "configure: failed program was:" >&5
1065 cat conftest.$ac_ext >&5
1066 ac_cv_prog_cxx_works=no
1070 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1071 ac_cpp='$CPP $CPPFLAGS'
1072 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1073 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1074 cross_compiling=$ac_cv_prog_cc_cross
1076 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1077 if test $ac_cv_prog_cxx_works = no; then
1078 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1080 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1081 echo "configure:1082: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1082 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1083 cross_compiling=$ac_cv_prog_cxx_cross
1085 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1086 echo "configure:1087: checking whether we are using GNU C++" >&5
1087 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1088 echo $ac_n "(cached) $ac_c" 1>&6
1090 cat > conftest.C <<EOF
1095 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1096: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1102 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1104 if test $ac_cv_prog_gxx = yes; then
1110 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1111 ac_save_CXXFLAGS="$CXXFLAGS"
1113 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1114 echo "configure:1115: checking whether ${CXX-g++} accepts -g" >&5
1115 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1116 echo $ac_n "(cached) $ac_c" 1>&6
1118 echo 'void f(){}' > conftest.cc
1119 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1120 ac_cv_prog_cxx_g=yes
1128 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1129 if test "$ac_test_CXXFLAGS" = set; then
1130 CXXFLAGS="$ac_save_CXXFLAGS"
1131 elif test $ac_cv_prog_cxx_g = yes; then
1132 if test "$GXX" = yes; then
1138 if test "$GXX" = yes; then
1145 for ac_declaration in \
1147 '#include <stdlib.h>' \
1148 'extern "C" void std::exit (int) throw (); using std::exit;' \
1149 'extern "C" void std::exit (int); using std::exit;' \
1150 'extern "C" void exit (int) throw ();' \
1151 'extern "C" void exit (int);' \
1154 cat > conftest.$ac_ext <<EOF
1155 #line 1156 "configure"
1156 #include "confdefs.h"
1163 if { (eval echo configure:1164: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1166 echo "configure: failed program was:" >&5
1167 cat conftest.$ac_ext >&5
1172 cat > conftest.$ac_ext <<EOF
1173 #line 1174 "configure"
1174 #include "confdefs.h"
1180 if { (eval echo configure:1181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1184 echo "configure: failed program was:" >&5
1185 cat conftest.$ac_ext >&5
1189 if test -n "$ac_declaration"; then
1190 echo '#ifdef __cplusplus' >>confdefs.h
1191 echo $ac_declaration >>confdefs.h
1192 echo '#endif' >>confdefs.h
1196 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1197 echo "configure:1198: checking how to run the C preprocessor" >&5
1198 # On Suns, sometimes $CPP names a directory.
1199 if test -n "$CPP" && test -d "$CPP"; then
1202 if test -z "$CPP"; then
1203 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1204 echo $ac_n "(cached) $ac_c" 1>&6
1206 # This must be in double quotes, not single quotes, because CPP may get
1207 # substituted into the Makefile and "${CC-cc}" will confuse make.
1209 # On the NeXT, cc -E runs the code through the compiler's parser,
1210 # not just through cpp.
1211 cat > conftest.$ac_ext <<EOF
1212 #line 1213 "configure"
1213 #include "confdefs.h"
1217 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1218 { (eval echo configure:1219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1219 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1220 if test -z "$ac_err"; then
1224 echo "configure: failed program was:" >&5
1225 cat conftest.$ac_ext >&5
1227 CPP="${CC-cc} -E -traditional-cpp"
1228 cat > conftest.$ac_ext <<EOF
1229 #line 1230 "configure"
1230 #include "confdefs.h"
1234 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1235 { (eval echo configure:1236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1236 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1237 if test -z "$ac_err"; then
1241 echo "configure: failed program was:" >&5
1242 cat conftest.$ac_ext >&5
1244 CPP="${CC-cc} -nologo -E"
1245 cat > conftest.$ac_ext <<EOF
1246 #line 1247 "configure"
1247 #include "confdefs.h"
1251 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1252 { (eval echo configure:1253: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1253 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1254 if test -z "$ac_err"; then
1258 echo "configure: failed program was:" >&5
1259 cat conftest.$ac_ext >&5
1268 ac_cv_prog_CPP="$CPP"
1270 CPP="$ac_cv_prog_CPP"
1272 ac_cv_prog_CPP="$CPP"
1274 echo "$ac_t""$CPP" 1>&6
1276 missing_dir=`cd $ac_aux_dir && pwd`
1277 for ac_prog in flex lex
1279 # Extract the first word of "$ac_prog", so it can be a program name with args.
1280 set dummy $ac_prog; ac_word=$2
1281 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1282 echo "configure:1283: checking for $ac_word" >&5
1283 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1284 echo $ac_n "(cached) $ac_c" 1>&6
1286 if test -n "$LEX"; then
1287 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1289 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1291 for ac_dir in $ac_dummy; do
1292 test -z "$ac_dir" && ac_dir=.
1293 if test -f $ac_dir/$ac_word; then
1294 ac_cv_prog_LEX="$ac_prog"
1301 LEX="$ac_cv_prog_LEX"
1302 if test -n "$LEX"; then
1303 echo "$ac_t""$LEX" 1>&6
1305 echo "$ac_t""no" 1>&6
1308 test -n "$LEX" && break
1310 test -n "$LEX" || LEX=""$missing_dir/missing flex""
1312 # Extract the first word of "flex", so it can be a program name with args.
1313 set dummy flex; ac_word=$2
1314 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1315 echo "configure:1316: checking for $ac_word" >&5
1316 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1317 echo $ac_n "(cached) $ac_c" 1>&6
1319 if test -n "$LEX"; then
1320 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1322 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1324 for ac_dir in $ac_dummy; do
1325 test -z "$ac_dir" && ac_dir=.
1326 if test -f $ac_dir/$ac_word; then
1327 ac_cv_prog_LEX="flex"
1332 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1335 LEX="$ac_cv_prog_LEX"
1336 if test -n "$LEX"; then
1337 echo "$ac_t""$LEX" 1>&6
1339 echo "$ac_t""no" 1>&6
1342 if test -z "$LEXLIB"
1348 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1349 echo "configure:1350: checking for yywrap in -l$ac_lib" >&5
1350 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1351 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1352 echo $ac_n "(cached) $ac_c" 1>&6
1354 ac_save_LIBS="$LIBS"
1355 LIBS="-l$ac_lib $LIBS"
1356 cat > conftest.$ac_ext <<EOF
1357 #line 1358 "configure"
1358 #include "confdefs.h"
1359 /* Override any gcc2 internal prototype to avoid an error. */
1360 /* We use char because int might match the return type of a gcc2
1361 builtin and then its argument prototype would still apply. */
1368 if { (eval echo configure:1369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1370 eval "ac_cv_lib_$ac_lib_var=yes"
1372 echo "configure: failed program was:" >&5
1373 cat conftest.$ac_ext >&5
1375 eval "ac_cv_lib_$ac_lib_var=no"
1378 LIBS="$ac_save_LIBS"
1381 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1382 echo "$ac_t""yes" 1>&6
1385 echo "$ac_t""no" 1>&6
1390 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
1391 echo "configure:1392: checking lex output file root" >&5
1392 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
1393 echo $ac_n "(cached) $ac_c" 1>&6
1395 # The minimal lex program is just a single line: %%. But some broken lexes
1396 # (Solaris, I think it was) want two %% lines, so accommodate them.
1399 if test -f lex.yy.c; then
1400 ac_cv_prog_lex_root=lex.yy
1401 elif test -f lexyy.c; then
1402 ac_cv_prog_lex_root=lexyy
1404 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
1408 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
1409 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
1411 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
1412 echo "configure:1413: checking whether yytext is a pointer" >&5
1413 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
1414 echo $ac_n "(cached) $ac_c" 1>&6
1416 # POSIX says lex can declare yytext either as a pointer or an array; the
1417 # default is implementation-dependent. Figure out which it is, since
1418 # not all implementations provide the %pointer and %array declarations.
1419 ac_cv_prog_lex_yytext_pointer=no
1420 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
1421 ac_save_LIBS="$LIBS"
1422 LIBS="$LIBS $LEXLIB"
1423 cat > conftest.$ac_ext <<EOF
1424 #line 1425 "configure"
1425 #include "confdefs.h"
1426 `cat $LEX_OUTPUT_ROOT.c`
1431 if { (eval echo configure:1432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1433 ac_cv_prog_lex_yytext_pointer=yes
1435 echo "configure: failed program was:" >&5
1436 cat conftest.$ac_ext >&5
1439 LIBS="$ac_save_LIBS"
1440 rm -f "${LEX_OUTPUT_ROOT}.c"
1444 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
1445 if test $ac_cv_prog_lex_yytext_pointer = yes; then
1446 cat >> confdefs.h <<\EOF
1447 #define YYTEXT_POINTER 1
1452 # Find a good install program. We prefer a C program (faster),
1453 # so one script is as good as another. But avoid the broken or
1454 # incompatible versions:
1455 # SysV /etc/install, /usr/sbin/install
1456 # SunOS /usr/etc/install
1457 # IRIX /sbin/install
1459 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1460 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1461 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1462 # ./install, which can be erroneously created by make from ./install.sh.
1463 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1464 echo "configure:1465: checking for a BSD compatible install" >&5
1465 if test -z "$INSTALL"; then
1466 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1467 echo $ac_n "(cached) $ac_c" 1>&6
1469 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1470 for ac_dir in $PATH; do
1471 # Account for people who put trailing slashes in PATH elements.
1473 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1475 # OSF1 and SCO ODT 3.0 have their own names for install.
1476 # Don't use installbsd from OSF since it installs stuff as root
1478 for ac_prog in ginstall scoinst install; do
1479 if test -f $ac_dir/$ac_prog; then
1480 if test $ac_prog = install &&
1481 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1482 # AIX install. It has an incompatible calling convention.
1485 ac_cv_path_install="$ac_dir/$ac_prog -c"
1496 if test "${ac_cv_path_install+set}" = set; then
1497 INSTALL="$ac_cv_path_install"
1499 # As a last resort, use the slow shell script. We don't cache a
1500 # path for INSTALL within a source directory, because that will
1501 # break other packages using the cache if that directory is
1502 # removed, or if the path is relative.
1503 INSTALL="$ac_install_sh"
1506 echo "$ac_t""$INSTALL" 1>&6
1508 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1509 # It thinks the first close brace ends the variable substitution.
1510 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1512 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1514 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1516 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1517 echo "configure:1518: checking whether ln -s works" >&5
1518 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1519 echo $ac_n "(cached) $ac_c" 1>&6
1522 if ln -s X conftestdata 2>/dev/null
1525 ac_cv_prog_LN_S="ln -s"
1530 LN_S="$ac_cv_prog_LN_S"
1531 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1532 echo "$ac_t""yes" 1>&6
1534 echo "$ac_t""no" 1>&6
1537 # Extract the first word of "ranlib", so it can be a program name with args.
1538 set dummy ranlib; ac_word=$2
1539 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1540 echo "configure:1541: checking for $ac_word" >&5
1541 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1542 echo $ac_n "(cached) $ac_c" 1>&6
1544 if test -n "$RANLIB"; then
1545 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1547 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1549 for ac_dir in $ac_dummy; do
1550 test -z "$ac_dir" && ac_dir=.
1551 if test -f $ac_dir/$ac_word; then
1552 ac_cv_prog_RANLIB="ranlib"
1557 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1560 RANLIB="$ac_cv_prog_RANLIB"
1561 if test -n "$RANLIB"; then
1562 echo "$ac_t""$RANLIB" 1>&6
1564 echo "$ac_t""no" 1>&6
1567 for ac_prog in 'bison -y' byacc
1569 # Extract the first word of "$ac_prog", so it can be a program name with args.
1570 set dummy $ac_prog; ac_word=$2
1571 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1572 echo "configure:1573: checking for $ac_word" >&5
1573 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1574 echo $ac_n "(cached) $ac_c" 1>&6
1576 if test -n "$YACC"; then
1577 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1579 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1581 for ac_dir in $ac_dummy; do
1582 test -z "$ac_dir" && ac_dir=.
1583 if test -f $ac_dir/$ac_word; then
1584 ac_cv_prog_YACC="$ac_prog"
1591 YACC="$ac_cv_prog_YACC"
1592 if test -n "$YACC"; then
1593 echo "$ac_t""$YACC" 1>&6
1595 echo "$ac_t""no" 1>&6
1598 test -n "$YACC" && break
1600 test -n "$YACC" || YACC="yacc"
1602 for ac_prog in gawk mawk nawk awk
1604 # Extract the first word of "$ac_prog", so it can be a program name with args.
1605 set dummy $ac_prog; ac_word=$2
1606 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1607 echo "configure:1608: checking for $ac_word" >&5
1608 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1609 echo $ac_n "(cached) $ac_c" 1>&6
1611 if test -n "$AWK"; then
1612 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1614 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1616 for ac_dir in $ac_dummy; do
1617 test -z "$ac_dir" && ac_dir=.
1618 if test -f $ac_dir/$ac_word; then
1619 ac_cv_prog_AWK="$ac_prog"
1626 AWK="$ac_cv_prog_AWK"
1627 if test -n "$AWK"; then
1628 echo "$ac_t""$AWK" 1>&6
1630 echo "$ac_t""no" 1>&6
1633 test -n "$AWK" && break
1637 # Extract the first word of "xml-config", so it can be a program name with args.
1638 set dummy xml-config; ac_word=$2
1639 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1640 echo "configure:1641: checking for $ac_word" >&5
1641 if eval "test \"`echo '$''{'ac_cv_path_XML_CONFIG'+set}'`\" = set"; then
1642 echo $ac_n "(cached) $ac_c" 1>&6
1644 case "$XML_CONFIG" in
1646 ac_cv_path_XML_CONFIG="$XML_CONFIG" # Let the user override the test with a path.
1649 ac_cv_path_XML_CONFIG="$XML_CONFIG" # Let the user override the test with a dos path.
1652 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1654 for ac_dir in $ac_dummy; do
1655 test -z "$ac_dir" && ac_dir=.
1656 if test -f $ac_dir/$ac_word; then
1657 ac_cv_path_XML_CONFIG="$ac_dir/$ac_word"
1662 test -z "$ac_cv_path_XML_CONFIG" && ac_cv_path_XML_CONFIG="no"
1666 XML_CONFIG="$ac_cv_path_XML_CONFIG"
1667 if test -n "$XML_CONFIG"; then
1668 echo "$ac_t""$XML_CONFIG" 1>&6
1670 echo "$ac_t""no" 1>&6
1674 # If we find X, set shell vars x_includes and x_libraries to the
1675 # paths, otherwise set no_x=yes.
1676 # Uses ac_ vars as temps to allow command line to override cache and checks.
1677 # --without-x overrides everything else, but does not touch the cache.
1678 echo $ac_n "checking for X""... $ac_c" 1>&6
1679 echo "configure:1680: checking for X" >&5
1681 # Check whether --with-x or --without-x was given.
1682 if test "${with_x+set}" = set; then
1687 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
1688 if test "x$with_x" = xno; then
1689 # The user explicitly disabled X.
1692 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
1693 # Both variables are already set.
1696 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1697 echo $ac_n "(cached) $ac_c" 1>&6
1699 # One or both of the vars are not set, and there is no cached value.
1700 ac_x_includes=NO ac_x_libraries=NO
1702 if mkdir conftestdir; then
1704 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1705 cat > Imakefile <<'EOF'
1707 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1709 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
1710 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1711 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1712 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1713 for ac_extension in a so sl; do
1714 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
1715 test -f $ac_im_libdir/libX11.$ac_extension; then
1716 ac_im_usrlibdir=$ac_im_libdir; break
1719 # Screen out bogus values from the imake configuration. They are
1720 # bogus both because they are the default anyway, and because
1721 # using them would break gcc on systems where it needs fixed includes.
1722 case "$ac_im_incroot" in
1724 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
1726 case "$ac_im_usrlibdir" in
1728 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
1735 if test "$ac_x_includes" = NO; then
1736 # Guess where to find include files, by looking for this one X11 .h file.
1737 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
1739 # First, try using that file with no special directory specified.
1740 cat > conftest.$ac_ext <<EOF
1741 #line 1742 "configure"
1742 #include "confdefs.h"
1743 #include <$x_direct_test_include>
1745 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1746 { (eval echo configure:1747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1747 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1748 if test -z "$ac_err"; then
1750 # We can compile using X headers with no special include directory.
1754 echo "configure: failed program was:" >&5
1755 cat conftest.$ac_ext >&5
1757 # Look for the header file in a standard set of common directories.
1758 # Check X11 before X11Rn because it is often a symlink to the current release.
1761 /usr/X11R6/include \
1762 /usr/X11R5/include \
1763 /usr/X11R4/include \
1766 /usr/include/X11R6 \
1767 /usr/include/X11R5 \
1768 /usr/include/X11R4 \
1770 /usr/local/X11/include \
1771 /usr/local/X11R6/include \
1772 /usr/local/X11R5/include \
1773 /usr/local/X11R4/include \
1775 /usr/local/include/X11 \
1776 /usr/local/include/X11R6 \
1777 /usr/local/include/X11R5 \
1778 /usr/local/include/X11R4 \
1782 /usr/XFree86/include/X11 \
1785 /usr/local/include \
1786 /usr/unsupported/include \
1787 /usr/athena/include \
1788 /usr/local/x11r5/include \
1789 /usr/lpp/Xamples/include \
1791 /usr/openwin/include \
1792 /usr/openwin/share/include \
1795 if test -r "$ac_dir/$x_direct_test_include"; then
1796 ac_x_includes=$ac_dir
1802 fi # $ac_x_includes = NO
1804 if test "$ac_x_libraries" = NO; then
1805 # Check for the libraries.
1807 test -z "$x_direct_test_library" && x_direct_test_library=Xt
1808 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1810 # See if we find them without any special options.
1811 # Don't add to $LIBS permanently.
1812 ac_save_LIBS="$LIBS"
1813 LIBS="-l$x_direct_test_library $LIBS"
1814 cat > conftest.$ac_ext <<EOF
1815 #line 1816 "configure"
1816 #include "confdefs.h"
1819 ${x_direct_test_function}()
1822 if { (eval echo configure:1823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1824 LIBS="$ac_save_LIBS"
1825 # We can link X programs with no special library path.
1828 echo "configure: failed program was:" >&5
1829 cat conftest.$ac_ext >&5
1831 LIBS="$ac_save_LIBS"
1832 # First see if replacing the include by lib works.
1833 # Check X11 before X11Rn because it is often a symlink to the current release.
1834 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1845 /usr/local/X11/lib \
1846 /usr/local/X11R6/lib \
1847 /usr/local/X11R5/lib \
1848 /usr/local/X11R4/lib \
1850 /usr/local/lib/X11 \
1851 /usr/local/lib/X11R6 \
1852 /usr/local/lib/X11R5 \
1853 /usr/local/lib/X11R4 \
1857 /usr/XFree86/lib/X11 \
1861 /usr/unsupported/lib \
1863 /usr/local/x11r5/lib \
1864 /usr/lpp/Xamples/lib \
1868 /usr/openwin/share/lib \
1871 for ac_extension in a so sl; do
1872 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1873 ac_x_libraries=$ac_dir
1880 fi # $ac_x_libraries = NO
1882 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1883 # Didn't find X anywhere. Cache the known absence of X.
1884 ac_cv_have_x="have_x=no"
1886 # Record where we found X for the cache.
1887 ac_cv_have_x="have_x=yes \
1888 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1892 eval "$ac_cv_have_x"
1895 if test "$have_x" != yes; then
1896 echo "$ac_t""$have_x" 1>&6
1899 # If each of the values was on the command line, it overrides each guess.
1900 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1901 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1902 # Update the cache value to reflect the command line values.
1903 ac_cv_have_x="have_x=yes \
1904 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1905 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1908 if test "$no_x" = yes; then
1909 # Not all programs may use this symbol, but it does not hurt to define it.
1910 cat >> confdefs.h <<\EOF
1911 #define X_DISPLAY_MISSING 1
1914 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1916 if test -n "$x_includes"; then
1917 X_CFLAGS="$X_CFLAGS -I$x_includes"
1920 # It would also be nice to do this for all -L options, not just this one.
1921 if test -n "$x_libraries"; then
1922 X_LIBS="$X_LIBS -L$x_libraries"
1923 # For Solaris; some versions of Sun CC require a space after -R and
1924 # others require no space. Words are not sufficient . . . .
1925 case "`(uname -sr) 2>/dev/null`" in
1927 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1928 echo "configure:1929: checking whether -R must be followed by a space" >&5
1929 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
1930 cat > conftest.$ac_ext <<EOF
1931 #line 1932 "configure"
1932 #include "confdefs.h"
1938 if { (eval echo configure:1939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1942 echo "configure: failed program was:" >&5
1943 cat conftest.$ac_ext >&5
1948 if test $ac_R_nospace = yes; then
1949 echo "$ac_t""no" 1>&6
1950 X_LIBS="$X_LIBS -R$x_libraries"
1952 LIBS="$ac_xsave_LIBS -R $x_libraries"
1953 cat > conftest.$ac_ext <<EOF
1954 #line 1955 "configure"
1955 #include "confdefs.h"
1961 if { (eval echo configure:1962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1965 echo "configure: failed program was:" >&5
1966 cat conftest.$ac_ext >&5
1971 if test $ac_R_space = yes; then
1972 echo "$ac_t""yes" 1>&6
1973 X_LIBS="$X_LIBS -R $x_libraries"
1975 echo "$ac_t""neither works" 1>&6
1978 LIBS="$ac_xsave_LIBS"
1982 # Check for system-dependent libraries X programs must link with.
1983 # Do this before checking for the system-independent R6 libraries
1984 # (-lICE), since we may need -lsocket or whatever for X linking.
1986 if test "$ISC" = yes; then
1987 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1989 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1990 # libraries were built with DECnet support. And karl@cs.umb.edu says
1991 # the Alpha needs dnet_stub (dnet does not exist).
1992 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1993 echo "configure:1994: checking for dnet_ntoa in -ldnet" >&5
1994 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1995 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1996 echo $ac_n "(cached) $ac_c" 1>&6
1998 ac_save_LIBS="$LIBS"
2000 cat > conftest.$ac_ext <<EOF
2001 #line 2002 "configure"
2002 #include "confdefs.h"
2003 /* Override any gcc2 internal prototype to avoid an error. */
2004 /* We use char because int might match the return type of a gcc2
2005 builtin and then its argument prototype would still apply. */
2012 if { (eval echo configure:2013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2014 eval "ac_cv_lib_$ac_lib_var=yes"
2016 echo "configure: failed program was:" >&5
2017 cat conftest.$ac_ext >&5
2019 eval "ac_cv_lib_$ac_lib_var=no"
2022 LIBS="$ac_save_LIBS"
2025 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2026 echo "$ac_t""yes" 1>&6
2027 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
2029 echo "$ac_t""no" 1>&6
2032 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
2033 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
2034 echo "configure:2035: checking for dnet_ntoa in -ldnet_stub" >&5
2035 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
2036 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2037 echo $ac_n "(cached) $ac_c" 1>&6
2039 ac_save_LIBS="$LIBS"
2040 LIBS="-ldnet_stub $LIBS"
2041 cat > conftest.$ac_ext <<EOF
2042 #line 2043 "configure"
2043 #include "confdefs.h"
2044 /* Override any gcc2 internal prototype to avoid an error. */
2045 /* We use char because int might match the return type of a gcc2
2046 builtin and then its argument prototype would still apply. */
2053 if { (eval echo configure:2054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2055 eval "ac_cv_lib_$ac_lib_var=yes"
2057 echo "configure: failed program was:" >&5
2058 cat conftest.$ac_ext >&5
2060 eval "ac_cv_lib_$ac_lib_var=no"
2063 LIBS="$ac_save_LIBS"
2066 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2067 echo "$ac_t""yes" 1>&6
2068 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
2070 echo "$ac_t""no" 1>&6
2075 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
2076 # to get the SysV transport functions.
2077 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
2079 # The nsl library prevents programs from opening the X display
2080 # on Irix 5.2, according to dickey@clark.net.
2081 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2082 echo "configure:2083: checking for gethostbyname" >&5
2083 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2084 echo $ac_n "(cached) $ac_c" 1>&6
2086 cat > conftest.$ac_ext <<EOF
2087 #line 2088 "configure"
2088 #include "confdefs.h"
2089 /* System header to define __stub macros and hopefully few prototypes,
2090 which can conflict with char gethostbyname(); below. */
2092 /* Override any gcc2 internal prototype to avoid an error. */
2093 /* We use char because int might match the return type of a gcc2
2094 builtin and then its argument prototype would still apply. */
2095 char gethostbyname();
2099 /* The GNU C library defines this for functions which it implements
2100 to always fail with ENOSYS. Some functions are actually named
2101 something starting with __ and the normal name is an alias. */
2102 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2110 if { (eval echo configure:2111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2112 eval "ac_cv_func_gethostbyname=yes"
2114 echo "configure: failed program was:" >&5
2115 cat conftest.$ac_ext >&5
2117 eval "ac_cv_func_gethostbyname=no"
2122 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
2123 echo "$ac_t""yes" 1>&6
2126 echo "$ac_t""no" 1>&6
2129 if test $ac_cv_func_gethostbyname = no; then
2130 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2131 echo "configure:2132: checking for gethostbyname in -lnsl" >&5
2132 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2133 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2134 echo $ac_n "(cached) $ac_c" 1>&6
2136 ac_save_LIBS="$LIBS"
2138 cat > conftest.$ac_ext <<EOF
2139 #line 2140 "configure"
2140 #include "confdefs.h"
2141 /* Override any gcc2 internal prototype to avoid an error. */
2142 /* We use char because int might match the return type of a gcc2
2143 builtin and then its argument prototype would still apply. */
2144 char gethostbyname();
2150 if { (eval echo configure:2151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2152 eval "ac_cv_lib_$ac_lib_var=yes"
2154 echo "configure: failed program was:" >&5
2155 cat conftest.$ac_ext >&5
2157 eval "ac_cv_lib_$ac_lib_var=no"
2160 LIBS="$ac_save_LIBS"
2163 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2164 echo "$ac_t""yes" 1>&6
2165 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
2167 echo "$ac_t""no" 1>&6
2172 # lieder@skyler.mavd.honeywell.com says without -lsocket,
2173 # socket/setsockopt and other routines are undefined under SCO ODT
2174 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
2175 # on later versions), says simon@lia.di.epfl.ch: it contains
2176 # gethostby* variants that don't use the nameserver (or something).
2177 # -lsocket must be given before -lnsl if both are needed.
2178 # We assume that if connect needs -lnsl, so does gethostbyname.
2179 echo $ac_n "checking for connect""... $ac_c" 1>&6
2180 echo "configure:2181: checking for connect" >&5
2181 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
2182 echo $ac_n "(cached) $ac_c" 1>&6
2184 cat > conftest.$ac_ext <<EOF
2185 #line 2186 "configure"
2186 #include "confdefs.h"
2187 /* System header to define __stub macros and hopefully few prototypes,
2188 which can conflict with char connect(); below. */
2190 /* Override any gcc2 internal prototype to avoid an error. */
2191 /* We use char because int might match the return type of a gcc2
2192 builtin and then its argument prototype would still apply. */
2197 /* The GNU C library defines this for functions which it implements
2198 to always fail with ENOSYS. Some functions are actually named
2199 something starting with __ and the normal name is an alias. */
2200 #if defined (__stub_connect) || defined (__stub___connect)
2208 if { (eval echo configure:2209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2210 eval "ac_cv_func_connect=yes"
2212 echo "configure: failed program was:" >&5
2213 cat conftest.$ac_ext >&5
2215 eval "ac_cv_func_connect=no"
2220 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
2221 echo "$ac_t""yes" 1>&6
2224 echo "$ac_t""no" 1>&6
2227 if test $ac_cv_func_connect = no; then
2228 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2229 echo "configure:2230: checking for connect in -lsocket" >&5
2230 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2231 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2232 echo $ac_n "(cached) $ac_c" 1>&6
2234 ac_save_LIBS="$LIBS"
2235 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
2236 cat > conftest.$ac_ext <<EOF
2237 #line 2238 "configure"
2238 #include "confdefs.h"
2239 /* Override any gcc2 internal prototype to avoid an error. */
2240 /* We use char because int might match the return type of a gcc2
2241 builtin and then its argument prototype would still apply. */
2248 if { (eval echo configure:2249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2250 eval "ac_cv_lib_$ac_lib_var=yes"
2252 echo "configure: failed program was:" >&5
2253 cat conftest.$ac_ext >&5
2255 eval "ac_cv_lib_$ac_lib_var=no"
2258 LIBS="$ac_save_LIBS"
2261 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2262 echo "$ac_t""yes" 1>&6
2263 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
2265 echo "$ac_t""no" 1>&6
2270 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
2271 echo $ac_n "checking for remove""... $ac_c" 1>&6
2272 echo "configure:2273: checking for remove" >&5
2273 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
2274 echo $ac_n "(cached) $ac_c" 1>&6
2276 cat > conftest.$ac_ext <<EOF
2277 #line 2278 "configure"
2278 #include "confdefs.h"
2279 /* System header to define __stub macros and hopefully few prototypes,
2280 which can conflict with char remove(); below. */
2282 /* Override any gcc2 internal prototype to avoid an error. */
2283 /* We use char because int might match the return type of a gcc2
2284 builtin and then its argument prototype would still apply. */
2289 /* The GNU C library defines this for functions which it implements
2290 to always fail with ENOSYS. Some functions are actually named
2291 something starting with __ and the normal name is an alias. */
2292 #if defined (__stub_remove) || defined (__stub___remove)
2300 if { (eval echo configure:2301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2302 eval "ac_cv_func_remove=yes"
2304 echo "configure: failed program was:" >&5
2305 cat conftest.$ac_ext >&5
2307 eval "ac_cv_func_remove=no"
2312 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
2313 echo "$ac_t""yes" 1>&6
2316 echo "$ac_t""no" 1>&6
2319 if test $ac_cv_func_remove = no; then
2320 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
2321 echo "configure:2322: checking for remove in -lposix" >&5
2322 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
2323 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2324 echo $ac_n "(cached) $ac_c" 1>&6
2326 ac_save_LIBS="$LIBS"
2327 LIBS="-lposix $LIBS"
2328 cat > conftest.$ac_ext <<EOF
2329 #line 2330 "configure"
2330 #include "confdefs.h"
2331 /* Override any gcc2 internal prototype to avoid an error. */
2332 /* We use char because int might match the return type of a gcc2
2333 builtin and then its argument prototype would still apply. */
2340 if { (eval echo configure:2341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2342 eval "ac_cv_lib_$ac_lib_var=yes"
2344 echo "configure: failed program was:" >&5
2345 cat conftest.$ac_ext >&5
2347 eval "ac_cv_lib_$ac_lib_var=no"
2350 LIBS="$ac_save_LIBS"
2353 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2354 echo "$ac_t""yes" 1>&6
2355 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
2357 echo "$ac_t""no" 1>&6
2362 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
2363 echo $ac_n "checking for shmat""... $ac_c" 1>&6
2364 echo "configure:2365: checking for shmat" >&5
2365 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
2366 echo $ac_n "(cached) $ac_c" 1>&6
2368 cat > conftest.$ac_ext <<EOF
2369 #line 2370 "configure"
2370 #include "confdefs.h"
2371 /* System header to define __stub macros and hopefully few prototypes,
2372 which can conflict with char shmat(); below. */
2374 /* Override any gcc2 internal prototype to avoid an error. */
2375 /* We use char because int might match the return type of a gcc2
2376 builtin and then its argument prototype would still apply. */
2381 /* The GNU C library defines this for functions which it implements
2382 to always fail with ENOSYS. Some functions are actually named
2383 something starting with __ and the normal name is an alias. */
2384 #if defined (__stub_shmat) || defined (__stub___shmat)
2392 if { (eval echo configure:2393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2394 eval "ac_cv_func_shmat=yes"
2396 echo "configure: failed program was:" >&5
2397 cat conftest.$ac_ext >&5
2399 eval "ac_cv_func_shmat=no"
2404 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
2405 echo "$ac_t""yes" 1>&6
2408 echo "$ac_t""no" 1>&6
2411 if test $ac_cv_func_shmat = no; then
2412 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
2413 echo "configure:2414: checking for shmat in -lipc" >&5
2414 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
2415 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2416 echo $ac_n "(cached) $ac_c" 1>&6
2418 ac_save_LIBS="$LIBS"
2420 cat > conftest.$ac_ext <<EOF
2421 #line 2422 "configure"
2422 #include "confdefs.h"
2423 /* Override any gcc2 internal prototype to avoid an error. */
2424 /* We use char because int might match the return type of a gcc2
2425 builtin and then its argument prototype would still apply. */
2432 if { (eval echo configure:2433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2434 eval "ac_cv_lib_$ac_lib_var=yes"
2436 echo "configure: failed program was:" >&5
2437 cat conftest.$ac_ext >&5
2439 eval "ac_cv_lib_$ac_lib_var=no"
2442 LIBS="$ac_save_LIBS"
2445 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2446 echo "$ac_t""yes" 1>&6
2447 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
2449 echo "$ac_t""no" 1>&6
2455 # Check for libraries that X11R6 Xt/Xaw programs need.
2456 ac_save_LDFLAGS="$LDFLAGS"
2457 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
2458 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
2459 # check for ICE first), but we must link in the order -lSM -lICE or
2460 # we get undefined symbols. So assume we have SM if we have ICE.
2461 # These have to be linked with before -lX11, unlike the other
2462 # libraries we check for below, so use a different variable.
2463 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
2464 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
2465 echo "configure:2466: checking for IceConnectionNumber in -lICE" >&5
2466 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
2467 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2468 echo $ac_n "(cached) $ac_c" 1>&6
2470 ac_save_LIBS="$LIBS"
2471 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
2472 cat > conftest.$ac_ext <<EOF
2473 #line 2474 "configure"
2474 #include "confdefs.h"
2475 /* Override any gcc2 internal prototype to avoid an error. */
2476 /* We use char because int might match the return type of a gcc2
2477 builtin and then its argument prototype would still apply. */
2478 char IceConnectionNumber();
2481 IceConnectionNumber()
2484 if { (eval echo configure:2485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2486 eval "ac_cv_lib_$ac_lib_var=yes"
2488 echo "configure: failed program was:" >&5
2489 cat conftest.$ac_ext >&5
2491 eval "ac_cv_lib_$ac_lib_var=no"
2494 LIBS="$ac_save_LIBS"
2497 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2498 echo "$ac_t""yes" 1>&6
2499 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
2501 echo "$ac_t""no" 1>&6
2504 LDFLAGS="$ac_save_LDFLAGS"
2509 XML_CFLAGS=`$XML_CONFIG --cflags`
2510 XML_LFLAGS=`$XML_CONFIG --libs`
2512 LIBS="$LIBS $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
2513 LDFLAGS="$LDFLAGS -L/usr/local/lib $XML_LFLAGS"
2514 CFLAGS="$CFLAGS $X_CFLAGS $XML_CFLAGS"
2515 CXXFLAGS="$CXXFLAGS $X_CFLAGS $XML_CFLAGS"
2517 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
2518 echo "configure:2519: checking for XOpenDisplay in -lX11" >&5
2519 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
2520 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2521 echo $ac_n "(cached) $ac_c" 1>&6
2523 ac_save_LIBS="$LIBS"
2525 cat > conftest.$ac_ext <<EOF
2526 #line 2527 "configure"
2527 #include "confdefs.h"
2528 /* Override any gcc2 internal prototype to avoid an error. */
2529 /* We use char because int might match the return type of a gcc2
2530 builtin and then its argument prototype would still apply. */
2531 char XOpenDisplay();
2537 if { (eval echo configure:2538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2539 eval "ac_cv_lib_$ac_lib_var=yes"
2541 echo "configure: failed program was:" >&5
2542 cat conftest.$ac_ext >&5
2544 eval "ac_cv_lib_$ac_lib_var=no"
2547 LIBS="$ac_save_LIBS"
2550 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2551 echo "$ac_t""yes" 1>&6
2552 ac_tr_lib=HAVE_LIB`echo X11 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2553 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2554 cat >> confdefs.h <<EOF
2555 #define $ac_tr_lib 1
2561 echo "$ac_t""no" 1>&6
2564 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
2565 echo "configure:2566: checking for XpmCreatePixmapFromData in -lXpm" >&5
2566 ac_lib_var=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
2567 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2568 echo $ac_n "(cached) $ac_c" 1>&6
2570 ac_save_LIBS="$LIBS"
2572 cat > conftest.$ac_ext <<EOF
2573 #line 2574 "configure"
2574 #include "confdefs.h"
2575 /* Override any gcc2 internal prototype to avoid an error. */
2576 /* We use char because int might match the return type of a gcc2
2577 builtin and then its argument prototype would still apply. */
2578 char XpmCreatePixmapFromData();
2581 XpmCreatePixmapFromData()
2584 if { (eval echo configure:2585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2586 eval "ac_cv_lib_$ac_lib_var=yes"
2588 echo "configure: failed program was:" >&5
2589 cat conftest.$ac_ext >&5
2591 eval "ac_cv_lib_$ac_lib_var=no"
2594 LIBS="$ac_save_LIBS"
2597 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2598 echo "$ac_t""yes" 1>&6
2599 ac_tr_lib=HAVE_LIB`echo Xpm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2600 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2601 cat >> confdefs.h <<EOF
2602 #define $ac_tr_lib 1
2608 echo "$ac_t""no" 1>&6
2611 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
2612 echo "configure:2613: checking for pthread_create in -lpthread" >&5
2613 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
2614 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2615 echo $ac_n "(cached) $ac_c" 1>&6
2617 ac_save_LIBS="$LIBS"
2618 LIBS="-lpthread $LIBS"
2619 cat > conftest.$ac_ext <<EOF
2620 #line 2621 "configure"
2621 #include "confdefs.h"
2622 /* Override any gcc2 internal prototype to avoid an error. */
2623 /* We use char because int might match the return type of a gcc2
2624 builtin and then its argument prototype would still apply. */
2625 char pthread_create();
2631 if { (eval echo configure:2632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2633 eval "ac_cv_lib_$ac_lib_var=yes"
2635 echo "configure: failed program was:" >&5
2636 cat conftest.$ac_ext >&5
2638 eval "ac_cv_lib_$ac_lib_var=no"
2641 LIBS="$ac_save_LIBS"
2644 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2645 echo "$ac_t""yes" 1>&6
2646 ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2647 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2648 cat >> confdefs.h <<EOF
2649 #define $ac_tr_lib 1
2652 LIBS="-lpthread $LIBS"
2655 echo "$ac_t""no" 1>&6
2658 echo $ac_n "checking for xmlParseFile in -lxml""... $ac_c" 1>&6
2659 echo "configure:2660: checking for xmlParseFile in -lxml" >&5
2660 ac_lib_var=`echo xml'_'xmlParseFile | sed 'y%./+-%__p_%'`
2661 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2662 echo $ac_n "(cached) $ac_c" 1>&6
2664 ac_save_LIBS="$LIBS"
2666 cat > conftest.$ac_ext <<EOF
2667 #line 2668 "configure"
2668 #include "confdefs.h"
2669 /* Override any gcc2 internal prototype to avoid an error. */
2670 /* We use char because int might match the return type of a gcc2
2671 builtin and then its argument prototype would still apply. */
2672 char xmlParseFile();
2678 if { (eval echo configure:2679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2680 eval "ac_cv_lib_$ac_lib_var=yes"
2682 echo "configure: failed program was:" >&5
2683 cat conftest.$ac_ext >&5
2685 eval "ac_cv_lib_$ac_lib_var=no"
2688 LIBS="$ac_save_LIBS"
2691 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2692 echo "$ac_t""yes" 1>&6
2693 ac_tr_lib=HAVE_LIB`echo xml | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2694 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2695 cat >> confdefs.h <<EOF
2696 #define $ac_tr_lib 1
2702 echo "$ac_t""no" 1>&6
2707 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2709 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2710 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2711 echo "configure:2712: checking for $ac_hdr that defines DIR" >&5
2712 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2713 echo $ac_n "(cached) $ac_c" 1>&6
2715 cat > conftest.$ac_ext <<EOF
2716 #line 2717 "configure"
2717 #include "confdefs.h"
2718 #include <sys/types.h>
2724 if { (eval echo configure:2725: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2726 eval "ac_cv_header_dirent_$ac_safe=yes"
2728 echo "configure: failed program was:" >&5
2729 cat conftest.$ac_ext >&5
2731 eval "ac_cv_header_dirent_$ac_safe=no"
2735 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2736 echo "$ac_t""yes" 1>&6
2737 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2738 cat >> confdefs.h <<EOF
2739 #define $ac_tr_hdr 1
2741 ac_header_dirent=$ac_hdr; break
2743 echo "$ac_t""no" 1>&6
2746 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2747 if test $ac_header_dirent = dirent.h; then
2748 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2749 echo "configure:2750: checking for opendir in -ldir" >&5
2750 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2751 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2752 echo $ac_n "(cached) $ac_c" 1>&6
2754 ac_save_LIBS="$LIBS"
2756 cat > conftest.$ac_ext <<EOF
2757 #line 2758 "configure"
2758 #include "confdefs.h"
2759 /* Override any gcc2 internal prototype to avoid an error. */
2760 /* We use char because int might match the return type of a gcc2
2761 builtin and then its argument prototype would still apply. */
2768 if { (eval echo configure:2769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2770 eval "ac_cv_lib_$ac_lib_var=yes"
2772 echo "configure: failed program was:" >&5
2773 cat conftest.$ac_ext >&5
2775 eval "ac_cv_lib_$ac_lib_var=no"
2778 LIBS="$ac_save_LIBS"
2781 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2782 echo "$ac_t""yes" 1>&6
2785 echo "$ac_t""no" 1>&6
2789 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2790 echo "configure:2791: checking for opendir in -lx" >&5
2791 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2792 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2793 echo $ac_n "(cached) $ac_c" 1>&6
2795 ac_save_LIBS="$LIBS"
2797 cat > conftest.$ac_ext <<EOF
2798 #line 2799 "configure"
2799 #include "confdefs.h"
2800 /* Override any gcc2 internal prototype to avoid an error. */
2801 /* We use char because int might match the return type of a gcc2
2802 builtin and then its argument prototype would still apply. */
2809 if { (eval echo configure:2810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2811 eval "ac_cv_lib_$ac_lib_var=yes"
2813 echo "configure: failed program was:" >&5
2814 cat conftest.$ac_ext >&5
2816 eval "ac_cv_lib_$ac_lib_var=no"
2819 LIBS="$ac_save_LIBS"
2822 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2823 echo "$ac_t""yes" 1>&6
2826 echo "$ac_t""no" 1>&6
2831 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2832 echo "configure:2833: checking for ANSI C header files" >&5
2833 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2834 echo $ac_n "(cached) $ac_c" 1>&6
2836 cat > conftest.$ac_ext <<EOF
2837 #line 2838 "configure"
2838 #include "confdefs.h"
2844 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2845 { (eval echo configure:2846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2846 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2847 if test -z "$ac_err"; then
2849 ac_cv_header_stdc=yes
2852 echo "configure: failed program was:" >&5
2853 cat conftest.$ac_ext >&5
2855 ac_cv_header_stdc=no
2859 if test $ac_cv_header_stdc = yes; then
2860 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2861 cat > conftest.$ac_ext <<EOF
2862 #line 2863 "configure"
2863 #include "confdefs.h"
2866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2867 egrep "memchr" >/dev/null 2>&1; then
2871 ac_cv_header_stdc=no
2877 if test $ac_cv_header_stdc = yes; then
2878 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2879 cat > conftest.$ac_ext <<EOF
2880 #line 2881 "configure"
2881 #include "confdefs.h"
2884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2885 egrep "free" >/dev/null 2>&1; then
2889 ac_cv_header_stdc=no
2895 if test $ac_cv_header_stdc = yes; then
2896 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2897 if test "$cross_compiling" = yes; then
2900 cat > conftest.$ac_ext <<EOF
2901 #line 2902 "configure"
2902 #include "confdefs.h"
2904 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2905 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2906 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2907 int main () { int i; for (i = 0; i < 256; i++)
2908 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2912 if { (eval echo configure:2913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2916 echo "configure: failed program was:" >&5
2917 cat conftest.$ac_ext >&5
2919 ac_cv_header_stdc=no
2927 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2928 if test $ac_cv_header_stdc = yes; then
2929 cat >> confdefs.h <<\EOF
2930 #define STDC_HEADERS 1
2935 for ac_hdr in unistd.h
2937 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2938 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2939 echo "configure:2940: checking for $ac_hdr" >&5
2940 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2941 echo $ac_n "(cached) $ac_c" 1>&6
2943 cat > conftest.$ac_ext <<EOF
2944 #line 2945 "configure"
2945 #include "confdefs.h"
2948 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2949 { (eval echo configure:2950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2950 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2951 if test -z "$ac_err"; then
2953 eval "ac_cv_header_$ac_safe=yes"
2956 echo "configure: failed program was:" >&5
2957 cat conftest.$ac_ext >&5
2959 eval "ac_cv_header_$ac_safe=no"
2963 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2964 echo "$ac_t""yes" 1>&6
2965 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2966 cat >> confdefs.h <<EOF
2967 #define $ac_tr_hdr 1
2971 echo "$ac_t""no" 1>&6
2976 echo $ac_n "checking for working const""... $ac_c" 1>&6
2977 echo "configure:2978: checking for working const" >&5
2978 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2979 echo $ac_n "(cached) $ac_c" 1>&6
2981 cat > conftest.$ac_ext <<EOF
2982 #line 2983 "configure"
2983 #include "confdefs.h"
2987 /* Ultrix mips cc rejects this. */
2988 typedef int charset[2]; const charset x;
2989 /* SunOS 4.1.1 cc rejects this. */
2990 char const *const *ccp;
2992 /* NEC SVR4.0.2 mips cc rejects this. */
2993 struct point {int x, y;};
2994 static struct point const zero = {0,0};
2995 /* AIX XL C 1.02.0.0 rejects this.
2996 It does not let you subtract one const X* pointer from another in an arm
2997 of an if-expression whose if-part is not a constant expression */
2998 const char *g = "string";
2999 ccp = &g + (g ? g-g : 0);
3000 /* HPUX 7.0 cc rejects these. */
3003 ccp = (char const *const *) p;
3004 { /* SCO 3.2v4 cc rejects this. */
3006 char const *s = 0 ? (char *) 0 : (char const *) 0;
3010 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3012 const int *foo = &x[0];
3015 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3016 typedef const int *iptr;
3020 { /* AIX XL C 1.02.0.0 rejects this saying
3021 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3022 struct s { int j; const int *ap[3]; };
3023 struct s *b; b->j = 5;
3025 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3031 if { (eval echo configure:3032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3035 echo "configure: failed program was:" >&5
3036 cat conftest.$ac_ext >&5
3043 echo "$ac_t""$ac_cv_c_const" 1>&6
3044 if test $ac_cv_c_const = no; then
3045 cat >> confdefs.h <<\EOF
3052 for ac_func in strtod strtol strtoul
3054 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3055 echo "configure:3056: checking for $ac_func" >&5
3056 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3057 echo $ac_n "(cached) $ac_c" 1>&6
3059 cat > conftest.$ac_ext <<EOF
3060 #line 3061 "configure"
3061 #include "confdefs.h"
3062 /* System header to define __stub macros and hopefully few prototypes,
3063 which can conflict with char $ac_func(); below. */
3065 /* Override any gcc2 internal prototype to avoid an error. */
3066 /* We use char because int might match the return type of a gcc2
3067 builtin and then its argument prototype would still apply. */
3072 /* The GNU C library defines this for functions which it implements
3073 to always fail with ENOSYS. Some functions are actually named
3074 something starting with __ and the normal name is an alias. */
3075 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3083 if { (eval echo configure:3084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3085 eval "ac_cv_func_$ac_func=yes"
3087 echo "configure: failed program was:" >&5
3088 cat conftest.$ac_ext >&5
3090 eval "ac_cv_func_$ac_func=no"
3095 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3096 echo "$ac_t""yes" 1>&6
3097 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3098 cat >> confdefs.h <<EOF
3099 #define $ac_tr_func 1
3103 echo "$ac_t""no" 1>&6
3109 cat > confcache <<\EOF
3110 # This file is a shell script that caches the results of configure
3111 # tests run on this system so they can be shared between configure
3112 # scripts and configure runs. It is not useful on other systems.
3113 # If it contains results you don't want to keep, you may remove or edit it.
3115 # By default, configure uses ./config.cache as the cache file,
3116 # creating it if it does not exist already. You can give configure
3117 # the --cache-file=FILE option to use a different cache file; that is
3118 # what configure does when it calls configure scripts in
3119 # subdirectories, so they share the cache.
3120 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3121 # config.status only pays attention to the cache file if you give it the
3122 # --recheck option to rerun configure.
3125 # The following way of writing the cache mishandles newlines in values,
3126 # but we know of no workaround that is simple, portable, and efficient.
3127 # So, don't put newlines in cache variables' values.
3128 # Ultrix sh set writes to stderr and can't be redirected directly,
3129 # and sets the high bit in the cache file unless we assign to the vars.
3131 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3133 # `set' does not quote correctly, so add quotes (double-quote substitution
3134 # turns \\\\ into \\, and sed turns \\ into \).
3136 -e "s/'/'\\\\''/g" \
3137 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3140 # `set' quotes correctly as required by POSIX, so do not add quotes.
3141 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3144 if cmp -s $cache_file confcache; then
3147 if test -w $cache_file; then
3148 echo "updating cache $cache_file"
3149 cat confcache > $cache_file
3151 echo "not updating unwritable cache $cache_file"
3156 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3158 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3159 # Let make expand exec_prefix.
3160 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3162 # Any assignment to VPATH causes Sun make to only execute
3163 # the first set of double-colon rules, so remove it if not needed.
3164 # If there is a colon in the path, we need to keep it.
3165 if test "x$srcdir" = x.; then
3166 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3169 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3171 # Transform confdefs.h into DEFS.
3172 # Protect against shell expansion while executing Makefile rules.
3173 # Protect against Makefile macro expansion.
3174 cat > conftest.defs <<\EOF
3175 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
3176 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
3181 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
3185 # Without the "./", some shells look in PATH for config.status.
3186 : ${CONFIG_STATUS=./config.status}
3188 echo creating $CONFIG_STATUS
3189 rm -f $CONFIG_STATUS
3190 cat > $CONFIG_STATUS <<EOF
3192 # Generated automatically by configure.
3193 # Run this file to recreate the current configuration.
3194 # This directory was configured as follows,
3195 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3197 # $0 $ac_configure_args
3199 # Compiler output produced by configure, useful for debugging
3200 # configure, is in ./config.log if it exists.
3202 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3205 case "\$ac_option" in
3206 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3207 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3208 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3209 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3210 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3212 -help | --help | --hel | --he | --h)
3213 echo "\$ac_cs_usage"; exit 0 ;;
3214 *) echo "\$ac_cs_usage"; exit 1 ;;
3218 ac_given_srcdir=$srcdir
3219 ac_given_INSTALL="$INSTALL"
3221 trap 'rm -fr `echo "Makefile src/Makefile demos/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3223 cat >> $CONFIG_STATUS <<EOF
3225 # Protect against being on the right side of a sed subst in config.status.
3226 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3227 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3231 s%@CFLAGS@%$CFLAGS%g
3232 s%@CPPFLAGS@%$CPPFLAGS%g
3233 s%@CXXFLAGS@%$CXXFLAGS%g
3234 s%@FFLAGS@%$FFLAGS%g
3236 s%@LDFLAGS@%$LDFLAGS%g
3238 s%@exec_prefix@%$exec_prefix%g
3239 s%@prefix@%$prefix%g
3240 s%@program_transform_name@%$program_transform_name%g
3241 s%@bindir@%$bindir%g
3242 s%@sbindir@%$sbindir%g
3243 s%@libexecdir@%$libexecdir%g
3244 s%@datadir@%$datadir%g
3245 s%@sysconfdir@%$sysconfdir%g
3246 s%@sharedstatedir@%$sharedstatedir%g
3247 s%@localstatedir@%$localstatedir%g
3248 s%@libdir@%$libdir%g
3249 s%@includedir@%$includedir%g
3250 s%@oldincludedir@%$oldincludedir%g
3251 s%@infodir@%$infodir%g
3252 s%@mandir@%$mandir%g
3253 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3254 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3255 s%@INSTALL_DATA@%$INSTALL_DATA%g
3256 s%@PACKAGE@%$PACKAGE%g
3257 s%@VERSION@%$VERSION%g
3258 s%@ACLOCAL@%$ACLOCAL%g
3259 s%@AUTOCONF@%$AUTOCONF%g
3260 s%@AUTOMAKE@%$AUTOMAKE%g
3261 s%@AUTOHEADER@%$AUTOHEADER%g
3262 s%@MAKEINFO@%$MAKEINFO%g
3263 s%@SET_MAKE@%$SET_MAKE%g
3268 s%@LEXLIB@%$LEXLIB%g
3269 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
3271 s%@RANLIB@%$RANLIB%g
3274 s%@XML_CONFIG@%$XML_CONFIG%g
3275 s%@X_CFLAGS@%$X_CFLAGS%g
3276 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
3277 s%@X_LIBS@%$X_LIBS%g
3278 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
3283 cat >> $CONFIG_STATUS <<\EOF
3285 # Split the substitutions into bite-sized pieces for seds with
3286 # small command number limits, like on Digital OSF/1 and HP-UX.
3287 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3288 ac_file=1 # Number of current file.
3289 ac_beg=1 # First line for current file.
3290 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3293 while $ac_more_lines; do
3294 if test $ac_beg -gt 1; then
3295 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3297 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3299 if test ! -s conftest.s$ac_file; then
3301 rm -f conftest.s$ac_file
3303 if test -z "$ac_sed_cmds"; then
3304 ac_sed_cmds="sed -f conftest.s$ac_file"
3306 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3308 ac_file=`expr $ac_file + 1`
3310 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3313 if test -z "$ac_sed_cmds"; then
3318 cat >> $CONFIG_STATUS <<EOF
3320 CONFIG_FILES=\${CONFIG_FILES-"Makefile src/Makefile demos/Makefile"}
3322 cat >> $CONFIG_STATUS <<\EOF
3323 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3324 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3326 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3327 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3328 *) ac_file_in="${ac_file}.in" ;;
3331 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3333 # Remove last slash and all that follows it. Not all systems have dirname.
3334 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3335 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3336 # The file is in a subdirectory.
3337 test ! -d "$ac_dir" && mkdir "$ac_dir"
3338 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3339 # A "../" for each directory in $ac_dir_suffix.
3340 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3342 ac_dir_suffix= ac_dots=
3345 case "$ac_given_srcdir" in
3347 if test -z "$ac_dots"; then top_srcdir=.
3348 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3349 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3351 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3352 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3355 case "$ac_given_INSTALL" in
3356 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3357 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3360 echo creating "$ac_file"
3362 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3364 *Makefile*) ac_comsub="1i\\
3365 # $configure_input" ;;
3369 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3371 s%@configure_input@%$configure_input%g
3372 s%@srcdir@%$srcdir%g
3373 s%@top_srcdir@%$top_srcdir%g
3374 s%@INSTALL@%$INSTALL%g
3375 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3380 cat >> $CONFIG_STATUS <<EOF
3383 cat >> $CONFIG_STATUS <<\EOF
3387 chmod +x $CONFIG_STATUS
3388 rm -fr confdefs* $ac_clean_files
3389 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1