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-Xaw3d use Xaw3d instead of Xaw"
17 --with-x use the X Window System"
19 --enable-xpm libXpm will be used if found (default)
20 --disable-xpm libXpm will not be used"
22 --enable-ptys force use of pseudo-ttys with child processes
23 --disable-ptys force use of pipes with child processes"
25 --enable-zippy features for interfacing a chess program to ICS"
27 --enable-sigint sending SIGINT (^C) wakes up GNU Chess (default)
28 --disable-sigint typing a command wakes up GNU Chess"
30 # Initialize some variables set by options.
31 # The variables have the same names as the options, with
32 # dashes changed to underlines.
34 cache_file=./config.cache
43 program_transform_name=s,x,x,
51 bindir='${exec_prefix}/bin'
52 sbindir='${exec_prefix}/sbin'
53 libexecdir='${exec_prefix}/libexec'
54 datadir='${prefix}/share'
55 sysconfdir='${prefix}/etc'
56 sharedstatedir='${prefix}/com'
57 localstatedir='${prefix}/var'
58 libdir='${exec_prefix}/lib'
59 includedir='${prefix}/include'
60 oldincludedir='/usr/include'
61 infodir='${prefix}/info'
62 mandir='${prefix}/man'
64 # Initialize some other variables.
67 SHELL=${CONFIG_SHELL-/bin/sh}
68 # Maximum number of lines to put in a shell here document.
75 # If the previous option needs an argument, assign it.
76 if test -n "$ac_prev"; then
77 eval "$ac_prev=\$ac_option"
83 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
87 # Accept the important Cygnus configure options, so we can diagnose typos.
91 -bindir | --bindir | --bindi | --bind | --bin | --bi)
93 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
94 bindir="$ac_optarg" ;;
96 -build | --build | --buil | --bui | --bu)
98 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
101 -cache-file | --cache-file | --cache-fil | --cache-fi \
102 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
103 ac_prev=cache_file ;;
104 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
105 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
106 cache_file="$ac_optarg" ;;
108 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
110 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
112 datadir="$ac_optarg" ;;
114 -disable-* | --disable-*)
115 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
116 # Reject names that are not valid shell variable names.
117 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
118 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
120 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
121 eval "enable_${ac_feature}=no" ;;
123 -enable-* | --enable-*)
124 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
125 # Reject names that are not valid shell variable names.
126 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
127 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
129 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
134 eval "enable_${ac_feature}='$ac_optarg'" ;;
136 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
137 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
138 | --exec | --exe | --ex)
139 ac_prev=exec_prefix ;;
140 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
141 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
142 | --exec=* | --exe=* | --ex=*)
143 exec_prefix="$ac_optarg" ;;
145 -gas | --gas | --ga | --g)
146 # Obsolete; use --with-gas.
149 -help | --help | --hel | --he)
150 # Omit some internal or obsolete options to make the list less imposing.
151 # This message is too long to be a string in the A/UX 3.1 sh.
153 Usage: configure [options] [host]
154 Options: [defaults in brackets after descriptions]
156 --cache-file=FILE cache test results in FILE
157 --help print this message
158 --no-create do not create output files
159 --quiet, --silent do not print \`checking...' messages
160 --version print the version of autoconf that created configure
161 Directory and file names:
162 --prefix=PREFIX install architecture-independent files in PREFIX
164 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
166 --bindir=DIR user executables in DIR [EPREFIX/bin]
167 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
168 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
169 --datadir=DIR read-only architecture-independent data in DIR
171 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
172 --sharedstatedir=DIR modifiable architecture-independent data in DIR
174 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
175 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
176 --includedir=DIR C header files in DIR [PREFIX/include]
177 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
178 --infodir=DIR info documentation in DIR [PREFIX/info]
179 --mandir=DIR man documentation in DIR [PREFIX/man]
180 --srcdir=DIR find the sources in DIR [configure dir or ..]
181 --program-prefix=PREFIX prepend PREFIX to installed program names
182 --program-suffix=SUFFIX append SUFFIX to installed program names
183 --program-transform-name=PROGRAM
184 run sed PROGRAM on installed program names
188 --build=BUILD configure for building on BUILD [BUILD=HOST]
189 --host=HOST configure for HOST [guessed]
190 --target=TARGET configure for TARGET [TARGET=HOST]
191 Features and packages:
192 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
193 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
194 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
195 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
196 --x-includes=DIR X include files are in DIR
197 --x-libraries=DIR X library files are in DIR
199 if test -n "$ac_help"; then
200 echo "--enable and --with options recognized:$ac_help"
204 -host | --host | --hos | --ho)
206 -host=* | --host=* | --hos=* | --ho=*)
209 -includedir | --includedir | --includedi | --included | --include \
210 | --includ | --inclu | --incl | --inc)
211 ac_prev=includedir ;;
212 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
213 | --includ=* | --inclu=* | --incl=* | --inc=*)
214 includedir="$ac_optarg" ;;
216 -infodir | --infodir | --infodi | --infod | --info | --inf)
218 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
219 infodir="$ac_optarg" ;;
221 -libdir | --libdir | --libdi | --libd)
223 -libdir=* | --libdir=* | --libdi=* | --libd=*)
224 libdir="$ac_optarg" ;;
226 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
227 | --libexe | --libex | --libe)
228 ac_prev=libexecdir ;;
229 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
230 | --libexe=* | --libex=* | --libe=*)
231 libexecdir="$ac_optarg" ;;
233 -localstatedir | --localstatedir | --localstatedi | --localstated \
234 | --localstate | --localstat | --localsta | --localst \
235 | --locals | --local | --loca | --loc | --lo)
236 ac_prev=localstatedir ;;
237 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
238 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
239 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
240 localstatedir="$ac_optarg" ;;
242 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
244 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
245 mandir="$ac_optarg" ;;
248 # Obsolete; use --without-fp.
251 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
255 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
256 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
259 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
260 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
261 | --oldin | --oldi | --old | --ol | --o)
262 ac_prev=oldincludedir ;;
263 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
264 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
265 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
266 oldincludedir="$ac_optarg" ;;
268 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
270 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
271 prefix="$ac_optarg" ;;
273 -program-prefix | --program-prefix | --program-prefi | --program-pref \
274 | --program-pre | --program-pr | --program-p)
275 ac_prev=program_prefix ;;
276 -program-prefix=* | --program-prefix=* | --program-prefi=* \
277 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
278 program_prefix="$ac_optarg" ;;
280 -program-suffix | --program-suffix | --program-suffi | --program-suff \
281 | --program-suf | --program-su | --program-s)
282 ac_prev=program_suffix ;;
283 -program-suffix=* | --program-suffix=* | --program-suffi=* \
284 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
285 program_suffix="$ac_optarg" ;;
287 -program-transform-name | --program-transform-name \
288 | --program-transform-nam | --program-transform-na \
289 | --program-transform-n | --program-transform- \
290 | --program-transform | --program-transfor \
291 | --program-transfo | --program-transf \
292 | --program-trans | --program-tran \
293 | --progr-tra | --program-tr | --program-t)
294 ac_prev=program_transform_name ;;
295 -program-transform-name=* | --program-transform-name=* \
296 | --program-transform-nam=* | --program-transform-na=* \
297 | --program-transform-n=* | --program-transform-=* \
298 | --program-transform=* | --program-transfor=* \
299 | --program-transfo=* | --program-transf=* \
300 | --program-trans=* | --program-tran=* \
301 | --progr-tra=* | --program-tr=* | --program-t=*)
302 program_transform_name="$ac_optarg" ;;
304 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
305 | -silent | --silent | --silen | --sile | --sil)
308 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
310 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
312 sbindir="$ac_optarg" ;;
314 -sharedstatedir | --sharedstatedir | --sharedstatedi \
315 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
316 | --sharedst | --shareds | --shared | --share | --shar \
318 ac_prev=sharedstatedir ;;
319 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
320 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
321 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
323 sharedstatedir="$ac_optarg" ;;
325 -site | --site | --sit)
327 -site=* | --site=* | --sit=*)
330 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
332 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
333 srcdir="$ac_optarg" ;;
335 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
336 | --syscon | --sysco | --sysc | --sys | --sy)
337 ac_prev=sysconfdir ;;
338 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
339 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
340 sysconfdir="$ac_optarg" ;;
342 -target | --target | --targe | --targ | --tar | --ta | --t)
344 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
345 target="$ac_optarg" ;;
347 -v | -verbose | --verbose | --verbos | --verbo | --verb)
350 -version | --version | --versio | --versi | --vers)
351 echo "configure generated by autoconf version 2.13"
355 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
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'`
365 eval "with_${ac_package}='$ac_optarg'" ;;
367 -without-* | --without-*)
368 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
369 # Reject names that are not valid shell variable names.
370 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
371 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
373 ac_package=`echo $ac_package| sed 's/-/_/g'`
374 eval "with_${ac_package}=no" ;;
377 # Obsolete; use --with-x.
380 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
381 | --x-incl | --x-inc | --x-in | --x-i)
382 ac_prev=x_includes ;;
383 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
384 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
385 x_includes="$ac_optarg" ;;
387 -x-libraries | --x-libraries | --x-librarie | --x-librari \
388 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
389 ac_prev=x_libraries ;;
390 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
391 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
392 x_libraries="$ac_optarg" ;;
394 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
398 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
399 echo "configure: warning: $ac_option: invalid host type" 1>&2
401 if test "x$nonopt" != xNONE; then
402 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
410 if test -n "$ac_prev"; then
411 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
414 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
416 # File descriptor usage:
419 # 2 errors and warnings
420 # 3 some systems may open it to /dev/tty
421 # 4 used on the Kubota Titan
422 # 6 checking for... messages and results
423 # 5 compiler messages saved in config.log
424 if test "$silent" = yes; then
432 This file contains any messages produced by compilers while
433 running configure, to aid debugging if configure makes a mistake.
436 # Strip out --no-create and --no-recursion so they do not pile up.
437 # Also quote any args containing shell metacharacters.
442 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
443 | --no-cr | --no-c) ;;
444 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
445 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
446 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
447 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
448 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
453 # Only set these to C if already set. These must not be set unconditionally
454 # because not all systems understand e.g. LANG=C (notably SCO).
455 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
456 # Non-C LC_CTYPE values break the ctype check.
457 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
458 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
459 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
460 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
462 # confdefs.h avoids OS command line length limits that DEFS can exceed.
463 rm -rf conftest* confdefs.h
464 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
467 # A filename unique to this package, relative to the directory that
468 # configure is in, which we can look for to find out if srcdir is correct.
469 ac_unique_file=xboard.c
471 # Find the source files, if location was not specified.
472 if test -z "$srcdir"; then
473 ac_srcdir_defaulted=yes
474 # Try the directory containing this script, then its parent.
476 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
477 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
479 if test ! -r $srcdir/$ac_unique_file; then
483 ac_srcdir_defaulted=no
485 if test ! -r $srcdir/$ac_unique_file; then
486 if test "$ac_srcdir_defaulted" = yes; then
487 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
489 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
492 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
494 # Prefer explicitly selected file to automatically selected ones.
495 if test -z "$CONFIG_SITE"; then
496 if test "x$prefix" != xNONE; then
497 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
499 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
502 for ac_site_file in $CONFIG_SITE; do
503 if test -r "$ac_site_file"; then
504 echo "loading site script $ac_site_file"
509 if test -r "$cache_file"; then
510 echo "loading cache $cache_file"
513 echo "creating cache $cache_file"
518 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
519 ac_cpp='$CPP $CPPFLAGS'
520 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
521 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
522 cross_compiling=$ac_cv_prog_cc_cross
526 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
527 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
528 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
535 ac_n= ac_c='\c' ac_t=
545 if test -z "$CFLAGS" ; then
548 # Extract the first word of "gcc", so it can be a program name with args.
549 set dummy gcc; ac_word=$2
550 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
551 echo "configure:552: checking for $ac_word" >&5
552 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
553 echo $ac_n "(cached) $ac_c" 1>&6
555 if test -n "$CC"; then
556 ac_cv_prog_CC="$CC" # Let the user override the test.
558 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
560 for ac_dir in $ac_dummy; do
561 test -z "$ac_dir" && ac_dir=.
562 if test -f $ac_dir/$ac_word; then
571 if test -n "$CC"; then
572 echo "$ac_t""$CC" 1>&6
574 echo "$ac_t""no" 1>&6
577 if test -z "$CC"; then
578 # Extract the first word of "cc", so it can be a program name with args.
579 set dummy cc; ac_word=$2
580 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
581 echo "configure:582: checking for $ac_word" >&5
582 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
583 echo $ac_n "(cached) $ac_c" 1>&6
585 if test -n "$CC"; then
586 ac_cv_prog_CC="$CC" # Let the user override the test.
588 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
591 for ac_dir in $ac_dummy; do
592 test -z "$ac_dir" && ac_dir=.
593 if test -f $ac_dir/$ac_word; then
594 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
603 if test $ac_prog_rejected = yes; then
604 # We found a bogon in the path, so make sure we never use it.
605 set dummy $ac_cv_prog_CC
607 if test $# -gt 0; then
608 # We chose a different compiler from the bogus one.
609 # However, it has the same basename, so the bogon will be chosen
610 # first if we set CC to just the basename; use the full file name.
612 set dummy "$ac_dir/$ac_word" "$@"
620 if test -n "$CC"; then
621 echo "$ac_t""$CC" 1>&6
623 echo "$ac_t""no" 1>&6
626 if test -z "$CC"; then
629 # Extract the first word of "cl", so it can be a program name with args.
630 set dummy cl; ac_word=$2
631 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
632 echo "configure:633: checking for $ac_word" >&5
633 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
634 echo $ac_n "(cached) $ac_c" 1>&6
636 if test -n "$CC"; then
637 ac_cv_prog_CC="$CC" # Let the user override the test.
639 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
641 for ac_dir in $ac_dummy; do
642 test -z "$ac_dir" && ac_dir=.
643 if test -f $ac_dir/$ac_word; then
652 if test -n "$CC"; then
653 echo "$ac_t""$CC" 1>&6
655 echo "$ac_t""no" 1>&6
660 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
663 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
664 echo "configure:665: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
667 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
668 ac_cpp='$CPP $CPPFLAGS'
669 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
670 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
671 cross_compiling=$ac_cv_prog_cc_cross
673 cat > conftest.$ac_ext << EOF
675 #line 676 "configure"
676 #include "confdefs.h"
680 if { (eval echo configure:681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
681 ac_cv_prog_cc_works=yes
682 # If we can't run a trivial program, we are probably using a cross compiler.
683 if (./conftest; exit) 2>/dev/null; then
684 ac_cv_prog_cc_cross=no
686 ac_cv_prog_cc_cross=yes
689 echo "configure: failed program was:" >&5
690 cat conftest.$ac_ext >&5
691 ac_cv_prog_cc_works=no
695 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
696 ac_cpp='$CPP $CPPFLAGS'
697 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
698 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
699 cross_compiling=$ac_cv_prog_cc_cross
701 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
702 if test $ac_cv_prog_cc_works = no; then
703 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
705 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
706 echo "configure:707: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
707 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
708 cross_compiling=$ac_cv_prog_cc_cross
710 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
711 echo "configure:712: checking whether we are using GNU C" >&5
712 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
713 echo $ac_n "(cached) $ac_c" 1>&6
715 cat > conftest.c <<EOF
720 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:721: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
727 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
729 if test $ac_cv_prog_gcc = yes; then
735 ac_test_CFLAGS="${CFLAGS+set}"
736 ac_save_CFLAGS="$CFLAGS"
738 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
739 echo "configure:740: checking whether ${CC-cc} accepts -g" >&5
740 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
741 echo $ac_n "(cached) $ac_c" 1>&6
743 echo 'void f(){}' > conftest.c
744 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
753 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
754 if test "$ac_test_CFLAGS" = set; then
755 CFLAGS="$ac_save_CFLAGS"
756 elif test $ac_cv_prog_cc_g = yes; then
757 if test "$GCC" = yes; then
763 if test "$GCC" = yes; then
770 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
771 echo "configure:772: checking how to run the C preprocessor" >&5
772 # On Suns, sometimes $CPP names a directory.
773 if test -n "$CPP" && test -d "$CPP"; then
776 if test -z "$CPP"; then
777 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
778 echo $ac_n "(cached) $ac_c" 1>&6
780 # This must be in double quotes, not single quotes, because CPP may get
781 # substituted into the Makefile and "${CC-cc}" will confuse make.
783 # On the NeXT, cc -E runs the code through the compiler's parser,
784 # not just through cpp.
785 cat > conftest.$ac_ext <<EOF
786 #line 787 "configure"
787 #include "confdefs.h"
791 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
792 { (eval echo configure:793: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
793 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
794 if test -z "$ac_err"; then
798 echo "configure: failed program was:" >&5
799 cat conftest.$ac_ext >&5
801 CPP="${CC-cc} -E -traditional-cpp"
802 cat > conftest.$ac_ext <<EOF
803 #line 804 "configure"
804 #include "confdefs.h"
808 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
809 { (eval echo configure:810: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
810 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
811 if test -z "$ac_err"; then
815 echo "configure: failed program was:" >&5
816 cat conftest.$ac_ext >&5
818 CPP="${CC-cc} -nologo -E"
819 cat > conftest.$ac_ext <<EOF
820 #line 821 "configure"
821 #include "confdefs.h"
825 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
826 { (eval echo configure:827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
827 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
828 if test -z "$ac_err"; then
832 echo "configure: failed program was:" >&5
833 cat conftest.$ac_ext >&5
842 ac_cv_prog_CPP="$CPP"
844 CPP="$ac_cv_prog_CPP"
846 ac_cv_prog_CPP="$CPP"
848 echo "$ac_t""$CPP" 1>&6
850 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
851 echo "configure:852: checking for POSIXized ISC" >&5
852 if test -d /etc/conf/kconfig.d &&
853 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
855 echo "$ac_t""yes" 1>&6
856 ISC=yes # If later tests want to check for ISC.
857 cat >> confdefs.h <<\EOF
858 #define _POSIX_SOURCE 1
861 if test "$GCC" = yes; then
867 echo "$ac_t""no" 1>&6
872 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
873 if test -f $ac_dir/install-sh; then
875 ac_install_sh="$ac_aux_dir/install-sh -c"
877 elif test -f $ac_dir/install.sh; then
879 ac_install_sh="$ac_aux_dir/install.sh -c"
883 if test -z "$ac_aux_dir"; then
884 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
886 ac_config_guess=$ac_aux_dir/config.guess
887 ac_config_sub=$ac_aux_dir/config.sub
888 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
890 # Find a good install program. We prefer a C program (faster),
891 # so one script is as good as another. But avoid the broken or
892 # incompatible versions:
893 # SysV /etc/install, /usr/sbin/install
894 # SunOS /usr/etc/install
897 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
898 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
899 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
900 # ./install, which can be erroneously created by make from ./install.sh.
901 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
902 echo "configure:903: checking for a BSD compatible install" >&5
903 if test -z "$INSTALL"; then
904 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
905 echo $ac_n "(cached) $ac_c" 1>&6
907 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
908 for ac_dir in $PATH; do
909 # Account for people who put trailing slashes in PATH elements.
911 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
913 # OSF1 and SCO ODT 3.0 have their own names for install.
914 # Don't use installbsd from OSF since it installs stuff as root
916 for ac_prog in ginstall scoinst install; do
917 if test -f $ac_dir/$ac_prog; then
918 if test $ac_prog = install &&
919 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
920 # AIX install. It has an incompatible calling convention.
923 ac_cv_path_install="$ac_dir/$ac_prog -c"
934 if test "${ac_cv_path_install+set}" = set; then
935 INSTALL="$ac_cv_path_install"
937 # As a last resort, use the slow shell script. We don't cache a
938 # path for INSTALL within a source directory, because that will
939 # break other packages using the cache if that directory is
940 # removed, or if the path is relative.
941 INSTALL="$ac_install_sh"
944 echo "$ac_t""$INSTALL" 1>&6
946 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
947 # It thinks the first close brace ends the variable substitution.
948 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
950 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
952 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
954 for ac_prog in lex flex
956 # Extract the first word of "$ac_prog", so it can be a program name with args.
957 set dummy $ac_prog; ac_word=$2
958 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
959 echo "configure:960: checking for $ac_word" >&5
960 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
961 echo $ac_n "(cached) $ac_c" 1>&6
963 if test -n "$LEX"; then
964 ac_cv_prog_LEX="$LEX" # Let the user override the test.
966 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
968 for ac_dir in $ac_dummy; do
969 test -z "$ac_dir" && ac_dir=.
970 if test -f $ac_dir/$ac_word; then
971 ac_cv_prog_LEX="$ac_prog"
978 LEX="$ac_cv_prog_LEX"
979 if test -n "$LEX"; then
980 echo "$ac_t""$LEX" 1>&6
982 echo "$ac_t""no" 1>&6
985 test -n "$LEX" && break
987 test -n "$LEX" || LEX="lex_not_found"
989 if test "$LEX" != lex_not_found ; then
990 # Extract the first word of "flex", so it can be a program name with args.
991 set dummy flex; ac_word=$2
992 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
993 echo "configure:994: checking for $ac_word" >&5
994 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
995 echo $ac_n "(cached) $ac_c" 1>&6
997 if test -n "$LEX"; then
998 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1000 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1002 for ac_dir in $ac_dummy; do
1003 test -z "$ac_dir" && ac_dir=.
1004 if test -f $ac_dir/$ac_word; then
1005 ac_cv_prog_LEX="flex"
1010 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1013 LEX="$ac_cv_prog_LEX"
1014 if test -n "$LEX"; then
1015 echo "$ac_t""$LEX" 1>&6
1017 echo "$ac_t""no" 1>&6
1020 if test -z "$LEXLIB"
1026 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1027 echo "configure:1028: checking for yywrap in -l$ac_lib" >&5
1028 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1029 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1030 echo $ac_n "(cached) $ac_c" 1>&6
1032 ac_save_LIBS="$LIBS"
1033 LIBS="-l$ac_lib $LIBS"
1034 cat > conftest.$ac_ext <<EOF
1035 #line 1036 "configure"
1036 #include "confdefs.h"
1037 /* Override any gcc2 internal prototype to avoid an error. */
1038 /* We use char because int might match the return type of a gcc2
1039 builtin and then its argument prototype would still apply. */
1046 if { (eval echo configure:1047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1048 eval "ac_cv_lib_$ac_lib_var=yes"
1050 echo "configure: failed program was:" >&5
1051 cat conftest.$ac_ext >&5
1053 eval "ac_cv_lib_$ac_lib_var=no"
1056 LIBS="$ac_save_LIBS"
1059 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1060 echo "$ac_t""yes" 1>&6
1063 echo "$ac_t""no" 1>&6
1068 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
1069 echo "configure:1070: checking lex output file root" >&5
1070 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
1071 echo $ac_n "(cached) $ac_c" 1>&6
1073 # The minimal lex program is just a single line: %%. But some broken lexes
1074 # (Solaris, I think it was) want two %% lines, so accommodate them.
1077 if test -f lex.yy.c; then
1078 ac_cv_prog_lex_root=lex.yy
1079 elif test -f lexyy.c; then
1080 ac_cv_prog_lex_root=lexyy
1082 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
1086 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
1087 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
1089 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
1090 echo "configure:1091: checking whether yytext is a pointer" >&5
1091 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
1092 echo $ac_n "(cached) $ac_c" 1>&6
1094 # POSIX says lex can declare yytext either as a pointer or an array; the
1095 # default is implementation-dependent. Figure out which it is, since
1096 # not all implementations provide the %pointer and %array declarations.
1097 ac_cv_prog_lex_yytext_pointer=no
1098 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
1099 ac_save_LIBS="$LIBS"
1100 LIBS="$LIBS $LEXLIB"
1101 cat > conftest.$ac_ext <<EOF
1102 #line 1103 "configure"
1103 #include "confdefs.h"
1104 `cat $LEX_OUTPUT_ROOT.c`
1109 if { (eval echo configure:1110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1111 ac_cv_prog_lex_yytext_pointer=yes
1113 echo "configure: failed program was:" >&5
1114 cat conftest.$ac_ext >&5
1117 LIBS="$ac_save_LIBS"
1118 rm -f "${LEX_OUTPUT_ROOT}.c"
1122 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
1123 if test $ac_cv_prog_lex_yytext_pointer = yes; then
1124 cat >> confdefs.h <<\EOF
1125 #define YYTEXT_POINTER 1
1131 for ac_prog in remsh rsh
1133 # Extract the first word of "$ac_prog", so it can be a program name with args.
1134 set dummy $ac_prog; ac_word=$2
1135 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1136 echo "configure:1137: checking for $ac_word" >&5
1137 if eval "test \"`echo '$''{'ac_cv_prog_RSH'+set}'`\" = set"; then
1138 echo $ac_n "(cached) $ac_c" 1>&6
1140 if test -n "$RSH"; then
1141 ac_cv_prog_RSH="$RSH" # Let the user override the test.
1143 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1145 for ac_dir in $ac_dummy; do
1146 test -z "$ac_dir" && ac_dir=.
1147 if test -f $ac_dir/$ac_word; then
1148 ac_cv_prog_RSH="$ac_prog"
1155 RSH="$ac_cv_prog_RSH"
1156 if test -n "$RSH"; then
1157 echo "$ac_t""$RSH" 1>&6
1159 echo "$ac_t""no" 1>&6
1162 test -n "$RSH" && break
1164 test -n "$RSH" || RSH="rsh"
1166 cat >> confdefs.h <<EOF
1167 #define REMOTE_SHELL "$RSH"
1170 # Extract the first word of "nroff", so it can be a program name with args.
1171 set dummy nroff; ac_word=$2
1172 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1173 echo "configure:1174: checking for $ac_word" >&5
1174 if eval "test \"`echo '$''{'ac_cv_prog_NROFF'+set}'`\" = set"; then
1175 echo $ac_n "(cached) $ac_c" 1>&6
1177 if test -n "$NROFF"; then
1178 ac_cv_prog_NROFF="$NROFF" # Let the user override the test.
1180 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1182 for ac_dir in $ac_dummy; do
1183 test -z "$ac_dir" && ac_dir=.
1184 if test -f $ac_dir/$ac_word; then
1185 ac_cv_prog_NROFF="nroff -man"
1190 test -z "$ac_cv_prog_NROFF" && ac_cv_prog_NROFF="cat"
1193 NROFF="$ac_cv_prog_NROFF"
1194 if test -n "$NROFF"; then
1195 echo "$ac_t""$NROFF" 1>&6
1197 echo "$ac_t""no" 1>&6
1201 for ac_prog in awk mawk gawk nawk
1203 # Extract the first word of "$ac_prog", so it can be a program name with args.
1204 set dummy $ac_prog; ac_word=$2
1205 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1206 echo "configure:1207: checking for $ac_word" >&5
1207 if eval "test \"`echo '$''{'ac_cv_path_AWKPATH'+set}'`\" = set"; then
1208 echo $ac_n "(cached) $ac_c" 1>&6
1212 ac_cv_path_AWKPATH="$AWKPATH" # Let the user override the test with a path.
1215 ac_cv_path_AWKPATH="$AWKPATH" # Let the user override the test with a dos path.
1218 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1220 for ac_dir in $ac_dummy; do
1221 test -z "$ac_dir" && ac_dir=.
1222 if test -f $ac_dir/$ac_word; then
1223 ac_cv_path_AWKPATH="$ac_dir/$ac_word"
1231 AWKPATH="$ac_cv_path_AWKPATH"
1232 if test -n "$AWKPATH"; then
1233 echo "$ac_t""$AWKPATH" 1>&6
1235 echo "$ac_t""no" 1>&6
1238 test -n "$AWKPATH" && break
1243 # Extract the first word of "$ac_prog", so it can be a program name with args.
1244 set dummy $ac_prog; ac_word=$2
1245 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1246 echo "configure:1247: checking for $ac_word" >&5
1247 if eval "test \"`echo '$''{'ac_cv_path_PERLPATH'+set}'`\" = set"; then
1248 echo $ac_n "(cached) $ac_c" 1>&6
1252 ac_cv_path_PERLPATH="$PERLPATH" # Let the user override the test with a path.
1255 ac_cv_path_PERLPATH="$PERLPATH" # Let the user override the test with a dos path.
1258 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1260 for ac_dir in $ac_dummy; do
1261 test -z "$ac_dir" && ac_dir=.
1262 if test -f $ac_dir/$ac_word; then
1263 ac_cv_path_PERLPATH="$ac_dir/$ac_word"
1271 PERLPATH="$ac_cv_path_PERLPATH"
1272 if test -n "$PERLPATH"; then
1273 echo "$ac_t""$PERLPATH" 1>&6
1275 echo "$ac_t""no" 1>&6
1278 test -n "$PERLPATH" && break
1282 # Check whether --with-Xaw3d or --without-Xaw3d was given.
1283 if test "${with_Xaw3d+set}" = set; then
1284 withval="$with_Xaw3d"
1285 cat >> confdefs.h <<\EOF
1296 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1297 echo "configure:1298: checking for ANSI C header files" >&5
1298 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1299 echo $ac_n "(cached) $ac_c" 1>&6
1301 cat > conftest.$ac_ext <<EOF
1302 #line 1303 "configure"
1303 #include "confdefs.h"
1309 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1310 { (eval echo configure:1311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1311 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1312 if test -z "$ac_err"; then
1314 ac_cv_header_stdc=yes
1317 echo "configure: failed program was:" >&5
1318 cat conftest.$ac_ext >&5
1320 ac_cv_header_stdc=no
1324 if test $ac_cv_header_stdc = yes; then
1325 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1326 cat > conftest.$ac_ext <<EOF
1327 #line 1328 "configure"
1328 #include "confdefs.h"
1331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1332 egrep "memchr" >/dev/null 2>&1; then
1336 ac_cv_header_stdc=no
1342 if test $ac_cv_header_stdc = yes; then
1343 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1344 cat > conftest.$ac_ext <<EOF
1345 #line 1346 "configure"
1346 #include "confdefs.h"
1349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1350 egrep "free" >/dev/null 2>&1; then
1354 ac_cv_header_stdc=no
1360 if test $ac_cv_header_stdc = yes; then
1361 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1362 if test "$cross_compiling" = yes; then
1365 cat > conftest.$ac_ext <<EOF
1366 #line 1367 "configure"
1367 #include "confdefs.h"
1369 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1370 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1371 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1372 int main () { int i; for (i = 0; i < 256; i++)
1373 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1377 if { (eval echo configure:1378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1381 echo "configure: failed program was:" >&5
1382 cat conftest.$ac_ext >&5
1384 ac_cv_header_stdc=no
1392 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1393 if test $ac_cv_header_stdc = yes; then
1394 cat >> confdefs.h <<\EOF
1395 #define STDC_HEADERS 1
1400 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1401 echo "configure:1402: checking whether time.h and sys/time.h may both be included" >&5
1402 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1403 echo $ac_n "(cached) $ac_c" 1>&6
1405 cat > conftest.$ac_ext <<EOF
1406 #line 1407 "configure"
1407 #include "confdefs.h"
1408 #include <sys/types.h>
1409 #include <sys/time.h>
1415 if { (eval echo configure:1416: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1417 ac_cv_header_time=yes
1419 echo "configure: failed program was:" >&5
1420 cat conftest.$ac_ext >&5
1422 ac_cv_header_time=no
1427 echo "$ac_t""$ac_cv_header_time" 1>&6
1428 if test $ac_cv_header_time = yes; then
1429 cat >> confdefs.h <<\EOF
1430 #define TIME_WITH_SYS_TIME 1
1435 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1436 echo "configure:1437: checking for sys/wait.h that is POSIX.1 compatible" >&5
1437 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1438 echo $ac_n "(cached) $ac_c" 1>&6
1440 cat > conftest.$ac_ext <<EOF
1441 #line 1442 "configure"
1442 #include "confdefs.h"
1443 #include <sys/types.h>
1444 #include <sys/wait.h>
1446 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1449 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1454 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1457 if { (eval echo configure:1458: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1459 ac_cv_header_sys_wait_h=yes
1461 echo "configure: failed program was:" >&5
1462 cat conftest.$ac_ext >&5
1464 ac_cv_header_sys_wait_h=no
1469 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1470 if test $ac_cv_header_sys_wait_h = yes; then
1471 cat >> confdefs.h <<\EOF
1472 #define HAVE_SYS_WAIT_H 1
1478 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1480 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1481 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1482 echo "configure:1483: checking for $ac_hdr that defines DIR" >&5
1483 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1484 echo $ac_n "(cached) $ac_c" 1>&6
1486 cat > conftest.$ac_ext <<EOF
1487 #line 1488 "configure"
1488 #include "confdefs.h"
1489 #include <sys/types.h>
1495 if { (eval echo configure:1496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1497 eval "ac_cv_header_dirent_$ac_safe=yes"
1499 echo "configure: failed program was:" >&5
1500 cat conftest.$ac_ext >&5
1502 eval "ac_cv_header_dirent_$ac_safe=no"
1506 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1507 echo "$ac_t""yes" 1>&6
1508 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1509 cat >> confdefs.h <<EOF
1510 #define $ac_tr_hdr 1
1512 ac_header_dirent=$ac_hdr; break
1514 echo "$ac_t""no" 1>&6
1517 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1518 if test $ac_header_dirent = dirent.h; then
1519 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1520 echo "configure:1521: checking for opendir in -ldir" >&5
1521 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1522 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1523 echo $ac_n "(cached) $ac_c" 1>&6
1525 ac_save_LIBS="$LIBS"
1527 cat > conftest.$ac_ext <<EOF
1528 #line 1529 "configure"
1529 #include "confdefs.h"
1530 /* Override any gcc2 internal prototype to avoid an error. */
1531 /* We use char because int might match the return type of a gcc2
1532 builtin and then its argument prototype would still apply. */
1539 if { (eval echo configure:1540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1541 eval "ac_cv_lib_$ac_lib_var=yes"
1543 echo "configure: failed program was:" >&5
1544 cat conftest.$ac_ext >&5
1546 eval "ac_cv_lib_$ac_lib_var=no"
1549 LIBS="$ac_save_LIBS"
1552 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1553 echo "$ac_t""yes" 1>&6
1556 echo "$ac_t""no" 1>&6
1560 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1561 echo "configure:1562: checking for opendir in -lx" >&5
1562 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1563 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1564 echo $ac_n "(cached) $ac_c" 1>&6
1566 ac_save_LIBS="$LIBS"
1568 cat > conftest.$ac_ext <<EOF
1569 #line 1570 "configure"
1570 #include "confdefs.h"
1571 /* Override any gcc2 internal prototype to avoid an error. */
1572 /* We use char because int might match the return type of a gcc2
1573 builtin and then its argument prototype would still apply. */
1580 if { (eval echo configure:1581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1582 eval "ac_cv_lib_$ac_lib_var=yes"
1584 echo "configure: failed program was:" >&5
1585 cat conftest.$ac_ext >&5
1587 eval "ac_cv_lib_$ac_lib_var=no"
1590 LIBS="$ac_save_LIBS"
1593 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1594 echo "$ac_t""yes" 1>&6
1597 echo "$ac_t""no" 1>&6
1602 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1603 echo "configure:1604: checking return type of signal handlers" >&5
1604 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1605 echo $ac_n "(cached) $ac_c" 1>&6
1607 cat > conftest.$ac_ext <<EOF
1608 #line 1609 "configure"
1609 #include "confdefs.h"
1610 #include <sys/types.h>
1616 extern "C" void (*signal (int, void (*)(int)))(int);
1618 void (*signal ()) ();
1625 if { (eval echo configure:1626: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1627 ac_cv_type_signal=void
1629 echo "configure: failed program was:" >&5
1630 cat conftest.$ac_ext >&5
1632 ac_cv_type_signal=int
1637 echo "$ac_t""$ac_cv_type_signal" 1>&6
1638 cat >> confdefs.h <<EOF
1639 #define RETSIGTYPE $ac_cv_type_signal
1643 for ac_hdr in stropts.h sys/time.h string.h unistd.h sys/systeminfo.h
1645 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1646 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1647 echo "configure:1648: checking for $ac_hdr" >&5
1648 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1649 echo $ac_n "(cached) $ac_c" 1>&6
1651 cat > conftest.$ac_ext <<EOF
1652 #line 1653 "configure"
1653 #include "confdefs.h"
1656 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1657 { (eval echo configure:1658: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1658 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1659 if test -z "$ac_err"; then
1661 eval "ac_cv_header_$ac_safe=yes"
1664 echo "configure: failed program was:" >&5
1665 cat conftest.$ac_ext >&5
1667 eval "ac_cv_header_$ac_safe=no"
1671 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1672 echo "$ac_t""yes" 1>&6
1673 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1674 cat >> confdefs.h <<EOF
1675 #define $ac_tr_hdr 1
1679 echo "$ac_t""no" 1>&6
1683 for ac_hdr in fcntl.h sys/fcntl.h
1685 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1686 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1687 echo "configure:1688: checking for $ac_hdr" >&5
1688 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1689 echo $ac_n "(cached) $ac_c" 1>&6
1691 cat > conftest.$ac_ext <<EOF
1692 #line 1693 "configure"
1693 #include "confdefs.h"
1696 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1697 { (eval echo configure:1698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1698 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1699 if test -z "$ac_err"; then
1701 eval "ac_cv_header_$ac_safe=yes"
1704 echo "configure: failed program was:" >&5
1705 cat conftest.$ac_ext >&5
1707 eval "ac_cv_header_$ac_safe=no"
1711 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1712 echo "$ac_t""yes" 1>&6
1713 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1714 cat >> confdefs.h <<EOF
1715 #define $ac_tr_hdr 1
1719 echo "$ac_t""no" 1>&6
1723 for ac_hdr in sys/socket.h lan/socket.h
1725 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1726 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1727 echo "configure:1728: checking for $ac_hdr" >&5
1728 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1729 echo $ac_n "(cached) $ac_c" 1>&6
1731 cat > conftest.$ac_ext <<EOF
1732 #line 1733 "configure"
1733 #include "confdefs.h"
1736 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1737 { (eval echo configure:1738: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1738 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1739 if test -z "$ac_err"; then
1741 eval "ac_cv_header_$ac_safe=yes"
1744 echo "configure: failed program was:" >&5
1745 cat conftest.$ac_ext >&5
1747 eval "ac_cv_header_$ac_safe=no"
1751 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1752 echo "$ac_t""yes" 1>&6
1753 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1754 cat >> confdefs.h <<EOF
1755 #define $ac_tr_hdr 1
1759 echo "$ac_t""no" 1>&6
1763 ac_safe=`echo "stddef.h" | sed 'y%./+-%__p_%'`
1764 echo $ac_n "checking for stddef.h""... $ac_c" 1>&6
1765 echo "configure:1766: checking for stddef.h" >&5
1766 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1767 echo $ac_n "(cached) $ac_c" 1>&6
1769 cat > conftest.$ac_ext <<EOF
1770 #line 1771 "configure"
1771 #include "confdefs.h"
1774 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1775 { (eval echo configure:1776: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1776 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1777 if test -z "$ac_err"; then
1779 eval "ac_cv_header_$ac_safe=yes"
1782 echo "configure: failed program was:" >&5
1783 cat conftest.$ac_ext >&5
1785 eval "ac_cv_header_$ac_safe=no"
1789 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1790 echo "$ac_t""yes" 1>&6
1793 echo "$ac_t""no" 1>&6
1794 cat >> confdefs.h <<\EOF
1801 cat > conftest.$ac_ext <<EOF
1802 #line 1803 "configure"
1803 #include "confdefs.h"
1806 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1807 egrep "sys_errlist" >/dev/null 2>&1; then
1809 cat >> confdefs.h <<\EOF
1810 #define DEFINED_SYS_ERRLIST 1
1816 cat > conftest.$ac_ext <<EOF
1817 #line 1818 "configure"
1818 #include "confdefs.h"
1821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1822 egrep "sys_errlist" >/dev/null 2>&1; then
1824 cat >> confdefs.h <<\EOF
1825 #define DEFINED_SYS_ERRLIST 1
1831 cat > conftest.$ac_ext <<EOF
1832 #line 1833 "configure"
1833 #include "confdefs.h"
1836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1837 egrep "sys_errlist" >/dev/null 2>&1; then
1839 cat >> confdefs.h <<\EOF
1840 #define DEFINED_SYS_ERRLIST 1
1847 for ac_func in _getpty grantpt setitimer usleep
1849 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1850 echo "configure:1851: checking for $ac_func" >&5
1851 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1852 echo $ac_n "(cached) $ac_c" 1>&6
1854 cat > conftest.$ac_ext <<EOF
1855 #line 1856 "configure"
1856 #include "confdefs.h"
1857 /* System header to define __stub macros and hopefully few prototypes,
1858 which can conflict with char $ac_func(); below. */
1860 /* Override any gcc2 internal prototype to avoid an error. */
1861 /* We use char because int might match the return type of a gcc2
1862 builtin and then its argument prototype would still apply. */
1867 /* The GNU C library defines this for functions which it implements
1868 to always fail with ENOSYS. Some functions are actually named
1869 something starting with __ and the normal name is an alias. */
1870 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1878 if { (eval echo configure:1879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1880 eval "ac_cv_func_$ac_func=yes"
1882 echo "configure: failed program was:" >&5
1883 cat conftest.$ac_ext >&5
1885 eval "ac_cv_func_$ac_func=no"
1890 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1891 echo "$ac_t""yes" 1>&6
1892 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1893 cat >> confdefs.h <<EOF
1894 #define $ac_tr_func 1
1898 echo "$ac_t""no" 1>&6
1902 for ac_func in gettimeofday ftime
1904 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1905 echo "configure:1906: checking for $ac_func" >&5
1906 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1907 echo $ac_n "(cached) $ac_c" 1>&6
1909 cat > conftest.$ac_ext <<EOF
1910 #line 1911 "configure"
1911 #include "confdefs.h"
1912 /* System header to define __stub macros and hopefully few prototypes,
1913 which can conflict with char $ac_func(); below. */
1915 /* Override any gcc2 internal prototype to avoid an error. */
1916 /* We use char because int might match the return type of a gcc2
1917 builtin and then its argument prototype would still apply. */
1922 /* The GNU C library defines this for functions which it implements
1923 to always fail with ENOSYS. Some functions are actually named
1924 something starting with __ and the normal name is an alias. */
1925 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1933 if { (eval echo configure:1934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1935 eval "ac_cv_func_$ac_func=yes"
1937 echo "configure: failed program was:" >&5
1938 cat conftest.$ac_ext >&5
1940 eval "ac_cv_func_$ac_func=no"
1945 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1946 echo "$ac_t""yes" 1>&6
1947 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1948 cat >> confdefs.h <<EOF
1949 #define $ac_tr_func 1
1953 echo "$ac_t""no" 1>&6
1957 for ac_func in random rand48
1959 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1960 echo "configure:1961: checking for $ac_func" >&5
1961 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1962 echo $ac_n "(cached) $ac_c" 1>&6
1964 cat > conftest.$ac_ext <<EOF
1965 #line 1966 "configure"
1966 #include "confdefs.h"
1967 /* System header to define __stub macros and hopefully few prototypes,
1968 which can conflict with char $ac_func(); below. */
1970 /* Override any gcc2 internal prototype to avoid an error. */
1971 /* We use char because int might match the return type of a gcc2
1972 builtin and then its argument prototype would still apply. */
1977 /* The GNU C library defines this for functions which it implements
1978 to always fail with ENOSYS. Some functions are actually named
1979 something starting with __ and the normal name is an alias. */
1980 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1988 if { (eval echo configure:1989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1990 eval "ac_cv_func_$ac_func=yes"
1992 echo "configure: failed program was:" >&5
1993 cat conftest.$ac_ext >&5
1995 eval "ac_cv_func_$ac_func=no"
2000 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2001 echo "$ac_t""yes" 1>&6
2002 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2003 cat >> confdefs.h <<EOF
2004 #define $ac_tr_func 1
2008 echo "$ac_t""no" 1>&6
2012 for ac_func in gethostname sysinfo
2014 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2015 echo "configure:2016: checking for $ac_func" >&5
2016 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2017 echo $ac_n "(cached) $ac_c" 1>&6
2019 cat > conftest.$ac_ext <<EOF
2020 #line 2021 "configure"
2021 #include "confdefs.h"
2022 /* System header to define __stub macros and hopefully few prototypes,
2023 which can conflict with char $ac_func(); below. */
2025 /* Override any gcc2 internal prototype to avoid an error. */
2026 /* We use char because int might match the return type of a gcc2
2027 builtin and then its argument prototype would still apply. */
2032 /* The GNU C library defines this for functions which it implements
2033 to always fail with ENOSYS. Some functions are actually named
2034 something starting with __ and the normal name is an alias. */
2035 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2043 if { (eval echo configure:2044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2045 eval "ac_cv_func_$ac_func=yes"
2047 echo "configure: failed program was:" >&5
2048 cat conftest.$ac_ext >&5
2050 eval "ac_cv_func_$ac_func=no"
2055 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2056 echo "$ac_t""yes" 1>&6
2057 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2058 cat >> confdefs.h <<EOF
2059 #define $ac_tr_func 1
2063 echo "$ac_t""no" 1>&6
2067 echo $ac_n "checking for setlocale""... $ac_c" 1>&6
2068 echo "configure:2069: checking for setlocale" >&5
2069 if eval "test \"`echo '$''{'ac_cv_func_setlocale'+set}'`\" = set"; then
2070 echo $ac_n "(cached) $ac_c" 1>&6
2072 cat > conftest.$ac_ext <<EOF
2073 #line 2074 "configure"
2074 #include "confdefs.h"
2075 /* System header to define __stub macros and hopefully few prototypes,
2076 which can conflict with char setlocale(); below. */
2078 /* Override any gcc2 internal prototype to avoid an error. */
2079 /* We use char because int might match the return type of a gcc2
2080 builtin and then its argument prototype would still apply. */
2085 /* The GNU C library defines this for functions which it implements
2086 to always fail with ENOSYS. Some functions are actually named
2087 something starting with __ and the normal name is an alias. */
2088 #if defined (__stub_setlocale) || defined (__stub___setlocale)
2096 if { (eval echo configure:2097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2098 eval "ac_cv_func_setlocale=yes"
2100 echo "configure: failed program was:" >&5
2101 cat conftest.$ac_ext >&5
2103 eval "ac_cv_func_setlocale=no"
2108 if eval "test \"`echo '$ac_cv_func_'setlocale`\" = yes"; then
2109 echo "$ac_t""yes" 1>&6
2112 echo "$ac_t""no" 1>&6
2113 echo $ac_n "checking for setlocale in -li""... $ac_c" 1>&6
2114 echo "configure:2115: checking for setlocale in -li" >&5
2115 ac_lib_var=`echo i'_'setlocale | sed 'y%./+-%__p_%'`
2116 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2117 echo $ac_n "(cached) $ac_c" 1>&6
2119 ac_save_LIBS="$LIBS"
2121 cat > conftest.$ac_ext <<EOF
2122 #line 2123 "configure"
2123 #include "confdefs.h"
2124 /* Override any gcc2 internal prototype to avoid an error. */
2125 /* We use char because int might match the return type of a gcc2
2126 builtin and then its argument prototype would still apply. */
2133 if { (eval echo configure:2134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2135 eval "ac_cv_lib_$ac_lib_var=yes"
2137 echo "configure: failed program was:" >&5
2138 cat conftest.$ac_ext >&5
2140 eval "ac_cv_lib_$ac_lib_var=no"
2143 LIBS="$ac_save_LIBS"
2146 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2147 echo "$ac_t""yes" 1>&6
2148 ac_tr_lib=HAVE_LIB`echo i | sed -e 's/^a-zA-Z0-9_/_/g' \
2149 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2150 cat >> confdefs.h <<EOF
2151 #define $ac_tr_lib 1
2157 echo "$ac_t""no" 1>&6
2158 cat >> confdefs.h <<\EOF
2167 echo $ac_n "checking for getpseudotty in -lseq""... $ac_c" 1>&6
2168 echo "configure:2169: checking for getpseudotty in -lseq" >&5
2169 ac_lib_var=`echo seq'_'getpseudotty | sed 'y%./+-%__p_%'`
2170 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2171 echo $ac_n "(cached) $ac_c" 1>&6
2173 ac_save_LIBS="$LIBS"
2175 cat > conftest.$ac_ext <<EOF
2176 #line 2177 "configure"
2177 #include "confdefs.h"
2178 /* Override any gcc2 internal prototype to avoid an error. */
2179 /* We use char because int might match the return type of a gcc2
2180 builtin and then its argument prototype would still apply. */
2181 char getpseudotty();
2187 if { (eval echo configure:2188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2189 eval "ac_cv_lib_$ac_lib_var=yes"
2191 echo "configure: failed program was:" >&5
2192 cat conftest.$ac_ext >&5
2194 eval "ac_cv_lib_$ac_lib_var=no"
2197 LIBS="$ac_save_LIBS"
2200 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2201 echo "$ac_t""yes" 1>&6
2202 ac_tr_lib=HAVE_LIB`echo seq | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2203 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2204 cat >> confdefs.h <<EOF
2205 #define $ac_tr_lib 1
2211 echo "$ac_t""no" 1>&6
2215 # If we find X, set shell vars x_includes and x_libraries to the
2216 # paths, otherwise set no_x=yes.
2217 # Uses ac_ vars as temps to allow command line to override cache and checks.
2218 # --without-x overrides everything else, but does not touch the cache.
2219 echo $ac_n "checking for X""... $ac_c" 1>&6
2220 echo "configure:2221: checking for X" >&5
2222 # Check whether --with-x or --without-x was given.
2223 if test "${with_x+set}" = set; then
2228 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2229 if test "x$with_x" = xno; then
2230 # The user explicitly disabled X.
2233 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2234 # Both variables are already set.
2237 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
2238 echo $ac_n "(cached) $ac_c" 1>&6
2240 # One or both of the vars are not set, and there is no cached value.
2241 ac_x_includes=NO ac_x_libraries=NO
2243 if mkdir conftestdir; then
2245 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2246 cat > Imakefile <<'EOF'
2248 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2250 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2251 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2252 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2253 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2254 for ac_extension in a so sl; do
2255 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2256 test -f $ac_im_libdir/libX11.$ac_extension; then
2257 ac_im_usrlibdir=$ac_im_libdir; break
2260 # Screen out bogus values from the imake configuration. They are
2261 # bogus both because they are the default anyway, and because
2262 # using them would break gcc on systems where it needs fixed includes.
2263 case "$ac_im_incroot" in
2265 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
2267 case "$ac_im_usrlibdir" in
2269 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
2276 if test "$ac_x_includes" = NO; then
2277 # Guess where to find include files, by looking for this one X11 .h file.
2278 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
2280 # First, try using that file with no special directory specified.
2281 cat > conftest.$ac_ext <<EOF
2282 #line 2283 "configure"
2283 #include "confdefs.h"
2284 #include <$x_direct_test_include>
2286 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2287 { (eval echo configure:2288: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2288 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2289 if test -z "$ac_err"; then
2291 # We can compile using X headers with no special include directory.
2295 echo "configure: failed program was:" >&5
2296 cat conftest.$ac_ext >&5
2298 # Look for the header file in a standard set of common directories.
2299 # Check X11 before X11Rn because it is often a symlink to the current release.
2302 /usr/X11R6/include \
2303 /usr/X11R5/include \
2304 /usr/X11R4/include \
2307 /usr/include/X11R6 \
2308 /usr/include/X11R5 \
2309 /usr/include/X11R4 \
2311 /usr/local/X11/include \
2312 /usr/local/X11R6/include \
2313 /usr/local/X11R5/include \
2314 /usr/local/X11R4/include \
2316 /usr/local/include/X11 \
2317 /usr/local/include/X11R6 \
2318 /usr/local/include/X11R5 \
2319 /usr/local/include/X11R4 \
2323 /usr/XFree86/include/X11 \
2326 /usr/local/include \
2327 /usr/unsupported/include \
2328 /usr/athena/include \
2329 /usr/local/x11r5/include \
2330 /usr/lpp/Xamples/include \
2332 /usr/openwin/include \
2333 /usr/openwin/share/include \
2336 if test -r "$ac_dir/$x_direct_test_include"; then
2337 ac_x_includes=$ac_dir
2343 fi # $ac_x_includes = NO
2345 if test "$ac_x_libraries" = NO; then
2346 # Check for the libraries.
2348 test -z "$x_direct_test_library" && x_direct_test_library=Xt
2349 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
2351 # See if we find them without any special options.
2352 # Don't add to $LIBS permanently.
2353 ac_save_LIBS="$LIBS"
2354 LIBS="-l$x_direct_test_library $LIBS"
2355 cat > conftest.$ac_ext <<EOF
2356 #line 2357 "configure"
2357 #include "confdefs.h"
2360 ${x_direct_test_function}()
2363 if { (eval echo configure:2364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2365 LIBS="$ac_save_LIBS"
2366 # We can link X programs with no special library path.
2369 echo "configure: failed program was:" >&5
2370 cat conftest.$ac_ext >&5
2372 LIBS="$ac_save_LIBS"
2373 # First see if replacing the include by lib works.
2374 # Check X11 before X11Rn because it is often a symlink to the current release.
2375 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
2386 /usr/local/X11/lib \
2387 /usr/local/X11R6/lib \
2388 /usr/local/X11R5/lib \
2389 /usr/local/X11R4/lib \
2391 /usr/local/lib/X11 \
2392 /usr/local/lib/X11R6 \
2393 /usr/local/lib/X11R5 \
2394 /usr/local/lib/X11R4 \
2398 /usr/XFree86/lib/X11 \
2402 /usr/unsupported/lib \
2404 /usr/local/x11r5/lib \
2405 /usr/lpp/Xamples/lib \
2409 /usr/openwin/share/lib \
2412 for ac_extension in a so sl; do
2413 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
2414 ac_x_libraries=$ac_dir
2421 fi # $ac_x_libraries = NO
2423 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
2424 # Didn't find X anywhere. Cache the known absence of X.
2425 ac_cv_have_x="have_x=no"
2427 # Record where we found X for the cache.
2428 ac_cv_have_x="have_x=yes \
2429 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2433 eval "$ac_cv_have_x"
2436 if test "$have_x" != yes; then
2437 echo "$ac_t""$have_x" 1>&6
2440 # If each of the values was on the command line, it overrides each guess.
2441 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2442 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2443 # Update the cache value to reflect the command line values.
2444 ac_cv_have_x="have_x=yes \
2445 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2446 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
2449 if test "$no_x" = yes; then
2450 # Not all programs may use this symbol, but it does not hurt to define it.
2451 cat >> confdefs.h <<\EOF
2452 #define X_DISPLAY_MISSING 1
2455 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2457 if test -n "$x_includes"; then
2458 X_CFLAGS="$X_CFLAGS -I$x_includes"
2461 # It would also be nice to do this for all -L options, not just this one.
2462 if test -n "$x_libraries"; then
2463 X_LIBS="$X_LIBS -L$x_libraries"
2464 # For Solaris; some versions of Sun CC require a space after -R and
2465 # others require no space. Words are not sufficient . . . .
2466 case "`(uname -sr) 2>/dev/null`" in
2468 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
2469 echo "configure:2470: checking whether -R must be followed by a space" >&5
2470 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
2471 cat > conftest.$ac_ext <<EOF
2472 #line 2473 "configure"
2473 #include "confdefs.h"
2479 if { (eval echo configure:2480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2483 echo "configure: failed program was:" >&5
2484 cat conftest.$ac_ext >&5
2489 if test $ac_R_nospace = yes; then
2490 echo "$ac_t""no" 1>&6
2491 X_LIBS="$X_LIBS -R$x_libraries"
2493 LIBS="$ac_xsave_LIBS -R $x_libraries"
2494 cat > conftest.$ac_ext <<EOF
2495 #line 2496 "configure"
2496 #include "confdefs.h"
2502 if { (eval echo configure:2503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2506 echo "configure: failed program was:" >&5
2507 cat conftest.$ac_ext >&5
2512 if test $ac_R_space = yes; then
2513 echo "$ac_t""yes" 1>&6
2514 X_LIBS="$X_LIBS -R $x_libraries"
2516 echo "$ac_t""neither works" 1>&6
2519 LIBS="$ac_xsave_LIBS"
2523 # Check for system-dependent libraries X programs must link with.
2524 # Do this before checking for the system-independent R6 libraries
2525 # (-lICE), since we may need -lsocket or whatever for X linking.
2527 if test "$ISC" = yes; then
2528 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2530 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
2531 # libraries were built with DECnet support. And karl@cs.umb.edu says
2532 # the Alpha needs dnet_stub (dnet does not exist).
2533 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
2534 echo "configure:2535: checking for dnet_ntoa in -ldnet" >&5
2535 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
2536 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2537 echo $ac_n "(cached) $ac_c" 1>&6
2539 ac_save_LIBS="$LIBS"
2541 cat > conftest.$ac_ext <<EOF
2542 #line 2543 "configure"
2543 #include "confdefs.h"
2544 /* Override any gcc2 internal prototype to avoid an error. */
2545 /* We use char because int might match the return type of a gcc2
2546 builtin and then its argument prototype would still apply. */
2553 if { (eval echo configure:2554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2555 eval "ac_cv_lib_$ac_lib_var=yes"
2557 echo "configure: failed program was:" >&5
2558 cat conftest.$ac_ext >&5
2560 eval "ac_cv_lib_$ac_lib_var=no"
2563 LIBS="$ac_save_LIBS"
2566 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2567 echo "$ac_t""yes" 1>&6
2568 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
2570 echo "$ac_t""no" 1>&6
2573 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
2574 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
2575 echo "configure:2576: checking for dnet_ntoa in -ldnet_stub" >&5
2576 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
2577 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2578 echo $ac_n "(cached) $ac_c" 1>&6
2580 ac_save_LIBS="$LIBS"
2581 LIBS="-ldnet_stub $LIBS"
2582 cat > conftest.$ac_ext <<EOF
2583 #line 2584 "configure"
2584 #include "confdefs.h"
2585 /* Override any gcc2 internal prototype to avoid an error. */
2586 /* We use char because int might match the return type of a gcc2
2587 builtin and then its argument prototype would still apply. */
2594 if { (eval echo configure:2595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2596 eval "ac_cv_lib_$ac_lib_var=yes"
2598 echo "configure: failed program was:" >&5
2599 cat conftest.$ac_ext >&5
2601 eval "ac_cv_lib_$ac_lib_var=no"
2604 LIBS="$ac_save_LIBS"
2607 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2608 echo "$ac_t""yes" 1>&6
2609 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
2611 echo "$ac_t""no" 1>&6
2616 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
2617 # to get the SysV transport functions.
2618 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
2620 # The nsl library prevents programs from opening the X display
2621 # on Irix 5.2, according to dickey@clark.net.
2622 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2623 echo "configure:2624: checking for gethostbyname" >&5
2624 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2625 echo $ac_n "(cached) $ac_c" 1>&6
2627 cat > conftest.$ac_ext <<EOF
2628 #line 2629 "configure"
2629 #include "confdefs.h"
2630 /* System header to define __stub macros and hopefully few prototypes,
2631 which can conflict with char gethostbyname(); below. */
2633 /* Override any gcc2 internal prototype to avoid an error. */
2634 /* We use char because int might match the return type of a gcc2
2635 builtin and then its argument prototype would still apply. */
2636 char gethostbyname();
2640 /* The GNU C library defines this for functions which it implements
2641 to always fail with ENOSYS. Some functions are actually named
2642 something starting with __ and the normal name is an alias. */
2643 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2651 if { (eval echo configure:2652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2653 eval "ac_cv_func_gethostbyname=yes"
2655 echo "configure: failed program was:" >&5
2656 cat conftest.$ac_ext >&5
2658 eval "ac_cv_func_gethostbyname=no"
2663 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
2664 echo "$ac_t""yes" 1>&6
2667 echo "$ac_t""no" 1>&6
2670 if test $ac_cv_func_gethostbyname = no; then
2671 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2672 echo "configure:2673: checking for gethostbyname in -lnsl" >&5
2673 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2674 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2675 echo $ac_n "(cached) $ac_c" 1>&6
2677 ac_save_LIBS="$LIBS"
2679 cat > conftest.$ac_ext <<EOF
2680 #line 2681 "configure"
2681 #include "confdefs.h"
2682 /* Override any gcc2 internal prototype to avoid an error. */
2683 /* We use char because int might match the return type of a gcc2
2684 builtin and then its argument prototype would still apply. */
2685 char gethostbyname();
2691 if { (eval echo configure:2692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2693 eval "ac_cv_lib_$ac_lib_var=yes"
2695 echo "configure: failed program was:" >&5
2696 cat conftest.$ac_ext >&5
2698 eval "ac_cv_lib_$ac_lib_var=no"
2701 LIBS="$ac_save_LIBS"
2704 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2705 echo "$ac_t""yes" 1>&6
2706 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
2708 echo "$ac_t""no" 1>&6
2713 # lieder@skyler.mavd.honeywell.com says without -lsocket,
2714 # socket/setsockopt and other routines are undefined under SCO ODT
2715 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
2716 # on later versions), says simon@lia.di.epfl.ch: it contains
2717 # gethostby* variants that don't use the nameserver (or something).
2718 # -lsocket must be given before -lnsl if both are needed.
2719 # We assume that if connect needs -lnsl, so does gethostbyname.
2720 echo $ac_n "checking for connect""... $ac_c" 1>&6
2721 echo "configure:2722: checking for connect" >&5
2722 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
2723 echo $ac_n "(cached) $ac_c" 1>&6
2725 cat > conftest.$ac_ext <<EOF
2726 #line 2727 "configure"
2727 #include "confdefs.h"
2728 /* System header to define __stub macros and hopefully few prototypes,
2729 which can conflict with char connect(); below. */
2731 /* Override any gcc2 internal prototype to avoid an error. */
2732 /* We use char because int might match the return type of a gcc2
2733 builtin and then its argument prototype would still apply. */
2738 /* The GNU C library defines this for functions which it implements
2739 to always fail with ENOSYS. Some functions are actually named
2740 something starting with __ and the normal name is an alias. */
2741 #if defined (__stub_connect) || defined (__stub___connect)
2749 if { (eval echo configure:2750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2751 eval "ac_cv_func_connect=yes"
2753 echo "configure: failed program was:" >&5
2754 cat conftest.$ac_ext >&5
2756 eval "ac_cv_func_connect=no"
2761 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
2762 echo "$ac_t""yes" 1>&6
2765 echo "$ac_t""no" 1>&6
2768 if test $ac_cv_func_connect = no; then
2769 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2770 echo "configure:2771: checking for connect in -lsocket" >&5
2771 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2772 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2773 echo $ac_n "(cached) $ac_c" 1>&6
2775 ac_save_LIBS="$LIBS"
2776 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
2777 cat > conftest.$ac_ext <<EOF
2778 #line 2779 "configure"
2779 #include "confdefs.h"
2780 /* Override any gcc2 internal prototype to avoid an error. */
2781 /* We use char because int might match the return type of a gcc2
2782 builtin and then its argument prototype would still apply. */
2789 if { (eval echo configure:2790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2791 eval "ac_cv_lib_$ac_lib_var=yes"
2793 echo "configure: failed program was:" >&5
2794 cat conftest.$ac_ext >&5
2796 eval "ac_cv_lib_$ac_lib_var=no"
2799 LIBS="$ac_save_LIBS"
2802 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2803 echo "$ac_t""yes" 1>&6
2804 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
2806 echo "$ac_t""no" 1>&6
2811 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
2812 echo $ac_n "checking for remove""... $ac_c" 1>&6
2813 echo "configure:2814: checking for remove" >&5
2814 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
2815 echo $ac_n "(cached) $ac_c" 1>&6
2817 cat > conftest.$ac_ext <<EOF
2818 #line 2819 "configure"
2819 #include "confdefs.h"
2820 /* System header to define __stub macros and hopefully few prototypes,
2821 which can conflict with char remove(); below. */
2823 /* Override any gcc2 internal prototype to avoid an error. */
2824 /* We use char because int might match the return type of a gcc2
2825 builtin and then its argument prototype would still apply. */
2830 /* The GNU C library defines this for functions which it implements
2831 to always fail with ENOSYS. Some functions are actually named
2832 something starting with __ and the normal name is an alias. */
2833 #if defined (__stub_remove) || defined (__stub___remove)
2841 if { (eval echo configure:2842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2843 eval "ac_cv_func_remove=yes"
2845 echo "configure: failed program was:" >&5
2846 cat conftest.$ac_ext >&5
2848 eval "ac_cv_func_remove=no"
2853 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
2854 echo "$ac_t""yes" 1>&6
2857 echo "$ac_t""no" 1>&6
2860 if test $ac_cv_func_remove = no; then
2861 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
2862 echo "configure:2863: checking for remove in -lposix" >&5
2863 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
2864 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2865 echo $ac_n "(cached) $ac_c" 1>&6
2867 ac_save_LIBS="$LIBS"
2868 LIBS="-lposix $LIBS"
2869 cat > conftest.$ac_ext <<EOF
2870 #line 2871 "configure"
2871 #include "confdefs.h"
2872 /* Override any gcc2 internal prototype to avoid an error. */
2873 /* We use char because int might match the return type of a gcc2
2874 builtin and then its argument prototype would still apply. */
2881 if { (eval echo configure:2882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2883 eval "ac_cv_lib_$ac_lib_var=yes"
2885 echo "configure: failed program was:" >&5
2886 cat conftest.$ac_ext >&5
2888 eval "ac_cv_lib_$ac_lib_var=no"
2891 LIBS="$ac_save_LIBS"
2894 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2895 echo "$ac_t""yes" 1>&6
2896 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
2898 echo "$ac_t""no" 1>&6
2903 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
2904 echo $ac_n "checking for shmat""... $ac_c" 1>&6
2905 echo "configure:2906: checking for shmat" >&5
2906 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
2907 echo $ac_n "(cached) $ac_c" 1>&6
2909 cat > conftest.$ac_ext <<EOF
2910 #line 2911 "configure"
2911 #include "confdefs.h"
2912 /* System header to define __stub macros and hopefully few prototypes,
2913 which can conflict with char shmat(); below. */
2915 /* Override any gcc2 internal prototype to avoid an error. */
2916 /* We use char because int might match the return type of a gcc2
2917 builtin and then its argument prototype would still apply. */
2922 /* The GNU C library defines this for functions which it implements
2923 to always fail with ENOSYS. Some functions are actually named
2924 something starting with __ and the normal name is an alias. */
2925 #if defined (__stub_shmat) || defined (__stub___shmat)
2933 if { (eval echo configure:2934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2935 eval "ac_cv_func_shmat=yes"
2937 echo "configure: failed program was:" >&5
2938 cat conftest.$ac_ext >&5
2940 eval "ac_cv_func_shmat=no"
2945 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
2946 echo "$ac_t""yes" 1>&6
2949 echo "$ac_t""no" 1>&6
2952 if test $ac_cv_func_shmat = no; then
2953 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
2954 echo "configure:2955: checking for shmat in -lipc" >&5
2955 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
2956 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2957 echo $ac_n "(cached) $ac_c" 1>&6
2959 ac_save_LIBS="$LIBS"
2961 cat > conftest.$ac_ext <<EOF
2962 #line 2963 "configure"
2963 #include "confdefs.h"
2964 /* Override any gcc2 internal prototype to avoid an error. */
2965 /* We use char because int might match the return type of a gcc2
2966 builtin and then its argument prototype would still apply. */
2973 if { (eval echo configure:2974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2975 eval "ac_cv_lib_$ac_lib_var=yes"
2977 echo "configure: failed program was:" >&5
2978 cat conftest.$ac_ext >&5
2980 eval "ac_cv_lib_$ac_lib_var=no"
2983 LIBS="$ac_save_LIBS"
2986 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2987 echo "$ac_t""yes" 1>&6
2988 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
2990 echo "$ac_t""no" 1>&6
2996 # Check for libraries that X11R6 Xt/Xaw programs need.
2997 ac_save_LDFLAGS="$LDFLAGS"
2998 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
2999 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3000 # check for ICE first), but we must link in the order -lSM -lICE or
3001 # we get undefined symbols. So assume we have SM if we have ICE.
3002 # These have to be linked with before -lX11, unlike the other
3003 # libraries we check for below, so use a different variable.
3004 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
3005 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
3006 echo "configure:3007: checking for IceConnectionNumber in -lICE" >&5
3007 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
3008 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3009 echo $ac_n "(cached) $ac_c" 1>&6
3011 ac_save_LIBS="$LIBS"
3012 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3013 cat > conftest.$ac_ext <<EOF
3014 #line 3015 "configure"
3015 #include "confdefs.h"
3016 /* Override any gcc2 internal prototype to avoid an error. */
3017 /* We use char because int might match the return type of a gcc2
3018 builtin and then its argument prototype would still apply. */
3019 char IceConnectionNumber();
3022 IceConnectionNumber()
3025 if { (eval echo configure:3026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3027 eval "ac_cv_lib_$ac_lib_var=yes"
3029 echo "configure: failed program was:" >&5
3030 cat conftest.$ac_ext >&5
3032 eval "ac_cv_lib_$ac_lib_var=no"
3035 LIBS="$ac_save_LIBS"
3038 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3039 echo "$ac_t""yes" 1>&6
3040 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3042 echo "$ac_t""no" 1>&6
3045 LDFLAGS="$ac_save_LDFLAGS"
3049 if test -n "$no_x" ; then
3050 echo $PRODUCT requires the X Window System header files and libraries!
3051 echo They were not found on your system. See FAQ topic C.2.
3052 echo configure failed
3057 # Make sure we can run config.sub.
3058 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
3059 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
3062 echo $ac_n "checking host system type""... $ac_c" 1>&6
3063 echo "configure:3064: checking host system type" >&5
3066 case "$host_alias" in
3070 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
3071 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
3073 *) host_alias=$nonopt ;;
3077 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
3078 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3079 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3080 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3081 echo "$ac_t""$host" 1>&6
3089 cat >> confdefs.h <<\EOF
3090 #define PTY_TTY_NAME_SPRINTF sprintf (pty_name, "/dev/pty/tty%c%x", c, i);
3093 cat >> confdefs.h <<\EOF
3094 #define PTY_NAME_SPRINTF sprintf (pty_name, "/dev/ptym/pty%c%x", c, i);
3097 if test "$GCC" = yes; then
3098 CONF_CFLAGS="-fwritable-strings"
3102 CONF_CFLAGS="-Aa -D_HPUX_SOURCE"
3106 if test -d /opt/hppd/include/X11; then
3107 X_CFLAGS="$X_CFLAGS -I/opt/hppd/include"
3108 X_LIBS="$X_LIBS -L/opt/hppd/lib"
3109 elif test -d /usr/contrib/X11R5/include; then
3110 X_CFLAGS="$X_CFLAGS -I/usr/contrib/X11R5/include"
3111 X_LIBS="$X_LIBS -L/usr/contrib/X11R5/lib"
3112 elif test -d /usr/contrib/mitX11R5/include; then
3113 X_CFLAGS="$X_CFLAGS -I/usr/contrib/mitX11R5/include"
3114 X_LIBS="$X_LIBS -L/usr/contrib/mitX11R5/lib"
3115 elif test -d /MIT/X11R5/include; then
3116 X_CFLAGS="$X_CFLAGS -I/MIT/X11R5/include"
3117 X_LIBS="$X_LIBS -L/MIT/X11R5/lib"
3118 elif test -d /usr/local/include/X11R5; then
3119 X_CFLAGS="$X_CFLAGS -I/usr/local/include/X11R5"
3120 X_LIBS="$X_LIBS -L/usr/local/lib/X11R5"
3122 if test -d /usr/include/X11R5; then
3123 X_CFLAGS="$X_CFLAGS -I/usr/include/X11R5"
3124 X_LIBS="$X_LIBS -L/usr/lib/X11R5 -L/usr/lib/X11R4"
3125 elif test -d /usr/include/X11R4; then
3126 X_CFLAGS="$X_CFLAGS -I/usr/include/X11R4"
3127 X_LIBS="$X_LIBS -L/usr/lib/X11R4"
3132 cat >> confdefs.h <<\EOF
3139 if test "$GCC" = yes; then
3140 CONF_CFLAGS="-fwritable-strings"
3144 *-*-aix3* | *-*-bosx* )
3145 cat >> confdefs.h <<\EOF
3146 #define PTY_ITERATION for (c = 0; !c; c++)
3149 cat >> confdefs.h <<\EOF
3150 #define PTY_NAME_SPRINTF strcpy (pty_name, "/dev/ptc");
3153 cat >> confdefs.h <<\EOF
3154 #define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));
3160 cat >> confdefs.h <<\EOF
3161 #define FIRST_PTY_LETTER 'A'
3164 cat >> confdefs.h <<\EOF
3165 #define LAST_PTY_LETTER 'P'
3171 cat >> confdefs.h <<\EOF
3178 cat >> confdefs.h <<\EOF
3179 #define FIRST_PTY_LETTER 'z'
3182 cat >> confdefs.h <<\EOF
3183 #define PTY_TTY_NAME_SPRINTF sprintf (pty_name, "/dev/ttyp%x", i);
3186 cat >> confdefs.h <<\EOF
3187 #define PTY_NAME_SPRINTF sprintf (pty_name, "/dev/pty%x", i);
3190 cat >> confdefs.h <<\EOF
3196 *-*-iris* | *-*-irix3* )
3197 cat >> confdefs.h <<\EOF
3198 #define PTY_ITERATION for (c = 0; !c; c++)
3201 cat >> confdefs.h <<\EOF
3202 #define PTY_NAME_SPRINTF strcpy (pty_name, "/dev/ptc");
3205 cat >> confdefs.h <<\EOF
3206 #define PTY_TTY_NAME_SPRINTF sprintf (pty_name, "/dev/ttyq%d", minor(stb.st_rdev));
3214 *-*-sunos4* | *-*-solaris1* )
3217 if test "$GCC" = yes; then
3218 PRE_XMULIB="-static"
3219 POST_XMULIB="-dynamic"
3221 PRE_XMULIB="-Bstatic"
3222 POST_XMULIB="-Bdynamic"
3226 *-*-sunos5* | *-*-solaris2* )
3229 X_LIBS="$X_LIBS -lelf"
3233 cat >> confdefs.h <<\EOF
3234 #define PTY_ITERATION for (i = 0; ; i++)
3237 cat >> confdefs.h <<\EOF
3238 #define PTY_NAME_SPRINTF sprintf (pty_name, "/dev/ptyp%d", i);
3241 cat >> confdefs.h <<\EOF
3242 #define PTY_TTY_NAME_SPRINTF sprintf (pty_name, "/dev/ttyp%d", i);
3247 *-*-dynix* | *-*-ptx* )
3253 *-*-usg5-4* | *-*-sysvr4* )
3256 *-*-usg* | *-*-sysv* | *-*-aix* )
3260 if test "$GCC" = yes; then
3261 CONF_CFLAGS="-fwritable-strings"
3266 # Check whether --enable-xpm or --disable-xpm was given.
3267 if test "${enable_xpm+set}" = set; then
3268 enableval="$enable_xpm"
3269 enable_xpm="$enableval"
3275 if test "$enable_xpm" = "yes"; then
3276 save_cflags="$CFLAGS"
3277 CFLAGS="$CFLAGS $X_CFLAGS"
3278 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
3279 for ac_hdr in X11/xpm.h
3281 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3282 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3283 echo "configure:3284: checking for $ac_hdr" >&5
3284 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3285 echo $ac_n "(cached) $ac_c" 1>&6
3287 cat > conftest.$ac_ext <<EOF
3288 #line 3289 "configure"
3289 #include "confdefs.h"
3292 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3293 { (eval echo configure:3294: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3294 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3295 if test -z "$ac_err"; then
3297 eval "ac_cv_header_$ac_safe=yes"
3300 echo "configure: failed program was:" >&5
3301 cat conftest.$ac_ext >&5
3303 eval "ac_cv_header_$ac_safe=no"
3307 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3308 echo "$ac_t""yes" 1>&6
3309 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3310 cat >> confdefs.h <<EOF
3311 #define $ac_tr_hdr 1
3315 echo "$ac_t""no" 1>&6
3319 CFLAGS="$save_cflags"
3320 if test "$ac_cv_header_X11_xpm_h" = "yes"; then
3321 save_ldflags="$LDFLAGS"
3322 LDFLAGS="$LDFLAGS $X_LIBS"
3323 echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6
3324 echo "configure:3325: checking for XpmReadFileToPixmap in -lXpm" >&5
3325 ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'`
3326 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3327 echo $ac_n "(cached) $ac_c" 1>&6
3329 ac_save_LIBS="$LIBS"
3330 LIBS="-lXpm $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
3331 cat > conftest.$ac_ext <<EOF
3332 #line 3333 "configure"
3333 #include "confdefs.h"
3334 /* Override any gcc2 internal prototype to avoid an error. */
3335 /* We use char because int might match the return type of a gcc2
3336 builtin and then its argument prototype would still apply. */
3337 char XpmReadFileToPixmap();
3340 XpmReadFileToPixmap()
3343 if { (eval echo configure:3344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3345 eval "ac_cv_lib_$ac_lib_var=yes"
3347 echo "configure: failed program was:" >&5
3348 cat conftest.$ac_ext >&5
3350 eval "ac_cv_lib_$ac_lib_var=no"
3353 LIBS="$ac_save_LIBS"
3356 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3357 echo "$ac_t""yes" 1>&6
3358 X_PRE_LIBS="-lXpm $X_PRE_LIBS"; cat >> confdefs.h <<\EOF
3359 #define HAVE_LIBXPM 1
3363 echo "$ac_t""no" 1>&6
3366 LDFLAGS="$save_ldflags"
3375 echo $ac_n "checking whether ptys or pipes should be used""... $ac_c" 1>&6
3376 echo "configure:3377: checking whether ptys or pipes should be used" >&5
3377 # Check whether --enable-ptys or --disable-ptys was given.
3378 if test "${enable_ptys+set}" = set; then
3379 enableval="$enable_ptys"
3380 if test "$enableval" = yes; then
3382 echo "$ac_t""ptys (user override)" 1>&6
3384 if test "$enableval" = no; then
3386 echo "$ac_t""pipes (user override)" 1>&6
3389 if test "$USE_PTYS" = 1; then
3390 echo "$ac_t""ptys" 1>&6
3392 echo "$ac_t""pipes" 1>&6
3396 cat >> confdefs.h <<EOF
3397 #define USE_PTYS $USE_PTYS
3401 # Check whether --enable-zippy or --disable-zippy was given.
3402 if test "${enable_zippy+set}" = set; then
3403 enableval="$enable_zippy"
3404 if test "$enableval" = yes; then
3405 cat >> confdefs.h <<\EOF
3417 # Check whether --enable-sigint or --disable-sigint was given.
3418 if test "${enable_sigint+set}" = set; then
3419 enableval="$enable_sigint"
3420 if test "$enableval" = yes; then
3421 cat >> confdefs.h <<\EOF
3427 cat >> confdefs.h <<\EOF
3434 cat >> confdefs.h <<EOF
3435 #define PRODUCT "$PRODUCT"
3438 cat >> confdefs.h <<EOF
3439 #define VERSION "$VERSION"
3442 cat >> confdefs.h <<EOF
3443 #define PATCHLEVEL "$PATCHLEVEL"
3451 cat > confcache <<\EOF
3452 # This file is a shell script that caches the results of configure
3453 # tests run on this system so they can be shared between configure
3454 # scripts and configure runs. It is not useful on other systems.
3455 # If it contains results you don't want to keep, you may remove or edit it.
3457 # By default, configure uses ./config.cache as the cache file,
3458 # creating it if it does not exist already. You can give configure
3459 # the --cache-file=FILE option to use a different cache file; that is
3460 # what configure does when it calls configure scripts in
3461 # subdirectories, so they share the cache.
3462 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3463 # config.status only pays attention to the cache file if you give it the
3464 # --recheck option to rerun configure.
3467 # The following way of writing the cache mishandles newlines in values,
3468 # but we know of no workaround that is simple, portable, and efficient.
3469 # So, don't put newlines in cache variables' values.
3470 # Ultrix sh set writes to stderr and can't be redirected directly,
3471 # and sets the high bit in the cache file unless we assign to the vars.
3473 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3475 # `set' does not quote correctly, so add quotes (double-quote substitution
3476 # turns \\\\ into \\, and sed turns \\ into \).
3478 -e "s/'/'\\\\''/g" \
3479 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3482 # `set' quotes correctly as required by POSIX, so do not add quotes.
3483 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3486 if cmp -s $cache_file confcache; then
3489 if test -w $cache_file; then
3490 echo "updating cache $cache_file"
3491 cat confcache > $cache_file
3493 echo "not updating unwritable cache $cache_file"
3498 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3500 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3501 # Let make expand exec_prefix.
3502 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3504 # Any assignment to VPATH causes Sun make to only execute
3505 # the first set of double-colon rules, so remove it if not needed.
3506 # If there is a colon in the path, we need to keep it.
3507 if test "x$srcdir" = x.; then
3508 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3511 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3513 DEFS=-DHAVE_CONFIG_H
3515 # Without the "./", some shells look in PATH for config.status.
3516 : ${CONFIG_STATUS=./config.status}
3518 echo creating $CONFIG_STATUS
3519 rm -f $CONFIG_STATUS
3520 cat > $CONFIG_STATUS <<EOF
3522 # Generated automatically by configure.
3523 # Run this file to recreate the current configuration.
3524 # This directory was configured as follows,
3525 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3527 # $0 $ac_configure_args
3529 # Compiler output produced by configure, useful for debugging
3530 # configure, is in ./config.log if it exists.
3532 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3535 case "\$ac_option" in
3536 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3537 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3538 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3539 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3540 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3542 -help | --help | --hel | --he | --h)
3543 echo "\$ac_cs_usage"; exit 0 ;;
3544 *) echo "\$ac_cs_usage"; exit 1 ;;
3548 ac_given_srcdir=$srcdir
3549 ac_given_INSTALL="$INSTALL"
3551 trap 'rm -fr `echo "Makefile comment.awk:comment.in cmail xboard.texinfo config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3553 cat >> $CONFIG_STATUS <<EOF
3555 # Protect against being on the right side of a sed subst in config.status.
3556 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3557 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3561 s%@CFLAGS@%$CFLAGS%g
3562 s%@CPPFLAGS@%$CPPFLAGS%g
3563 s%@CXXFLAGS@%$CXXFLAGS%g
3564 s%@FFLAGS@%$FFLAGS%g
3566 s%@LDFLAGS@%$LDFLAGS%g
3568 s%@exec_prefix@%$exec_prefix%g
3569 s%@prefix@%$prefix%g
3570 s%@program_transform_name@%$program_transform_name%g
3571 s%@bindir@%$bindir%g
3572 s%@sbindir@%$sbindir%g
3573 s%@libexecdir@%$libexecdir%g
3574 s%@datadir@%$datadir%g
3575 s%@sysconfdir@%$sysconfdir%g
3576 s%@sharedstatedir@%$sharedstatedir%g
3577 s%@localstatedir@%$localstatedir%g
3578 s%@libdir@%$libdir%g
3579 s%@includedir@%$includedir%g
3580 s%@oldincludedir@%$oldincludedir%g
3581 s%@infodir@%$infodir%g
3582 s%@mandir@%$mandir%g
3585 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3586 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3587 s%@INSTALL_DATA@%$INSTALL_DATA%g
3589 s%@LEXLIB@%$LEXLIB%g
3590 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
3593 s%@NROFFFLAGS@%$NROFFFLAGS%g
3594 s%@AWKPATH@%$AWKPATH%g
3595 s%@PERLPATH@%$PERLPATH%g
3596 s%@XAW_LIBS@%$XAW_LIBS%g
3597 s%@X_CFLAGS@%$X_CFLAGS%g
3598 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
3599 s%@X_LIBS@%$X_LIBS%g
3600 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
3602 s%@host_alias@%$host_alias%g
3603 s%@host_cpu@%$host_cpu%g
3604 s%@host_vendor@%$host_vendor%g
3605 s%@host_os@%$host_os%g
3606 s%@PRE_XMULIB@%$PRE_XMULIB%g
3607 s%@POST_XMULIB@%$POST_XMULIB%g
3608 s%@CONF_CFLAGS@%$CONF_CFLAGS%g
3609 s%@CONF_LDFLAGS@%$CONF_LDFLAGS%g
3610 s%@ZIPPY_O@%$ZIPPY_O%g
3611 s%@ZIPPY_H@%$ZIPPY_H%g
3612 s%@PRODUCT@%$PRODUCT%g
3613 s%@VERSION@%$VERSION%g
3614 s%@PATCHLEVEL@%$PATCHLEVEL%g
3619 cat >> $CONFIG_STATUS <<\EOF
3621 # Split the substitutions into bite-sized pieces for seds with
3622 # small command number limits, like on Digital OSF/1 and HP-UX.
3623 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3624 ac_file=1 # Number of current file.
3625 ac_beg=1 # First line for current file.
3626 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3629 while $ac_more_lines; do
3630 if test $ac_beg -gt 1; then
3631 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3633 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3635 if test ! -s conftest.s$ac_file; then
3637 rm -f conftest.s$ac_file
3639 if test -z "$ac_sed_cmds"; then
3640 ac_sed_cmds="sed -f conftest.s$ac_file"
3642 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3644 ac_file=`expr $ac_file + 1`
3646 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3649 if test -z "$ac_sed_cmds"; then
3654 cat >> $CONFIG_STATUS <<EOF
3656 CONFIG_FILES=\${CONFIG_FILES-"Makefile comment.awk:comment.in cmail xboard.texinfo"}
3658 cat >> $CONFIG_STATUS <<\EOF
3659 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3660 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3662 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3663 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3664 *) ac_file_in="${ac_file}.in" ;;
3667 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3669 # Remove last slash and all that follows it. Not all systems have dirname.
3670 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3671 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3672 # The file is in a subdirectory.
3673 test ! -d "$ac_dir" && mkdir "$ac_dir"
3674 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3675 # A "../" for each directory in $ac_dir_suffix.
3676 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3678 ac_dir_suffix= ac_dots=
3681 case "$ac_given_srcdir" in
3683 if test -z "$ac_dots"; then top_srcdir=.
3684 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3685 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3687 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3688 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3691 case "$ac_given_INSTALL" in
3692 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3693 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3696 echo creating "$ac_file"
3698 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3700 *Makefile*) ac_comsub="1i\\
3701 # $configure_input" ;;
3705 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3707 s%@configure_input@%$configure_input%g
3708 s%@srcdir@%$srcdir%g
3709 s%@top_srcdir@%$top_srcdir%g
3710 s%@INSTALL@%$INSTALL%g
3711 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3715 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3716 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3718 # ac_d sets the value in "#define NAME VALUE" lines.
3719 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3720 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3723 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3724 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3725 ac_uB='\([ ]\)%\1#\2define\3'
3728 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3729 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3730 ac_eB='$%\1#\2define\3'
3734 if test "${CONFIG_HEADERS+set}" != set; then
3736 cat >> $CONFIG_STATUS <<EOF
3737 CONFIG_HEADERS="config.h"
3739 cat >> $CONFIG_STATUS <<\EOF
3741 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3742 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3744 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3745 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3746 *) ac_file_in="${ac_file}.in" ;;
3749 echo creating $ac_file
3751 rm -f conftest.frag conftest.in conftest.out
3752 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3753 cat $ac_file_inputs > conftest.in
3757 # Transform confdefs.h into a sed script conftest.vals that substitutes
3758 # the proper values into config.h.in to produce config.h. And first:
3759 # Protect against being on the right side of a sed subst in config.status.
3760 # Protect against being in an unquoted here document in config.status.
3762 cat > conftest.hdr <<\EOF
3765 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3769 sed -n -f conftest.hdr confdefs.h > conftest.vals
3772 # This sed command replaces #undef with comments. This is necessary, for
3773 # example, in the case of _POSIX_SOURCE, which is predefined and required
3774 # on some systems where configure will not decide to define it.
3775 cat >> conftest.vals <<\EOF
3776 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3779 # Break up conftest.vals because some shells have a limit on
3780 # the size of here documents, and old seds have small limits too.
3785 ac_lines=`grep -c . conftest.vals`
3786 # grep -c gives empty output for an empty file on some AIX systems.
3787 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3788 # Write a limited-size here document to conftest.frag.
3789 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3790 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3792 sed -f conftest.frag conftest.in > conftest.out
3794 mv conftest.out conftest.in
3796 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3798 mv conftest.tail conftest.vals
3802 cat >> $CONFIG_STATUS <<\EOF
3803 rm -f conftest.frag conftest.h
3804 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3805 cat conftest.in >> conftest.h
3807 if cmp -s $ac_file conftest.h 2>/dev/null; then
3808 echo "$ac_file is unchanged"
3811 # Remove last slash and all that follows it. Not all systems have dirname.
3812 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3813 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3814 # The file is in a subdirectory.
3815 test ! -d "$ac_dir" && mkdir "$ac_dir"
3818 mv conftest.h $ac_file
3823 cat >> $CONFIG_STATUS <<EOF
3826 cat >> $CONFIG_STATUS <<\EOF
3827 test -z "$CONFIG_HEADERS" || date > stamp-h
3828 chmod 755 comment.awk cmail
3832 chmod +x $CONFIG_STATUS
3833 rm -fr confdefs* $ac_clean_files
3834 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1