changes from H.G. Muller; version 4.3.16
[xboard.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for xboard 4.3.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 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.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME='xboard'
574 PACKAGE_TARNAME='xboard'
575 PACKAGE_VERSION='4.3'
576 PACKAGE_STRING='xboard 4.3'
577 PACKAGE_BUGREPORT=''
578
579 # Factoring default headers for most tests.
580 ac_includes_default="\
581 #include <stdio.h>
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
584 #endif
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
587 #endif
588 #ifdef STDC_HEADERS
589 # include <stdlib.h>
590 # include <stddef.h>
591 #else
592 # ifdef HAVE_STDLIB_H
593 #  include <stdlib.h>
594 # endif
595 #endif
596 #ifdef HAVE_STRING_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598 #  include <memory.h>
599 # endif
600 # include <string.h>
601 #endif
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
604 #endif
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
607 #endif
608 #ifdef HAVE_STDINT_H
609 # include <stdint.h>
610 #endif
611 #ifdef HAVE_UNISTD_H
612 # include <unistd.h>
613 #endif"
614
615 ac_subst_vars='SHELL
616 PATH_SEPARATOR
617 PACKAGE_NAME
618 PACKAGE_TARNAME
619 PACKAGE_VERSION
620 PACKAGE_STRING
621 PACKAGE_BUGREPORT
622 exec_prefix
623 prefix
624 program_transform_name
625 bindir
626 sbindir
627 libexecdir
628 datarootdir
629 datadir
630 sysconfdir
631 sharedstatedir
632 localstatedir
633 includedir
634 oldincludedir
635 docdir
636 infodir
637 htmldir
638 dvidir
639 pdfdir
640 psdir
641 libdir
642 localedir
643 mandir
644 DEFS
645 ECHO_C
646 ECHO_N
647 ECHO_T
648 LIBS
649 build_alias
650 host_alias
651 target_alias
652 INSTALL_PROGRAM
653 INSTALL_SCRIPT
654 INSTALL_DATA
655 am__isrc
656 CYGPATH_W
657 PACKAGE
658 VERSION
659 ACLOCAL
660 AUTOCONF
661 AUTOMAKE
662 AUTOHEADER
663 MAKEINFO
664 install_sh
665 STRIP
666 INSTALL_STRIP_PROGRAM
667 mkdir_p
668 AWK
669 SET_MAKE
670 am__leading_dot
671 AMTAR
672 am__tar
673 am__untar
674 CC
675 CFLAGS
676 LDFLAGS
677 CPPFLAGS
678 ac_ct_CC
679 EXEEXT
680 OBJEXT
681 DEPDIR
682 am__include
683 am__quote
684 AMDEP_TRUE
685 AMDEP_FALSE
686 AMDEPBACKSLASH
687 CCDEPMODE
688 am__fastdepCC_TRUE
689 am__fastdepCC_FALSE
690 LIBOBJS
691 LTLIBOBJS
692 CPP
693 LEX
694 LEX_OUTPUT_ROOT
695 LEXLIB
696 RSH
697 MINFO
698 NROFF
699 NROFFFLAGS
700 AWKPATH
701 PERLPATH
702 GREP
703 EGREP
704 XMKMF
705 X_CFLAGS
706 X_PRE_LIBS
707 X_LIBS
708 X_EXTRA_LIBS
709 XAW_LIBS
710 build
711 build_cpu
712 build_vendor
713 build_os
714 host
715 host_cpu
716 host_vendor
717 host_os
718 PRE_XMULIB
719 POST_XMULIB
720 CONF_CFLAGS
721 CONF_LDFLAGS
722 ZIPPY_O
723 ZIPPY_H
724 PRODUCT
725 PATCHLEVEL'
726 ac_subst_files=''
727       ac_precious_vars='build_alias
728 host_alias
729 target_alias
730 CC
731 CFLAGS
732 LDFLAGS
733 LIBS
734 CPPFLAGS
735 CPP
736 XMKMF'
737
738
739 # Initialize some variables set by options.
740 ac_init_help=
741 ac_init_version=false
742 # The variables have the same names as the options, with
743 # dashes changed to underlines.
744 cache_file=/dev/null
745 exec_prefix=NONE
746 no_create=
747 no_recursion=
748 prefix=NONE
749 program_prefix=NONE
750 program_suffix=NONE
751 program_transform_name=s,x,x,
752 silent=
753 site=
754 srcdir=
755 verbose=
756 x_includes=NONE
757 x_libraries=NONE
758
759 # Installation directory options.
760 # These are left unexpanded so users can "make install exec_prefix=/foo"
761 # and all the variables that are supposed to be based on exec_prefix
762 # by default will actually change.
763 # Use braces instead of parens because sh, perl, etc. also accept them.
764 # (The list follows the same order as the GNU Coding Standards.)
765 bindir='${exec_prefix}/bin'
766 sbindir='${exec_prefix}/sbin'
767 libexecdir='${exec_prefix}/libexec'
768 datarootdir='${prefix}/share'
769 datadir='${datarootdir}'
770 sysconfdir='${prefix}/etc'
771 sharedstatedir='${prefix}/com'
772 localstatedir='${prefix}/var'
773 includedir='${prefix}/include'
774 oldincludedir='/usr/include'
775 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
776 infodir='${datarootdir}/info'
777 htmldir='${docdir}'
778 dvidir='${docdir}'
779 pdfdir='${docdir}'
780 psdir='${docdir}'
781 libdir='${exec_prefix}/lib'
782 localedir='${datarootdir}/locale'
783 mandir='${datarootdir}/man'
784
785 ac_prev=
786 ac_dashdash=
787 for ac_option
788 do
789   # If the previous option needs an argument, assign it.
790   if test -n "$ac_prev"; then
791     eval $ac_prev=\$ac_option
792     ac_prev=
793     continue
794   fi
795
796   case $ac_option in
797   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
798   *)    ac_optarg=yes ;;
799   esac
800
801   # Accept the important Cygnus configure options, so we can diagnose typos.
802
803   case $ac_dashdash$ac_option in
804   --)
805     ac_dashdash=yes ;;
806
807   -bindir | --bindir | --bindi | --bind | --bin | --bi)
808     ac_prev=bindir ;;
809   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
810     bindir=$ac_optarg ;;
811
812   -build | --build | --buil | --bui | --bu)
813     ac_prev=build_alias ;;
814   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
815     build_alias=$ac_optarg ;;
816
817   -cache-file | --cache-file | --cache-fil | --cache-fi \
818   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
819     ac_prev=cache_file ;;
820   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
821   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
822     cache_file=$ac_optarg ;;
823
824   --config-cache | -C)
825     cache_file=config.cache ;;
826
827   -datadir | --datadir | --datadi | --datad)
828     ac_prev=datadir ;;
829   -datadir=* | --datadir=* | --datadi=* | --datad=*)
830     datadir=$ac_optarg ;;
831
832   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
833   | --dataroo | --dataro | --datar)
834     ac_prev=datarootdir ;;
835   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
836   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
837     datarootdir=$ac_optarg ;;
838
839   -disable-* | --disable-*)
840     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
841     # Reject names that are not valid shell variable names.
842     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
843       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
844    { (exit 1); exit 1; }; }
845     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
846     eval enable_$ac_feature=no ;;
847
848   -docdir | --docdir | --docdi | --doc | --do)
849     ac_prev=docdir ;;
850   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
851     docdir=$ac_optarg ;;
852
853   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
854     ac_prev=dvidir ;;
855   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
856     dvidir=$ac_optarg ;;
857
858   -enable-* | --enable-*)
859     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
860     # Reject names that are not valid shell variable names.
861     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
862       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
863    { (exit 1); exit 1; }; }
864     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
865     eval enable_$ac_feature=\$ac_optarg ;;
866
867   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
868   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
869   | --exec | --exe | --ex)
870     ac_prev=exec_prefix ;;
871   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
872   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
873   | --exec=* | --exe=* | --ex=*)
874     exec_prefix=$ac_optarg ;;
875
876   -gas | --gas | --ga | --g)
877     # Obsolete; use --with-gas.
878     with_gas=yes ;;
879
880   -help | --help | --hel | --he | -h)
881     ac_init_help=long ;;
882   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
883     ac_init_help=recursive ;;
884   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
885     ac_init_help=short ;;
886
887   -host | --host | --hos | --ho)
888     ac_prev=host_alias ;;
889   -host=* | --host=* | --hos=* | --ho=*)
890     host_alias=$ac_optarg ;;
891
892   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
893     ac_prev=htmldir ;;
894   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
895   | --ht=*)
896     htmldir=$ac_optarg ;;
897
898   -includedir | --includedir | --includedi | --included | --include \
899   | --includ | --inclu | --incl | --inc)
900     ac_prev=includedir ;;
901   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
902   | --includ=* | --inclu=* | --incl=* | --inc=*)
903     includedir=$ac_optarg ;;
904
905   -infodir | --infodir | --infodi | --infod | --info | --inf)
906     ac_prev=infodir ;;
907   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
908     infodir=$ac_optarg ;;
909
910   -libdir | --libdir | --libdi | --libd)
911     ac_prev=libdir ;;
912   -libdir=* | --libdir=* | --libdi=* | --libd=*)
913     libdir=$ac_optarg ;;
914
915   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
916   | --libexe | --libex | --libe)
917     ac_prev=libexecdir ;;
918   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
919   | --libexe=* | --libex=* | --libe=*)
920     libexecdir=$ac_optarg ;;
921
922   -localedir | --localedir | --localedi | --localed | --locale)
923     ac_prev=localedir ;;
924   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
925     localedir=$ac_optarg ;;
926
927   -localstatedir | --localstatedir | --localstatedi | --localstated \
928   | --localstate | --localstat | --localsta | --localst | --locals)
929     ac_prev=localstatedir ;;
930   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
931   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
932     localstatedir=$ac_optarg ;;
933
934   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
935     ac_prev=mandir ;;
936   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
937     mandir=$ac_optarg ;;
938
939   -nfp | --nfp | --nf)
940     # Obsolete; use --without-fp.
941     with_fp=no ;;
942
943   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
944   | --no-cr | --no-c | -n)
945     no_create=yes ;;
946
947   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
948   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
949     no_recursion=yes ;;
950
951   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
952   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
953   | --oldin | --oldi | --old | --ol | --o)
954     ac_prev=oldincludedir ;;
955   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
956   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
957   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
958     oldincludedir=$ac_optarg ;;
959
960   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
961     ac_prev=prefix ;;
962   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
963     prefix=$ac_optarg ;;
964
965   -program-prefix | --program-prefix | --program-prefi | --program-pref \
966   | --program-pre | --program-pr | --program-p)
967     ac_prev=program_prefix ;;
968   -program-prefix=* | --program-prefix=* | --program-prefi=* \
969   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
970     program_prefix=$ac_optarg ;;
971
972   -program-suffix | --program-suffix | --program-suffi | --program-suff \
973   | --program-suf | --program-su | --program-s)
974     ac_prev=program_suffix ;;
975   -program-suffix=* | --program-suffix=* | --program-suffi=* \
976   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
977     program_suffix=$ac_optarg ;;
978
979   -program-transform-name | --program-transform-name \
980   | --program-transform-nam | --program-transform-na \
981   | --program-transform-n | --program-transform- \
982   | --program-transform | --program-transfor \
983   | --program-transfo | --program-transf \
984   | --program-trans | --program-tran \
985   | --progr-tra | --program-tr | --program-t)
986     ac_prev=program_transform_name ;;
987   -program-transform-name=* | --program-transform-name=* \
988   | --program-transform-nam=* | --program-transform-na=* \
989   | --program-transform-n=* | --program-transform-=* \
990   | --program-transform=* | --program-transfor=* \
991   | --program-transfo=* | --program-transf=* \
992   | --program-trans=* | --program-tran=* \
993   | --progr-tra=* | --program-tr=* | --program-t=*)
994     program_transform_name=$ac_optarg ;;
995
996   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
997     ac_prev=pdfdir ;;
998   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
999     pdfdir=$ac_optarg ;;
1000
1001   -psdir | --psdir | --psdi | --psd | --ps)
1002     ac_prev=psdir ;;
1003   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1004     psdir=$ac_optarg ;;
1005
1006   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1007   | -silent | --silent | --silen | --sile | --sil)
1008     silent=yes ;;
1009
1010   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1011     ac_prev=sbindir ;;
1012   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1013   | --sbi=* | --sb=*)
1014     sbindir=$ac_optarg ;;
1015
1016   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1017   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1018   | --sharedst | --shareds | --shared | --share | --shar \
1019   | --sha | --sh)
1020     ac_prev=sharedstatedir ;;
1021   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1022   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1023   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1024   | --sha=* | --sh=*)
1025     sharedstatedir=$ac_optarg ;;
1026
1027   -site | --site | --sit)
1028     ac_prev=site ;;
1029   -site=* | --site=* | --sit=*)
1030     site=$ac_optarg ;;
1031
1032   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1033     ac_prev=srcdir ;;
1034   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1035     srcdir=$ac_optarg ;;
1036
1037   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1038   | --syscon | --sysco | --sysc | --sys | --sy)
1039     ac_prev=sysconfdir ;;
1040   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1041   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1042     sysconfdir=$ac_optarg ;;
1043
1044   -target | --target | --targe | --targ | --tar | --ta | --t)
1045     ac_prev=target_alias ;;
1046   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1047     target_alias=$ac_optarg ;;
1048
1049   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1050     verbose=yes ;;
1051
1052   -version | --version | --versio | --versi | --vers | -V)
1053     ac_init_version=: ;;
1054
1055   -with-* | --with-*)
1056     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1057     # Reject names that are not valid shell variable names.
1058     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1059       { echo "$as_me: error: invalid package name: $ac_package" >&2
1060    { (exit 1); exit 1; }; }
1061     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1062     eval with_$ac_package=\$ac_optarg ;;
1063
1064   -without-* | --without-*)
1065     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1066     # Reject names that are not valid shell variable names.
1067     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1068       { echo "$as_me: error: invalid package name: $ac_package" >&2
1069    { (exit 1); exit 1; }; }
1070     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1071     eval with_$ac_package=no ;;
1072
1073   --x)
1074     # Obsolete; use --with-x.
1075     with_x=yes ;;
1076
1077   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1078   | --x-incl | --x-inc | --x-in | --x-i)
1079     ac_prev=x_includes ;;
1080   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1081   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1082     x_includes=$ac_optarg ;;
1083
1084   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1085   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1086     ac_prev=x_libraries ;;
1087   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1088   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1089     x_libraries=$ac_optarg ;;
1090
1091   -*) { echo "$as_me: error: unrecognized option: $ac_option
1092 Try \`$0 --help' for more information." >&2
1093    { (exit 1); exit 1; }; }
1094     ;;
1095
1096   *=*)
1097     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1098     # Reject names that are not valid shell variable names.
1099     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1100       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1101    { (exit 1); exit 1; }; }
1102     eval $ac_envvar=\$ac_optarg
1103     export $ac_envvar ;;
1104
1105   *)
1106     # FIXME: should be removed in autoconf 3.0.
1107     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1108     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1109       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1110     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1111     ;;
1112
1113   esac
1114 done
1115
1116 if test -n "$ac_prev"; then
1117   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1118   { echo "$as_me: error: missing argument to $ac_option" >&2
1119    { (exit 1); exit 1; }; }
1120 fi
1121
1122 # Be sure to have absolute directory names.
1123 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1124                 datadir sysconfdir sharedstatedir localstatedir includedir \
1125                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1126                 libdir localedir mandir
1127 do
1128   eval ac_val=\$$ac_var
1129   case $ac_val in
1130     [\\/$]* | ?:[\\/]* )  continue;;
1131     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1132   esac
1133   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1134    { (exit 1); exit 1; }; }
1135 done
1136
1137 # There might be people who depend on the old broken behavior: `$host'
1138 # used to hold the argument of --host etc.
1139 # FIXME: To remove some day.
1140 build=$build_alias
1141 host=$host_alias
1142 target=$target_alias
1143
1144 # FIXME: To remove some day.
1145 if test "x$host_alias" != x; then
1146   if test "x$build_alias" = x; then
1147     cross_compiling=maybe
1148     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1149     If a cross compiler is detected then cross compile mode will be used." >&2
1150   elif test "x$build_alias" != "x$host_alias"; then
1151     cross_compiling=yes
1152   fi
1153 fi
1154
1155 ac_tool_prefix=
1156 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1157
1158 test "$silent" = yes && exec 6>/dev/null
1159
1160
1161 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1162 ac_ls_di=`ls -di .` &&
1163 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1164   { echo "$as_me: error: Working directory cannot be determined" >&2
1165    { (exit 1); exit 1; }; }
1166 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1167   { echo "$as_me: error: pwd does not report name of working directory" >&2
1168    { (exit 1); exit 1; }; }
1169
1170
1171 # Find the source files, if location was not specified.
1172 if test -z "$srcdir"; then
1173   ac_srcdir_defaulted=yes
1174   # Try the directory containing this script, then the parent directory.
1175   ac_confdir=`$as_dirname -- "$0" ||
1176 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1177          X"$0" : 'X\(//\)[^/]' \| \
1178          X"$0" : 'X\(//\)$' \| \
1179          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1180 echo X"$0" |
1181     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1182             s//\1/
1183             q
1184           }
1185           /^X\(\/\/\)[^/].*/{
1186             s//\1/
1187             q
1188           }
1189           /^X\(\/\/\)$/{
1190             s//\1/
1191             q
1192           }
1193           /^X\(\/\).*/{
1194             s//\1/
1195             q
1196           }
1197           s/.*/./; q'`
1198   srcdir=$ac_confdir
1199   if test ! -r "$srcdir/$ac_unique_file"; then
1200     srcdir=..
1201   fi
1202 else
1203   ac_srcdir_defaulted=no
1204 fi
1205 if test ! -r "$srcdir/$ac_unique_file"; then
1206   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1207   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1208    { (exit 1); exit 1; }; }
1209 fi
1210 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1211 ac_abs_confdir=`(
1212         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1213    { (exit 1); exit 1; }; }
1214         pwd)`
1215 # When building in place, set srcdir=.
1216 if test "$ac_abs_confdir" = "$ac_pwd"; then
1217   srcdir=.
1218 fi
1219 # Remove unnecessary trailing slashes from srcdir.
1220 # Double slashes in file names in object file debugging info
1221 # mess up M-x gdb in Emacs.
1222 case $srcdir in
1223 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1224 esac
1225 for ac_var in $ac_precious_vars; do
1226   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1227   eval ac_env_${ac_var}_value=\$${ac_var}
1228   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1229   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1230 done
1231
1232 #
1233 # Report the --help message.
1234 #
1235 if test "$ac_init_help" = "long"; then
1236   # Omit some internal or obsolete options to make the list less imposing.
1237   # This message is too long to be a string in the A/UX 3.1 sh.
1238   cat <<_ACEOF
1239 \`configure' configures xboard 4.3 to adapt to many kinds of systems.
1240
1241 Usage: $0 [OPTION]... [VAR=VALUE]...
1242
1243 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1244 VAR=VALUE.  See below for descriptions of some of the useful variables.
1245
1246 Defaults for the options are specified in brackets.
1247
1248 Configuration:
1249   -h, --help              display this help and exit
1250       --help=short        display options specific to this package
1251       --help=recursive    display the short help of all the included packages
1252   -V, --version           display version information and exit
1253   -q, --quiet, --silent   do not print \`checking...' messages
1254       --cache-file=FILE   cache test results in FILE [disabled]
1255   -C, --config-cache      alias for \`--cache-file=config.cache'
1256   -n, --no-create         do not create output files
1257       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1258
1259 Installation directories:
1260   --prefix=PREFIX         install architecture-independent files in PREFIX
1261                           [$ac_default_prefix]
1262   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1263                           [PREFIX]
1264
1265 By default, \`make install' will install all the files in
1266 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1267 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1268 for instance \`--prefix=\$HOME'.
1269
1270 For better control, use the options below.
1271
1272 Fine tuning of the installation directories:
1273   --bindir=DIR           user executables [EPREFIX/bin]
1274   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1275   --libexecdir=DIR       program executables [EPREFIX/libexec]
1276   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1277   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1278   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1279   --libdir=DIR           object code libraries [EPREFIX/lib]
1280   --includedir=DIR       C header files [PREFIX/include]
1281   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1282   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1283   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1284   --infodir=DIR          info documentation [DATAROOTDIR/info]
1285   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1286   --mandir=DIR           man documentation [DATAROOTDIR/man]
1287   --docdir=DIR           documentation root [DATAROOTDIR/doc/xboard]
1288   --htmldir=DIR          html documentation [DOCDIR]
1289   --dvidir=DIR           dvi documentation [DOCDIR]
1290   --pdfdir=DIR           pdf documentation [DOCDIR]
1291   --psdir=DIR            ps documentation [DOCDIR]
1292 _ACEOF
1293
1294   cat <<\_ACEOF
1295
1296 Program names:
1297   --program-prefix=PREFIX            prepend PREFIX to installed program names
1298   --program-suffix=SUFFIX            append SUFFIX to installed program names
1299   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1300
1301 X features:
1302   --x-includes=DIR    X include files are in DIR
1303   --x-libraries=DIR   X library files are in DIR
1304
1305 System types:
1306   --build=BUILD     configure for building on BUILD [guessed]
1307   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1308 _ACEOF
1309 fi
1310
1311 if test -n "$ac_init_help"; then
1312   case $ac_init_help in
1313      short | recursive ) echo "Configuration of xboard 4.3:";;
1314    esac
1315   cat <<\_ACEOF
1316
1317 Optional Features:
1318   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1319   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1320   --disable-dependency-tracking  speeds up one-time build
1321   --enable-dependency-tracking   do not reject slow dependency extractors
1322   --enable-xpm            libXpm will be used if found (default)
1323   --disable-xpm           libXpm will not be used
1324   --enable-ptys           force use of pseudo-ttys with child processes
1325   --disable-ptys          force use of pipes with child processes
1326   --enable-zippy          support interfacing a chess program to ICS (default)
1327   --disable-zippy         do not support interfacing a chess program to ICS
1328   --enable-sigint         sending SIGINT (^C) wakes up GNU Chess (default)
1329   --disable-sigint        typing a command wakes up GNU Chess
1330
1331 Optional Packages:
1332   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1333   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1334   --with-x                use the X Window System
1335   --with-Xaw3d            use Xaw3d instead of Xaw
1336
1337 Some influential environment variables:
1338   CC          C compiler command
1339   CFLAGS      C compiler flags
1340   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1341               nonstandard directory <lib dir>
1342   LIBS        libraries to pass to the linker, e.g. -l<library>
1343   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1344               you have headers in a nonstandard directory <include dir>
1345   CPP         C preprocessor
1346   XMKMF       Path to xmkmf, Makefile generator for X Window System
1347
1348 Use these variables to override the choices made by `configure' or to help
1349 it to find libraries and programs with nonstandard names/locations.
1350
1351 _ACEOF
1352 ac_status=$?
1353 fi
1354
1355 if test "$ac_init_help" = "recursive"; then
1356   # If there are subdirs, report their specific --help.
1357   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1358     test -d "$ac_dir" || continue
1359     ac_builddir=.
1360
1361 case "$ac_dir" in
1362 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1363 *)
1364   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1365   # A ".." for each directory in $ac_dir_suffix.
1366   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1367   case $ac_top_builddir_sub in
1368   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1369   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1370   esac ;;
1371 esac
1372 ac_abs_top_builddir=$ac_pwd
1373 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1374 # for backward compatibility:
1375 ac_top_builddir=$ac_top_build_prefix
1376
1377 case $srcdir in
1378   .)  # We are building in place.
1379     ac_srcdir=.
1380     ac_top_srcdir=$ac_top_builddir_sub
1381     ac_abs_top_srcdir=$ac_pwd ;;
1382   [\\/]* | ?:[\\/]* )  # Absolute name.
1383     ac_srcdir=$srcdir$ac_dir_suffix;
1384     ac_top_srcdir=$srcdir
1385     ac_abs_top_srcdir=$srcdir ;;
1386   *) # Relative name.
1387     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1388     ac_top_srcdir=$ac_top_build_prefix$srcdir
1389     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1390 esac
1391 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1392
1393     cd "$ac_dir" || { ac_status=$?; continue; }
1394     # Check for guested configure.
1395     if test -f "$ac_srcdir/configure.gnu"; then
1396       echo &&
1397       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1398     elif test -f "$ac_srcdir/configure"; then
1399       echo &&
1400       $SHELL "$ac_srcdir/configure" --help=recursive
1401     else
1402       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1403     fi || ac_status=$?
1404     cd "$ac_pwd" || { ac_status=$?; break; }
1405   done
1406 fi
1407
1408 test -n "$ac_init_help" && exit $ac_status
1409 if $ac_init_version; then
1410   cat <<\_ACEOF
1411 xboard configure 4.3
1412 generated by GNU Autoconf 2.61
1413
1414 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1415 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1416 This configure script is free software; the Free Software Foundation
1417 gives unlimited permission to copy, distribute and modify it.
1418 _ACEOF
1419   exit
1420 fi
1421 cat >config.log <<_ACEOF
1422 This file contains any messages produced by compilers while
1423 running configure, to aid debugging if configure makes a mistake.
1424
1425 It was created by xboard $as_me 4.3, which was
1426 generated by GNU Autoconf 2.61.  Invocation command line was
1427
1428   $ $0 $@
1429
1430 _ACEOF
1431 exec 5>>config.log
1432 {
1433 cat <<_ASUNAME
1434 ## --------- ##
1435 ## Platform. ##
1436 ## --------- ##
1437
1438 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1439 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1440 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1441 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1442 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1443
1444 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1445 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1446
1447 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1448 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1449 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1450 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1451 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1452 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1453 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1454
1455 _ASUNAME
1456
1457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1458 for as_dir in $PATH
1459 do
1460   IFS=$as_save_IFS
1461   test -z "$as_dir" && as_dir=.
1462   echo "PATH: $as_dir"
1463 done
1464 IFS=$as_save_IFS
1465
1466 } >&5
1467
1468 cat >&5 <<_ACEOF
1469
1470
1471 ## ----------- ##
1472 ## Core tests. ##
1473 ## ----------- ##
1474
1475 _ACEOF
1476
1477
1478 # Keep a trace of the command line.
1479 # Strip out --no-create and --no-recursion so they do not pile up.
1480 # Strip out --silent because we don't want to record it for future runs.
1481 # Also quote any args containing shell meta-characters.
1482 # Make two passes to allow for proper duplicate-argument suppression.
1483 ac_configure_args=
1484 ac_configure_args0=
1485 ac_configure_args1=
1486 ac_must_keep_next=false
1487 for ac_pass in 1 2
1488 do
1489   for ac_arg
1490   do
1491     case $ac_arg in
1492     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1493     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1494     | -silent | --silent | --silen | --sile | --sil)
1495       continue ;;
1496     *\'*)
1497       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1498     esac
1499     case $ac_pass in
1500     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1501     2)
1502       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1503       if test $ac_must_keep_next = true; then
1504         ac_must_keep_next=false # Got value, back to normal.
1505       else
1506         case $ac_arg in
1507           *=* | --config-cache | -C | -disable-* | --disable-* \
1508           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1509           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1510           | -with-* | --with-* | -without-* | --without-* | --x)
1511             case "$ac_configure_args0 " in
1512               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1513             esac
1514             ;;
1515           -* ) ac_must_keep_next=true ;;
1516         esac
1517       fi
1518       ac_configure_args="$ac_configure_args '$ac_arg'"
1519       ;;
1520     esac
1521   done
1522 done
1523 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1524 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1525
1526 # When interrupted or exit'd, cleanup temporary files, and complete
1527 # config.log.  We remove comments because anyway the quotes in there
1528 # would cause problems or look ugly.
1529 # WARNING: Use '\'' to represent an apostrophe within the trap.
1530 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1531 trap 'exit_status=$?
1532   # Save into config.log some information that might help in debugging.
1533   {
1534     echo
1535
1536     cat <<\_ASBOX
1537 ## ---------------- ##
1538 ## Cache variables. ##
1539 ## ---------------- ##
1540 _ASBOX
1541     echo
1542     # The following way of writing the cache mishandles newlines in values,
1543 (
1544   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1545     eval ac_val=\$$ac_var
1546     case $ac_val in #(
1547     *${as_nl}*)
1548       case $ac_var in #(
1549       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1550 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1551       esac
1552       case $ac_var in #(
1553       _ | IFS | as_nl) ;; #(
1554       *) $as_unset $ac_var ;;
1555       esac ;;
1556     esac
1557   done
1558   (set) 2>&1 |
1559     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1560     *${as_nl}ac_space=\ *)
1561       sed -n \
1562         "s/'\''/'\''\\\\'\'''\''/g;
1563           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1564       ;; #(
1565     *)
1566       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1567       ;;
1568     esac |
1569     sort
1570 )
1571     echo
1572
1573     cat <<\_ASBOX
1574 ## ----------------- ##
1575 ## Output variables. ##
1576 ## ----------------- ##
1577 _ASBOX
1578     echo
1579     for ac_var in $ac_subst_vars
1580     do
1581       eval ac_val=\$$ac_var
1582       case $ac_val in
1583       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1584       esac
1585       echo "$ac_var='\''$ac_val'\''"
1586     done | sort
1587     echo
1588
1589     if test -n "$ac_subst_files"; then
1590       cat <<\_ASBOX
1591 ## ------------------- ##
1592 ## File substitutions. ##
1593 ## ------------------- ##
1594 _ASBOX
1595       echo
1596       for ac_var in $ac_subst_files
1597       do
1598         eval ac_val=\$$ac_var
1599         case $ac_val in
1600         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1601         esac
1602         echo "$ac_var='\''$ac_val'\''"
1603       done | sort
1604       echo
1605     fi
1606
1607     if test -s confdefs.h; then
1608       cat <<\_ASBOX
1609 ## ----------- ##
1610 ## confdefs.h. ##
1611 ## ----------- ##
1612 _ASBOX
1613       echo
1614       cat confdefs.h
1615       echo
1616     fi
1617     test "$ac_signal" != 0 &&
1618       echo "$as_me: caught signal $ac_signal"
1619     echo "$as_me: exit $exit_status"
1620   } >&5
1621   rm -f core *.core core.conftest.* &&
1622     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1623     exit $exit_status
1624 ' 0
1625 for ac_signal in 1 2 13 15; do
1626   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1627 done
1628 ac_signal=0
1629
1630 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1631 rm -f -r conftest* confdefs.h
1632
1633 # Predefined preprocessor variables.
1634
1635 cat >>confdefs.h <<_ACEOF
1636 #define PACKAGE_NAME "$PACKAGE_NAME"
1637 _ACEOF
1638
1639
1640 cat >>confdefs.h <<_ACEOF
1641 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1642 _ACEOF
1643
1644
1645 cat >>confdefs.h <<_ACEOF
1646 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1647 _ACEOF
1648
1649
1650 cat >>confdefs.h <<_ACEOF
1651 #define PACKAGE_STRING "$PACKAGE_STRING"
1652 _ACEOF
1653
1654
1655 cat >>confdefs.h <<_ACEOF
1656 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1657 _ACEOF
1658
1659
1660 # Let the site file select an alternate cache file if it wants to.
1661 # Prefer explicitly selected file to automatically selected ones.
1662 if test -n "$CONFIG_SITE"; then
1663   set x "$CONFIG_SITE"
1664 elif test "x$prefix" != xNONE; then
1665   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1666 else
1667   set x "$ac_default_prefix/share/config.site" \
1668         "$ac_default_prefix/etc/config.site"
1669 fi
1670 shift
1671 for ac_site_file
1672 do
1673   if test -r "$ac_site_file"; then
1674     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1675 echo "$as_me: loading site script $ac_site_file" >&6;}
1676     sed 's/^/| /' "$ac_site_file" >&5
1677     . "$ac_site_file"
1678   fi
1679 done
1680
1681 if test -r "$cache_file"; then
1682   # Some versions of bash will fail to source /dev/null (special
1683   # files actually), so we avoid doing that.
1684   if test -f "$cache_file"; then
1685     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1686 echo "$as_me: loading cache $cache_file" >&6;}
1687     case $cache_file in
1688       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1689       *)                      . "./$cache_file";;
1690     esac
1691   fi
1692 else
1693   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1694 echo "$as_me: creating cache $cache_file" >&6;}
1695   >$cache_file
1696 fi
1697
1698 # Check that the precious variables saved in the cache have kept the same
1699 # value.
1700 ac_cache_corrupted=false
1701 for ac_var in $ac_precious_vars; do
1702   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1703   eval ac_new_set=\$ac_env_${ac_var}_set
1704   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1705   eval ac_new_val=\$ac_env_${ac_var}_value
1706   case $ac_old_set,$ac_new_set in
1707     set,)
1708       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1709 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1710       ac_cache_corrupted=: ;;
1711     ,set)
1712       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1713 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1714       ac_cache_corrupted=: ;;
1715     ,);;
1716     *)
1717       if test "x$ac_old_val" != "x$ac_new_val"; then
1718         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1719 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1720         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1721 echo "$as_me:   former value:  $ac_old_val" >&2;}
1722         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1723 echo "$as_me:   current value: $ac_new_val" >&2;}
1724         ac_cache_corrupted=:
1725       fi;;
1726   esac
1727   # Pass precious variables to config.status.
1728   if test "$ac_new_set" = set; then
1729     case $ac_new_val in
1730     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1731     *) ac_arg=$ac_var=$ac_new_val ;;
1732     esac
1733     case " $ac_configure_args " in
1734       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1735       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1736     esac
1737   fi
1738 done
1739 if $ac_cache_corrupted; then
1740   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1741 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1742   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1743 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1744    { (exit 1); exit 1; }; }
1745 fi
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771 ac_ext=c
1772 ac_cpp='$CPP $CPPFLAGS'
1773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1776
1777
1778 am__api_version='1.10'
1779
1780 ac_aux_dir=
1781 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1782   if test -f "$ac_dir/install-sh"; then
1783     ac_aux_dir=$ac_dir
1784     ac_install_sh="$ac_aux_dir/install-sh -c"
1785     break
1786   elif test -f "$ac_dir/install.sh"; then
1787     ac_aux_dir=$ac_dir
1788     ac_install_sh="$ac_aux_dir/install.sh -c"
1789     break
1790   elif test -f "$ac_dir/shtool"; then
1791     ac_aux_dir=$ac_dir
1792     ac_install_sh="$ac_aux_dir/shtool install -c"
1793     break
1794   fi
1795 done
1796 if test -z "$ac_aux_dir"; then
1797   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1798 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1799    { (exit 1); exit 1; }; }
1800 fi
1801
1802 # These three variables are undocumented and unsupported,
1803 # and are intended to be withdrawn in a future Autoconf release.
1804 # They can cause serious problems if a builder's source tree is in a directory
1805 # whose full name contains unusual characters.
1806 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1807 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1808 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1809
1810
1811 # Find a good install program.  We prefer a C program (faster),
1812 # so one script is as good as another.  But avoid the broken or
1813 # incompatible versions:
1814 # SysV /etc/install, /usr/sbin/install
1815 # SunOS /usr/etc/install
1816 # IRIX /sbin/install
1817 # AIX /bin/install
1818 # AmigaOS /C/install, which installs bootblocks on floppy discs
1819 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1820 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1821 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1822 # OS/2's system install, which has a completely different semantic
1823 # ./install, which can be erroneously created by make from ./install.sh.
1824 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1825 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1826 if test -z "$INSTALL"; then
1827 if test "${ac_cv_path_install+set}" = set; then
1828   echo $ECHO_N "(cached) $ECHO_C" >&6
1829 else
1830   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1831 for as_dir in $PATH
1832 do
1833   IFS=$as_save_IFS
1834   test -z "$as_dir" && as_dir=.
1835   # Account for people who put trailing slashes in PATH elements.
1836 case $as_dir/ in
1837   ./ | .// | /cC/* | \
1838   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1839   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1840   /usr/ucb/* ) ;;
1841   *)
1842     # OSF1 and SCO ODT 3.0 have their own names for install.
1843     # Don't use installbsd from OSF since it installs stuff as root
1844     # by default.
1845     for ac_prog in ginstall scoinst install; do
1846       for ac_exec_ext in '' $ac_executable_extensions; do
1847         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1848           if test $ac_prog = install &&
1849             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1850             # AIX install.  It has an incompatible calling convention.
1851             :
1852           elif test $ac_prog = install &&
1853             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1854             # program-specific install script used by HP pwplus--don't use.
1855             :
1856           else
1857             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1858             break 3
1859           fi
1860         fi
1861       done
1862     done
1863     ;;
1864 esac
1865 done
1866 IFS=$as_save_IFS
1867
1868
1869 fi
1870   if test "${ac_cv_path_install+set}" = set; then
1871     INSTALL=$ac_cv_path_install
1872   else
1873     # As a last resort, use the slow shell script.  Don't cache a
1874     # value for INSTALL within a source directory, because that will
1875     # break other packages using the cache if that directory is
1876     # removed, or if the value is a relative name.
1877     INSTALL=$ac_install_sh
1878   fi
1879 fi
1880 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1881 echo "${ECHO_T}$INSTALL" >&6; }
1882
1883 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1884 # It thinks the first close brace ends the variable substitution.
1885 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1886
1887 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1888
1889 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1890
1891 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1892 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1893 # Just in case
1894 sleep 1
1895 echo timestamp > conftest.file
1896 # Do `set' in a subshell so we don't clobber the current shell's
1897 # arguments.  Must try -L first in case configure is actually a
1898 # symlink; some systems play weird games with the mod time of symlinks
1899 # (eg FreeBSD returns the mod time of the symlink's containing
1900 # directory).
1901 if (
1902    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1903    if test "$*" = "X"; then
1904       # -L didn't work.
1905       set X `ls -t $srcdir/configure conftest.file`
1906    fi
1907    rm -f conftest.file
1908    if test "$*" != "X $srcdir/configure conftest.file" \
1909       && test "$*" != "X conftest.file $srcdir/configure"; then
1910
1911       # If neither matched, then we have a broken ls.  This can happen
1912       # if, for instance, CONFIG_SHELL is bash and it inherits a
1913       # broken ls alias from the environment.  This has actually
1914       # happened.  Such a system could not be considered "sane".
1915       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1916 alias in your environment" >&5
1917 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1918 alias in your environment" >&2;}
1919    { (exit 1); exit 1; }; }
1920    fi
1921
1922    test "$2" = conftest.file
1923    )
1924 then
1925    # Ok.
1926    :
1927 else
1928    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1929 Check your system clock" >&5
1930 echo "$as_me: error: newly created file is older than distributed files!
1931 Check your system clock" >&2;}
1932    { (exit 1); exit 1; }; }
1933 fi
1934 { echo "$as_me:$LINENO: result: yes" >&5
1935 echo "${ECHO_T}yes" >&6; }
1936 test "$program_prefix" != NONE &&
1937   program_transform_name="s&^&$program_prefix&;$program_transform_name"
1938 # Use a double $ so make ignores it.
1939 test "$program_suffix" != NONE &&
1940   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1941 # Double any \ or $.  echo might interpret backslashes.
1942 # By default was `s,x,x', remove it if useless.
1943 cat <<\_ACEOF >conftest.sed
1944 s/[\\$]/&&/g;s/;s,x,x,$//
1945 _ACEOF
1946 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1947 rm -f conftest.sed
1948
1949 # expand $ac_aux_dir to an absolute path
1950 am_aux_dir=`cd $ac_aux_dir && pwd`
1951
1952 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1953 # Use eval to expand $SHELL
1954 if eval "$MISSING --run true"; then
1955   am_missing_run="$MISSING --run "
1956 else
1957   am_missing_run=
1958   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1959 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1960 fi
1961
1962 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
1963 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
1964 if test -z "$MKDIR_P"; then
1965   if test "${ac_cv_path_mkdir+set}" = set; then
1966   echo $ECHO_N "(cached) $ECHO_C" >&6
1967 else
1968   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1969 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
1970 do
1971   IFS=$as_save_IFS
1972   test -z "$as_dir" && as_dir=.
1973   for ac_prog in mkdir gmkdir; do
1974          for ac_exec_ext in '' $ac_executable_extensions; do
1975            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
1976            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
1977              'mkdir (GNU coreutils) '* | \
1978              'mkdir (coreutils) '* | \
1979              'mkdir (fileutils) '4.1*)
1980                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
1981                break 3;;
1982            esac
1983          done
1984        done
1985 done
1986 IFS=$as_save_IFS
1987
1988 fi
1989
1990   if test "${ac_cv_path_mkdir+set}" = set; then
1991     MKDIR_P="$ac_cv_path_mkdir -p"
1992   else
1993     # As a last resort, use the slow shell script.  Don't cache a
1994     # value for MKDIR_P within a source directory, because that will
1995     # break other packages using the cache if that directory is
1996     # removed, or if the value is a relative name.
1997     test -d ./--version && rmdir ./--version
1998     MKDIR_P="$ac_install_sh -d"
1999   fi
2000 fi
2001 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2002 echo "${ECHO_T}$MKDIR_P" >&6; }
2003
2004 mkdir_p="$MKDIR_P"
2005 case $mkdir_p in
2006   [\\/$]* | ?:[\\/]*) ;;
2007   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2008 esac
2009
2010 for ac_prog in gawk mawk nawk awk
2011 do
2012   # Extract the first word of "$ac_prog", so it can be a program name with args.
2013 set dummy $ac_prog; ac_word=$2
2014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2016 if test "${ac_cv_prog_AWK+set}" = set; then
2017   echo $ECHO_N "(cached) $ECHO_C" >&6
2018 else
2019   if test -n "$AWK"; then
2020   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2021 else
2022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2023 for as_dir in $PATH
2024 do
2025   IFS=$as_save_IFS
2026   test -z "$as_dir" && as_dir=.
2027   for ac_exec_ext in '' $ac_executable_extensions; do
2028   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2029     ac_cv_prog_AWK="$ac_prog"
2030     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2031     break 2
2032   fi
2033 done
2034 done
2035 IFS=$as_save_IFS
2036
2037 fi
2038 fi
2039 AWK=$ac_cv_prog_AWK
2040 if test -n "$AWK"; then
2041   { echo "$as_me:$LINENO: result: $AWK" >&5
2042 echo "${ECHO_T}$AWK" >&6; }
2043 else
2044   { echo "$as_me:$LINENO: result: no" >&5
2045 echo "${ECHO_T}no" >&6; }
2046 fi
2047
2048
2049   test -n "$AWK" && break
2050 done
2051
2052 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2053 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2054 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2055 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2056   echo $ECHO_N "(cached) $ECHO_C" >&6
2057 else
2058   cat >conftest.make <<\_ACEOF
2059 SHELL = /bin/sh
2060 all:
2061         @echo '@@@%%%=$(MAKE)=@@@%%%'
2062 _ACEOF
2063 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2064 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2065   *@@@%%%=?*=@@@%%%*)
2066     eval ac_cv_prog_make_${ac_make}_set=yes;;
2067   *)
2068     eval ac_cv_prog_make_${ac_make}_set=no;;
2069 esac
2070 rm -f conftest.make
2071 fi
2072 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2073   { echo "$as_me:$LINENO: result: yes" >&5
2074 echo "${ECHO_T}yes" >&6; }
2075   SET_MAKE=
2076 else
2077   { echo "$as_me:$LINENO: result: no" >&5
2078 echo "${ECHO_T}no" >&6; }
2079   SET_MAKE="MAKE=${MAKE-make}"
2080 fi
2081
2082 rm -rf .tst 2>/dev/null
2083 mkdir .tst 2>/dev/null
2084 if test -d .tst; then
2085   am__leading_dot=.
2086 else
2087   am__leading_dot=_
2088 fi
2089 rmdir .tst 2>/dev/null
2090
2091 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2092   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2093   # is not polluted with repeated "-I."
2094   am__isrc=' -I$(srcdir)'
2095   # test to see if srcdir already configured
2096   if test -f $srcdir/config.status; then
2097     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2098 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2099    { (exit 1); exit 1; }; }
2100   fi
2101 fi
2102
2103 # test whether we have cygpath
2104 if test -z "$CYGPATH_W"; then
2105   if (cygpath --version) >/dev/null 2>/dev/null; then
2106     CYGPATH_W='cygpath -w'
2107   else
2108     CYGPATH_W=echo
2109   fi
2110 fi
2111
2112
2113 # Define the identity of the package.
2114  PACKAGE='xboard'
2115  VERSION='4.3'
2116
2117
2118 cat >>confdefs.h <<_ACEOF
2119 #define PACKAGE "$PACKAGE"
2120 _ACEOF
2121
2122
2123 cat >>confdefs.h <<_ACEOF
2124 #define VERSION "$VERSION"
2125 _ACEOF
2126
2127 # Some tools Automake needs.
2128
2129 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2130
2131
2132 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2133
2134
2135 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2136
2137
2138 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2139
2140
2141 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2142
2143 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2144
2145 # Installed binaries are usually stripped using `strip' when the user
2146 # run `make install-strip'.  However `strip' might not be the right
2147 # tool to use in cross-compilation environments, therefore Automake
2148 # will honor the `STRIP' environment variable to overrule this program.
2149 if test "$cross_compiling" != no; then
2150   if test -n "$ac_tool_prefix"; then
2151   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2152 set dummy ${ac_tool_prefix}strip; ac_word=$2
2153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2155 if test "${ac_cv_prog_STRIP+set}" = set; then
2156   echo $ECHO_N "(cached) $ECHO_C" >&6
2157 else
2158   if test -n "$STRIP"; then
2159   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2160 else
2161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2162 for as_dir in $PATH
2163 do
2164   IFS=$as_save_IFS
2165   test -z "$as_dir" && as_dir=.
2166   for ac_exec_ext in '' $ac_executable_extensions; do
2167   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2168     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2169     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2170     break 2
2171   fi
2172 done
2173 done
2174 IFS=$as_save_IFS
2175
2176 fi
2177 fi
2178 STRIP=$ac_cv_prog_STRIP
2179 if test -n "$STRIP"; then
2180   { echo "$as_me:$LINENO: result: $STRIP" >&5
2181 echo "${ECHO_T}$STRIP" >&6; }
2182 else
2183   { echo "$as_me:$LINENO: result: no" >&5
2184 echo "${ECHO_T}no" >&6; }
2185 fi
2186
2187
2188 fi
2189 if test -z "$ac_cv_prog_STRIP"; then
2190   ac_ct_STRIP=$STRIP
2191   # Extract the first word of "strip", so it can be a program name with args.
2192 set dummy strip; ac_word=$2
2193 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2195 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2196   echo $ECHO_N "(cached) $ECHO_C" >&6
2197 else
2198   if test -n "$ac_ct_STRIP"; then
2199   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2200 else
2201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2202 for as_dir in $PATH
2203 do
2204   IFS=$as_save_IFS
2205   test -z "$as_dir" && as_dir=.
2206   for ac_exec_ext in '' $ac_executable_extensions; do
2207   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2208     ac_cv_prog_ac_ct_STRIP="strip"
2209     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2210     break 2
2211   fi
2212 done
2213 done
2214 IFS=$as_save_IFS
2215
2216 fi
2217 fi
2218 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2219 if test -n "$ac_ct_STRIP"; then
2220   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2221 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2222 else
2223   { echo "$as_me:$LINENO: result: no" >&5
2224 echo "${ECHO_T}no" >&6; }
2225 fi
2226
2227   if test "x$ac_ct_STRIP" = x; then
2228     STRIP=":"
2229   else
2230     case $cross_compiling:$ac_tool_warned in
2231 yes:)
2232 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2233 whose name does not start with the host triplet.  If you think this
2234 configuration is useful to you, please write to autoconf@gnu.org." >&5
2235 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2236 whose name does not start with the host triplet.  If you think this
2237 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2238 ac_tool_warned=yes ;;
2239 esac
2240     STRIP=$ac_ct_STRIP
2241   fi
2242 else
2243   STRIP="$ac_cv_prog_STRIP"
2244 fi
2245
2246 fi
2247 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2248
2249 # We need awk for the "check" target.  The system "awk" is bad on
2250 # some platforms.
2251 # Always define AMTAR for backward compatibility.
2252
2253 AMTAR=${AMTAR-"${am_missing_run}tar"}
2254
2255 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2256
2257
2258
2259
2260
2261 ac_ext=c
2262 ac_cpp='$CPP $CPPFLAGS'
2263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2266 if test -n "$ac_tool_prefix"; then
2267   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2268 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2271 if test "${ac_cv_prog_CC+set}" = set; then
2272   echo $ECHO_N "(cached) $ECHO_C" >&6
2273 else
2274   if test -n "$CC"; then
2275   ac_cv_prog_CC="$CC" # Let the user override the test.
2276 else
2277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2278 for as_dir in $PATH
2279 do
2280   IFS=$as_save_IFS
2281   test -z "$as_dir" && as_dir=.
2282   for ac_exec_ext in '' $ac_executable_extensions; do
2283   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2284     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2285     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2286     break 2
2287   fi
2288 done
2289 done
2290 IFS=$as_save_IFS
2291
2292 fi
2293 fi
2294 CC=$ac_cv_prog_CC
2295 if test -n "$CC"; then
2296   { echo "$as_me:$LINENO: result: $CC" >&5
2297 echo "${ECHO_T}$CC" >&6; }
2298 else
2299   { echo "$as_me:$LINENO: result: no" >&5
2300 echo "${ECHO_T}no" >&6; }
2301 fi
2302
2303
2304 fi
2305 if test -z "$ac_cv_prog_CC"; then
2306   ac_ct_CC=$CC
2307   # Extract the first word of "gcc", so it can be a program name with args.
2308 set dummy gcc; ac_word=$2
2309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2311 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2312   echo $ECHO_N "(cached) $ECHO_C" >&6
2313 else
2314   if test -n "$ac_ct_CC"; then
2315   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2316 else
2317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2318 for as_dir in $PATH
2319 do
2320   IFS=$as_save_IFS
2321   test -z "$as_dir" && as_dir=.
2322   for ac_exec_ext in '' $ac_executable_extensions; do
2323   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2324     ac_cv_prog_ac_ct_CC="gcc"
2325     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2326     break 2
2327   fi
2328 done
2329 done
2330 IFS=$as_save_IFS
2331
2332 fi
2333 fi
2334 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2335 if test -n "$ac_ct_CC"; then
2336   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2337 echo "${ECHO_T}$ac_ct_CC" >&6; }
2338 else
2339   { echo "$as_me:$LINENO: result: no" >&5
2340 echo "${ECHO_T}no" >&6; }
2341 fi
2342
2343   if test "x$ac_ct_CC" = x; then
2344     CC=""
2345   else
2346     case $cross_compiling:$ac_tool_warned in
2347 yes:)
2348 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2349 whose name does not start with the host triplet.  If you think this
2350 configuration is useful to you, please write to autoconf@gnu.org." >&5
2351 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2352 whose name does not start with the host triplet.  If you think this
2353 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2354 ac_tool_warned=yes ;;
2355 esac
2356     CC=$ac_ct_CC
2357   fi
2358 else
2359   CC="$ac_cv_prog_CC"
2360 fi
2361
2362 if test -z "$CC"; then
2363           if test -n "$ac_tool_prefix"; then
2364     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2365 set dummy ${ac_tool_prefix}cc; ac_word=$2
2366 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2368 if test "${ac_cv_prog_CC+set}" = set; then
2369   echo $ECHO_N "(cached) $ECHO_C" >&6
2370 else
2371   if test -n "$CC"; then
2372   ac_cv_prog_CC="$CC" # Let the user override the test.
2373 else
2374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2375 for as_dir in $PATH
2376 do
2377   IFS=$as_save_IFS
2378   test -z "$as_dir" && as_dir=.
2379   for ac_exec_ext in '' $ac_executable_extensions; do
2380   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2381     ac_cv_prog_CC="${ac_tool_prefix}cc"
2382     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2383     break 2
2384   fi
2385 done
2386 done
2387 IFS=$as_save_IFS
2388
2389 fi
2390 fi
2391 CC=$ac_cv_prog_CC
2392 if test -n "$CC"; then
2393   { echo "$as_me:$LINENO: result: $CC" >&5
2394 echo "${ECHO_T}$CC" >&6; }
2395 else
2396   { echo "$as_me:$LINENO: result: no" >&5
2397 echo "${ECHO_T}no" >&6; }
2398 fi
2399
2400
2401   fi
2402 fi
2403 if test -z "$CC"; then
2404   # Extract the first word of "cc", so it can be a program name with args.
2405 set dummy cc; ac_word=$2
2406 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2408 if test "${ac_cv_prog_CC+set}" = set; then
2409   echo $ECHO_N "(cached) $ECHO_C" >&6
2410 else
2411   if test -n "$CC"; then
2412   ac_cv_prog_CC="$CC" # Let the user override the test.
2413 else
2414   ac_prog_rejected=no
2415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2416 for as_dir in $PATH
2417 do
2418   IFS=$as_save_IFS
2419   test -z "$as_dir" && as_dir=.
2420   for ac_exec_ext in '' $ac_executable_extensions; do
2421   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2422     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2423        ac_prog_rejected=yes
2424        continue
2425      fi
2426     ac_cv_prog_CC="cc"
2427     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2428     break 2
2429   fi
2430 done
2431 done
2432 IFS=$as_save_IFS
2433
2434 if test $ac_prog_rejected = yes; then
2435   # We found a bogon in the path, so make sure we never use it.
2436   set dummy $ac_cv_prog_CC
2437   shift
2438   if test $# != 0; then
2439     # We chose a different compiler from the bogus one.
2440     # However, it has the same basename, so the bogon will be chosen
2441     # first if we set CC to just the basename; use the full file name.
2442     shift
2443     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2444   fi
2445 fi
2446 fi
2447 fi
2448 CC=$ac_cv_prog_CC
2449 if test -n "$CC"; then
2450   { echo "$as_me:$LINENO: result: $CC" >&5
2451 echo "${ECHO_T}$CC" >&6; }
2452 else
2453   { echo "$as_me:$LINENO: result: no" >&5
2454 echo "${ECHO_T}no" >&6; }
2455 fi
2456
2457
2458 fi
2459 if test -z "$CC"; then
2460   if test -n "$ac_tool_prefix"; then
2461   for ac_prog in cl.exe
2462   do
2463     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2464 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2467 if test "${ac_cv_prog_CC+set}" = set; then
2468   echo $ECHO_N "(cached) $ECHO_C" >&6
2469 else
2470   if test -n "$CC"; then
2471   ac_cv_prog_CC="$CC" # Let the user override the test.
2472 else
2473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2474 for as_dir in $PATH
2475 do
2476   IFS=$as_save_IFS
2477   test -z "$as_dir" && as_dir=.
2478   for ac_exec_ext in '' $ac_executable_extensions; do
2479   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2480     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2481     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2482     break 2
2483   fi
2484 done
2485 done
2486 IFS=$as_save_IFS
2487
2488 fi
2489 fi
2490 CC=$ac_cv_prog_CC
2491 if test -n "$CC"; then
2492   { echo "$as_me:$LINENO: result: $CC" >&5
2493 echo "${ECHO_T}$CC" >&6; }
2494 else
2495   { echo "$as_me:$LINENO: result: no" >&5
2496 echo "${ECHO_T}no" >&6; }
2497 fi
2498
2499
2500     test -n "$CC" && break
2501   done
2502 fi
2503 if test -z "$CC"; then
2504   ac_ct_CC=$CC
2505   for ac_prog in cl.exe
2506 do
2507   # Extract the first word of "$ac_prog", so it can be a program name with args.
2508 set dummy $ac_prog; ac_word=$2
2509 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2511 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2512   echo $ECHO_N "(cached) $ECHO_C" >&6
2513 else
2514   if test -n "$ac_ct_CC"; then
2515   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2516 else
2517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2518 for as_dir in $PATH
2519 do
2520   IFS=$as_save_IFS
2521   test -z "$as_dir" && as_dir=.
2522   for ac_exec_ext in '' $ac_executable_extensions; do
2523   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2524     ac_cv_prog_ac_ct_CC="$ac_prog"
2525     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2526     break 2
2527   fi
2528 done
2529 done
2530 IFS=$as_save_IFS
2531
2532 fi
2533 fi
2534 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2535 if test -n "$ac_ct_CC"; then
2536   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2537 echo "${ECHO_T}$ac_ct_CC" >&6; }
2538 else
2539   { echo "$as_me:$LINENO: result: no" >&5
2540 echo "${ECHO_T}no" >&6; }
2541 fi
2542
2543
2544   test -n "$ac_ct_CC" && break
2545 done
2546
2547   if test "x$ac_ct_CC" = x; then
2548     CC=""
2549   else
2550     case $cross_compiling:$ac_tool_warned in
2551 yes:)
2552 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2553 whose name does not start with the host triplet.  If you think this
2554 configuration is useful to you, please write to autoconf@gnu.org." >&5
2555 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2556 whose name does not start with the host triplet.  If you think this
2557 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2558 ac_tool_warned=yes ;;
2559 esac
2560     CC=$ac_ct_CC
2561   fi
2562 fi
2563
2564 fi
2565
2566
2567 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2568 See \`config.log' for more details." >&5
2569 echo "$as_me: error: no acceptable C compiler found in \$PATH
2570 See \`config.log' for more details." >&2;}
2571    { (exit 1); exit 1; }; }
2572
2573 # Provide some information about the compiler.
2574 echo "$as_me:$LINENO: checking for C compiler version" >&5
2575 ac_compiler=`set X $ac_compile; echo $2`
2576 { (ac_try="$ac_compiler --version >&5"
2577 case "(($ac_try" in
2578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2579   *) ac_try_echo=$ac_try;;
2580 esac
2581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2582   (eval "$ac_compiler --version >&5") 2>&5
2583   ac_status=$?
2584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585   (exit $ac_status); }
2586 { (ac_try="$ac_compiler -v >&5"
2587 case "(($ac_try" in
2588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2589   *) ac_try_echo=$ac_try;;
2590 esac
2591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2592   (eval "$ac_compiler -v >&5") 2>&5
2593   ac_status=$?
2594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595   (exit $ac_status); }
2596 { (ac_try="$ac_compiler -V >&5"
2597 case "(($ac_try" in
2598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2599   *) ac_try_echo=$ac_try;;
2600 esac
2601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2602   (eval "$ac_compiler -V >&5") 2>&5
2603   ac_status=$?
2604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605   (exit $ac_status); }
2606
2607 cat >conftest.$ac_ext <<_ACEOF
2608 /* confdefs.h.  */
2609 _ACEOF
2610 cat confdefs.h >>conftest.$ac_ext
2611 cat >>conftest.$ac_ext <<_ACEOF
2612 /* end confdefs.h.  */
2613
2614 int
2615 main ()
2616 {
2617
2618   ;
2619   return 0;
2620 }
2621 _ACEOF
2622 ac_clean_files_save=$ac_clean_files
2623 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2624 # Try to create an executable without -o first, disregard a.out.
2625 # It will help us diagnose broken compilers, and finding out an intuition
2626 # of exeext.
2627 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2628 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2629 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2630 #
2631 # List of possible output files, starting from the most likely.
2632 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2633 # only as a last resort.  b.out is created by i960 compilers.
2634 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2635 #
2636 # The IRIX 6 linker writes into existing files which may not be
2637 # executable, retaining their permissions.  Remove them first so a
2638 # subsequent execution test works.
2639 ac_rmfiles=
2640 for ac_file in $ac_files
2641 do
2642   case $ac_file in
2643     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2644     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2645   esac
2646 done
2647 rm -f $ac_rmfiles
2648
2649 if { (ac_try="$ac_link_default"
2650 case "(($ac_try" in
2651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2652   *) ac_try_echo=$ac_try;;
2653 esac
2654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2655   (eval "$ac_link_default") 2>&5
2656   ac_status=$?
2657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658   (exit $ac_status); }; then
2659   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2660 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2661 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2662 # so that the user can short-circuit this test for compilers unknown to
2663 # Autoconf.
2664 for ac_file in $ac_files ''
2665 do
2666   test -f "$ac_file" || continue
2667   case $ac_file in
2668     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2669         ;;
2670     [ab].out )
2671         # We found the default executable, but exeext='' is most
2672         # certainly right.
2673         break;;
2674     *.* )
2675         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2676         then :; else
2677            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2678         fi
2679         # We set ac_cv_exeext here because the later test for it is not
2680         # safe: cross compilers may not add the suffix if given an `-o'
2681         # argument, so we may need to know it at that point already.
2682         # Even if this section looks crufty: it has the advantage of
2683         # actually working.
2684         break;;
2685     * )
2686         break;;
2687   esac
2688 done
2689 test "$ac_cv_exeext" = no && ac_cv_exeext=
2690
2691 else
2692   ac_file=''
2693 fi
2694
2695 { echo "$as_me:$LINENO: result: $ac_file" >&5
2696 echo "${ECHO_T}$ac_file" >&6; }
2697 if test -z "$ac_file"; then
2698   echo "$as_me: failed program was:" >&5
2699 sed 's/^/| /' conftest.$ac_ext >&5
2700
2701 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2702 See \`config.log' for more details." >&5
2703 echo "$as_me: error: C compiler cannot create executables
2704 See \`config.log' for more details." >&2;}
2705    { (exit 77); exit 77; }; }
2706 fi
2707
2708 ac_exeext=$ac_cv_exeext
2709
2710 # Check that the compiler produces executables we can run.  If not, either
2711 # the compiler is broken, or we cross compile.
2712 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2713 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2714 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2715 # If not cross compiling, check that we can run a simple program.
2716 if test "$cross_compiling" != yes; then
2717   if { ac_try='./$ac_file'
2718   { (case "(($ac_try" in
2719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2720   *) ac_try_echo=$ac_try;;
2721 esac
2722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2723   (eval "$ac_try") 2>&5
2724   ac_status=$?
2725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726   (exit $ac_status); }; }; then
2727     cross_compiling=no
2728   else
2729     if test "$cross_compiling" = maybe; then
2730         cross_compiling=yes
2731     else
2732         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2733 If you meant to cross compile, use \`--host'.
2734 See \`config.log' for more details." >&5
2735 echo "$as_me: error: cannot run C compiled programs.
2736 If you meant to cross compile, use \`--host'.
2737 See \`config.log' for more details." >&2;}
2738    { (exit 1); exit 1; }; }
2739     fi
2740   fi
2741 fi
2742 { echo "$as_me:$LINENO: result: yes" >&5
2743 echo "${ECHO_T}yes" >&6; }
2744
2745 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2746 ac_clean_files=$ac_clean_files_save
2747 # Check that the compiler produces executables we can run.  If not, either
2748 # the compiler is broken, or we cross compile.
2749 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2750 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2751 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2752 echo "${ECHO_T}$cross_compiling" >&6; }
2753
2754 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2755 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2756 if { (ac_try="$ac_link"
2757 case "(($ac_try" in
2758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2759   *) ac_try_echo=$ac_try;;
2760 esac
2761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2762   (eval "$ac_link") 2>&5
2763   ac_status=$?
2764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765   (exit $ac_status); }; then
2766   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2767 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2768 # work properly (i.e., refer to `conftest.exe'), while it won't with
2769 # `rm'.
2770 for ac_file in conftest.exe conftest conftest.*; do
2771   test -f "$ac_file" || continue
2772   case $ac_file in
2773     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2774     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2775           break;;
2776     * ) break;;
2777   esac
2778 done
2779 else
2780   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2781 See \`config.log' for more details." >&5
2782 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2783 See \`config.log' for more details." >&2;}
2784    { (exit 1); exit 1; }; }
2785 fi
2786
2787 rm -f conftest$ac_cv_exeext
2788 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2789 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2790
2791 rm -f conftest.$ac_ext
2792 EXEEXT=$ac_cv_exeext
2793 ac_exeext=$EXEEXT
2794 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2795 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2796 if test "${ac_cv_objext+set}" = set; then
2797   echo $ECHO_N "(cached) $ECHO_C" >&6
2798 else
2799   cat >conftest.$ac_ext <<_ACEOF
2800 /* confdefs.h.  */
2801 _ACEOF
2802 cat confdefs.h >>conftest.$ac_ext
2803 cat >>conftest.$ac_ext <<_ACEOF
2804 /* end confdefs.h.  */
2805
2806 int
2807 main ()
2808 {
2809
2810   ;
2811   return 0;
2812 }
2813 _ACEOF
2814 rm -f conftest.o conftest.obj
2815 if { (ac_try="$ac_compile"
2816 case "(($ac_try" in
2817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2818   *) ac_try_echo=$ac_try;;
2819 esac
2820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2821   (eval "$ac_compile") 2>&5
2822   ac_status=$?
2823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824   (exit $ac_status); }; then
2825   for ac_file in conftest.o conftest.obj conftest.*; do
2826   test -f "$ac_file" || continue;
2827   case $ac_file in
2828     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2829     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2830        break;;
2831   esac
2832 done
2833 else
2834   echo "$as_me: failed program was:" >&5
2835 sed 's/^/| /' conftest.$ac_ext >&5
2836
2837 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2838 See \`config.log' for more details." >&5
2839 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2840 See \`config.log' for more details." >&2;}
2841    { (exit 1); exit 1; }; }
2842 fi
2843
2844 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2845 fi
2846 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2847 echo "${ECHO_T}$ac_cv_objext" >&6; }
2848 OBJEXT=$ac_cv_objext
2849 ac_objext=$OBJEXT
2850 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2851 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2852 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2853   echo $ECHO_N "(cached) $ECHO_C" >&6
2854 else
2855   cat >conftest.$ac_ext <<_ACEOF
2856 /* confdefs.h.  */
2857 _ACEOF
2858 cat confdefs.h >>conftest.$ac_ext
2859 cat >>conftest.$ac_ext <<_ACEOF
2860 /* end confdefs.h.  */
2861
2862 int
2863 main ()
2864 {
2865 #ifndef __GNUC__
2866        choke me
2867 #endif
2868
2869   ;
2870   return 0;
2871 }
2872 _ACEOF
2873 rm -f conftest.$ac_objext
2874 if { (ac_try="$ac_compile"
2875 case "(($ac_try" in
2876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2877   *) ac_try_echo=$ac_try;;
2878 esac
2879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2880   (eval "$ac_compile") 2>conftest.er1
2881   ac_status=$?
2882   grep -v '^ *+' conftest.er1 >conftest.err
2883   rm -f conftest.er1
2884   cat conftest.err >&5
2885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886   (exit $ac_status); } && {
2887          test -z "$ac_c_werror_flag" ||
2888          test ! -s conftest.err
2889        } && test -s conftest.$ac_objext; then
2890   ac_compiler_gnu=yes
2891 else
2892   echo "$as_me: failed program was:" >&5
2893 sed 's/^/| /' conftest.$ac_ext >&5
2894
2895         ac_compiler_gnu=no
2896 fi
2897
2898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2899 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2900
2901 fi
2902 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2903 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2904 GCC=`test $ac_compiler_gnu = yes && echo yes`
2905 ac_test_CFLAGS=${CFLAGS+set}
2906 ac_save_CFLAGS=$CFLAGS
2907 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2908 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2909 if test "${ac_cv_prog_cc_g+set}" = set; then
2910   echo $ECHO_N "(cached) $ECHO_C" >&6
2911 else
2912   ac_save_c_werror_flag=$ac_c_werror_flag
2913    ac_c_werror_flag=yes
2914    ac_cv_prog_cc_g=no
2915    CFLAGS="-g"
2916    cat >conftest.$ac_ext <<_ACEOF
2917 /* confdefs.h.  */
2918 _ACEOF
2919 cat confdefs.h >>conftest.$ac_ext
2920 cat >>conftest.$ac_ext <<_ACEOF
2921 /* end confdefs.h.  */
2922
2923 int
2924 main ()
2925 {
2926
2927   ;
2928   return 0;
2929 }
2930 _ACEOF
2931 rm -f conftest.$ac_objext
2932 if { (ac_try="$ac_compile"
2933 case "(($ac_try" in
2934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2935   *) ac_try_echo=$ac_try;;
2936 esac
2937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2938   (eval "$ac_compile") 2>conftest.er1
2939   ac_status=$?
2940   grep -v '^ *+' conftest.er1 >conftest.err
2941   rm -f conftest.er1
2942   cat conftest.err >&5
2943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944   (exit $ac_status); } && {
2945          test -z "$ac_c_werror_flag" ||
2946          test ! -s conftest.err
2947        } && test -s conftest.$ac_objext; then
2948   ac_cv_prog_cc_g=yes
2949 else
2950   echo "$as_me: failed program was:" >&5
2951 sed 's/^/| /' conftest.$ac_ext >&5
2952
2953         CFLAGS=""
2954       cat >conftest.$ac_ext <<_ACEOF
2955 /* confdefs.h.  */
2956 _ACEOF
2957 cat confdefs.h >>conftest.$ac_ext
2958 cat >>conftest.$ac_ext <<_ACEOF
2959 /* end confdefs.h.  */
2960
2961 int
2962 main ()
2963 {
2964
2965   ;
2966   return 0;
2967 }
2968 _ACEOF
2969 rm -f conftest.$ac_objext
2970 if { (ac_try="$ac_compile"
2971 case "(($ac_try" in
2972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973   *) ac_try_echo=$ac_try;;
2974 esac
2975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2976   (eval "$ac_compile") 2>conftest.er1
2977   ac_status=$?
2978   grep -v '^ *+' conftest.er1 >conftest.err
2979   rm -f conftest.er1
2980   cat conftest.err >&5
2981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982   (exit $ac_status); } && {
2983          test -z "$ac_c_werror_flag" ||
2984          test ! -s conftest.err
2985        } && test -s conftest.$ac_objext; then
2986   :
2987 else
2988   echo "$as_me: failed program was:" >&5
2989 sed 's/^/| /' conftest.$ac_ext >&5
2990
2991         ac_c_werror_flag=$ac_save_c_werror_flag
2992          CFLAGS="-g"
2993          cat >conftest.$ac_ext <<_ACEOF
2994 /* confdefs.h.  */
2995 _ACEOF
2996 cat confdefs.h >>conftest.$ac_ext
2997 cat >>conftest.$ac_ext <<_ACEOF
2998 /* end confdefs.h.  */
2999
3000 int
3001 main ()
3002 {
3003
3004   ;
3005   return 0;
3006 }
3007 _ACEOF
3008 rm -f conftest.$ac_objext
3009 if { (ac_try="$ac_compile"
3010 case "(($ac_try" in
3011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012   *) ac_try_echo=$ac_try;;
3013 esac
3014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3015   (eval "$ac_compile") 2>conftest.er1
3016   ac_status=$?
3017   grep -v '^ *+' conftest.er1 >conftest.err
3018   rm -f conftest.er1
3019   cat conftest.err >&5
3020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021   (exit $ac_status); } && {
3022          test -z "$ac_c_werror_flag" ||
3023          test ! -s conftest.err
3024        } && test -s conftest.$ac_objext; then
3025   ac_cv_prog_cc_g=yes
3026 else
3027   echo "$as_me: failed program was:" >&5
3028 sed 's/^/| /' conftest.$ac_ext >&5
3029
3030
3031 fi
3032
3033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3034 fi
3035
3036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3037 fi
3038
3039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3040    ac_c_werror_flag=$ac_save_c_werror_flag
3041 fi
3042 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3043 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3044 if test "$ac_test_CFLAGS" = set; then
3045   CFLAGS=$ac_save_CFLAGS
3046 elif test $ac_cv_prog_cc_g = yes; then
3047   if test "$GCC" = yes; then
3048     CFLAGS="-g -O2"
3049   else
3050     CFLAGS="-g"
3051   fi
3052 else
3053   if test "$GCC" = yes; then
3054     CFLAGS="-O2"
3055   else
3056     CFLAGS=
3057   fi
3058 fi
3059 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3060 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3061 if test "${ac_cv_prog_cc_c89+set}" = set; then
3062   echo $ECHO_N "(cached) $ECHO_C" >&6
3063 else
3064   ac_cv_prog_cc_c89=no
3065 ac_save_CC=$CC
3066 cat >conftest.$ac_ext <<_ACEOF
3067 /* confdefs.h.  */
3068 _ACEOF
3069 cat confdefs.h >>conftest.$ac_ext
3070 cat >>conftest.$ac_ext <<_ACEOF
3071 /* end confdefs.h.  */
3072 #include <stdarg.h>
3073 #include <stdio.h>
3074 #include <sys/types.h>
3075 #include <sys/stat.h>
3076 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3077 struct buf { int x; };
3078 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3079 static char *e (p, i)
3080      char **p;
3081      int i;
3082 {
3083   return p[i];
3084 }
3085 static char *f (char * (*g) (char **, int), char **p, ...)
3086 {
3087   char *s;
3088   va_list v;
3089   va_start (v,p);
3090   s = g (p, va_arg (v,int));
3091   va_end (v);
3092   return s;
3093 }
3094
3095 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3096    function prototypes and stuff, but not '\xHH' hex character constants.
3097    These don't provoke an error unfortunately, instead are silently treated
3098    as 'x'.  The following induces an error, until -std is added to get
3099    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3100    array size at least.  It's necessary to write '\x00'==0 to get something
3101    that's true only with -std.  */
3102 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3103
3104 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3105    inside strings and character constants.  */
3106 #define FOO(x) 'x'
3107 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3108
3109 int test (int i, double x);
3110 struct s1 {int (*f) (int a);};
3111 struct s2 {int (*f) (double a);};
3112 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3113 int argc;
3114 char **argv;
3115 int
3116 main ()
3117 {
3118 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3119   ;
3120   return 0;
3121 }
3122 _ACEOF
3123 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3124         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3125 do
3126   CC="$ac_save_CC $ac_arg"
3127   rm -f conftest.$ac_objext
3128 if { (ac_try="$ac_compile"
3129 case "(($ac_try" in
3130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131   *) ac_try_echo=$ac_try;;
3132 esac
3133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3134   (eval "$ac_compile") 2>conftest.er1
3135   ac_status=$?
3136   grep -v '^ *+' conftest.er1 >conftest.err
3137   rm -f conftest.er1
3138   cat conftest.err >&5
3139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140   (exit $ac_status); } && {
3141          test -z "$ac_c_werror_flag" ||
3142          test ! -s conftest.err
3143        } && test -s conftest.$ac_objext; then
3144   ac_cv_prog_cc_c89=$ac_arg
3145 else
3146   echo "$as_me: failed program was:" >&5
3147 sed 's/^/| /' conftest.$ac_ext >&5
3148
3149
3150 fi
3151
3152 rm -f core conftest.err conftest.$ac_objext
3153   test "x$ac_cv_prog_cc_c89" != "xno" && break
3154 done
3155 rm -f conftest.$ac_ext
3156 CC=$ac_save_CC
3157
3158 fi
3159 # AC_CACHE_VAL
3160 case "x$ac_cv_prog_cc_c89" in
3161   x)
3162     { echo "$as_me:$LINENO: result: none needed" >&5
3163 echo "${ECHO_T}none needed" >&6; } ;;
3164   xno)
3165     { echo "$as_me:$LINENO: result: unsupported" >&5
3166 echo "${ECHO_T}unsupported" >&6; } ;;
3167   *)
3168     CC="$CC $ac_cv_prog_cc_c89"
3169     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3170 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3171 esac
3172
3173
3174 ac_ext=c
3175 ac_cpp='$CPP $CPPFLAGS'
3176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3179 DEPDIR="${am__leading_dot}deps"
3180
3181 ac_config_commands="$ac_config_commands depfiles"
3182
3183
3184 am_make=${MAKE-make}
3185 cat > confinc << 'END'
3186 am__doit:
3187         @echo done
3188 .PHONY: am__doit
3189 END
3190 # If we don't find an include directive, just comment out the code.
3191 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3192 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3193 am__include="#"
3194 am__quote=
3195 _am_result=none
3196 # First try GNU make style include.
3197 echo "include confinc" > confmf
3198 # We grep out `Entering directory' and `Leaving directory'
3199 # messages which can occur if `w' ends up in MAKEFLAGS.
3200 # In particular we don't look at `^make:' because GNU make might
3201 # be invoked under some other name (usually "gmake"), in which
3202 # case it prints its new name instead of `make'.
3203 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3204    am__include=include
3205    am__quote=
3206    _am_result=GNU
3207 fi
3208 # Now try BSD make style include.
3209 if test "$am__include" = "#"; then
3210    echo '.include "confinc"' > confmf
3211    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3212       am__include=.include
3213       am__quote="\""
3214       _am_result=BSD
3215    fi
3216 fi
3217
3218
3219 { echo "$as_me:$LINENO: result: $_am_result" >&5
3220 echo "${ECHO_T}$_am_result" >&6; }
3221 rm -f confinc confmf
3222
3223 # Check whether --enable-dependency-tracking was given.
3224 if test "${enable_dependency_tracking+set}" = set; then
3225   enableval=$enable_dependency_tracking;
3226 fi
3227
3228 if test "x$enable_dependency_tracking" != xno; then
3229   am_depcomp="$ac_aux_dir/depcomp"
3230   AMDEPBACKSLASH='\'
3231 fi
3232  if test "x$enable_dependency_tracking" != xno; then
3233   AMDEP_TRUE=
3234   AMDEP_FALSE='#'
3235 else
3236   AMDEP_TRUE='#'
3237   AMDEP_FALSE=
3238 fi
3239
3240
3241
3242 depcc="$CC"   am_compiler_list=
3243
3244 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3245 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3246 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3247   echo $ECHO_N "(cached) $ECHO_C" >&6
3248 else
3249   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3250   # We make a subdir and do the tests there.  Otherwise we can end up
3251   # making bogus files that we don't know about and never remove.  For
3252   # instance it was reported that on HP-UX the gcc test will end up
3253   # making a dummy file named `D' -- because `-MD' means `put the output
3254   # in D'.
3255   mkdir conftest.dir
3256   # Copy depcomp to subdir because otherwise we won't find it if we're
3257   # using a relative directory.
3258   cp "$am_depcomp" conftest.dir
3259   cd conftest.dir
3260   # We will build objects and dependencies in a subdirectory because
3261   # it helps to detect inapplicable dependency modes.  For instance
3262   # both Tru64's cc and ICC support -MD to output dependencies as a
3263   # side effect of compilation, but ICC will put the dependencies in
3264   # the current directory while Tru64 will put them in the object
3265   # directory.
3266   mkdir sub
3267
3268   am_cv_CC_dependencies_compiler_type=none
3269   if test "$am_compiler_list" = ""; then
3270      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3271   fi
3272   for depmode in $am_compiler_list; do
3273     # Setup a source with many dependencies, because some compilers
3274     # like to wrap large dependency lists on column 80 (with \), and
3275     # we should not choose a depcomp mode which is confused by this.
3276     #
3277     # We need to recreate these files for each test, as the compiler may
3278     # overwrite some of them when testing with obscure command lines.
3279     # This happens at least with the AIX C compiler.
3280     : > sub/conftest.c
3281     for i in 1 2 3 4 5 6; do
3282       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3283       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3284       # Solaris 8's {/usr,}/bin/sh.
3285       touch sub/conftst$i.h
3286     done
3287     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3288
3289     case $depmode in
3290     nosideeffect)
3291       # after this tag, mechanisms are not by side-effect, so they'll
3292       # only be used when explicitly requested
3293       if test "x$enable_dependency_tracking" = xyes; then
3294         continue
3295       else
3296         break
3297       fi
3298       ;;
3299     none) break ;;
3300     esac
3301     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3302     # mode.  It turns out that the SunPro C++ compiler does not properly
3303     # handle `-M -o', and we need to detect this.
3304     if depmode=$depmode \
3305        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3306        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3307        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3308          >/dev/null 2>conftest.err &&
3309        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3310        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3311        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3312        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3313       # icc doesn't choke on unknown options, it will just issue warnings
3314       # or remarks (even with -Werror).  So we grep stderr for any message
3315       # that says an option was ignored or not supported.
3316       # When given -MP, icc 7.0 and 7.1 complain thusly:
3317       #   icc: Command line warning: ignoring option '-M'; no argument required
3318       # The diagnosis changed in icc 8.0:
3319       #   icc: Command line remark: option '-MP' not supported
3320       if (grep 'ignoring option' conftest.err ||
3321           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3322         am_cv_CC_dependencies_compiler_type=$depmode
3323         break
3324       fi
3325     fi
3326   done
3327
3328   cd ..
3329   rm -rf conftest.dir
3330 else
3331   am_cv_CC_dependencies_compiler_type=none
3332 fi
3333
3334 fi
3335 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3336 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3337 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3338
3339  if
3340   test "x$enable_dependency_tracking" != xno \
3341   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3342   am__fastdepCC_TRUE=
3343   am__fastdepCC_FALSE='#'
3344 else
3345   am__fastdepCC_TRUE='#'
3346   am__fastdepCC_FALSE=
3347 fi
3348
3349
3350 ac_config_headers="$ac_config_headers config.h"
3351
3352 ac_config_files="$ac_config_files Makefile"
3353
3354 cat >confcache <<\_ACEOF
3355 # This file is a shell script that caches the results of configure
3356 # tests run on this system so they can be shared between configure
3357 # scripts and configure runs, see configure's option --config-cache.
3358 # It is not useful on other systems.  If it contains results you don't
3359 # want to keep, you may remove or edit it.
3360 #
3361 # config.status only pays attention to the cache file if you give it
3362 # the --recheck option to rerun configure.
3363 #
3364 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3365 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3366 # following values.
3367
3368 _ACEOF
3369
3370 # The following way of writing the cache mishandles newlines in values,
3371 # but we know of no workaround that is simple, portable, and efficient.
3372 # So, we kill variables containing newlines.
3373 # Ultrix sh set writes to stderr and can't be redirected directly,
3374 # and sets the high bit in the cache file unless we assign to the vars.
3375 (
3376   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3377     eval ac_val=\$$ac_var
3378     case $ac_val in #(
3379     *${as_nl}*)
3380       case $ac_var in #(
3381       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
3382 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
3383       esac
3384       case $ac_var in #(
3385       _ | IFS | as_nl) ;; #(
3386       *) $as_unset $ac_var ;;
3387       esac ;;
3388     esac
3389   done
3390
3391   (set) 2>&1 |
3392     case $as_nl`(ac_space=' '; set) 2>&1` in #(
3393     *${as_nl}ac_space=\ *)
3394       # `set' does not quote correctly, so add quotes (double-quote
3395       # substitution turns \\\\ into \\, and sed turns \\ into \).
3396       sed -n \
3397         "s/'/'\\\\''/g;
3398           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3399       ;; #(
3400     *)
3401       # `set' quotes correctly as required by POSIX, so do not add quotes.
3402       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3403       ;;
3404     esac |
3405     sort
3406 ) |
3407   sed '
3408      /^ac_cv_env_/b end
3409      t clear
3410      :clear
3411      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3412      t end
3413      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3414      :end' >>confcache
3415 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3416   if test -w "$cache_file"; then
3417     test "x$cache_file" != "x/dev/null" &&
3418       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
3419 echo "$as_me: updating cache $cache_file" >&6;}
3420     cat confcache >$cache_file
3421   else
3422     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
3423 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3424   fi
3425 fi
3426 rm -f confcache
3427
3428 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3429 # Let make expand exec_prefix.
3430 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3431
3432 DEFS=-DHAVE_CONFIG_H
3433
3434 ac_libobjs=
3435 ac_ltlibobjs=
3436 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3437   # 1. Remove the extension, and $U if already installed.
3438   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3439   ac_i=`echo "$ac_i" | sed "$ac_script"`
3440   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
3441   #    will be set to the directory where LIBOBJS objects are built.
3442   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3443   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
3444 done
3445 LIBOBJS=$ac_libobjs
3446
3447 LTLIBOBJS=$ac_ltlibobjs
3448
3449
3450 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
3451   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
3452 Usually this means the macro was only invoked conditionally." >&5
3453 echo "$as_me: error: conditional \"AMDEP\" was never defined.
3454 Usually this means the macro was only invoked conditionally." >&2;}
3455    { (exit 1); exit 1; }; }
3456 fi
3457 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
3458   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
3459 Usually this means the macro was only invoked conditionally." >&5
3460 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
3461 Usually this means the macro was only invoked conditionally." >&2;}
3462    { (exit 1); exit 1; }; }
3463 fi
3464
3465 : ${CONFIG_STATUS=./config.status}
3466 ac_clean_files_save=$ac_clean_files
3467 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3468 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3469 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3470 cat >$CONFIG_STATUS <<_ACEOF
3471 #! $SHELL
3472 # Generated by $as_me.
3473 # Run this file to recreate the current configuration.
3474 # Compiler output produced by configure, useful for debugging
3475 # configure, is in config.log if it exists.
3476
3477 debug=false
3478 ac_cs_recheck=false
3479 ac_cs_silent=false
3480 SHELL=\${CONFIG_SHELL-$SHELL}
3481 _ACEOF
3482
3483 cat >>$CONFIG_STATUS <<\_ACEOF
3484 ## --------------------- ##
3485 ## M4sh Initialization.  ##
3486 ## --------------------- ##
3487
3488 # Be more Bourne compatible
3489 DUALCASE=1; export DUALCASE # for MKS sh
3490 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3491   emulate sh
3492   NULLCMD=:
3493   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3494   # is contrary to our usage.  Disable this feature.
3495   alias -g '${1+"$@"}'='"$@"'
3496   setopt NO_GLOB_SUBST
3497 else
3498   case `(set -o) 2>/dev/null` in
3499   *posix*) set -o posix ;;
3500 esac
3501
3502 fi
3503
3504
3505
3506
3507 # PATH needs CR
3508 # Avoid depending upon Character Ranges.
3509 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3510 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3511 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3512 as_cr_digits='0123456789'
3513 as_cr_alnum=$as_cr_Letters$as_cr_digits
3514
3515 # The user is always right.
3516 if test "${PATH_SEPARATOR+set}" != set; then
3517   echo "#! /bin/sh" >conf$$.sh
3518   echo  "exit 0"   >>conf$$.sh
3519   chmod +x conf$$.sh
3520   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3521     PATH_SEPARATOR=';'
3522   else
3523     PATH_SEPARATOR=:
3524   fi
3525   rm -f conf$$.sh
3526 fi
3527
3528 # Support unset when possible.
3529 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3530   as_unset=unset
3531 else
3532   as_unset=false
3533 fi
3534
3535
3536 # IFS
3537 # We need space, tab and new line, in precisely that order.  Quoting is
3538 # there to prevent editors from complaining about space-tab.
3539 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
3540 # splitting by setting IFS to empty value.)
3541 as_nl='
3542 '
3543 IFS=" ""        $as_nl"
3544
3545 # Find who we are.  Look in the path if we contain no directory separator.
3546 case $0 in
3547   *[\\/]* ) as_myself=$0 ;;
3548   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3549 for as_dir in $PATH
3550 do
3551   IFS=$as_save_IFS
3552   test -z "$as_dir" && as_dir=.
3553   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3554 done
3555 IFS=$as_save_IFS
3556
3557      ;;
3558 esac
3559 # We did not find ourselves, most probably we were run as `sh COMMAND'
3560 # in which case we are not to be found in the path.
3561 if test "x$as_myself" = x; then
3562   as_myself=$0
3563 fi
3564 if test ! -f "$as_myself"; then
3565   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3566   { (exit 1); exit 1; }
3567 fi
3568
3569 # Work around bugs in pre-3.0 UWIN ksh.
3570 for as_var in ENV MAIL MAILPATH
3571 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
3572 done
3573 PS1='$ '
3574 PS2='> '
3575 PS4='+ '
3576
3577 # NLS nuisances.
3578 for as_var in \
3579   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3580   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3581   LC_TELEPHONE LC_TIME
3582 do
3583   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3584     eval $as_var=C; export $as_var
3585   else
3586     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
3587   fi
3588 done
3589
3590 # Required to use basename.
3591 if expr a : '\(a\)' >/dev/null 2>&1 &&
3592    test "X`expr 00001 : '.*\(...\)'`" = X001; then
3593   as_expr=expr
3594 else
3595   as_expr=false
3596 fi
3597
3598 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3599   as_basename=basename
3600 else
3601   as_basename=false
3602 fi
3603
3604
3605 # Name of the executable.
3606 as_me=`$as_basename -- "$0" ||
3607 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3608          X"$0" : 'X\(//\)$' \| \
3609          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3610 echo X/"$0" |
3611     sed '/^.*\/\([^/][^/]*\)\/*$/{
3612             s//\1/
3613             q
3614           }
3615           /^X\/\(\/\/\)$/{
3616             s//\1/
3617             q
3618           }
3619           /^X\/\(\/\).*/{
3620             s//\1/
3621             q
3622           }
3623           s/.*/./; q'`
3624
3625 # CDPATH.
3626 $as_unset CDPATH
3627
3628
3629
3630   as_lineno_1=$LINENO
3631   as_lineno_2=$LINENO
3632   test "x$as_lineno_1" != "x$as_lineno_2" &&
3633   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
3634
3635   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3636   # uniformly replaced by the line number.  The first 'sed' inserts a
3637   # line-number line after each line using $LINENO; the second 'sed'
3638   # does the real work.  The second script uses 'N' to pair each
3639   # line-number line with the line containing $LINENO, and appends
3640   # trailing '-' during substitution so that $LINENO is not a special
3641   # case at line end.
3642   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3643   # scripts with optimization help from Paolo Bonzini.  Blame Lee
3644   # E. McMahon (1931-1989) for sed's syntax.  :-)
3645   sed -n '
3646     p
3647     /[$]LINENO/=
3648   ' <$as_myself |
3649     sed '
3650       s/[$]LINENO.*/&-/
3651       t lineno
3652       b
3653       :lineno
3654       N
3655       :loop
3656       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
3657       t loop
3658       s/-\n.*//
3659     ' >$as_me.lineno &&
3660   chmod +x "$as_me.lineno" ||
3661     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
3662    { (exit 1); exit 1; }; }
3663
3664   # Don't try to exec as it changes $[0], causing all sort of problems
3665   # (the dirname of $[0] is not the place where we might find the
3666   # original and so on.  Autoconf is especially sensitive to this).
3667   . "./$as_me.lineno"
3668   # Exit status is that of the last command.
3669   exit
3670 }
3671
3672
3673 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3674   as_dirname=dirname
3675 else
3676   as_dirname=false
3677 fi
3678
3679 ECHO_C= ECHO_N= ECHO_T=
3680 case `echo -n x` in
3681 -n*)
3682   case `echo 'x\c'` in
3683   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
3684   *)   ECHO_C='\c';;
3685   esac;;
3686 *)
3687   ECHO_N='-n';;
3688 esac
3689
3690 if expr a : '\(a\)' >/dev/null 2>&1 &&
3691    test "X`expr 00001 : '.*\(...\)'`" = X001; then
3692   as_expr=expr
3693 else
3694   as_expr=false
3695 fi
3696
3697 rm -f conf$$ conf$$.exe conf$$.file
3698 if test -d conf$$.dir; then
3699   rm -f conf$$.dir/conf$$.file
3700 else
3701   rm -f conf$$.dir
3702   mkdir conf$$.dir
3703 fi
3704 echo >conf$$.file
3705 if ln -s conf$$.file conf$$ 2>/dev/null; then
3706   as_ln_s='ln -s'
3707   # ... but there are two gotchas:
3708   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3709   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3710   # In both cases, we have to default to `cp -p'.
3711   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3712     as_ln_s='cp -p'
3713 elif ln conf$$.file conf$$ 2>/dev/null; then
3714   as_ln_s=ln
3715 else
3716   as_ln_s='cp -p'
3717 fi
3718 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3719 rmdir conf$$.dir 2>/dev/null
3720
3721 if mkdir -p . 2>/dev/null; then
3722   as_mkdir_p=:
3723 else
3724   test -d ./-p && rmdir ./-p
3725   as_mkdir_p=false
3726 fi
3727
3728 if test -x / >/dev/null 2>&1; then
3729   as_test_x='test -x'
3730 else
3731   if ls -dL / >/dev/null 2>&1; then
3732     as_ls_L_option=L
3733   else
3734     as_ls_L_option=
3735   fi
3736   as_test_x='
3737     eval sh -c '\''
3738       if test -d "$1"; then
3739         test -d "$1/.";
3740       else
3741         case $1 in
3742         -*)set "./$1";;
3743         esac;
3744         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
3745         ???[sx]*):;;*)false;;esac;fi
3746     '\'' sh
3747   '
3748 fi
3749 as_executable_p=$as_test_x
3750
3751 # Sed expression to map a string onto a valid CPP name.
3752 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3753
3754 # Sed expression to map a string onto a valid variable name.
3755 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3756
3757
3758 exec 6>&1
3759
3760 # Save the log message, to keep $[0] and so on meaningful, and to
3761 # report actual input values of CONFIG_FILES etc. instead of their
3762 # values after options handling.
3763 ac_log="
3764 This file was extended by xboard $as_me 4.3, which was
3765 generated by GNU Autoconf 2.61.  Invocation command line was
3766
3767   CONFIG_FILES    = $CONFIG_FILES
3768   CONFIG_HEADERS  = $CONFIG_HEADERS
3769   CONFIG_LINKS    = $CONFIG_LINKS
3770   CONFIG_COMMANDS = $CONFIG_COMMANDS
3771   $ $0 $@
3772
3773 on `(hostname || uname -n) 2>/dev/null | sed 1q`
3774 "
3775
3776 _ACEOF
3777
3778 cat >>$CONFIG_STATUS <<_ACEOF
3779 # Files that config.status was made for.
3780 config_files="$ac_config_files"
3781 config_headers="$ac_config_headers"
3782 config_commands="$ac_config_commands"
3783
3784 _ACEOF
3785
3786 cat >>$CONFIG_STATUS <<\_ACEOF
3787 ac_cs_usage="\
3788 \`$as_me' instantiates files from templates according to the
3789 current configuration.
3790
3791 Usage: $0 [OPTIONS] [FILE]...
3792
3793   -h, --help       print this help, then exit
3794   -V, --version    print version number and configuration settings, then exit
3795   -q, --quiet      do not print progress messages
3796   -d, --debug      don't remove temporary files
3797       --recheck    update $as_me by reconfiguring in the same conditions
3798   --file=FILE[:TEMPLATE]
3799                    instantiate the configuration file FILE
3800   --header=FILE[:TEMPLATE]
3801                    instantiate the configuration header FILE
3802
3803 Configuration files:
3804 $config_files
3805
3806 Configuration headers:
3807 $config_headers
3808
3809 Configuration commands:
3810 $config_commands
3811
3812 Report bugs to <bug-autoconf@gnu.org>."
3813
3814 _ACEOF
3815 cat >>$CONFIG_STATUS <<_ACEOF
3816 ac_cs_version="\\
3817 xboard config.status 4.3
3818 configured by $0, generated by GNU Autoconf 2.61,
3819   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
3820
3821 Copyright (C) 2006 Free Software Foundation, Inc.
3822 This config.status script is free software; the Free Software Foundation
3823 gives unlimited permission to copy, distribute and modify it."
3824
3825 ac_pwd='$ac_pwd'
3826 srcdir='$srcdir'
3827 INSTALL='$INSTALL'
3828 MKDIR_P='$MKDIR_P'
3829 _ACEOF
3830
3831 cat >>$CONFIG_STATUS <<\_ACEOF
3832 # If no file are specified by the user, then we need to provide default
3833 # value.  By we need to know if files were specified by the user.
3834 ac_need_defaults=:
3835 while test $# != 0
3836 do
3837   case $1 in
3838   --*=*)
3839     ac_option=`expr "X$1" : 'X\([^=]*\)='`
3840     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
3841     ac_shift=:
3842     ;;
3843   *)
3844     ac_option=$1
3845     ac_optarg=$2
3846     ac_shift=shift
3847     ;;
3848   esac
3849
3850   case $ac_option in
3851   # Handling of the options.
3852   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3853     ac_cs_recheck=: ;;
3854   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
3855     echo "$ac_cs_version"; exit ;;
3856   --debug | --debu | --deb | --de | --d | -d )
3857     debug=: ;;
3858   --file | --fil | --fi | --f )
3859     $ac_shift
3860     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
3861     ac_need_defaults=false;;
3862   --header | --heade | --head | --hea )
3863     $ac_shift
3864     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
3865     ac_need_defaults=false;;
3866   --he | --h)
3867     # Conflict between --help and --header
3868     { echo "$as_me: error: ambiguous option: $1
3869 Try \`$0 --help' for more information." >&2
3870    { (exit 1); exit 1; }; };;
3871   --help | --hel | -h )
3872     echo "$ac_cs_usage"; exit ;;
3873   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3874   | -silent | --silent | --silen | --sile | --sil | --si | --s)
3875     ac_cs_silent=: ;;
3876
3877   # This is an error.
3878   -*) { echo "$as_me: error: unrecognized option: $1
3879 Try \`$0 --help' for more information." >&2
3880    { (exit 1); exit 1; }; } ;;
3881
3882   *) ac_config_targets="$ac_config_targets $1"
3883      ac_need_defaults=false ;;
3884
3885   esac
3886   shift
3887 done
3888
3889 ac_configure_extra_args=
3890
3891 if $ac_cs_silent; then
3892   exec 6>/dev/null
3893   ac_configure_extra_args="$ac_configure_extra_args --silent"
3894 fi
3895
3896 _ACEOF
3897 cat >>$CONFIG_STATUS <<_ACEOF
3898 if \$ac_cs_recheck; then
3899   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
3900   CONFIG_SHELL=$SHELL
3901   export CONFIG_SHELL
3902   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3903 fi
3904
3905 _ACEOF
3906 cat >>$CONFIG_STATUS <<\_ACEOF
3907 exec 5>>config.log
3908 {
3909   echo
3910   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3911 ## Running $as_me. ##
3912 _ASBOX
3913   echo "$ac_log"
3914 } >&5
3915
3916 _ACEOF
3917 cat >>$CONFIG_STATUS <<_ACEOF
3918 #
3919 # INIT-COMMANDS
3920 #
3921 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
3922
3923 _ACEOF
3924
3925 cat >>$CONFIG_STATUS <<\_ACEOF
3926
3927 # Handling of arguments.
3928 for ac_config_target in $ac_config_targets
3929 do
3930   case $ac_config_target in
3931     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
3932     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
3933     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3934
3935   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3936 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3937    { (exit 1); exit 1; }; };;
3938   esac
3939 done
3940
3941
3942 # If the user did not use the arguments to specify the items to instantiate,
3943 # then the envvar interface is used.  Set only those that are not.
3944 # We use the long form for the default assignment because of an extremely
3945 # bizarre bug on SunOS 4.1.3.
3946 if $ac_need_defaults; then
3947   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3948   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
3949   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
3950 fi
3951
3952 # Have a temporary directory for convenience.  Make it in the build tree
3953 # simply because there is no reason against having it here, and in addition,
3954 # creating and moving files from /tmp can sometimes cause problems.
3955 # Hook for its removal unless debugging.
3956 # Note that there is a small window in which the directory will not be cleaned:
3957 # after its creation but before its name has been assigned to `$tmp'.
3958 $debug ||
3959 {
3960   tmp=
3961   trap 'exit_status=$?
3962   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
3963 ' 0
3964   trap '{ (exit 1); exit 1; }' 1 2 13 15
3965 }
3966 # Create a (secure) tmp directory for tmp files.
3967
3968 {
3969   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
3970   test -n "$tmp" && test -d "$tmp"
3971 }  ||
3972 {
3973   tmp=./conf$$-$RANDOM
3974   (umask 077 && mkdir "$tmp")
3975 } ||
3976 {
3977    echo "$me: cannot create a temporary directory in ." >&2
3978    { (exit 1); exit 1; }
3979 }
3980
3981 #
3982 # Set up the sed scripts for CONFIG_FILES section.
3983 #
3984
3985 # No need to generate the scripts if there are no CONFIG_FILES.
3986 # This happens for instance when ./config.status config.h
3987 if test -n "$CONFIG_FILES"; then
3988
3989 _ACEOF
3990
3991
3992
3993 ac_delim='%!_!# '
3994 for ac_last_try in false false false false false :; do
3995   cat >conf$$subs.sed <<_ACEOF
3996 SHELL!$SHELL$ac_delim
3997 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
3998 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
3999 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
4000 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
4001 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
4002 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
4003 exec_prefix!$exec_prefix$ac_delim
4004 prefix!$prefix$ac_delim
4005 program_transform_name!$program_transform_name$ac_delim
4006 bindir!$bindir$ac_delim
4007 sbindir!$sbindir$ac_delim
4008 libexecdir!$libexecdir$ac_delim
4009 datarootdir!$datarootdir$ac_delim
4010 datadir!$datadir$ac_delim
4011 sysconfdir!$sysconfdir$ac_delim
4012 sharedstatedir!$sharedstatedir$ac_delim
4013 localstatedir!$localstatedir$ac_delim
4014 includedir!$includedir$ac_delim
4015 oldincludedir!$oldincludedir$ac_delim
4016 docdir!$docdir$ac_delim
4017 infodir!$infodir$ac_delim
4018 htmldir!$htmldir$ac_delim
4019 dvidir!$dvidir$ac_delim
4020 pdfdir!$pdfdir$ac_delim
4021 psdir!$psdir$ac_delim
4022 libdir!$libdir$ac_delim
4023 localedir!$localedir$ac_delim
4024 mandir!$mandir$ac_delim
4025 DEFS!$DEFS$ac_delim
4026 ECHO_C!$ECHO_C$ac_delim
4027 ECHO_N!$ECHO_N$ac_delim
4028 ECHO_T!$ECHO_T$ac_delim
4029 LIBS!$LIBS$ac_delim
4030 build_alias!$build_alias$ac_delim
4031 host_alias!$host_alias$ac_delim
4032 target_alias!$target_alias$ac_delim
4033 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
4034 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
4035 INSTALL_DATA!$INSTALL_DATA$ac_delim
4036 am__isrc!$am__isrc$ac_delim
4037 CYGPATH_W!$CYGPATH_W$ac_delim
4038 PACKAGE!$PACKAGE$ac_delim
4039 VERSION!$VERSION$ac_delim
4040 ACLOCAL!$ACLOCAL$ac_delim
4041 AUTOCONF!$AUTOCONF$ac_delim
4042 AUTOMAKE!$AUTOMAKE$ac_delim
4043 AUTOHEADER!$AUTOHEADER$ac_delim
4044 MAKEINFO!$MAKEINFO$ac_delim
4045 install_sh!$install_sh$ac_delim
4046 STRIP!$STRIP$ac_delim
4047 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
4048 mkdir_p!$mkdir_p$ac_delim
4049 AWK!$AWK$ac_delim
4050 SET_MAKE!$SET_MAKE$ac_delim
4051 am__leading_dot!$am__leading_dot$ac_delim
4052 AMTAR!$AMTAR$ac_delim
4053 am__tar!$am__tar$ac_delim
4054 am__untar!$am__untar$ac_delim
4055 CC!$CC$ac_delim
4056 CFLAGS!$CFLAGS$ac_delim
4057 LDFLAGS!$LDFLAGS$ac_delim
4058 CPPFLAGS!$CPPFLAGS$ac_delim
4059 ac_ct_CC!$ac_ct_CC$ac_delim
4060 EXEEXT!$EXEEXT$ac_delim
4061 OBJEXT!$OBJEXT$ac_delim
4062 DEPDIR!$DEPDIR$ac_delim
4063 am__include!$am__include$ac_delim
4064 am__quote!$am__quote$ac_delim
4065 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
4066 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
4067 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
4068 CCDEPMODE!$CCDEPMODE$ac_delim
4069 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
4070 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
4071 LIBOBJS!$LIBOBJS$ac_delim
4072 LTLIBOBJS!$LTLIBOBJS$ac_delim
4073 _ACEOF
4074
4075   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 77; then
4076     break
4077   elif $ac_last_try; then
4078     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
4079 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
4080    { (exit 1); exit 1; }; }
4081   else
4082     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4083   fi
4084 done
4085
4086 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
4087 if test -n "$ac_eof"; then
4088   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
4089   ac_eof=`expr $ac_eof + 1`
4090 fi
4091
4092 cat >>$CONFIG_STATUS <<_ACEOF
4093 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
4094 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
4095 _ACEOF
4096 sed '
4097 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
4098 s/^/s,@/; s/!/@,|#_!!_#|/
4099 :n
4100 t n
4101 s/'"$ac_delim"'$/,g/; t
4102 s/$/\\/; p
4103 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
4104 ' >>$CONFIG_STATUS <conf$$subs.sed
4105 rm -f conf$$subs.sed
4106 cat >>$CONFIG_STATUS <<_ACEOF
4107 :end
4108 s/|#_!!_#|//g
4109 CEOF$ac_eof
4110 _ACEOF
4111
4112
4113 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4114 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4115 # trailing colons and then remove the whole line if VPATH becomes empty
4116 # (actually we leave an empty line to preserve line numbers).
4117 if test "x$srcdir" = x.; then
4118   ac_vpsub='/^[  ]*VPATH[        ]*=/{
4119 s/:*\$(srcdir):*/:/
4120 s/:*\${srcdir}:*/:/
4121 s/:*@srcdir@:*/:/
4122 s/^\([^=]*=[     ]*\):*/\1/
4123 s/:*$//
4124 s/^[^=]*=[       ]*$//
4125 }'
4126 fi
4127
4128 cat >>$CONFIG_STATUS <<\_ACEOF
4129 fi # test -n "$CONFIG_FILES"
4130
4131
4132 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
4133 do
4134   case $ac_tag in
4135   :[FHLC]) ac_mode=$ac_tag; continue;;
4136   esac
4137   case $ac_mode$ac_tag in
4138   :[FHL]*:*);;
4139   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
4140 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
4141    { (exit 1); exit 1; }; };;
4142   :[FH]-) ac_tag=-:-;;
4143   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4144   esac
4145   ac_save_IFS=$IFS
4146   IFS=:
4147   set x $ac_tag
4148   IFS=$ac_save_IFS
4149   shift
4150   ac_file=$1
4151   shift
4152
4153   case $ac_mode in
4154   :L) ac_source=$1;;
4155   :[FH])
4156     ac_file_inputs=
4157     for ac_f
4158     do
4159       case $ac_f in
4160       -) ac_f="$tmp/stdin";;
4161       *) # Look for the file first in the build tree, then in the source tree
4162          # (if the path is not absolute).  The absolute path cannot be DOS-style,
4163          # because $ac_f cannot contain `:'.
4164          test -f "$ac_f" ||
4165            case $ac_f in
4166            [\\/$]*) false;;
4167            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4168            esac ||
4169            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
4170 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
4171    { (exit 1); exit 1; }; };;
4172       esac
4173       ac_file_inputs="$ac_file_inputs $ac_f"
4174     done
4175
4176     # Let's still pretend it is `configure' which instantiates (i.e., don't
4177     # use $as_me), people would be surprised to read:
4178     #    /* config.h.  Generated by config.status.  */
4179     configure_input="Generated from "`IFS=:
4180           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
4181     if test x"$ac_file" != x-; then
4182       configure_input="$ac_file.  $configure_input"
4183       { echo "$as_me:$LINENO: creating $ac_file" >&5
4184 echo "$as_me: creating $ac_file" >&6;}
4185     fi
4186
4187     case $ac_tag in
4188     *:-:* | *:-) cat >"$tmp/stdin";;
4189     esac
4190     ;;
4191   esac
4192
4193   ac_dir=`$as_dirname -- "$ac_file" ||
4194 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4195          X"$ac_file" : 'X\(//\)[^/]' \| \
4196          X"$ac_file" : 'X\(//\)$' \| \
4197          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4198 echo X"$ac_file" |
4199     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4200             s//\1/
4201             q
4202           }
4203           /^X\(\/\/\)[^/].*/{
4204             s//\1/
4205             q
4206           }
4207           /^X\(\/\/\)$/{
4208             s//\1/
4209             q
4210           }
4211           /^X\(\/\).*/{
4212             s//\1/
4213             q
4214           }
4215           s/.*/./; q'`
4216   { as_dir="$ac_dir"
4217   case $as_dir in #(
4218   -*) as_dir=./$as_dir;;
4219   esac
4220   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
4221     as_dirs=
4222     while :; do
4223       case $as_dir in #(
4224       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
4225       *) as_qdir=$as_dir;;
4226       esac
4227       as_dirs="'$as_qdir' $as_dirs"
4228       as_dir=`$as_dirname -- "$as_dir" ||
4229 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4230          X"$as_dir" : 'X\(//\)[^/]' \| \
4231          X"$as_dir" : 'X\(//\)$' \| \
4232          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4233 echo X"$as_dir" |
4234     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4235             s//\1/
4236             q
4237           }
4238           /^X\(\/\/\)[^/].*/{
4239             s//\1/
4240             q
4241           }
4242           /^X\(\/\/\)$/{
4243             s//\1/
4244             q
4245           }
4246           /^X\(\/\).*/{
4247             s//\1/
4248             q
4249           }
4250           s/.*/./; q'`
4251       test -d "$as_dir" && break
4252     done
4253     test -z "$as_dirs" || eval "mkdir $as_dirs"
4254   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
4255 echo "$as_me: error: cannot create directory $as_dir" >&2;}
4256    { (exit 1); exit 1; }; }; }
4257   ac_builddir=.
4258
4259 case "$ac_dir" in
4260 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4261 *)
4262   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4263   # A ".." for each directory in $ac_dir_suffix.
4264   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
4265   case $ac_top_builddir_sub in
4266   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4267   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4268   esac ;;
4269 esac
4270 ac_abs_top_builddir=$ac_pwd
4271 ac_abs_builddir=$ac_pwd$ac_dir_suffix
4272 # for backward compatibility:
4273 ac_top_builddir=$ac_top_build_prefix
4274
4275 case $srcdir in
4276   .)  # We are building in place.
4277     ac_srcdir=.
4278     ac_top_srcdir=$ac_top_builddir_sub
4279     ac_abs_top_srcdir=$ac_pwd ;;
4280   [\\/]* | ?:[\\/]* )  # Absolute name.
4281     ac_srcdir=$srcdir$ac_dir_suffix;
4282     ac_top_srcdir=$srcdir
4283     ac_abs_top_srcdir=$srcdir ;;
4284   *) # Relative name.
4285     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4286     ac_top_srcdir=$ac_top_build_prefix$srcdir
4287     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4288 esac
4289 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4290
4291
4292   case $ac_mode in
4293   :F)
4294   #
4295   # CONFIG_FILE
4296   #
4297
4298   case $INSTALL in
4299   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4300   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
4301   esac
4302   ac_MKDIR_P=$MKDIR_P
4303   case $MKDIR_P in
4304   [\\/$]* | ?:[\\/]* ) ;;
4305   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
4306   esac
4307 _ACEOF
4308
4309 cat >>$CONFIG_STATUS <<\_ACEOF
4310 # If the template does not know about datarootdir, expand it.
4311 # FIXME: This hack should be removed a few years after 2.60.
4312 ac_datarootdir_hack=; ac_datarootdir_seen=
4313
4314 case `sed -n '/datarootdir/ {
4315   p
4316   q
4317 }
4318 /@datadir@/p
4319 /@docdir@/p
4320 /@infodir@/p
4321 /@localedir@/p
4322 /@mandir@/p
4323 ' $ac_file_inputs` in
4324 *datarootdir*) ac_datarootdir_seen=yes;;
4325 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4326   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4327 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4328 _ACEOF
4329 cat >>$CONFIG_STATUS <<_ACEOF
4330   ac_datarootdir_hack='
4331   s&@datadir@&$datadir&g
4332   s&@docdir@&$docdir&g
4333   s&@infodir@&$infodir&g
4334   s&@localedir@&$localedir&g
4335   s&@mandir@&$mandir&g
4336     s&\\\${datarootdir}&$datarootdir&g' ;;
4337 esac
4338 _ACEOF
4339
4340 # Neutralize VPATH when `$srcdir' = `.'.
4341 # Shell code in configure.ac might set extrasub.
4342 # FIXME: do we really want to maintain this feature?
4343 cat >>$CONFIG_STATUS <<_ACEOF
4344   sed "$ac_vpsub
4345 $extrasub
4346 _ACEOF
4347 cat >>$CONFIG_STATUS <<\_ACEOF
4348 :t
4349 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4350 s&@configure_input@&$configure_input&;t t
4351 s&@top_builddir@&$ac_top_builddir_sub&;t t
4352 s&@srcdir@&$ac_srcdir&;t t
4353 s&@abs_srcdir@&$ac_abs_srcdir&;t t
4354 s&@top_srcdir@&$ac_top_srcdir&;t t
4355 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4356 s&@builddir@&$ac_builddir&;t t
4357 s&@abs_builddir@&$ac_abs_builddir&;t t
4358 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4359 s&@INSTALL@&$ac_INSTALL&;t t
4360 s&@MKDIR_P@&$ac_MKDIR_P&;t t
4361 $ac_datarootdir_hack
4362 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
4363
4364 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4365   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
4366   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
4367   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4368 which seems to be undefined.  Please make sure it is defined." >&5
4369 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4370 which seems to be undefined.  Please make sure it is defined." >&2;}
4371
4372   rm -f "$tmp/stdin"
4373   case $ac_file in
4374   -) cat "$tmp/out"; rm -f "$tmp/out";;
4375   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
4376   esac
4377  ;;
4378   :H)
4379   #
4380   # CONFIG_HEADER
4381   #
4382 _ACEOF
4383
4384 # Transform confdefs.h into a sed script `conftest.defines', that
4385 # substitutes the proper values into config.h.in to produce config.h.
4386 rm -f conftest.defines conftest.tail
4387 # First, append a space to every undef/define line, to ease matching.
4388 echo 's/$/ /' >conftest.defines
4389 # Then, protect against being on the right side of a sed subst, or in
4390 # an unquoted here document, in config.status.  If some macros were
4391 # called several times there might be several #defines for the same
4392 # symbol, which is useless.  But do not sort them, since the last
4393 # AC_DEFINE must be honored.
4394 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
4395 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
4396 # NAME is the cpp macro being defined, VALUE is the value it is being given.
4397 # PARAMS is the parameter list in the macro definition--in most cases, it's
4398 # just an empty string.
4399 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
4400 ac_dB='\\)[      (].*,\\1define\\2'
4401 ac_dC=' '
4402 ac_dD=' ,'
4403
4404 uniq confdefs.h |
4405   sed -n '
4406         t rset
4407         :rset
4408         s/^[     ]*#[    ]*define[       ][      ]*//
4409         t ok
4410         d
4411         :ok
4412         s/[\\&,]/\\&/g
4413         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
4414         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
4415   ' >>conftest.defines
4416
4417 # Remove the space that was appended to ease matching.
4418 # Then replace #undef with comments.  This is necessary, for
4419 # example, in the case of _POSIX_SOURCE, which is predefined and required
4420 # on some systems where configure will not decide to define it.
4421 # (The regexp can be short, since the line contains either #define or #undef.)
4422 echo 's/ $//
4423 s,^[     #]*u.*,/* & */,' >>conftest.defines
4424
4425 # Break up conftest.defines:
4426 ac_max_sed_lines=50
4427
4428 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
4429 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
4430 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
4431 # et cetera.
4432 ac_in='$ac_file_inputs'
4433 ac_out='"$tmp/out1"'
4434 ac_nxt='"$tmp/out2"'
4435
4436 while :
4437 do
4438   # Write a here document:
4439     cat >>$CONFIG_STATUS <<_ACEOF
4440     # First, check the format of the line:
4441     cat >"\$tmp/defines.sed" <<\\CEOF
4442 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
4443 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
4444 b
4445 :def
4446 _ACEOF
4447   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
4448   echo 'CEOF
4449     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
4450   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
4451   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
4452   grep . conftest.tail >/dev/null || break
4453   rm -f conftest.defines
4454   mv conftest.tail conftest.defines
4455 done
4456 rm -f conftest.defines conftest.tail
4457
4458 echo "ac_result=$ac_in" >>$CONFIG_STATUS
4459 cat >>$CONFIG_STATUS <<\_ACEOF
4460   if test x"$ac_file" != x-; then
4461     echo "/* $configure_input  */" >"$tmp/config.h"
4462     cat "$ac_result" >>"$tmp/config.h"
4463     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
4464       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
4465 echo "$as_me: $ac_file is unchanged" >&6;}
4466     else
4467       rm -f $ac_file
4468       mv "$tmp/config.h" $ac_file
4469     fi
4470   else
4471     echo "/* $configure_input  */"
4472     cat "$ac_result"
4473   fi
4474   rm -f "$tmp/out12"
4475 # Compute $ac_file's index in $config_headers.
4476 _am_arg=$ac_file
4477 _am_stamp_count=1
4478 for _am_header in $config_headers :; do
4479   case $_am_header in
4480     $_am_arg | $_am_arg:* )
4481       break ;;
4482     * )
4483       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
4484   esac
4485 done
4486 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
4487 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4488          X"$_am_arg" : 'X\(//\)[^/]' \| \
4489          X"$_am_arg" : 'X\(//\)$' \| \
4490          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
4491 echo X"$_am_arg" |
4492     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4493             s//\1/
4494             q
4495           }
4496           /^X\(\/\/\)[^/].*/{
4497             s//\1/
4498             q
4499           }
4500           /^X\(\/\/\)$/{
4501             s//\1/
4502             q
4503           }
4504           /^X\(\/\).*/{
4505             s//\1/
4506             q
4507           }
4508           s/.*/./; q'`/stamp-h$_am_stamp_count
4509  ;;
4510
4511   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
4512 echo "$as_me: executing $ac_file commands" >&6;}
4513  ;;
4514   esac
4515
4516
4517   case $ac_file$ac_mode in
4518     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
4519   # Strip MF so we end up with the name of the file.
4520   mf=`echo "$mf" | sed -e 's/:.*$//'`
4521   # Check whether this is an Automake generated Makefile or not.
4522   # We used to match only the files named `Makefile.in', but
4523   # some people rename them; so instead we look at the file content.
4524   # Grep'ing the first line is not enough: some people post-process
4525   # each Makefile.in and add a new line on top of each file to say so.
4526   # Grep'ing the whole file is not good either: AIX grep has a line
4527   # limit of 2048, but all sed's we know have understand at least 4000.
4528   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
4529     dirpart=`$as_dirname -- "$mf" ||
4530 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4531          X"$mf" : 'X\(//\)[^/]' \| \
4532          X"$mf" : 'X\(//\)$' \| \
4533          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
4534 echo X"$mf" |
4535     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4536             s//\1/
4537             q
4538           }
4539           /^X\(\/\/\)[^/].*/{
4540             s//\1/
4541             q
4542           }
4543           /^X\(\/\/\)$/{
4544             s//\1/
4545             q
4546           }
4547           /^X\(\/\).*/{
4548             s//\1/
4549             q
4550           }
4551           s/.*/./; q'`
4552   else
4553     continue
4554   fi
4555   # Extract the definition of DEPDIR, am__include, and am__quote
4556   # from the Makefile without running `make'.
4557   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
4558   test -z "$DEPDIR" && continue
4559   am__include=`sed -n 's/^am__include = //p' < "$mf"`
4560   test -z "am__include" && continue
4561   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
4562   # When using ansi2knr, U may be empty or an underscore; expand it
4563   U=`sed -n 's/^U = //p' < "$mf"`
4564   # Find all dependency output files, they are included files with
4565   # $(DEPDIR) in their names.  We invoke sed twice because it is the
4566   # simplest approach to changing $(DEPDIR) to its actual value in the
4567   # expansion.
4568   for file in `sed -n "
4569     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
4570        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
4571     # Make sure the directory exists.
4572     test -f "$dirpart/$file" && continue
4573     fdir=`$as_dirname -- "$file" ||
4574 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4575          X"$file" : 'X\(//\)[^/]' \| \
4576          X"$file" : 'X\(//\)$' \| \
4577          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
4578 echo X"$file" |
4579     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4580             s//\1/
4581             q
4582           }
4583           /^X\(\/\/\)[^/].*/{
4584             s//\1/
4585             q
4586           }
4587           /^X\(\/\/\)$/{
4588             s//\1/
4589             q
4590           }
4591           /^X\(\/\).*/{
4592             s//\1/
4593             q
4594           }
4595           s/.*/./; q'`
4596     { as_dir=$dirpart/$fdir
4597   case $as_dir in #(
4598   -*) as_dir=./$as_dir;;
4599   esac
4600   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
4601     as_dirs=
4602     while :; do
4603       case $as_dir in #(
4604       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
4605       *) as_qdir=$as_dir;;
4606       esac
4607       as_dirs="'$as_qdir' $as_dirs"
4608       as_dir=`$as_dirname -- "$as_dir" ||
4609 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4610          X"$as_dir" : 'X\(//\)[^/]' \| \
4611          X"$as_dir" : 'X\(//\)$' \| \
4612          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4613 echo X"$as_dir" |
4614     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4615             s//\1/
4616             q
4617           }
4618           /^X\(\/\/\)[^/].*/{
4619             s//\1/
4620             q
4621           }
4622           /^X\(\/\/\)$/{
4623             s//\1/
4624             q
4625           }
4626           /^X\(\/\).*/{
4627             s//\1/
4628             q
4629           }
4630           s/.*/./; q'`
4631       test -d "$as_dir" && break
4632     done
4633     test -z "$as_dirs" || eval "mkdir $as_dirs"
4634   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
4635 echo "$as_me: error: cannot create directory $as_dir" >&2;}
4636    { (exit 1); exit 1; }; }; }
4637     # echo "creating $dirpart/$file"
4638     echo '# dummy' > "$dirpart/$file"
4639   done
4640 done
4641  ;;
4642
4643   esac
4644 done # for ac_tag
4645
4646
4647 { (exit 0); exit 0; }
4648 _ACEOF
4649 chmod +x $CONFIG_STATUS
4650 ac_clean_files=$ac_clean_files_save
4651
4652
4653 # configure is writing to config.log, and then calls config.status.
4654 # config.status does its own redirection, appending to config.log.
4655 # Unfortunately, on DOS this fails, as config.log is still kept open
4656 # by configure, so config.status won't be able to write to it; its
4657 # output is simply discarded.  So we exec the FD to /dev/null,
4658 # effectively closing config.log, so it can be properly (re)opened and
4659 # appended to by config.status.  When coming back to configure, we
4660 # need to make the FD available again.
4661 if test "$no_create" != yes; then
4662   ac_cs_success=:
4663   ac_config_status_args=
4664   test "$silent" = yes &&
4665     ac_config_status_args="$ac_config_status_args --quiet"
4666   exec 5>/dev/null
4667   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4668   exec 5>>config.log
4669   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4670   # would make configure fail if this is the last instruction.
4671   $ac_cs_success || { (exit 1); exit 1; }
4672 fi
4673
4674 PRODUCT=xboard
4675 #VERSION=4.3  # version is already defined
4676 PATCHLEVEL=16
4677
4678
4679 if test -z "$CFLAGS" ; then
4680   CFLAGS=" "
4681 fi
4682 ac_ext=c
4683 ac_cpp='$CPP $CPPFLAGS'
4684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4687 if test -n "$ac_tool_prefix"; then
4688   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4689 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4690 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4692 if test "${ac_cv_prog_CC+set}" = set; then
4693   echo $ECHO_N "(cached) $ECHO_C" >&6
4694 else
4695   if test -n "$CC"; then
4696   ac_cv_prog_CC="$CC" # Let the user override the test.
4697 else
4698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699 for as_dir in $PATH
4700 do
4701   IFS=$as_save_IFS
4702   test -z "$as_dir" && as_dir=.
4703   for ac_exec_ext in '' $ac_executable_extensions; do
4704   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4705     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4706     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4707     break 2
4708   fi
4709 done
4710 done
4711 IFS=$as_save_IFS
4712
4713 fi
4714 fi
4715 CC=$ac_cv_prog_CC
4716 if test -n "$CC"; then
4717   { echo "$as_me:$LINENO: result: $CC" >&5
4718 echo "${ECHO_T}$CC" >&6; }
4719 else
4720   { echo "$as_me:$LINENO: result: no" >&5
4721 echo "${ECHO_T}no" >&6; }
4722 fi
4723
4724
4725 fi
4726 if test -z "$ac_cv_prog_CC"; then
4727   ac_ct_CC=$CC
4728   # Extract the first word of "gcc", so it can be a program name with args.
4729 set dummy gcc; ac_word=$2
4730 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4732 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4733   echo $ECHO_N "(cached) $ECHO_C" >&6
4734 else
4735   if test -n "$ac_ct_CC"; then
4736   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4737 else
4738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4739 for as_dir in $PATH
4740 do
4741   IFS=$as_save_IFS
4742   test -z "$as_dir" && as_dir=.
4743   for ac_exec_ext in '' $ac_executable_extensions; do
4744   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4745     ac_cv_prog_ac_ct_CC="gcc"
4746     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4747     break 2
4748   fi
4749 done
4750 done
4751 IFS=$as_save_IFS
4752
4753 fi
4754 fi
4755 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4756 if test -n "$ac_ct_CC"; then
4757   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4758 echo "${ECHO_T}$ac_ct_CC" >&6; }
4759 else
4760   { echo "$as_me:$LINENO: result: no" >&5
4761 echo "${ECHO_T}no" >&6; }
4762 fi
4763
4764   if test "x$ac_ct_CC" = x; then
4765     CC=""
4766   else
4767     case $cross_compiling:$ac_tool_warned in
4768 yes:)
4769 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4770 whose name does not start with the host triplet.  If you think this
4771 configuration is useful to you, please write to autoconf@gnu.org." >&5
4772 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4773 whose name does not start with the host triplet.  If you think this
4774 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4775 ac_tool_warned=yes ;;
4776 esac
4777     CC=$ac_ct_CC
4778   fi
4779 else
4780   CC="$ac_cv_prog_CC"
4781 fi
4782
4783 if test -z "$CC"; then
4784           if test -n "$ac_tool_prefix"; then
4785     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4786 set dummy ${ac_tool_prefix}cc; ac_word=$2
4787 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4789 if test "${ac_cv_prog_CC+set}" = set; then
4790   echo $ECHO_N "(cached) $ECHO_C" >&6
4791 else
4792   if test -n "$CC"; then
4793   ac_cv_prog_CC="$CC" # Let the user override the test.
4794 else
4795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4796 for as_dir in $PATH
4797 do
4798   IFS=$as_save_IFS
4799   test -z "$as_dir" && as_dir=.
4800   for ac_exec_ext in '' $ac_executable_extensions; do
4801   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4802     ac_cv_prog_CC="${ac_tool_prefix}cc"
4803     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4804     break 2
4805   fi
4806 done
4807 done
4808 IFS=$as_save_IFS
4809
4810 fi
4811 fi
4812 CC=$ac_cv_prog_CC
4813 if test -n "$CC"; then
4814   { echo "$as_me:$LINENO: result: $CC" >&5
4815 echo "${ECHO_T}$CC" >&6; }
4816 else
4817   { echo "$as_me:$LINENO: result: no" >&5
4818 echo "${ECHO_T}no" >&6; }
4819 fi
4820
4821
4822   fi
4823 fi
4824 if test -z "$CC"; then
4825   # Extract the first word of "cc", so it can be a program name with args.
4826 set dummy cc; ac_word=$2
4827 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4829 if test "${ac_cv_prog_CC+set}" = set; then
4830   echo $ECHO_N "(cached) $ECHO_C" >&6
4831 else
4832   if test -n "$CC"; then
4833   ac_cv_prog_CC="$CC" # Let the user override the test.
4834 else
4835   ac_prog_rejected=no
4836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4837 for as_dir in $PATH
4838 do
4839   IFS=$as_save_IFS
4840   test -z "$as_dir" && as_dir=.
4841   for ac_exec_ext in '' $ac_executable_extensions; do
4842   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4843     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4844        ac_prog_rejected=yes
4845        continue
4846      fi
4847     ac_cv_prog_CC="cc"
4848     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4849     break 2
4850   fi
4851 done
4852 done
4853 IFS=$as_save_IFS
4854
4855 if test $ac_prog_rejected = yes; then
4856   # We found a bogon in the path, so make sure we never use it.
4857   set dummy $ac_cv_prog_CC
4858   shift
4859   if test $# != 0; then
4860     # We chose a different compiler from the bogus one.
4861     # However, it has the same basename, so the bogon will be chosen
4862     # first if we set CC to just the basename; use the full file name.
4863     shift
4864     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4865   fi
4866 fi
4867 fi
4868 fi
4869 CC=$ac_cv_prog_CC
4870 if test -n "$CC"; then
4871   { echo "$as_me:$LINENO: result: $CC" >&5
4872 echo "${ECHO_T}$CC" >&6; }
4873 else
4874   { echo "$as_me:$LINENO: result: no" >&5
4875 echo "${ECHO_T}no" >&6; }
4876 fi
4877
4878
4879 fi
4880 if test -z "$CC"; then
4881   if test -n "$ac_tool_prefix"; then
4882   for ac_prog in cl.exe
4883   do
4884     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4885 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4886 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4888 if test "${ac_cv_prog_CC+set}" = set; then
4889   echo $ECHO_N "(cached) $ECHO_C" >&6
4890 else
4891   if test -n "$CC"; then
4892   ac_cv_prog_CC="$CC" # Let the user override the test.
4893 else
4894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4895 for as_dir in $PATH
4896 do
4897   IFS=$as_save_IFS
4898   test -z "$as_dir" && as_dir=.
4899   for ac_exec_ext in '' $ac_executable_extensions; do
4900   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4901     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4902     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4903     break 2
4904   fi
4905 done
4906 done
4907 IFS=$as_save_IFS
4908
4909 fi
4910 fi
4911 CC=$ac_cv_prog_CC
4912 if test -n "$CC"; then
4913   { echo "$as_me:$LINENO: result: $CC" >&5
4914 echo "${ECHO_T}$CC" >&6; }
4915 else
4916   { echo "$as_me:$LINENO: result: no" >&5
4917 echo "${ECHO_T}no" >&6; }
4918 fi
4919
4920
4921     test -n "$CC" && break
4922   done
4923 fi
4924 if test -z "$CC"; then
4925   ac_ct_CC=$CC
4926   for ac_prog in cl.exe
4927 do
4928   # Extract the first word of "$ac_prog", so it can be a program name with args.
4929 set dummy $ac_prog; ac_word=$2
4930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4932 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4933   echo $ECHO_N "(cached) $ECHO_C" >&6
4934 else
4935   if test -n "$ac_ct_CC"; then
4936   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4937 else
4938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4939 for as_dir in $PATH
4940 do
4941   IFS=$as_save_IFS
4942   test -z "$as_dir" && as_dir=.
4943   for ac_exec_ext in '' $ac_executable_extensions; do
4944   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4945     ac_cv_prog_ac_ct_CC="$ac_prog"
4946     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4947     break 2
4948   fi
4949 done
4950 done
4951 IFS=$as_save_IFS
4952
4953 fi
4954 fi
4955 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4956 if test -n "$ac_ct_CC"; then
4957   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4958 echo "${ECHO_T}$ac_ct_CC" >&6; }
4959 else
4960   { echo "$as_me:$LINENO: result: no" >&5
4961 echo "${ECHO_T}no" >&6; }
4962 fi
4963
4964
4965   test -n "$ac_ct_CC" && break
4966 done
4967
4968   if test "x$ac_ct_CC" = x; then
4969     CC=""
4970   else
4971     case $cross_compiling:$ac_tool_warned in
4972 yes:)
4973 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4974 whose name does not start with the host triplet.  If you think this
4975 configuration is useful to you, please write to autoconf@gnu.org." >&5
4976 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4977 whose name does not start with the host triplet.  If you think this
4978 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4979 ac_tool_warned=yes ;;
4980 esac
4981     CC=$ac_ct_CC
4982   fi
4983 fi
4984
4985 fi
4986
4987
4988 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4989 See \`config.log' for more details." >&5
4990 echo "$as_me: error: no acceptable C compiler found in \$PATH
4991 See \`config.log' for more details." >&2;}
4992    { (exit 1); exit 1; }; }
4993
4994 # Provide some information about the compiler.
4995 echo "$as_me:$LINENO: checking for C compiler version" >&5
4996 ac_compiler=`set X $ac_compile; echo $2`
4997 { (ac_try="$ac_compiler --version >&5"
4998 case "(($ac_try" in
4999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5000   *) ac_try_echo=$ac_try;;
5001 esac
5002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5003   (eval "$ac_compiler --version >&5") 2>&5
5004   ac_status=$?
5005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006   (exit $ac_status); }
5007 { (ac_try="$ac_compiler -v >&5"
5008 case "(($ac_try" in
5009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5010   *) ac_try_echo=$ac_try;;
5011 esac
5012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5013   (eval "$ac_compiler -v >&5") 2>&5
5014   ac_status=$?
5015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016   (exit $ac_status); }
5017 { (ac_try="$ac_compiler -V >&5"
5018 case "(($ac_try" in
5019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5020   *) ac_try_echo=$ac_try;;
5021 esac
5022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5023   (eval "$ac_compiler -V >&5") 2>&5
5024   ac_status=$?
5025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026   (exit $ac_status); }
5027
5028 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5029 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5030 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5031   echo $ECHO_N "(cached) $ECHO_C" >&6
5032 else
5033   cat >conftest.$ac_ext <<_ACEOF
5034 /* confdefs.h.  */
5035 _ACEOF
5036 cat confdefs.h >>conftest.$ac_ext
5037 cat >>conftest.$ac_ext <<_ACEOF
5038 /* end confdefs.h.  */
5039
5040 int
5041 main ()
5042 {
5043 #ifndef __GNUC__
5044        choke me
5045 #endif
5046
5047   ;
5048   return 0;
5049 }
5050 _ACEOF
5051 rm -f conftest.$ac_objext
5052 if { (ac_try="$ac_compile"
5053 case "(($ac_try" in
5054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5055   *) ac_try_echo=$ac_try;;
5056 esac
5057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5058   (eval "$ac_compile") 2>conftest.er1
5059   ac_status=$?
5060   grep -v '^ *+' conftest.er1 >conftest.err
5061   rm -f conftest.er1
5062   cat conftest.err >&5
5063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064   (exit $ac_status); } && {
5065          test -z "$ac_c_werror_flag" ||
5066          test ! -s conftest.err
5067        } && test -s conftest.$ac_objext; then
5068   ac_compiler_gnu=yes
5069 else
5070   echo "$as_me: failed program was:" >&5
5071 sed 's/^/| /' conftest.$ac_ext >&5
5072
5073         ac_compiler_gnu=no
5074 fi
5075
5076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5077 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5078
5079 fi
5080 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5081 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5082 GCC=`test $ac_compiler_gnu = yes && echo yes`
5083 ac_test_CFLAGS=${CFLAGS+set}
5084 ac_save_CFLAGS=$CFLAGS
5085 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5086 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5087 if test "${ac_cv_prog_cc_g+set}" = set; then
5088   echo $ECHO_N "(cached) $ECHO_C" >&6
5089 else
5090   ac_save_c_werror_flag=$ac_c_werror_flag
5091    ac_c_werror_flag=yes
5092    ac_cv_prog_cc_g=no
5093    CFLAGS="-g"
5094    cat >conftest.$ac_ext <<_ACEOF
5095 /* confdefs.h.  */
5096 _ACEOF
5097 cat confdefs.h >>conftest.$ac_ext
5098 cat >>conftest.$ac_ext <<_ACEOF
5099 /* end confdefs.h.  */
5100
5101 int
5102 main ()
5103 {
5104
5105   ;
5106   return 0;
5107 }
5108 _ACEOF
5109 rm -f conftest.$ac_objext
5110 if { (ac_try="$ac_compile"
5111 case "(($ac_try" in
5112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5113   *) ac_try_echo=$ac_try;;
5114 esac
5115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5116   (eval "$ac_compile") 2>conftest.er1
5117   ac_status=$?
5118   grep -v '^ *+' conftest.er1 >conftest.err
5119   rm -f conftest.er1
5120   cat conftest.err >&5
5121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122   (exit $ac_status); } && {
5123          test -z "$ac_c_werror_flag" ||
5124          test ! -s conftest.err
5125        } && test -s conftest.$ac_objext; then
5126   ac_cv_prog_cc_g=yes
5127 else
5128   echo "$as_me: failed program was:" >&5
5129 sed 's/^/| /' conftest.$ac_ext >&5
5130
5131         CFLAGS=""
5132       cat >conftest.$ac_ext <<_ACEOF
5133 /* confdefs.h.  */
5134 _ACEOF
5135 cat confdefs.h >>conftest.$ac_ext
5136 cat >>conftest.$ac_ext <<_ACEOF
5137 /* end confdefs.h.  */
5138
5139 int
5140 main ()
5141 {
5142
5143   ;
5144   return 0;
5145 }
5146 _ACEOF
5147 rm -f conftest.$ac_objext
5148 if { (ac_try="$ac_compile"
5149 case "(($ac_try" in
5150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5151   *) ac_try_echo=$ac_try;;
5152 esac
5153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5154   (eval "$ac_compile") 2>conftest.er1
5155   ac_status=$?
5156   grep -v '^ *+' conftest.er1 >conftest.err
5157   rm -f conftest.er1
5158   cat conftest.err >&5
5159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160   (exit $ac_status); } && {
5161          test -z "$ac_c_werror_flag" ||
5162          test ! -s conftest.err
5163        } && test -s conftest.$ac_objext; then
5164   :
5165 else
5166   echo "$as_me: failed program was:" >&5
5167 sed 's/^/| /' conftest.$ac_ext >&5
5168
5169         ac_c_werror_flag=$ac_save_c_werror_flag
5170          CFLAGS="-g"
5171          cat >conftest.$ac_ext <<_ACEOF
5172 /* confdefs.h.  */
5173 _ACEOF
5174 cat confdefs.h >>conftest.$ac_ext
5175 cat >>conftest.$ac_ext <<_ACEOF
5176 /* end confdefs.h.  */
5177
5178 int
5179 main ()
5180 {
5181
5182   ;
5183   return 0;
5184 }
5185 _ACEOF
5186 rm -f conftest.$ac_objext
5187 if { (ac_try="$ac_compile"
5188 case "(($ac_try" in
5189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5190   *) ac_try_echo=$ac_try;;
5191 esac
5192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5193   (eval "$ac_compile") 2>conftest.er1
5194   ac_status=$?
5195   grep -v '^ *+' conftest.er1 >conftest.err
5196   rm -f conftest.er1
5197   cat conftest.err >&5
5198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199   (exit $ac_status); } && {
5200          test -z "$ac_c_werror_flag" ||
5201          test ! -s conftest.err
5202        } && test -s conftest.$ac_objext; then
5203   ac_cv_prog_cc_g=yes
5204 else
5205   echo "$as_me: failed program was:" >&5
5206 sed 's/^/| /' conftest.$ac_ext >&5
5207
5208
5209 fi
5210
5211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5212 fi
5213
5214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5215 fi
5216
5217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5218    ac_c_werror_flag=$ac_save_c_werror_flag
5219 fi
5220 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5221 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5222 if test "$ac_test_CFLAGS" = set; then
5223   CFLAGS=$ac_save_CFLAGS
5224 elif test $ac_cv_prog_cc_g = yes; then
5225   if test "$GCC" = yes; then
5226     CFLAGS="-g -O2"
5227   else
5228     CFLAGS="-g"
5229   fi
5230 else
5231   if test "$GCC" = yes; then
5232     CFLAGS="-O2"
5233   else
5234     CFLAGS=
5235   fi
5236 fi
5237 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5238 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5239 if test "${ac_cv_prog_cc_c89+set}" = set; then
5240   echo $ECHO_N "(cached) $ECHO_C" >&6
5241 else
5242   ac_cv_prog_cc_c89=no
5243 ac_save_CC=$CC
5244 cat >conftest.$ac_ext <<_ACEOF
5245 /* confdefs.h.  */
5246 _ACEOF
5247 cat confdefs.h >>conftest.$ac_ext
5248 cat >>conftest.$ac_ext <<_ACEOF
5249 /* end confdefs.h.  */
5250 #include <stdarg.h>
5251 #include <stdio.h>
5252 #include <sys/types.h>
5253 #include <sys/stat.h>
5254 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5255 struct buf { int x; };
5256 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5257 static char *e (p, i)
5258      char **p;
5259      int i;
5260 {
5261   return p[i];
5262 }
5263 static char *f (char * (*g) (char **, int), char **p, ...)
5264 {
5265   char *s;
5266   va_list v;
5267   va_start (v,p);
5268   s = g (p, va_arg (v,int));
5269   va_end (v);
5270   return s;
5271 }
5272
5273 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5274    function prototypes and stuff, but not '\xHH' hex character constants.
5275    These don't provoke an error unfortunately, instead are silently treated
5276    as 'x'.  The following induces an error, until -std is added to get
5277    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5278    array size at least.  It's necessary to write '\x00'==0 to get something
5279    that's true only with -std.  */
5280 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5281
5282 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5283    inside strings and character constants.  */
5284 #define FOO(x) 'x'
5285 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5286
5287 int test (int i, double x);
5288 struct s1 {int (*f) (int a);};
5289 struct s2 {int (*f) (double a);};
5290 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5291 int argc;
5292 char **argv;
5293 int
5294 main ()
5295 {
5296 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5297   ;
5298   return 0;
5299 }
5300 _ACEOF
5301 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5302         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5303 do
5304   CC="$ac_save_CC $ac_arg"
5305   rm -f conftest.$ac_objext
5306 if { (ac_try="$ac_compile"
5307 case "(($ac_try" in
5308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5309   *) ac_try_echo=$ac_try;;
5310 esac
5311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5312   (eval "$ac_compile") 2>conftest.er1
5313   ac_status=$?
5314   grep -v '^ *+' conftest.er1 >conftest.err
5315   rm -f conftest.er1
5316   cat conftest.err >&5
5317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318   (exit $ac_status); } && {
5319          test -z "$ac_c_werror_flag" ||
5320          test ! -s conftest.err
5321        } && test -s conftest.$ac_objext; then
5322   ac_cv_prog_cc_c89=$ac_arg
5323 else
5324   echo "$as_me: failed program was:" >&5
5325 sed 's/^/| /' conftest.$ac_ext >&5
5326
5327
5328 fi
5329
5330 rm -f core conftest.err conftest.$ac_objext
5331   test "x$ac_cv_prog_cc_c89" != "xno" && break
5332 done
5333 rm -f conftest.$ac_ext
5334 CC=$ac_save_CC
5335
5336 fi
5337 # AC_CACHE_VAL
5338 case "x$ac_cv_prog_cc_c89" in
5339   x)
5340     { echo "$as_me:$LINENO: result: none needed" >&5
5341 echo "${ECHO_T}none needed" >&6; } ;;
5342   xno)
5343     { echo "$as_me:$LINENO: result: unsupported" >&5
5344 echo "${ECHO_T}unsupported" >&6; } ;;
5345   *)
5346     CC="$CC $ac_cv_prog_cc_c89"
5347     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5348 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5349 esac
5350
5351
5352 ac_ext=c
5353 ac_cpp='$CPP $CPPFLAGS'
5354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5357
5358 depcc="$CC"   am_compiler_list=
5359
5360 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5361 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5362 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5363   echo $ECHO_N "(cached) $ECHO_C" >&6
5364 else
5365   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5366   # We make a subdir and do the tests there.  Otherwise we can end up
5367   # making bogus files that we don't know about and never remove.  For
5368   # instance it was reported that on HP-UX the gcc test will end up
5369   # making a dummy file named `D' -- because `-MD' means `put the output
5370   # in D'.
5371   mkdir conftest.dir
5372   # Copy depcomp to subdir because otherwise we won't find it if we're
5373   # using a relative directory.
5374   cp "$am_depcomp" conftest.dir
5375   cd conftest.dir
5376   # We will build objects and dependencies in a subdirectory because
5377   # it helps to detect inapplicable dependency modes.  For instance
5378   # both Tru64's cc and ICC support -MD to output dependencies as a
5379   # side effect of compilation, but ICC will put the dependencies in
5380   # the current directory while Tru64 will put them in the object
5381   # directory.
5382   mkdir sub
5383
5384   am_cv_CC_dependencies_compiler_type=none
5385   if test "$am_compiler_list" = ""; then
5386      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5387   fi
5388   for depmode in $am_compiler_list; do
5389     # Setup a source with many dependencies, because some compilers
5390     # like to wrap large dependency lists on column 80 (with \), and
5391     # we should not choose a depcomp mode which is confused by this.
5392     #
5393     # We need to recreate these files for each test, as the compiler may
5394     # overwrite some of them when testing with obscure command lines.
5395     # This happens at least with the AIX C compiler.
5396     : > sub/conftest.c
5397     for i in 1 2 3 4 5 6; do
5398       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5399       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5400       # Solaris 8's {/usr,}/bin/sh.
5401       touch sub/conftst$i.h
5402     done
5403     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5404
5405     case $depmode in
5406     nosideeffect)
5407       # after this tag, mechanisms are not by side-effect, so they'll
5408       # only be used when explicitly requested
5409       if test "x$enable_dependency_tracking" = xyes; then
5410         continue
5411       else
5412         break
5413       fi
5414       ;;
5415     none) break ;;
5416     esac
5417     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5418     # mode.  It turns out that the SunPro C++ compiler does not properly
5419     # handle `-M -o', and we need to detect this.
5420     if depmode=$depmode \
5421        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5422        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5423        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5424          >/dev/null 2>conftest.err &&
5425        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5426        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5427        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5428        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5429       # icc doesn't choke on unknown options, it will just issue warnings
5430       # or remarks (even with -Werror).  So we grep stderr for any message
5431       # that says an option was ignored or not supported.
5432       # When given -MP, icc 7.0 and 7.1 complain thusly:
5433       #   icc: Command line warning: ignoring option '-M'; no argument required
5434       # The diagnosis changed in icc 8.0:
5435       #   icc: Command line remark: option '-MP' not supported
5436       if (grep 'ignoring option' conftest.err ||
5437           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5438         am_cv_CC_dependencies_compiler_type=$depmode
5439         break
5440       fi
5441     fi
5442   done
5443
5444   cd ..
5445   rm -rf conftest.dir
5446 else
5447   am_cv_CC_dependencies_compiler_type=none
5448 fi
5449
5450 fi
5451 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5452 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5453 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5454
5455  if
5456   test "x$enable_dependency_tracking" != xno \
5457   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5458   am__fastdepCC_TRUE=
5459   am__fastdepCC_FALSE='#'
5460 else
5461   am__fastdepCC_TRUE='#'
5462   am__fastdepCC_FALSE=
5463 fi
5464
5465
5466 ac_ext=c
5467 ac_cpp='$CPP $CPPFLAGS'
5468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5471 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5472 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5473 # On Suns, sometimes $CPP names a directory.
5474 if test -n "$CPP" && test -d "$CPP"; then
5475   CPP=
5476 fi
5477 if test -z "$CPP"; then
5478   if test "${ac_cv_prog_CPP+set}" = set; then
5479   echo $ECHO_N "(cached) $ECHO_C" >&6
5480 else
5481       # Double quotes because CPP needs to be expanded
5482     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5483     do
5484       ac_preproc_ok=false
5485 for ac_c_preproc_warn_flag in '' yes
5486 do
5487   # Use a header file that comes with gcc, so configuring glibc
5488   # with a fresh cross-compiler works.
5489   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5490   # <limits.h> exists even on freestanding compilers.
5491   # On the NeXT, cc -E runs the code through the compiler's parser,
5492   # not just through cpp. "Syntax error" is here to catch this case.
5493   cat >conftest.$ac_ext <<_ACEOF
5494 /* confdefs.h.  */
5495 _ACEOF
5496 cat confdefs.h >>conftest.$ac_ext
5497 cat >>conftest.$ac_ext <<_ACEOF
5498 /* end confdefs.h.  */
5499 #ifdef __STDC__
5500 # include <limits.h>
5501 #else
5502 # include <assert.h>
5503 #endif
5504                      Syntax error
5505 _ACEOF
5506 if { (ac_try="$ac_cpp conftest.$ac_ext"
5507 case "(($ac_try" in
5508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5509   *) ac_try_echo=$ac_try;;
5510 esac
5511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5512   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5513   ac_status=$?
5514   grep -v '^ *+' conftest.er1 >conftest.err
5515   rm -f conftest.er1
5516   cat conftest.err >&5
5517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518   (exit $ac_status); } >/dev/null && {
5519          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5520          test ! -s conftest.err
5521        }; then
5522   :
5523 else
5524   echo "$as_me: failed program was:" >&5
5525 sed 's/^/| /' conftest.$ac_ext >&5
5526
5527   # Broken: fails on valid input.
5528 continue
5529 fi
5530
5531 rm -f conftest.err conftest.$ac_ext
5532
5533   # OK, works on sane cases.  Now check whether nonexistent headers
5534   # can be detected and how.
5535   cat >conftest.$ac_ext <<_ACEOF
5536 /* confdefs.h.  */
5537 _ACEOF
5538 cat confdefs.h >>conftest.$ac_ext
5539 cat >>conftest.$ac_ext <<_ACEOF
5540 /* end confdefs.h.  */
5541 #include <ac_nonexistent.h>
5542 _ACEOF
5543 if { (ac_try="$ac_cpp conftest.$ac_ext"
5544 case "(($ac_try" in
5545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5546   *) ac_try_echo=$ac_try;;
5547 esac
5548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5549   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5550   ac_status=$?
5551   grep -v '^ *+' conftest.er1 >conftest.err
5552   rm -f conftest.er1
5553   cat conftest.err >&5
5554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555   (exit $ac_status); } >/dev/null && {
5556          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5557          test ! -s conftest.err
5558        }; then
5559   # Broken: success on invalid input.
5560 continue
5561 else
5562   echo "$as_me: failed program was:" >&5
5563 sed 's/^/| /' conftest.$ac_ext >&5
5564
5565   # Passes both tests.
5566 ac_preproc_ok=:
5567 break
5568 fi
5569
5570 rm -f conftest.err conftest.$ac_ext
5571
5572 done
5573 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5574 rm -f conftest.err conftest.$ac_ext
5575 if $ac_preproc_ok; then
5576   break
5577 fi
5578
5579     done
5580     ac_cv_prog_CPP=$CPP
5581
5582 fi
5583   CPP=$ac_cv_prog_CPP
5584 else
5585   ac_cv_prog_CPP=$CPP
5586 fi
5587 { echo "$as_me:$LINENO: result: $CPP" >&5
5588 echo "${ECHO_T}$CPP" >&6; }
5589 ac_preproc_ok=false
5590 for ac_c_preproc_warn_flag in '' yes
5591 do
5592   # Use a header file that comes with gcc, so configuring glibc
5593   # with a fresh cross-compiler works.
5594   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5595   # <limits.h> exists even on freestanding compilers.
5596   # On the NeXT, cc -E runs the code through the compiler's parser,
5597   # not just through cpp. "Syntax error" is here to catch this case.
5598   cat >conftest.$ac_ext <<_ACEOF
5599 /* confdefs.h.  */
5600 _ACEOF
5601 cat confdefs.h >>conftest.$ac_ext
5602 cat >>conftest.$ac_ext <<_ACEOF
5603 /* end confdefs.h.  */
5604 #ifdef __STDC__
5605 # include <limits.h>
5606 #else
5607 # include <assert.h>
5608 #endif
5609                      Syntax error
5610 _ACEOF
5611 if { (ac_try="$ac_cpp conftest.$ac_ext"
5612 case "(($ac_try" in
5613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5614   *) ac_try_echo=$ac_try;;
5615 esac
5616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5617   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5618   ac_status=$?
5619   grep -v '^ *+' conftest.er1 >conftest.err
5620   rm -f conftest.er1
5621   cat conftest.err >&5
5622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623   (exit $ac_status); } >/dev/null && {
5624          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5625          test ! -s conftest.err
5626        }; then
5627   :
5628 else
5629   echo "$as_me: failed program was:" >&5
5630 sed 's/^/| /' conftest.$ac_ext >&5
5631
5632   # Broken: fails on valid input.
5633 continue
5634 fi
5635
5636 rm -f conftest.err conftest.$ac_ext
5637
5638   # OK, works on sane cases.  Now check whether nonexistent headers
5639   # can be detected and how.
5640   cat >conftest.$ac_ext <<_ACEOF
5641 /* confdefs.h.  */
5642 _ACEOF
5643 cat confdefs.h >>conftest.$ac_ext
5644 cat >>conftest.$ac_ext <<_ACEOF
5645 /* end confdefs.h.  */
5646 #include <ac_nonexistent.h>
5647 _ACEOF
5648 if { (ac_try="$ac_cpp conftest.$ac_ext"
5649 case "(($ac_try" in
5650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5651   *) ac_try_echo=$ac_try;;
5652 esac
5653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5654   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5655   ac_status=$?
5656   grep -v '^ *+' conftest.er1 >conftest.err
5657   rm -f conftest.er1
5658   cat conftest.err >&5
5659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660   (exit $ac_status); } >/dev/null && {
5661          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5662          test ! -s conftest.err
5663        }; then
5664   # Broken: success on invalid input.
5665 continue
5666 else
5667   echo "$as_me: failed program was:" >&5
5668 sed 's/^/| /' conftest.$ac_ext >&5
5669
5670   # Passes both tests.
5671 ac_preproc_ok=:
5672 break
5673 fi
5674
5675 rm -f conftest.err conftest.$ac_ext
5676
5677 done
5678 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5679 rm -f conftest.err conftest.$ac_ext
5680 if $ac_preproc_ok; then
5681   :
5682 else
5683   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5684 See \`config.log' for more details." >&5
5685 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5686 See \`config.log' for more details." >&2;}
5687    { (exit 1); exit 1; }; }
5688 fi
5689
5690 ac_ext=c
5691 ac_cpp='$CPP $CPPFLAGS'
5692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5695
5696
5697 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
5698 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
5699 if test "${ac_cv_search_strerror+set}" = set; then
5700   echo $ECHO_N "(cached) $ECHO_C" >&6
5701 else
5702   ac_func_search_save_LIBS=$LIBS
5703 cat >conftest.$ac_ext <<_ACEOF
5704 /* confdefs.h.  */
5705 _ACEOF
5706 cat confdefs.h >>conftest.$ac_ext
5707 cat >>conftest.$ac_ext <<_ACEOF
5708 /* end confdefs.h.  */
5709
5710 /* Override any GCC internal prototype to avoid an error.
5711    Use char because int might match the return type of a GCC
5712    builtin and then its argument prototype would still apply.  */
5713 #ifdef __cplusplus
5714 extern "C"
5715 #endif
5716 char strerror ();
5717 int
5718 main ()
5719 {
5720 return strerror ();
5721   ;
5722   return 0;
5723 }
5724 _ACEOF
5725 for ac_lib in '' cposix; do
5726   if test -z "$ac_lib"; then
5727     ac_res="none required"
5728   else
5729     ac_res=-l$ac_lib
5730     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5731   fi
5732   rm -f conftest.$ac_objext conftest$ac_exeext
5733 if { (ac_try="$ac_link"
5734 case "(($ac_try" in
5735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5736   *) ac_try_echo=$ac_try;;
5737 esac
5738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5739   (eval "$ac_link") 2>conftest.er1
5740   ac_status=$?
5741   grep -v '^ *+' conftest.er1 >conftest.err
5742   rm -f conftest.er1
5743   cat conftest.err >&5
5744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745   (exit $ac_status); } && {
5746          test -z "$ac_c_werror_flag" ||
5747          test ! -s conftest.err
5748        } && test -s conftest$ac_exeext &&
5749        $as_test_x conftest$ac_exeext; then
5750   ac_cv_search_strerror=$ac_res
5751 else
5752   echo "$as_me: failed program was:" >&5
5753 sed 's/^/| /' conftest.$ac_ext >&5
5754
5755
5756 fi
5757
5758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5759       conftest$ac_exeext
5760   if test "${ac_cv_search_strerror+set}" = set; then
5761   break
5762 fi
5763 done
5764 if test "${ac_cv_search_strerror+set}" = set; then
5765   :
5766 else
5767   ac_cv_search_strerror=no
5768 fi
5769 rm conftest.$ac_ext
5770 LIBS=$ac_func_search_save_LIBS
5771 fi
5772 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
5773 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
5774 ac_res=$ac_cv_search_strerror
5775 if test "$ac_res" != no; then
5776   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5777
5778 fi
5779
5780 # Find a good install program.  We prefer a C program (faster),
5781 # so one script is as good as another.  But avoid the broken or
5782 # incompatible versions:
5783 # SysV /etc/install, /usr/sbin/install
5784 # SunOS /usr/etc/install
5785 # IRIX /sbin/install
5786 # AIX /bin/install
5787 # AmigaOS /C/install, which installs bootblocks on floppy discs
5788 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5789 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5790 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5791 # OS/2's system install, which has a completely different semantic
5792 # ./install, which can be erroneously created by make from ./install.sh.
5793 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5794 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5795 if test -z "$INSTALL"; then
5796 if test "${ac_cv_path_install+set}" = set; then
5797   echo $ECHO_N "(cached) $ECHO_C" >&6
5798 else
5799   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800 for as_dir in $PATH
5801 do
5802   IFS=$as_save_IFS
5803   test -z "$as_dir" && as_dir=.
5804   # Account for people who put trailing slashes in PATH elements.
5805 case $as_dir/ in
5806   ./ | .// | /cC/* | \
5807   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5808   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5809   /usr/ucb/* ) ;;
5810   *)
5811     # OSF1 and SCO ODT 3.0 have their own names for install.
5812     # Don't use installbsd from OSF since it installs stuff as root
5813     # by default.
5814     for ac_prog in ginstall scoinst install; do
5815       for ac_exec_ext in '' $ac_executable_extensions; do
5816         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5817           if test $ac_prog = install &&
5818             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5819             # AIX install.  It has an incompatible calling convention.
5820             :
5821           elif test $ac_prog = install &&
5822             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5823             # program-specific install script used by HP pwplus--don't use.
5824             :
5825           else
5826             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5827             break 3
5828           fi
5829         fi
5830       done
5831     done
5832     ;;
5833 esac
5834 done
5835 IFS=$as_save_IFS
5836
5837
5838 fi
5839   if test "${ac_cv_path_install+set}" = set; then
5840     INSTALL=$ac_cv_path_install
5841   else
5842     # As a last resort, use the slow shell script.  Don't cache a
5843     # value for INSTALL within a source directory, because that will
5844     # break other packages using the cache if that directory is
5845     # removed, or if the value is a relative name.
5846     INSTALL=$ac_install_sh
5847   fi
5848 fi
5849 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5850 echo "${ECHO_T}$INSTALL" >&6; }
5851
5852 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5853 # It thinks the first close brace ends the variable substitution.
5854 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5855
5856 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5857
5858 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5859
5860 for ac_prog in lex flex
5861 do
5862   # Extract the first word of "$ac_prog", so it can be a program name with args.
5863 set dummy $ac_prog; ac_word=$2
5864 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5866 if test "${ac_cv_prog_LEX+set}" = set; then
5867   echo $ECHO_N "(cached) $ECHO_C" >&6
5868 else
5869   if test -n "$LEX"; then
5870   ac_cv_prog_LEX="$LEX" # Let the user override the test.
5871 else
5872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5873 for as_dir in $PATH
5874 do
5875   IFS=$as_save_IFS
5876   test -z "$as_dir" && as_dir=.
5877   for ac_exec_ext in '' $ac_executable_extensions; do
5878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5879     ac_cv_prog_LEX="$ac_prog"
5880     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5881     break 2
5882   fi
5883 done
5884 done
5885 IFS=$as_save_IFS
5886
5887 fi
5888 fi
5889 LEX=$ac_cv_prog_LEX
5890 if test -n "$LEX"; then
5891   { echo "$as_me:$LINENO: result: $LEX" >&5
5892 echo "${ECHO_T}$LEX" >&6; }
5893 else
5894   { echo "$as_me:$LINENO: result: no" >&5
5895 echo "${ECHO_T}no" >&6; }
5896 fi
5897
5898
5899   test -n "$LEX" && break
5900 done
5901 test -n "$LEX" || LEX="lex_not_found"
5902
5903 if test "$LEX" != lex_not_found ; then
5904   for ac_prog in flex lex
5905 do
5906   # Extract the first word of "$ac_prog", so it can be a program name with args.
5907 set dummy $ac_prog; ac_word=$2
5908 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5910 if test "${ac_cv_prog_LEX+set}" = set; then
5911   echo $ECHO_N "(cached) $ECHO_C" >&6
5912 else
5913   if test -n "$LEX"; then
5914   ac_cv_prog_LEX="$LEX" # Let the user override the test.
5915 else
5916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5917 for as_dir in $PATH
5918 do
5919   IFS=$as_save_IFS
5920   test -z "$as_dir" && as_dir=.
5921   for ac_exec_ext in '' $ac_executable_extensions; do
5922   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5923     ac_cv_prog_LEX="$ac_prog"
5924     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5925     break 2
5926   fi
5927 done
5928 done
5929 IFS=$as_save_IFS
5930
5931 fi
5932 fi
5933 LEX=$ac_cv_prog_LEX
5934 if test -n "$LEX"; then
5935   { echo "$as_me:$LINENO: result: $LEX" >&5
5936 echo "${ECHO_T}$LEX" >&6; }
5937 else
5938   { echo "$as_me:$LINENO: result: no" >&5
5939 echo "${ECHO_T}no" >&6; }
5940 fi
5941
5942
5943   test -n "$LEX" && break
5944 done
5945 test -n "$LEX" || LEX=":"
5946
5947 if test "x$LEX" != "x:"; then
5948   cat >conftest.l <<_ACEOF
5949 %%
5950 a { ECHO; }
5951 b { REJECT; }
5952 c { yymore (); }
5953 d { yyless (1); }
5954 e { yyless (input () != 0); }
5955 f { unput (yytext[0]); }
5956 . { BEGIN INITIAL; }
5957 %%
5958 #ifdef YYTEXT_POINTER
5959 extern char *yytext;
5960 #endif
5961 int
5962 main (void)
5963 {
5964   return ! yylex () + ! yywrap ();
5965 }
5966 _ACEOF
5967 { (ac_try="$LEX conftest.l"
5968 case "(($ac_try" in
5969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5970   *) ac_try_echo=$ac_try;;
5971 esac
5972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5973   (eval "$LEX conftest.l") 2>&5
5974   ac_status=$?
5975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976   (exit $ac_status); }
5977 { echo "$as_me:$LINENO: checking lex output file root" >&5
5978 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
5979 if test "${ac_cv_prog_lex_root+set}" = set; then
5980   echo $ECHO_N "(cached) $ECHO_C" >&6
5981 else
5982
5983 if test -f lex.yy.c; then
5984   ac_cv_prog_lex_root=lex.yy
5985 elif test -f lexyy.c; then
5986   ac_cv_prog_lex_root=lexyy
5987 else
5988   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5989 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5990    { (exit 1); exit 1; }; }
5991 fi
5992 fi
5993 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5994 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
5995 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5996
5997 if test -z "${LEXLIB+set}"; then
5998   { echo "$as_me:$LINENO: checking lex library" >&5
5999 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
6000 if test "${ac_cv_lib_lex+set}" = set; then
6001   echo $ECHO_N "(cached) $ECHO_C" >&6
6002 else
6003
6004     ac_save_LIBS=$LIBS
6005     ac_cv_lib_lex='none needed'
6006     for ac_lib in '' -lfl -ll; do
6007       LIBS="$ac_lib $ac_save_LIBS"
6008       cat >conftest.$ac_ext <<_ACEOF
6009 `cat $LEX_OUTPUT_ROOT.c`
6010 _ACEOF
6011 rm -f conftest.$ac_objext conftest$ac_exeext
6012 if { (ac_try="$ac_link"
6013 case "(($ac_try" in
6014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6015   *) ac_try_echo=$ac_try;;
6016 esac
6017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6018   (eval "$ac_link") 2>conftest.er1
6019   ac_status=$?
6020   grep -v '^ *+' conftest.er1 >conftest.err
6021   rm -f conftest.er1
6022   cat conftest.err >&5
6023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024   (exit $ac_status); } && {
6025          test -z "$ac_c_werror_flag" ||
6026          test ! -s conftest.err
6027        } && test -s conftest$ac_exeext &&
6028        $as_test_x conftest$ac_exeext; then
6029   ac_cv_lib_lex=$ac_lib
6030 else
6031   echo "$as_me: failed program was:" >&5
6032 sed 's/^/| /' conftest.$ac_ext >&5
6033
6034
6035 fi
6036
6037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6038       conftest$ac_exeext conftest.$ac_ext
6039       test "$ac_cv_lib_lex" != 'none needed' && break
6040     done
6041     LIBS=$ac_save_LIBS
6042
6043 fi
6044 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
6045 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
6046   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
6047 fi
6048
6049
6050 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6051 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6052 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6053   echo $ECHO_N "(cached) $ECHO_C" >&6
6054 else
6055   # POSIX says lex can declare yytext either as a pointer or an array; the
6056 # default is implementation-dependent.  Figure out which it is, since
6057 # not all implementations provide the %pointer and %array declarations.
6058 ac_cv_prog_lex_yytext_pointer=no
6059 ac_save_LIBS=$LIBS
6060 LIBS="$LEXLIB $ac_save_LIBS"
6061 cat >conftest.$ac_ext <<_ACEOF
6062 #define YYTEXT_POINTER 1
6063 `cat $LEX_OUTPUT_ROOT.c`
6064 _ACEOF
6065 rm -f conftest.$ac_objext conftest$ac_exeext
6066 if { (ac_try="$ac_link"
6067 case "(($ac_try" in
6068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6069   *) ac_try_echo=$ac_try;;
6070 esac
6071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6072   (eval "$ac_link") 2>conftest.er1
6073   ac_status=$?
6074   grep -v '^ *+' conftest.er1 >conftest.err
6075   rm -f conftest.er1
6076   cat conftest.err >&5
6077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078   (exit $ac_status); } && {
6079          test -z "$ac_c_werror_flag" ||
6080          test ! -s conftest.err
6081        } && test -s conftest$ac_exeext &&
6082        $as_test_x conftest$ac_exeext; then
6083   ac_cv_prog_lex_yytext_pointer=yes
6084 else
6085   echo "$as_me: failed program was:" >&5
6086 sed 's/^/| /' conftest.$ac_ext >&5
6087
6088
6089 fi
6090
6091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6092       conftest$ac_exeext conftest.$ac_ext
6093 LIBS=$ac_save_LIBS
6094
6095 fi
6096 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6097 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6098 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6099
6100 cat >>confdefs.h <<\_ACEOF
6101 #define YYTEXT_POINTER 1
6102 _ACEOF
6103
6104 fi
6105 rm -f conftest.l $LEX_OUTPUT_ROOT.c
6106
6107 fi
6108 fi
6109 for ac_prog in remsh rsh
6110 do
6111   # Extract the first word of "$ac_prog", so it can be a program name with args.
6112 set dummy $ac_prog; ac_word=$2
6113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6115 if test "${ac_cv_prog_RSH+set}" = set; then
6116   echo $ECHO_N "(cached) $ECHO_C" >&6
6117 else
6118   if test -n "$RSH"; then
6119   ac_cv_prog_RSH="$RSH" # Let the user override the test.
6120 else
6121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6122 for as_dir in $PATH
6123 do
6124   IFS=$as_save_IFS
6125   test -z "$as_dir" && as_dir=.
6126   for ac_exec_ext in '' $ac_executable_extensions; do
6127   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6128     ac_cv_prog_RSH="$ac_prog"
6129     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6130     break 2
6131   fi
6132 done
6133 done
6134 IFS=$as_save_IFS
6135
6136 fi
6137 fi
6138 RSH=$ac_cv_prog_RSH
6139 if test -n "$RSH"; then
6140   { echo "$as_me:$LINENO: result: $RSH" >&5
6141 echo "${ECHO_T}$RSH" >&6; }
6142 else
6143   { echo "$as_me:$LINENO: result: no" >&5
6144 echo "${ECHO_T}no" >&6; }
6145 fi
6146
6147
6148   test -n "$RSH" && break
6149 done
6150 test -n "$RSH" || RSH="rsh"
6151
6152 for ac_prog in makeinfo
6153 do
6154   # Extract the first word of "$ac_prog", so it can be a program name with args.
6155 set dummy $ac_prog; ac_word=$2
6156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6158 if test "${ac_cv_prog_MINFO+set}" = set; then
6159   echo $ECHO_N "(cached) $ECHO_C" >&6
6160 else
6161   if test -n "$MINFO"; then
6162   ac_cv_prog_MINFO="$MINFO" # Let the user override the test.
6163 else
6164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6165 for as_dir in $PATH
6166 do
6167   IFS=$as_save_IFS
6168   test -z "$as_dir" && as_dir=.
6169   for ac_exec_ext in '' $ac_executable_extensions; do
6170   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6171     ac_cv_prog_MINFO="$ac_prog"
6172     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6173     break 2
6174   fi
6175 done
6176 done
6177 IFS=$as_save_IFS
6178
6179 fi
6180 fi
6181 MINFO=$ac_cv_prog_MINFO
6182 if test -n "$MINFO"; then
6183   { echo "$as_me:$LINENO: result: $MINFO" >&5
6184 echo "${ECHO_T}$MINFO" >&6; }
6185 else
6186   { echo "$as_me:$LINENO: result: no" >&5
6187 echo "${ECHO_T}no" >&6; }
6188 fi
6189
6190
6191   test -n "$MINFO" && break
6192 done
6193 test -n "$MINFO" || MINFO="makeinfo_not_found"
6194
6195 if test "$MINFO" == makeinfo_not_found ; then
6196    echo Please install \"makeinfo\"
6197    exit 1
6198 fi
6199 cat >>confdefs.h <<_ACEOF
6200 #define REMOTE_SHELL "$RSH"
6201 _ACEOF
6202
6203 # Extract the first word of "nroff", so it can be a program name with args.
6204 set dummy nroff; ac_word=$2
6205 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6207 if test "${ac_cv_prog_NROFF+set}" = set; then
6208   echo $ECHO_N "(cached) $ECHO_C" >&6
6209 else
6210   if test -n "$NROFF"; then
6211   ac_cv_prog_NROFF="$NROFF" # Let the user override the test.
6212 else
6213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6214 for as_dir in $PATH
6215 do
6216   IFS=$as_save_IFS
6217   test -z "$as_dir" && as_dir=.
6218   for ac_exec_ext in '' $ac_executable_extensions; do
6219   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6220     ac_cv_prog_NROFF="nroff -man"
6221     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6222     break 2
6223   fi
6224 done
6225 done
6226 IFS=$as_save_IFS
6227
6228   test -z "$ac_cv_prog_NROFF" && ac_cv_prog_NROFF="cat"
6229 fi
6230 fi
6231 NROFF=$ac_cv_prog_NROFF
6232 if test -n "$NROFF"; then
6233   { echo "$as_me:$LINENO: result: $NROFF" >&5
6234 echo "${ECHO_T}$NROFF" >&6; }
6235 else
6236   { echo "$as_me:$LINENO: result: no" >&5
6237 echo "${ECHO_T}no" >&6; }
6238 fi
6239
6240
6241
6242 for ac_prog in awk mawk gawk nawk
6243 do
6244   # Extract the first word of "$ac_prog", so it can be a program name with args.
6245 set dummy $ac_prog; ac_word=$2
6246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6248 if test "${ac_cv_path_AWKPATH+set}" = set; then
6249   echo $ECHO_N "(cached) $ECHO_C" >&6
6250 else
6251   case $AWKPATH in
6252   [\\/]* | ?:[\\/]*)
6253   ac_cv_path_AWKPATH="$AWKPATH" # Let the user override the test with a path.
6254   ;;
6255   *)
6256   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6257 for as_dir in $PATH
6258 do
6259   IFS=$as_save_IFS
6260   test -z "$as_dir" && as_dir=.
6261   for ac_exec_ext in '' $ac_executable_extensions; do
6262   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6263     ac_cv_path_AWKPATH="$as_dir/$ac_word$ac_exec_ext"
6264     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6265     break 2
6266   fi
6267 done
6268 done
6269 IFS=$as_save_IFS
6270
6271   ;;
6272 esac
6273 fi
6274 AWKPATH=$ac_cv_path_AWKPATH
6275 if test -n "$AWKPATH"; then
6276   { echo "$as_me:$LINENO: result: $AWKPATH" >&5
6277 echo "${ECHO_T}$AWKPATH" >&6; }
6278 else
6279   { echo "$as_me:$LINENO: result: no" >&5
6280 echo "${ECHO_T}no" >&6; }
6281 fi
6282
6283
6284   test -n "$AWKPATH" && break
6285 done
6286
6287 for ac_prog in perl
6288 do
6289   # Extract the first word of "$ac_prog", so it can be a program name with args.
6290 set dummy $ac_prog; ac_word=$2
6291 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6293 if test "${ac_cv_path_PERLPATH+set}" = set; then
6294   echo $ECHO_N "(cached) $ECHO_C" >&6
6295 else
6296   case $PERLPATH in
6297   [\\/]* | ?:[\\/]*)
6298   ac_cv_path_PERLPATH="$PERLPATH" # Let the user override the test with a path.
6299   ;;
6300   *)
6301   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6302 for as_dir in $PATH
6303 do
6304   IFS=$as_save_IFS
6305   test -z "$as_dir" && as_dir=.
6306   for ac_exec_ext in '' $ac_executable_extensions; do
6307   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6308     ac_cv_path_PERLPATH="$as_dir/$ac_word$ac_exec_ext"
6309     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6310     break 2
6311   fi
6312 done
6313 done
6314 IFS=$as_save_IFS
6315
6316   ;;
6317 esac
6318 fi
6319 PERLPATH=$ac_cv_path_PERLPATH
6320 if test -n "$PERLPATH"; then
6321   { echo "$as_me:$LINENO: result: $PERLPATH" >&5
6322 echo "${ECHO_T}$PERLPATH" >&6; }
6323 else
6324   { echo "$as_me:$LINENO: result: no" >&5
6325 echo "${ECHO_T}no" >&6; }
6326 fi
6327
6328
6329   test -n "$PERLPATH" && break
6330 done
6331
6332
6333
6334
6335
6336
6337 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6338 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
6339 if test "${ac_cv_path_GREP+set}" = set; then
6340   echo $ECHO_N "(cached) $ECHO_C" >&6
6341 else
6342   # Extract the first word of "grep ggrep" to use in msg output
6343 if test -z "$GREP"; then
6344 set dummy grep ggrep; ac_prog_name=$2
6345 if test "${ac_cv_path_GREP+set}" = set; then
6346   echo $ECHO_N "(cached) $ECHO_C" >&6
6347 else
6348   ac_path_GREP_found=false
6349 # Loop through the user's path and test for each of PROGNAME-LIST
6350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6351 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6352 do
6353   IFS=$as_save_IFS
6354   test -z "$as_dir" && as_dir=.
6355   for ac_prog in grep ggrep; do
6356   for ac_exec_ext in '' $ac_executable_extensions; do
6357     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6358     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6359     # Check for GNU ac_path_GREP and select it if it is found.
6360   # Check for GNU $ac_path_GREP
6361 case `"$ac_path_GREP" --version 2>&1` in
6362 *GNU*)
6363   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6364 *)
6365   ac_count=0
6366   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6367   while :
6368   do
6369     cat "conftest.in" "conftest.in" >"conftest.tmp"
6370     mv "conftest.tmp" "conftest.in"
6371     cp "conftest.in" "conftest.nl"
6372     echo 'GREP' >> "conftest.nl"
6373     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6374     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6375     ac_count=`expr $ac_count + 1`
6376     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6377       # Best one so far, save it but keep looking for a better one
6378       ac_cv_path_GREP="$ac_path_GREP"
6379       ac_path_GREP_max=$ac_count
6380     fi
6381     # 10*(2^10) chars as input seems more than enough
6382     test $ac_count -gt 10 && break
6383   done
6384   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6385 esac
6386
6387
6388     $ac_path_GREP_found && break 3
6389   done
6390 done
6391
6392 done
6393 IFS=$as_save_IFS
6394
6395
6396 fi
6397
6398 GREP="$ac_cv_path_GREP"
6399 if test -z "$GREP"; then
6400   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6401 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6402    { (exit 1); exit 1; }; }
6403 fi
6404
6405 else
6406   ac_cv_path_GREP=$GREP
6407 fi
6408
6409
6410 fi
6411 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6412 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
6413  GREP="$ac_cv_path_GREP"
6414
6415
6416 { echo "$as_me:$LINENO: checking for egrep" >&5
6417 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6418 if test "${ac_cv_path_EGREP+set}" = set; then
6419   echo $ECHO_N "(cached) $ECHO_C" >&6
6420 else
6421   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6422    then ac_cv_path_EGREP="$GREP -E"
6423    else
6424      # Extract the first word of "egrep" to use in msg output
6425 if test -z "$EGREP"; then
6426 set dummy egrep; ac_prog_name=$2
6427 if test "${ac_cv_path_EGREP+set}" = set; then
6428   echo $ECHO_N "(cached) $ECHO_C" >&6
6429 else
6430   ac_path_EGREP_found=false
6431 # Loop through the user's path and test for each of PROGNAME-LIST
6432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6433 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6434 do
6435   IFS=$as_save_IFS
6436   test -z "$as_dir" && as_dir=.
6437   for ac_prog in egrep; do
6438   for ac_exec_ext in '' $ac_executable_extensions; do
6439     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6440     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6441     # Check for GNU ac_path_EGREP and select it if it is found.
6442   # Check for GNU $ac_path_EGREP
6443 case `"$ac_path_EGREP" --version 2>&1` in
6444 *GNU*)
6445   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6446 *)
6447   ac_count=0
6448   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6449   while :
6450   do
6451     cat "conftest.in" "conftest.in" >"conftest.tmp"
6452     mv "conftest.tmp" "conftest.in"
6453     cp "conftest.in" "conftest.nl"
6454     echo 'EGREP' >> "conftest.nl"
6455     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6456     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6457     ac_count=`expr $ac_count + 1`
6458     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6459       # Best one so far, save it but keep looking for a better one
6460       ac_cv_path_EGREP="$ac_path_EGREP"
6461       ac_path_EGREP_max=$ac_count
6462     fi
6463     # 10*(2^10) chars as input seems more than enough
6464     test $ac_count -gt 10 && break
6465   done
6466   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6467 esac
6468
6469
6470     $ac_path_EGREP_found && break 3
6471   done
6472 done
6473
6474 done
6475 IFS=$as_save_IFS
6476
6477
6478 fi
6479
6480 EGREP="$ac_cv_path_EGREP"
6481 if test -z "$EGREP"; then
6482   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6483 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6484    { (exit 1); exit 1; }; }
6485 fi
6486
6487 else
6488   ac_cv_path_EGREP=$EGREP
6489 fi
6490
6491
6492    fi
6493 fi
6494 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6495 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6496  EGREP="$ac_cv_path_EGREP"
6497
6498
6499 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6500 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6501 if test "${ac_cv_header_stdc+set}" = set; then
6502   echo $ECHO_N "(cached) $ECHO_C" >&6
6503 else
6504   cat >conftest.$ac_ext <<_ACEOF
6505 /* confdefs.h.  */
6506 _ACEOF
6507 cat confdefs.h >>conftest.$ac_ext
6508 cat >>conftest.$ac_ext <<_ACEOF
6509 /* end confdefs.h.  */
6510 #include <stdlib.h>
6511 #include <stdarg.h>
6512 #include <string.h>
6513 #include <float.h>
6514
6515 int
6516 main ()
6517 {
6518
6519   ;
6520   return 0;
6521 }
6522 _ACEOF
6523 rm -f conftest.$ac_objext
6524 if { (ac_try="$ac_compile"
6525 case "(($ac_try" in
6526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6527   *) ac_try_echo=$ac_try;;
6528 esac
6529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6530   (eval "$ac_compile") 2>conftest.er1
6531   ac_status=$?
6532   grep -v '^ *+' conftest.er1 >conftest.err
6533   rm -f conftest.er1
6534   cat conftest.err >&5
6535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536   (exit $ac_status); } && {
6537          test -z "$ac_c_werror_flag" ||
6538          test ! -s conftest.err
6539        } && test -s conftest.$ac_objext; then
6540   ac_cv_header_stdc=yes
6541 else
6542   echo "$as_me: failed program was:" >&5
6543 sed 's/^/| /' conftest.$ac_ext >&5
6544
6545         ac_cv_header_stdc=no
6546 fi
6547
6548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6549
6550 if test $ac_cv_header_stdc = yes; then
6551   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6552   cat >conftest.$ac_ext <<_ACEOF
6553 /* confdefs.h.  */
6554 _ACEOF
6555 cat confdefs.h >>conftest.$ac_ext
6556 cat >>conftest.$ac_ext <<_ACEOF
6557 /* end confdefs.h.  */
6558 #include <string.h>
6559
6560 _ACEOF
6561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6562   $EGREP "memchr" >/dev/null 2>&1; then
6563   :
6564 else
6565   ac_cv_header_stdc=no
6566 fi
6567 rm -f conftest*
6568
6569 fi
6570
6571 if test $ac_cv_header_stdc = yes; then
6572   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6573   cat >conftest.$ac_ext <<_ACEOF
6574 /* confdefs.h.  */
6575 _ACEOF
6576 cat confdefs.h >>conftest.$ac_ext
6577 cat >>conftest.$ac_ext <<_ACEOF
6578 /* end confdefs.h.  */
6579 #include <stdlib.h>
6580
6581 _ACEOF
6582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6583   $EGREP "free" >/dev/null 2>&1; then
6584   :
6585 else
6586   ac_cv_header_stdc=no
6587 fi
6588 rm -f conftest*
6589
6590 fi
6591
6592 if test $ac_cv_header_stdc = yes; then
6593   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6594   if test "$cross_compiling" = yes; then
6595   :
6596 else
6597   cat >conftest.$ac_ext <<_ACEOF
6598 /* confdefs.h.  */
6599 _ACEOF
6600 cat confdefs.h >>conftest.$ac_ext
6601 cat >>conftest.$ac_ext <<_ACEOF
6602 /* end confdefs.h.  */
6603 #include <ctype.h>
6604 #include <stdlib.h>
6605 #if ((' ' & 0x0FF) == 0x020)
6606 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6607 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6608 #else
6609 # define ISLOWER(c) \
6610                    (('a' <= (c) && (c) <= 'i') \
6611                      || ('j' <= (c) && (c) <= 'r') \
6612                      || ('s' <= (c) && (c) <= 'z'))
6613 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6614 #endif
6615
6616 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6617 int
6618 main ()
6619 {
6620   int i;
6621   for (i = 0; i < 256; i++)
6622     if (XOR (islower (i), ISLOWER (i))
6623         || toupper (i) != TOUPPER (i))
6624       return 2;
6625   return 0;
6626 }
6627 _ACEOF
6628 rm -f conftest$ac_exeext
6629 if { (ac_try="$ac_link"
6630 case "(($ac_try" in
6631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6632   *) ac_try_echo=$ac_try;;
6633 esac
6634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6635   (eval "$ac_link") 2>&5
6636   ac_status=$?
6637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6639   { (case "(($ac_try" in
6640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6641   *) ac_try_echo=$ac_try;;
6642 esac
6643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6644   (eval "$ac_try") 2>&5
6645   ac_status=$?
6646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647   (exit $ac_status); }; }; then
6648   :
6649 else
6650   echo "$as_me: program exited with status $ac_status" >&5
6651 echo "$as_me: failed program was:" >&5
6652 sed 's/^/| /' conftest.$ac_ext >&5
6653
6654 ( exit $ac_status )
6655 ac_cv_header_stdc=no
6656 fi
6657 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6658 fi
6659
6660
6661 fi
6662 fi
6663 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6664 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6665 if test $ac_cv_header_stdc = yes; then
6666
6667 cat >>confdefs.h <<\_ACEOF
6668 #define STDC_HEADERS 1
6669 _ACEOF
6670
6671 fi
6672
6673 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6674 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6675 if test "${ac_cv_header_time+set}" = set; then
6676   echo $ECHO_N "(cached) $ECHO_C" >&6
6677 else
6678   cat >conftest.$ac_ext <<_ACEOF
6679 /* confdefs.h.  */
6680 _ACEOF
6681 cat confdefs.h >>conftest.$ac_ext
6682 cat >>conftest.$ac_ext <<_ACEOF
6683 /* end confdefs.h.  */
6684 #include <sys/types.h>
6685 #include <sys/time.h>
6686 #include <time.h>
6687
6688 int
6689 main ()
6690 {
6691 if ((struct tm *) 0)
6692 return 0;
6693   ;
6694   return 0;
6695 }
6696 _ACEOF
6697 rm -f conftest.$ac_objext
6698 if { (ac_try="$ac_compile"
6699 case "(($ac_try" in
6700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6701   *) ac_try_echo=$ac_try;;
6702 esac
6703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6704   (eval "$ac_compile") 2>conftest.er1
6705   ac_status=$?
6706   grep -v '^ *+' conftest.er1 >conftest.err
6707   rm -f conftest.er1
6708   cat conftest.err >&5
6709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710   (exit $ac_status); } && {
6711          test -z "$ac_c_werror_flag" ||
6712          test ! -s conftest.err
6713        } && test -s conftest.$ac_objext; then
6714   ac_cv_header_time=yes
6715 else
6716   echo "$as_me: failed program was:" >&5
6717 sed 's/^/| /' conftest.$ac_ext >&5
6718
6719         ac_cv_header_time=no
6720 fi
6721
6722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6723 fi
6724 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6725 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6726 if test $ac_cv_header_time = yes; then
6727
6728 cat >>confdefs.h <<\_ACEOF
6729 #define TIME_WITH_SYS_TIME 1
6730 _ACEOF
6731
6732 fi
6733
6734 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6735 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6736 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6737   echo $ECHO_N "(cached) $ECHO_C" >&6
6738 else
6739   cat >conftest.$ac_ext <<_ACEOF
6740 /* confdefs.h.  */
6741 _ACEOF
6742 cat confdefs.h >>conftest.$ac_ext
6743 cat >>conftest.$ac_ext <<_ACEOF
6744 /* end confdefs.h.  */
6745 #include <sys/types.h>
6746 #include <sys/wait.h>
6747 #ifndef WEXITSTATUS
6748 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6749 #endif
6750 #ifndef WIFEXITED
6751 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6752 #endif
6753
6754 int
6755 main ()
6756 {
6757   int s;
6758   wait (&s);
6759   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6760   ;
6761   return 0;
6762 }
6763 _ACEOF
6764 rm -f conftest.$ac_objext
6765 if { (ac_try="$ac_compile"
6766 case "(($ac_try" in
6767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6768   *) ac_try_echo=$ac_try;;
6769 esac
6770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6771   (eval "$ac_compile") 2>conftest.er1
6772   ac_status=$?
6773   grep -v '^ *+' conftest.er1 >conftest.err
6774   rm -f conftest.er1
6775   cat conftest.err >&5
6776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777   (exit $ac_status); } && {
6778          test -z "$ac_c_werror_flag" ||
6779          test ! -s conftest.err
6780        } && test -s conftest.$ac_objext; then
6781   ac_cv_header_sys_wait_h=yes
6782 else
6783   echo "$as_me: failed program was:" >&5
6784 sed 's/^/| /' conftest.$ac_ext >&5
6785
6786         ac_cv_header_sys_wait_h=no
6787 fi
6788
6789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6790 fi
6791 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6792 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6793 if test $ac_cv_header_sys_wait_h = yes; then
6794
6795 cat >>confdefs.h <<\_ACEOF
6796 #define HAVE_SYS_WAIT_H 1
6797 _ACEOF
6798
6799 fi
6800
6801
6802
6803
6804
6805
6806 ac_header_dirent=no
6807 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6808   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6809 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6810 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
6811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6812   echo $ECHO_N "(cached) $ECHO_C" >&6
6813 else
6814   cat >conftest.$ac_ext <<_ACEOF
6815 /* confdefs.h.  */
6816 _ACEOF
6817 cat confdefs.h >>conftest.$ac_ext
6818 cat >>conftest.$ac_ext <<_ACEOF
6819 /* end confdefs.h.  */
6820 #include <sys/types.h>
6821 #include <$ac_hdr>
6822
6823 int
6824 main ()
6825 {
6826 if ((DIR *) 0)
6827 return 0;
6828   ;
6829   return 0;
6830 }
6831 _ACEOF
6832 rm -f conftest.$ac_objext
6833 if { (ac_try="$ac_compile"
6834 case "(($ac_try" in
6835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6836   *) ac_try_echo=$ac_try;;
6837 esac
6838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6839   (eval "$ac_compile") 2>conftest.er1
6840   ac_status=$?
6841   grep -v '^ *+' conftest.er1 >conftest.err
6842   rm -f conftest.er1
6843   cat conftest.err >&5
6844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845   (exit $ac_status); } && {
6846          test -z "$ac_c_werror_flag" ||
6847          test ! -s conftest.err
6848        } && test -s conftest.$ac_objext; then
6849   eval "$as_ac_Header=yes"
6850 else
6851   echo "$as_me: failed program was:" >&5
6852 sed 's/^/| /' conftest.$ac_ext >&5
6853
6854         eval "$as_ac_Header=no"
6855 fi
6856
6857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6858 fi
6859 ac_res=`eval echo '${'$as_ac_Header'}'`
6860                { echo "$as_me:$LINENO: result: $ac_res" >&5
6861 echo "${ECHO_T}$ac_res" >&6; }
6862 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6863   cat >>confdefs.h <<_ACEOF
6864 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6865 _ACEOF
6866
6867 ac_header_dirent=$ac_hdr; break
6868 fi
6869
6870 done
6871 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6872 if test $ac_header_dirent = dirent.h; then
6873   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
6874 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
6875 if test "${ac_cv_search_opendir+set}" = set; then
6876   echo $ECHO_N "(cached) $ECHO_C" >&6
6877 else
6878   ac_func_search_save_LIBS=$LIBS
6879 cat >conftest.$ac_ext <<_ACEOF
6880 /* confdefs.h.  */
6881 _ACEOF
6882 cat confdefs.h >>conftest.$ac_ext
6883 cat >>conftest.$ac_ext <<_ACEOF
6884 /* end confdefs.h.  */
6885
6886 /* Override any GCC internal prototype to avoid an error.
6887    Use char because int might match the return type of a GCC
6888    builtin and then its argument prototype would still apply.  */
6889 #ifdef __cplusplus
6890 extern "C"
6891 #endif
6892 char opendir ();
6893 int
6894 main ()
6895 {
6896 return opendir ();
6897   ;
6898   return 0;
6899 }
6900 _ACEOF
6901 for ac_lib in '' dir; do
6902   if test -z "$ac_lib"; then
6903     ac_res="none required"
6904   else
6905     ac_res=-l$ac_lib
6906     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6907   fi
6908   rm -f conftest.$ac_objext conftest$ac_exeext
6909 if { (ac_try="$ac_link"
6910 case "(($ac_try" in
6911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6912   *) ac_try_echo=$ac_try;;
6913 esac
6914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6915   (eval "$ac_link") 2>conftest.er1
6916   ac_status=$?
6917   grep -v '^ *+' conftest.er1 >conftest.err
6918   rm -f conftest.er1
6919   cat conftest.err >&5
6920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921   (exit $ac_status); } && {
6922          test -z "$ac_c_werror_flag" ||
6923          test ! -s conftest.err
6924        } && test -s conftest$ac_exeext &&
6925        $as_test_x conftest$ac_exeext; then
6926   ac_cv_search_opendir=$ac_res
6927 else
6928   echo "$as_me: failed program was:" >&5
6929 sed 's/^/| /' conftest.$ac_ext >&5
6930
6931
6932 fi
6933
6934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6935       conftest$ac_exeext
6936   if test "${ac_cv_search_opendir+set}" = set; then
6937   break
6938 fi
6939 done
6940 if test "${ac_cv_search_opendir+set}" = set; then
6941   :
6942 else
6943   ac_cv_search_opendir=no
6944 fi
6945 rm conftest.$ac_ext
6946 LIBS=$ac_func_search_save_LIBS
6947 fi
6948 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6949 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
6950 ac_res=$ac_cv_search_opendir
6951 if test "$ac_res" != no; then
6952   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6953
6954 fi
6955
6956 else
6957   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
6958 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
6959 if test "${ac_cv_search_opendir+set}" = set; then
6960   echo $ECHO_N "(cached) $ECHO_C" >&6
6961 else
6962   ac_func_search_save_LIBS=$LIBS
6963 cat >conftest.$ac_ext <<_ACEOF
6964 /* confdefs.h.  */
6965 _ACEOF
6966 cat confdefs.h >>conftest.$ac_ext
6967 cat >>conftest.$ac_ext <<_ACEOF
6968 /* end confdefs.h.  */
6969
6970 /* Override any GCC internal prototype to avoid an error.
6971    Use char because int might match the return type of a GCC
6972    builtin and then its argument prototype would still apply.  */
6973 #ifdef __cplusplus
6974 extern "C"
6975 #endif
6976 char opendir ();
6977 int
6978 main ()
6979 {
6980 return opendir ();
6981   ;
6982   return 0;
6983 }
6984 _ACEOF
6985 for ac_lib in '' x; do
6986   if test -z "$ac_lib"; then
6987     ac_res="none required"
6988   else
6989     ac_res=-l$ac_lib
6990     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6991   fi
6992   rm -f conftest.$ac_objext conftest$ac_exeext
6993 if { (ac_try="$ac_link"
6994 case "(($ac_try" in
6995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6996   *) ac_try_echo=$ac_try;;
6997 esac
6998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6999   (eval "$ac_link") 2>conftest.er1
7000   ac_status=$?
7001   grep -v '^ *+' conftest.er1 >conftest.err
7002   rm -f conftest.er1
7003   cat conftest.err >&5
7004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005   (exit $ac_status); } && {
7006          test -z "$ac_c_werror_flag" ||
7007          test ! -s conftest.err
7008        } && test -s conftest$ac_exeext &&
7009        $as_test_x conftest$ac_exeext; then
7010   ac_cv_search_opendir=$ac_res
7011 else
7012   echo "$as_me: failed program was:" >&5
7013 sed 's/^/| /' conftest.$ac_ext >&5
7014
7015
7016 fi
7017
7018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7019       conftest$ac_exeext
7020   if test "${ac_cv_search_opendir+set}" = set; then
7021   break
7022 fi
7023 done
7024 if test "${ac_cv_search_opendir+set}" = set; then
7025   :
7026 else
7027   ac_cv_search_opendir=no
7028 fi
7029 rm conftest.$ac_ext
7030 LIBS=$ac_func_search_save_LIBS
7031 fi
7032 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7033 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
7034 ac_res=$ac_cv_search_opendir
7035 if test "$ac_res" != no; then
7036   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7037
7038 fi
7039
7040 fi
7041
7042 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7043 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7044 if test "${ac_cv_type_signal+set}" = set; then
7045   echo $ECHO_N "(cached) $ECHO_C" >&6
7046 else
7047   cat >conftest.$ac_ext <<_ACEOF
7048 /* confdefs.h.  */
7049 _ACEOF
7050 cat confdefs.h >>conftest.$ac_ext
7051 cat >>conftest.$ac_ext <<_ACEOF
7052 /* end confdefs.h.  */
7053 #include <sys/types.h>
7054 #include <signal.h>
7055
7056 int
7057 main ()
7058 {
7059 return *(signal (0, 0)) (0) == 1;
7060   ;
7061   return 0;
7062 }
7063 _ACEOF
7064 rm -f conftest.$ac_objext
7065 if { (ac_try="$ac_compile"
7066 case "(($ac_try" in
7067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7068   *) ac_try_echo=$ac_try;;
7069 esac
7070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7071   (eval "$ac_compile") 2>conftest.er1
7072   ac_status=$?
7073   grep -v '^ *+' conftest.er1 >conftest.err
7074   rm -f conftest.er1
7075   cat conftest.err >&5
7076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077   (exit $ac_status); } && {
7078          test -z "$ac_c_werror_flag" ||
7079          test ! -s conftest.err
7080        } && test -s conftest.$ac_objext; then
7081   ac_cv_type_signal=int
7082 else
7083   echo "$as_me: failed program was:" >&5
7084 sed 's/^/| /' conftest.$ac_ext >&5
7085
7086         ac_cv_type_signal=void
7087 fi
7088
7089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7090 fi
7091 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7092 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7093
7094 cat >>confdefs.h <<_ACEOF
7095 #define RETSIGTYPE $ac_cv_type_signal
7096 _ACEOF
7097
7098
7099 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7110                   inttypes.h stdint.h unistd.h
7111 do
7112 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7113 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7116   echo $ECHO_N "(cached) $ECHO_C" >&6
7117 else
7118   cat >conftest.$ac_ext <<_ACEOF
7119 /* confdefs.h.  */
7120 _ACEOF
7121 cat confdefs.h >>conftest.$ac_ext
7122 cat >>conftest.$ac_ext <<_ACEOF
7123 /* end confdefs.h.  */
7124 $ac_includes_default
7125
7126 #include <$ac_header>
7127 _ACEOF
7128 rm -f conftest.$ac_objext
7129 if { (ac_try="$ac_compile"
7130 case "(($ac_try" in
7131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7132   *) ac_try_echo=$ac_try;;
7133 esac
7134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7135   (eval "$ac_compile") 2>conftest.er1
7136   ac_status=$?
7137   grep -v '^ *+' conftest.er1 >conftest.err
7138   rm -f conftest.er1
7139   cat conftest.err >&5
7140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141   (exit $ac_status); } && {
7142          test -z "$ac_c_werror_flag" ||
7143          test ! -s conftest.err
7144        } && test -s conftest.$ac_objext; then
7145   eval "$as_ac_Header=yes"
7146 else
7147   echo "$as_me: failed program was:" >&5
7148 sed 's/^/| /' conftest.$ac_ext >&5
7149
7150         eval "$as_ac_Header=no"
7151 fi
7152
7153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7154 fi
7155 ac_res=`eval echo '${'$as_ac_Header'}'`
7156                { echo "$as_me:$LINENO: result: $ac_res" >&5
7157 echo "${ECHO_T}$ac_res" >&6; }
7158 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7159   cat >>confdefs.h <<_ACEOF
7160 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7161 _ACEOF
7162
7163 fi
7164
7165 done
7166
7167
7168
7169
7170
7171
7172
7173 for ac_header in stropts.h sys/time.h string.h unistd.h sys/systeminfo.h
7174 do
7175 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7177   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7180   echo $ECHO_N "(cached) $ECHO_C" >&6
7181 fi
7182 ac_res=`eval echo '${'$as_ac_Header'}'`
7183                { echo "$as_me:$LINENO: result: $ac_res" >&5
7184 echo "${ECHO_T}$ac_res" >&6; }
7185 else
7186   # Is the header compilable?
7187 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7188 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7189 cat >conftest.$ac_ext <<_ACEOF
7190 /* confdefs.h.  */
7191 _ACEOF
7192 cat confdefs.h >>conftest.$ac_ext
7193 cat >>conftest.$ac_ext <<_ACEOF
7194 /* end confdefs.h.  */
7195 $ac_includes_default
7196 #include <$ac_header>
7197 _ACEOF
7198 rm -f conftest.$ac_objext
7199 if { (ac_try="$ac_compile"
7200 case "(($ac_try" in
7201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7202   *) ac_try_echo=$ac_try;;
7203 esac
7204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7205   (eval "$ac_compile") 2>conftest.er1
7206   ac_status=$?
7207   grep -v '^ *+' conftest.er1 >conftest.err
7208   rm -f conftest.er1
7209   cat conftest.err >&5
7210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211   (exit $ac_status); } && {
7212          test -z "$ac_c_werror_flag" ||
7213          test ! -s conftest.err
7214        } && test -s conftest.$ac_objext; then
7215   ac_header_compiler=yes
7216 else
7217   echo "$as_me: failed program was:" >&5
7218 sed 's/^/| /' conftest.$ac_ext >&5
7219
7220         ac_header_compiler=no
7221 fi
7222
7223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7224 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7225 echo "${ECHO_T}$ac_header_compiler" >&6; }
7226
7227 # Is the header present?
7228 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7229 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7230 cat >conftest.$ac_ext <<_ACEOF
7231 /* confdefs.h.  */
7232 _ACEOF
7233 cat confdefs.h >>conftest.$ac_ext
7234 cat >>conftest.$ac_ext <<_ACEOF
7235 /* end confdefs.h.  */
7236 #include <$ac_header>
7237 _ACEOF
7238 if { (ac_try="$ac_cpp conftest.$ac_ext"
7239 case "(($ac_try" in
7240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7241   *) ac_try_echo=$ac_try;;
7242 esac
7243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7244   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7245   ac_status=$?
7246   grep -v '^ *+' conftest.er1 >conftest.err
7247   rm -f conftest.er1
7248   cat conftest.err >&5
7249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250   (exit $ac_status); } >/dev/null && {
7251          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7252          test ! -s conftest.err
7253        }; then
7254   ac_header_preproc=yes
7255 else
7256   echo "$as_me: failed program was:" >&5
7257 sed 's/^/| /' conftest.$ac_ext >&5
7258
7259   ac_header_preproc=no
7260 fi
7261
7262 rm -f conftest.err conftest.$ac_ext
7263 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7264 echo "${ECHO_T}$ac_header_preproc" >&6; }
7265
7266 # So?  What about this header?
7267 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7268   yes:no: )
7269     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7270 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7271     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7272 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7273     ac_header_preproc=yes
7274     ;;
7275   no:yes:* )
7276     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7277 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7278     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7279 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7280     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7281 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7282     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7283 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7284     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7285 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7286     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7287 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7288
7289     ;;
7290 esac
7291 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7294   echo $ECHO_N "(cached) $ECHO_C" >&6
7295 else
7296   eval "$as_ac_Header=\$ac_header_preproc"
7297 fi
7298 ac_res=`eval echo '${'$as_ac_Header'}'`
7299                { echo "$as_me:$LINENO: result: $ac_res" >&5
7300 echo "${ECHO_T}$ac_res" >&6; }
7301
7302 fi
7303 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7304   cat >>confdefs.h <<_ACEOF
7305 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7306 _ACEOF
7307
7308 fi
7309
7310 done
7311
7312
7313
7314 for ac_header in fcntl.h sys/fcntl.h
7315 do
7316 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7318   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7321   echo $ECHO_N "(cached) $ECHO_C" >&6
7322 fi
7323 ac_res=`eval echo '${'$as_ac_Header'}'`
7324                { echo "$as_me:$LINENO: result: $ac_res" >&5
7325 echo "${ECHO_T}$ac_res" >&6; }
7326 else
7327   # Is the header compilable?
7328 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7329 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7330 cat >conftest.$ac_ext <<_ACEOF
7331 /* confdefs.h.  */
7332 _ACEOF
7333 cat confdefs.h >>conftest.$ac_ext
7334 cat >>conftest.$ac_ext <<_ACEOF
7335 /* end confdefs.h.  */
7336 $ac_includes_default
7337 #include <$ac_header>
7338 _ACEOF
7339 rm -f conftest.$ac_objext
7340 if { (ac_try="$ac_compile"
7341 case "(($ac_try" in
7342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7343   *) ac_try_echo=$ac_try;;
7344 esac
7345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7346   (eval "$ac_compile") 2>conftest.er1
7347   ac_status=$?
7348   grep -v '^ *+' conftest.er1 >conftest.err
7349   rm -f conftest.er1
7350   cat conftest.err >&5
7351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352   (exit $ac_status); } && {
7353          test -z "$ac_c_werror_flag" ||
7354          test ! -s conftest.err
7355        } && test -s conftest.$ac_objext; then
7356   ac_header_compiler=yes
7357 else
7358   echo "$as_me: failed program was:" >&5
7359 sed 's/^/| /' conftest.$ac_ext >&5
7360
7361         ac_header_compiler=no
7362 fi
7363
7364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7365 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7366 echo "${ECHO_T}$ac_header_compiler" >&6; }
7367
7368 # Is the header present?
7369 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7370 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7371 cat >conftest.$ac_ext <<_ACEOF
7372 /* confdefs.h.  */
7373 _ACEOF
7374 cat confdefs.h >>conftest.$ac_ext
7375 cat >>conftest.$ac_ext <<_ACEOF
7376 /* end confdefs.h.  */
7377 #include <$ac_header>
7378 _ACEOF
7379 if { (ac_try="$ac_cpp conftest.$ac_ext"
7380 case "(($ac_try" in
7381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7382   *) ac_try_echo=$ac_try;;
7383 esac
7384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7385   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7386   ac_status=$?
7387   grep -v '^ *+' conftest.er1 >conftest.err
7388   rm -f conftest.er1
7389   cat conftest.err >&5
7390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7391   (exit $ac_status); } >/dev/null && {
7392          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7393          test ! -s conftest.err
7394        }; then
7395   ac_header_preproc=yes
7396 else
7397   echo "$as_me: failed program was:" >&5
7398 sed 's/^/| /' conftest.$ac_ext >&5
7399
7400   ac_header_preproc=no
7401 fi
7402
7403 rm -f conftest.err conftest.$ac_ext
7404 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7405 echo "${ECHO_T}$ac_header_preproc" >&6; }
7406
7407 # So?  What about this header?
7408 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7409   yes:no: )
7410     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7411 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7412     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7413 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7414     ac_header_preproc=yes
7415     ;;
7416   no:yes:* )
7417     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7418 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7419     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7420 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7421     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7422 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7423     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7424 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7425     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7426 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7427     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7428 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7429
7430     ;;
7431 esac
7432 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7435   echo $ECHO_N "(cached) $ECHO_C" >&6
7436 else
7437   eval "$as_ac_Header=\$ac_header_preproc"
7438 fi
7439 ac_res=`eval echo '${'$as_ac_Header'}'`
7440                { echo "$as_me:$LINENO: result: $ac_res" >&5
7441 echo "${ECHO_T}$ac_res" >&6; }
7442
7443 fi
7444 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7445   cat >>confdefs.h <<_ACEOF
7446 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7447 _ACEOF
7448  break
7449 fi
7450
7451 done
7452
7453
7454
7455 for ac_header in sys/socket.h lan/socket.h
7456 do
7457 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7458 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7459   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7461 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7462   echo $ECHO_N "(cached) $ECHO_C" >&6
7463 fi
7464 ac_res=`eval echo '${'$as_ac_Header'}'`
7465                { echo "$as_me:$LINENO: result: $ac_res" >&5
7466 echo "${ECHO_T}$ac_res" >&6; }
7467 else
7468   # Is the header compilable?
7469 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7470 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7471 cat >conftest.$ac_ext <<_ACEOF
7472 /* confdefs.h.  */
7473 _ACEOF
7474 cat confdefs.h >>conftest.$ac_ext
7475 cat >>conftest.$ac_ext <<_ACEOF
7476 /* end confdefs.h.  */
7477 $ac_includes_default
7478 #include <$ac_header>
7479 _ACEOF
7480 rm -f conftest.$ac_objext
7481 if { (ac_try="$ac_compile"
7482 case "(($ac_try" in
7483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7484   *) ac_try_echo=$ac_try;;
7485 esac
7486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7487   (eval "$ac_compile") 2>conftest.er1
7488   ac_status=$?
7489   grep -v '^ *+' conftest.er1 >conftest.err
7490   rm -f conftest.er1
7491   cat conftest.err >&5
7492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493   (exit $ac_status); } && {
7494          test -z "$ac_c_werror_flag" ||
7495          test ! -s conftest.err
7496        } && test -s conftest.$ac_objext; then
7497   ac_header_compiler=yes
7498 else
7499   echo "$as_me: failed program was:" >&5
7500 sed 's/^/| /' conftest.$ac_ext >&5
7501
7502         ac_header_compiler=no
7503 fi
7504
7505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7506 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7507 echo "${ECHO_T}$ac_header_compiler" >&6; }
7508
7509 # Is the header present?
7510 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7511 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7512 cat >conftest.$ac_ext <<_ACEOF
7513 /* confdefs.h.  */
7514 _ACEOF
7515 cat confdefs.h >>conftest.$ac_ext
7516 cat >>conftest.$ac_ext <<_ACEOF
7517 /* end confdefs.h.  */
7518 #include <$ac_header>
7519 _ACEOF
7520 if { (ac_try="$ac_cpp conftest.$ac_ext"
7521 case "(($ac_try" in
7522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7523   *) ac_try_echo=$ac_try;;
7524 esac
7525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7526   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7527   ac_status=$?
7528   grep -v '^ *+' conftest.er1 >conftest.err
7529   rm -f conftest.er1
7530   cat conftest.err >&5
7531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532   (exit $ac_status); } >/dev/null && {
7533          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7534          test ! -s conftest.err
7535        }; then
7536   ac_header_preproc=yes
7537 else
7538   echo "$as_me: failed program was:" >&5
7539 sed 's/^/| /' conftest.$ac_ext >&5
7540
7541   ac_header_preproc=no
7542 fi
7543
7544 rm -f conftest.err conftest.$ac_ext
7545 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7546 echo "${ECHO_T}$ac_header_preproc" >&6; }
7547
7548 # So?  What about this header?
7549 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7550   yes:no: )
7551     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7552 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7553     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7554 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7555     ac_header_preproc=yes
7556     ;;
7557   no:yes:* )
7558     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7559 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7560     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7561 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7562     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7563 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7564     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7565 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7566     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7567 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7568     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7569 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7570
7571     ;;
7572 esac
7573 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7576   echo $ECHO_N "(cached) $ECHO_C" >&6
7577 else
7578   eval "$as_ac_Header=\$ac_header_preproc"
7579 fi
7580 ac_res=`eval echo '${'$as_ac_Header'}'`
7581                { echo "$as_me:$LINENO: result: $ac_res" >&5
7582 echo "${ECHO_T}$ac_res" >&6; }
7583
7584 fi
7585 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7586   cat >>confdefs.h <<_ACEOF
7587 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7588 _ACEOF
7589  break
7590 fi
7591
7592 done
7593
7594 if test "${ac_cv_header_stddef_h+set}" = set; then
7595   { echo "$as_me:$LINENO: checking for stddef.h" >&5
7596 echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6; }
7597 if test "${ac_cv_header_stddef_h+set}" = set; then
7598   echo $ECHO_N "(cached) $ECHO_C" >&6
7599 fi
7600 { echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
7601 echo "${ECHO_T}$ac_cv_header_stddef_h" >&6; }
7602 else
7603   # Is the header compilable?
7604 { echo "$as_me:$LINENO: checking stddef.h usability" >&5
7605 echo $ECHO_N "checking stddef.h usability... $ECHO_C" >&6; }
7606 cat >conftest.$ac_ext <<_ACEOF
7607 /* confdefs.h.  */
7608 _ACEOF
7609 cat confdefs.h >>conftest.$ac_ext
7610 cat >>conftest.$ac_ext <<_ACEOF
7611 /* end confdefs.h.  */
7612 $ac_includes_default
7613 #include <stddef.h>
7614 _ACEOF
7615 rm -f conftest.$ac_objext
7616 if { (ac_try="$ac_compile"
7617 case "(($ac_try" in
7618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7619   *) ac_try_echo=$ac_try;;
7620 esac
7621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7622   (eval "$ac_compile") 2>conftest.er1
7623   ac_status=$?
7624   grep -v '^ *+' conftest.er1 >conftest.err
7625   rm -f conftest.er1
7626   cat conftest.err >&5
7627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628   (exit $ac_status); } && {
7629          test -z "$ac_c_werror_flag" ||
7630          test ! -s conftest.err
7631        } && test -s conftest.$ac_objext; then
7632   ac_header_compiler=yes
7633 else
7634   echo "$as_me: failed program was:" >&5
7635 sed 's/^/| /' conftest.$ac_ext >&5
7636
7637         ac_header_compiler=no
7638 fi
7639
7640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7641 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7642 echo "${ECHO_T}$ac_header_compiler" >&6; }
7643
7644 # Is the header present?
7645 { echo "$as_me:$LINENO: checking stddef.h presence" >&5
7646 echo $ECHO_N "checking stddef.h presence... $ECHO_C" >&6; }
7647 cat >conftest.$ac_ext <<_ACEOF
7648 /* confdefs.h.  */
7649 _ACEOF
7650 cat confdefs.h >>conftest.$ac_ext
7651 cat >>conftest.$ac_ext <<_ACEOF
7652 /* end confdefs.h.  */
7653 #include <stddef.h>
7654 _ACEOF
7655 if { (ac_try="$ac_cpp conftest.$ac_ext"
7656 case "(($ac_try" in
7657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7658   *) ac_try_echo=$ac_try;;
7659 esac
7660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7661   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7662   ac_status=$?
7663   grep -v '^ *+' conftest.er1 >conftest.err
7664   rm -f conftest.er1
7665   cat conftest.err >&5
7666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667   (exit $ac_status); } >/dev/null && {
7668          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7669          test ! -s conftest.err
7670        }; then
7671   ac_header_preproc=yes
7672 else
7673   echo "$as_me: failed program was:" >&5
7674 sed 's/^/| /' conftest.$ac_ext >&5
7675
7676   ac_header_preproc=no
7677 fi
7678
7679 rm -f conftest.err conftest.$ac_ext
7680 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7681 echo "${ECHO_T}$ac_header_preproc" >&6; }
7682
7683 # So?  What about this header?
7684 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7685   yes:no: )
7686     { echo "$as_me:$LINENO: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&5
7687 echo "$as_me: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7688     { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the compiler's result" >&5
7689 echo "$as_me: WARNING: stddef.h: proceeding with the compiler's result" >&2;}
7690     ac_header_preproc=yes
7691     ;;
7692   no:yes:* )
7693     { echo "$as_me:$LINENO: WARNING: stddef.h: present but cannot be compiled" >&5
7694 echo "$as_me: WARNING: stddef.h: present but cannot be compiled" >&2;}
7695     { echo "$as_me:$LINENO: WARNING: stddef.h:     check for missing prerequisite headers?" >&5
7696 echo "$as_me: WARNING: stddef.h:     check for missing prerequisite headers?" >&2;}
7697     { echo "$as_me:$LINENO: WARNING: stddef.h: see the Autoconf documentation" >&5
7698 echo "$as_me: WARNING: stddef.h: see the Autoconf documentation" >&2;}
7699     { echo "$as_me:$LINENO: WARNING: stddef.h:     section \"Present But Cannot Be Compiled\"" >&5
7700 echo "$as_me: WARNING: stddef.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7701     { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the preprocessor's result" >&5
7702 echo "$as_me: WARNING: stddef.h: proceeding with the preprocessor's result" >&2;}
7703     { echo "$as_me:$LINENO: WARNING: stddef.h: in the future, the compiler will take precedence" >&5
7704 echo "$as_me: WARNING: stddef.h: in the future, the compiler will take precedence" >&2;}
7705
7706     ;;
7707 esac
7708 { echo "$as_me:$LINENO: checking for stddef.h" >&5
7709 echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6; }
7710 if test "${ac_cv_header_stddef_h+set}" = set; then
7711   echo $ECHO_N "(cached) $ECHO_C" >&6
7712 else
7713   ac_cv_header_stddef_h=$ac_header_preproc
7714 fi
7715 { echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
7716 echo "${ECHO_T}$ac_cv_header_stddef_h" >&6; }
7717
7718 fi
7719 if test $ac_cv_header_stddef_h = yes; then
7720   :
7721 else
7722   cat >>confdefs.h <<\_ACEOF
7723 #define X_WCHAR 1
7724 _ACEOF
7725
7726 fi
7727
7728
7729
7730
7731
7732
7733
7734 for ac_func in _getpty grantpt setitimer usleep
7735 do
7736 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7737 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7738 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7739 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7740   echo $ECHO_N "(cached) $ECHO_C" >&6
7741 else
7742   cat >conftest.$ac_ext <<_ACEOF
7743 /* confdefs.h.  */
7744 _ACEOF
7745 cat confdefs.h >>conftest.$ac_ext
7746 cat >>conftest.$ac_ext <<_ACEOF
7747 /* end confdefs.h.  */
7748 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7749    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7750 #define $ac_func innocuous_$ac_func
7751
7752 /* System header to define __stub macros and hopefully few prototypes,
7753     which can conflict with char $ac_func (); below.
7754     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7755     <limits.h> exists even on freestanding compilers.  */
7756
7757 #ifdef __STDC__
7758 # include <limits.h>
7759 #else
7760 # include <assert.h>
7761 #endif
7762
7763 #undef $ac_func
7764
7765 /* Override any GCC internal prototype to avoid an error.
7766    Use char because int might match the return type of a GCC
7767    builtin and then its argument prototype would still apply.  */
7768 #ifdef __cplusplus
7769 extern "C"
7770 #endif
7771 char $ac_func ();
7772 /* The GNU C library defines this for functions which it implements
7773     to always fail with ENOSYS.  Some functions are actually named
7774     something starting with __ and the normal name is an alias.  */
7775 #if defined __stub_$ac_func || defined __stub___$ac_func
7776 choke me
7777 #endif
7778
7779 int
7780 main ()
7781 {
7782 return $ac_func ();
7783   ;
7784   return 0;
7785 }
7786 _ACEOF
7787 rm -f conftest.$ac_objext conftest$ac_exeext
7788 if { (ac_try="$ac_link"
7789 case "(($ac_try" in
7790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7791   *) ac_try_echo=$ac_try;;
7792 esac
7793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7794   (eval "$ac_link") 2>conftest.er1
7795   ac_status=$?
7796   grep -v '^ *+' conftest.er1 >conftest.err
7797   rm -f conftest.er1
7798   cat conftest.err >&5
7799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7800   (exit $ac_status); } && {
7801          test -z "$ac_c_werror_flag" ||
7802          test ! -s conftest.err
7803        } && test -s conftest$ac_exeext &&
7804        $as_test_x conftest$ac_exeext; then
7805   eval "$as_ac_var=yes"
7806 else
7807   echo "$as_me: failed program was:" >&5
7808 sed 's/^/| /' conftest.$ac_ext >&5
7809
7810         eval "$as_ac_var=no"
7811 fi
7812
7813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7814       conftest$ac_exeext conftest.$ac_ext
7815 fi
7816 ac_res=`eval echo '${'$as_ac_var'}'`
7817                { echo "$as_me:$LINENO: result: $ac_res" >&5
7818 echo "${ECHO_T}$ac_res" >&6; }
7819 if test `eval echo '${'$as_ac_var'}'` = yes; then
7820   cat >>confdefs.h <<_ACEOF
7821 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7822 _ACEOF
7823
7824 fi
7825 done
7826
7827
7828
7829 for ac_func in gettimeofday ftime
7830 do
7831 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7832 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7833 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7834 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7835   echo $ECHO_N "(cached) $ECHO_C" >&6
7836 else
7837   cat >conftest.$ac_ext <<_ACEOF
7838 /* confdefs.h.  */
7839 _ACEOF
7840 cat confdefs.h >>conftest.$ac_ext
7841 cat >>conftest.$ac_ext <<_ACEOF
7842 /* end confdefs.h.  */
7843 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7844    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7845 #define $ac_func innocuous_$ac_func
7846
7847 /* System header to define __stub macros and hopefully few prototypes,
7848     which can conflict with char $ac_func (); below.
7849     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7850     <limits.h> exists even on freestanding compilers.  */
7851
7852 #ifdef __STDC__
7853 # include <limits.h>
7854 #else
7855 # include <assert.h>
7856 #endif
7857
7858 #undef $ac_func
7859
7860 /* Override any GCC internal prototype to avoid an error.
7861    Use char because int might match the return type of a GCC
7862    builtin and then its argument prototype would still apply.  */
7863 #ifdef __cplusplus
7864 extern "C"
7865 #endif
7866 char $ac_func ();
7867 /* The GNU C library defines this for functions which it implements
7868     to always fail with ENOSYS.  Some functions are actually named
7869     something starting with __ and the normal name is an alias.  */
7870 #if defined __stub_$ac_func || defined __stub___$ac_func
7871 choke me
7872 #endif
7873
7874 int
7875 main ()
7876 {
7877 return $ac_func ();
7878   ;
7879   return 0;
7880 }
7881 _ACEOF
7882 rm -f conftest.$ac_objext conftest$ac_exeext
7883 if { (ac_try="$ac_link"
7884 case "(($ac_try" in
7885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7886   *) ac_try_echo=$ac_try;;
7887 esac
7888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7889   (eval "$ac_link") 2>conftest.er1
7890   ac_status=$?
7891   grep -v '^ *+' conftest.er1 >conftest.err
7892   rm -f conftest.er1
7893   cat conftest.err >&5
7894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895   (exit $ac_status); } && {
7896          test -z "$ac_c_werror_flag" ||
7897          test ! -s conftest.err
7898        } && test -s conftest$ac_exeext &&
7899        $as_test_x conftest$ac_exeext; then
7900   eval "$as_ac_var=yes"
7901 else
7902   echo "$as_me: failed program was:" >&5
7903 sed 's/^/| /' conftest.$ac_ext >&5
7904
7905         eval "$as_ac_var=no"
7906 fi
7907
7908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7909       conftest$ac_exeext conftest.$ac_ext
7910 fi
7911 ac_res=`eval echo '${'$as_ac_var'}'`
7912                { echo "$as_me:$LINENO: result: $ac_res" >&5
7913 echo "${ECHO_T}$ac_res" >&6; }
7914 if test `eval echo '${'$as_ac_var'}'` = yes; then
7915   cat >>confdefs.h <<_ACEOF
7916 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7917 _ACEOF
7918  break
7919 fi
7920 done
7921
7922
7923
7924 for ac_func in random rand48
7925 do
7926 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7927 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7928 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7929 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7930   echo $ECHO_N "(cached) $ECHO_C" >&6
7931 else
7932   cat >conftest.$ac_ext <<_ACEOF
7933 /* confdefs.h.  */
7934 _ACEOF
7935 cat confdefs.h >>conftest.$ac_ext
7936 cat >>conftest.$ac_ext <<_ACEOF
7937 /* end confdefs.h.  */
7938 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7939    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7940 #define $ac_func innocuous_$ac_func
7941
7942 /* System header to define __stub macros and hopefully few prototypes,
7943     which can conflict with char $ac_func (); below.
7944     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7945     <limits.h> exists even on freestanding compilers.  */
7946
7947 #ifdef __STDC__
7948 # include <limits.h>
7949 #else
7950 # include <assert.h>
7951 #endif
7952
7953 #undef $ac_func
7954
7955 /* Override any GCC internal prototype to avoid an error.
7956    Use char because int might match the return type of a GCC
7957    builtin and then its argument prototype would still apply.  */
7958 #ifdef __cplusplus
7959 extern "C"
7960 #endif
7961 char $ac_func ();
7962 /* The GNU C library defines this for functions which it implements
7963     to always fail with ENOSYS.  Some functions are actually named
7964     something starting with __ and the normal name is an alias.  */
7965 #if defined __stub_$ac_func || defined __stub___$ac_func
7966 choke me
7967 #endif
7968
7969 int
7970 main ()
7971 {
7972 return $ac_func ();
7973   ;
7974   return 0;
7975 }
7976 _ACEOF
7977 rm -f conftest.$ac_objext conftest$ac_exeext
7978 if { (ac_try="$ac_link"
7979 case "(($ac_try" in
7980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7981   *) ac_try_echo=$ac_try;;
7982 esac
7983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7984   (eval "$ac_link") 2>conftest.er1
7985   ac_status=$?
7986   grep -v '^ *+' conftest.er1 >conftest.err
7987   rm -f conftest.er1
7988   cat conftest.err >&5
7989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990   (exit $ac_status); } && {
7991          test -z "$ac_c_werror_flag" ||
7992          test ! -s conftest.err
7993        } && test -s conftest$ac_exeext &&
7994        $as_test_x conftest$ac_exeext; then
7995   eval "$as_ac_var=yes"
7996 else
7997   echo "$as_me: failed program was:" >&5
7998 sed 's/^/| /' conftest.$ac_ext >&5
7999
8000         eval "$as_ac_var=no"
8001 fi
8002
8003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8004       conftest$ac_exeext conftest.$ac_ext
8005 fi
8006 ac_res=`eval echo '${'$as_ac_var'}'`
8007                { echo "$as_me:$LINENO: result: $ac_res" >&5
8008 echo "${ECHO_T}$ac_res" >&6; }
8009 if test `eval echo '${'$as_ac_var'}'` = yes; then
8010   cat >>confdefs.h <<_ACEOF
8011 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8012 _ACEOF
8013  break
8014 fi
8015 done
8016
8017
8018
8019 for ac_func in gethostname sysinfo
8020 do
8021 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8022 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8023 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8024 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8025   echo $ECHO_N "(cached) $ECHO_C" >&6
8026 else
8027   cat >conftest.$ac_ext <<_ACEOF
8028 /* confdefs.h.  */
8029 _ACEOF
8030 cat confdefs.h >>conftest.$ac_ext
8031 cat >>conftest.$ac_ext <<_ACEOF
8032 /* end confdefs.h.  */
8033 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8034    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8035 #define $ac_func innocuous_$ac_func
8036
8037 /* System header to define __stub macros and hopefully few prototypes,
8038     which can conflict with char $ac_func (); below.
8039     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8040     <limits.h> exists even on freestanding compilers.  */
8041
8042 #ifdef __STDC__
8043 # include <limits.h>
8044 #else
8045 # include <assert.h>
8046 #endif
8047
8048 #undef $ac_func
8049
8050 /* Override any GCC internal prototype to avoid an error.
8051    Use char because int might match the return type of a GCC
8052    builtin and then its argument prototype would still apply.  */
8053 #ifdef __cplusplus
8054 extern "C"
8055 #endif
8056 char $ac_func ();
8057 /* The GNU C library defines this for functions which it implements
8058     to always fail with ENOSYS.  Some functions are actually named
8059     something starting with __ and the normal name is an alias.  */
8060 #if defined __stub_$ac_func || defined __stub___$ac_func
8061 choke me
8062 #endif
8063
8064 int
8065 main ()
8066 {
8067 return $ac_func ();
8068   ;
8069   return 0;
8070 }
8071 _ACEOF
8072 rm -f conftest.$ac_objext conftest$ac_exeext
8073 if { (ac_try="$ac_link"
8074 case "(($ac_try" in
8075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8076   *) ac_try_echo=$ac_try;;
8077 esac
8078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8079   (eval "$ac_link") 2>conftest.er1
8080   ac_status=$?
8081   grep -v '^ *+' conftest.er1 >conftest.err
8082   rm -f conftest.er1
8083   cat conftest.err >&5
8084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085   (exit $ac_status); } && {
8086          test -z "$ac_c_werror_flag" ||
8087          test ! -s conftest.err
8088        } && test -s conftest$ac_exeext &&
8089        $as_test_x conftest$ac_exeext; then
8090   eval "$as_ac_var=yes"
8091 else
8092   echo "$as_me: failed program was:" >&5
8093 sed 's/^/| /' conftest.$ac_ext >&5
8094
8095         eval "$as_ac_var=no"
8096 fi
8097
8098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8099       conftest$ac_exeext conftest.$ac_ext
8100 fi
8101 ac_res=`eval echo '${'$as_ac_var'}'`
8102                { echo "$as_me:$LINENO: result: $ac_res" >&5
8103 echo "${ECHO_T}$ac_res" >&6; }
8104 if test `eval echo '${'$as_ac_var'}'` = yes; then
8105   cat >>confdefs.h <<_ACEOF
8106 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8107 _ACEOF
8108  break
8109 fi
8110 done
8111
8112 { echo "$as_me:$LINENO: checking for setlocale" >&5
8113 echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; }
8114 if test "${ac_cv_func_setlocale+set}" = set; then
8115   echo $ECHO_N "(cached) $ECHO_C" >&6
8116 else
8117   cat >conftest.$ac_ext <<_ACEOF
8118 /* confdefs.h.  */
8119 _ACEOF
8120 cat confdefs.h >>conftest.$ac_ext
8121 cat >>conftest.$ac_ext <<_ACEOF
8122 /* end confdefs.h.  */
8123 /* Define setlocale to an innocuous variant, in case <limits.h> declares setlocale.
8124    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8125 #define setlocale innocuous_setlocale
8126
8127 /* System header to define __stub macros and hopefully few prototypes,
8128     which can conflict with char setlocale (); below.
8129     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8130     <limits.h> exists even on freestanding compilers.  */
8131
8132 #ifdef __STDC__
8133 # include <limits.h>
8134 #else
8135 # include <assert.h>
8136 #endif
8137
8138 #undef setlocale
8139
8140 /* Override any GCC internal prototype to avoid an error.
8141    Use char because int might match the return type of a GCC
8142    builtin and then its argument prototype would still apply.  */
8143 #ifdef __cplusplus
8144 extern "C"
8145 #endif
8146 char setlocale ();
8147 /* The GNU C library defines this for functions which it implements
8148     to always fail with ENOSYS.  Some functions are actually named
8149     something starting with __ and the normal name is an alias.  */
8150 #if defined __stub_setlocale || defined __stub___setlocale
8151 choke me
8152 #endif
8153
8154 int
8155 main ()
8156 {
8157 return setlocale ();
8158   ;
8159   return 0;
8160 }
8161 _ACEOF
8162 rm -f conftest.$ac_objext conftest$ac_exeext
8163 if { (ac_try="$ac_link"
8164 case "(($ac_try" in
8165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8166   *) ac_try_echo=$ac_try;;
8167 esac
8168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8169   (eval "$ac_link") 2>conftest.er1
8170   ac_status=$?
8171   grep -v '^ *+' conftest.er1 >conftest.err
8172   rm -f conftest.er1
8173   cat conftest.err >&5
8174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175   (exit $ac_status); } && {
8176          test -z "$ac_c_werror_flag" ||
8177          test ! -s conftest.err
8178        } && test -s conftest$ac_exeext &&
8179        $as_test_x conftest$ac_exeext; then
8180   ac_cv_func_setlocale=yes
8181 else
8182   echo "$as_me: failed program was:" >&5
8183 sed 's/^/| /' conftest.$ac_ext >&5
8184
8185         ac_cv_func_setlocale=no
8186 fi
8187
8188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8189       conftest$ac_exeext conftest.$ac_ext
8190 fi
8191 { echo "$as_me:$LINENO: result: $ac_cv_func_setlocale" >&5
8192 echo "${ECHO_T}$ac_cv_func_setlocale" >&6; }
8193 if test $ac_cv_func_setlocale = yes; then
8194   :
8195 else
8196
8197 { echo "$as_me:$LINENO: checking for setlocale in -li" >&5
8198 echo $ECHO_N "checking for setlocale in -li... $ECHO_C" >&6; }
8199 if test "${ac_cv_lib_i_setlocale+set}" = set; then
8200   echo $ECHO_N "(cached) $ECHO_C" >&6
8201 else
8202   ac_check_lib_save_LIBS=$LIBS
8203 LIBS="-li  $LIBS"
8204 cat >conftest.$ac_ext <<_ACEOF
8205 /* confdefs.h.  */
8206 _ACEOF
8207 cat confdefs.h >>conftest.$ac_ext
8208 cat >>conftest.$ac_ext <<_ACEOF
8209 /* end confdefs.h.  */
8210
8211 /* Override any GCC internal prototype to avoid an error.
8212    Use char because int might match the return type of a GCC
8213    builtin and then its argument prototype would still apply.  */
8214 #ifdef __cplusplus
8215 extern "C"
8216 #endif
8217 char setlocale ();
8218 int
8219 main ()
8220 {
8221 return setlocale ();
8222   ;
8223   return 0;
8224 }
8225 _ACEOF
8226 rm -f conftest.$ac_objext conftest$ac_exeext
8227 if { (ac_try="$ac_link"
8228 case "(($ac_try" in
8229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8230   *) ac_try_echo=$ac_try;;
8231 esac
8232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8233   (eval "$ac_link") 2>conftest.er1
8234   ac_status=$?
8235   grep -v '^ *+' conftest.er1 >conftest.err
8236   rm -f conftest.er1
8237   cat conftest.err >&5
8238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239   (exit $ac_status); } && {
8240          test -z "$ac_c_werror_flag" ||
8241          test ! -s conftest.err
8242        } && test -s conftest$ac_exeext &&
8243        $as_test_x conftest$ac_exeext; then
8244   ac_cv_lib_i_setlocale=yes
8245 else
8246   echo "$as_me: failed program was:" >&5
8247 sed 's/^/| /' conftest.$ac_ext >&5
8248
8249         ac_cv_lib_i_setlocale=no
8250 fi
8251
8252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8253       conftest$ac_exeext conftest.$ac_ext
8254 LIBS=$ac_check_lib_save_LIBS
8255 fi
8256 { echo "$as_me:$LINENO: result: $ac_cv_lib_i_setlocale" >&5
8257 echo "${ECHO_T}$ac_cv_lib_i_setlocale" >&6; }
8258 if test $ac_cv_lib_i_setlocale = yes; then
8259   cat >>confdefs.h <<_ACEOF
8260 #define HAVE_LIBI 1
8261 _ACEOF
8262
8263   LIBS="-li $LIBS"
8264
8265 else
8266   cat >>confdefs.h <<\_ACEOF
8267 #define X_LOCALE 1
8268 _ACEOF
8269
8270 fi
8271
8272 fi
8273
8274
8275
8276 { echo "$as_me:$LINENO: checking for getpseudotty in -lseq" >&5
8277 echo $ECHO_N "checking for getpseudotty in -lseq... $ECHO_C" >&6; }
8278 if test "${ac_cv_lib_seq_getpseudotty+set}" = set; then
8279   echo $ECHO_N "(cached) $ECHO_C" >&6
8280 else
8281   ac_check_lib_save_LIBS=$LIBS
8282 LIBS="-lseq  $LIBS"
8283 cat >conftest.$ac_ext <<_ACEOF
8284 /* confdefs.h.  */
8285 _ACEOF
8286 cat confdefs.h >>conftest.$ac_ext
8287 cat >>conftest.$ac_ext <<_ACEOF
8288 /* end confdefs.h.  */
8289
8290 /* Override any GCC internal prototype to avoid an error.
8291    Use char because int might match the return type of a GCC
8292    builtin and then its argument prototype would still apply.  */
8293 #ifdef __cplusplus
8294 extern "C"
8295 #endif
8296 char getpseudotty ();
8297 int
8298 main ()
8299 {
8300 return getpseudotty ();
8301   ;
8302   return 0;
8303 }
8304 _ACEOF
8305 rm -f conftest.$ac_objext conftest$ac_exeext
8306 if { (ac_try="$ac_link"
8307 case "(($ac_try" in
8308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8309   *) ac_try_echo=$ac_try;;
8310 esac
8311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8312   (eval "$ac_link") 2>conftest.er1
8313   ac_status=$?
8314   grep -v '^ *+' conftest.er1 >conftest.err
8315   rm -f conftest.er1
8316   cat conftest.err >&5
8317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318   (exit $ac_status); } && {
8319          test -z "$ac_c_werror_flag" ||
8320          test ! -s conftest.err
8321        } && test -s conftest$ac_exeext &&
8322        $as_test_x conftest$ac_exeext; then
8323   ac_cv_lib_seq_getpseudotty=yes
8324 else
8325   echo "$as_me: failed program was:" >&5
8326 sed 's/^/| /' conftest.$ac_ext >&5
8327
8328         ac_cv_lib_seq_getpseudotty=no
8329 fi
8330
8331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8332       conftest$ac_exeext conftest.$ac_ext
8333 LIBS=$ac_check_lib_save_LIBS
8334 fi
8335 { echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getpseudotty" >&5
8336 echo "${ECHO_T}$ac_cv_lib_seq_getpseudotty" >&6; }
8337 if test $ac_cv_lib_seq_getpseudotty = yes; then
8338   cat >>confdefs.h <<_ACEOF
8339 #define HAVE_LIBSEQ 1
8340 _ACEOF
8341
8342   LIBS="-lseq $LIBS"
8343
8344 fi
8345
8346
8347 { echo "$as_me:$LINENO: checking for X" >&5
8348 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8349
8350
8351 # Check whether --with-x was given.
8352 if test "${with_x+set}" = set; then
8353   withval=$with_x;
8354 fi
8355
8356 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8357 if test "x$with_x" = xno; then
8358   # The user explicitly disabled X.
8359   have_x=disabled
8360 else
8361   case $x_includes,$x_libraries in #(
8362     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
8363 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
8364    { (exit 1); exit 1; }; };; #(
8365     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
8366   echo $ECHO_N "(cached) $ECHO_C" >&6
8367 else
8368   # One or both of the vars are not set, and there is no cached value.
8369 ac_x_includes=no ac_x_libraries=no
8370 rm -f -r conftest.dir
8371 if mkdir conftest.dir; then
8372   cd conftest.dir
8373   cat >Imakefile <<'_ACEOF'
8374 incroot:
8375         @echo incroot='${INCROOT}'
8376 usrlibdir:
8377         @echo usrlibdir='${USRLIBDIR}'
8378 libdir:
8379         @echo libdir='${LIBDIR}'
8380 _ACEOF
8381   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8382     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8383     for ac_var in incroot usrlibdir libdir; do
8384       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8385     done
8386     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8387     for ac_extension in a so sl; do
8388       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8389          test -f "$ac_im_libdir/libX11.$ac_extension"; then
8390         ac_im_usrlibdir=$ac_im_libdir; break
8391       fi
8392     done
8393     # Screen out bogus values from the imake configuration.  They are
8394     # bogus both because they are the default anyway, and because
8395     # using them would break gcc on systems where it needs fixed includes.
8396     case $ac_im_incroot in
8397         /usr/include) ac_x_includes= ;;
8398         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8399     esac
8400     case $ac_im_usrlibdir in
8401         /usr/lib | /lib) ;;
8402         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8403     esac
8404   fi
8405   cd ..
8406   rm -f -r conftest.dir
8407 fi
8408
8409 # Standard set of common directories for X headers.
8410 # Check X11 before X11Rn because it is often a symlink to the current release.
8411 ac_x_header_dirs='
8412 /usr/X11/include
8413 /usr/X11R6/include
8414 /usr/X11R5/include
8415 /usr/X11R4/include
8416
8417 /usr/include/X11
8418 /usr/include/X11R6
8419 /usr/include/X11R5
8420 /usr/include/X11R4
8421
8422 /usr/local/X11/include
8423 /usr/local/X11R6/include
8424 /usr/local/X11R5/include
8425 /usr/local/X11R4/include
8426
8427 /usr/local/include/X11
8428 /usr/local/include/X11R6
8429 /usr/local/include/X11R5
8430 /usr/local/include/X11R4
8431
8432 /usr/X386/include
8433 /usr/x386/include
8434 /usr/XFree86/include/X11
8435
8436 /usr/include
8437 /usr/local/include
8438 /usr/unsupported/include
8439 /usr/athena/include
8440 /usr/local/x11r5/include
8441 /usr/lpp/Xamples/include
8442
8443 /usr/openwin/include
8444 /usr/openwin/share/include'
8445
8446 if test "$ac_x_includes" = no; then
8447   # Guess where to find include files, by looking for Xlib.h.
8448   # First, try using that file with no special directory specified.
8449   cat >conftest.$ac_ext <<_ACEOF
8450 /* confdefs.h.  */
8451 _ACEOF
8452 cat confdefs.h >>conftest.$ac_ext
8453 cat >>conftest.$ac_ext <<_ACEOF
8454 /* end confdefs.h.  */
8455 #include <X11/Xlib.h>
8456 _ACEOF
8457 if { (ac_try="$ac_cpp conftest.$ac_ext"
8458 case "(($ac_try" in
8459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8460   *) ac_try_echo=$ac_try;;
8461 esac
8462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8463   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8464   ac_status=$?
8465   grep -v '^ *+' conftest.er1 >conftest.err
8466   rm -f conftest.er1
8467   cat conftest.err >&5
8468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469   (exit $ac_status); } >/dev/null && {
8470          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8471          test ! -s conftest.err
8472        }; then
8473   # We can compile using X headers with no special include directory.
8474 ac_x_includes=
8475 else
8476   echo "$as_me: failed program was:" >&5
8477 sed 's/^/| /' conftest.$ac_ext >&5
8478
8479   for ac_dir in $ac_x_header_dirs; do
8480   if test -r "$ac_dir/X11/Xlib.h"; then
8481     ac_x_includes=$ac_dir
8482     break
8483   fi
8484 done
8485 fi
8486
8487 rm -f conftest.err conftest.$ac_ext
8488 fi # $ac_x_includes = no
8489
8490 if test "$ac_x_libraries" = no; then
8491   # Check for the libraries.
8492   # See if we find them without any special options.
8493   # Don't add to $LIBS permanently.
8494   ac_save_LIBS=$LIBS
8495   LIBS="-lX11 $LIBS"
8496   cat >conftest.$ac_ext <<_ACEOF
8497 /* confdefs.h.  */
8498 _ACEOF
8499 cat confdefs.h >>conftest.$ac_ext
8500 cat >>conftest.$ac_ext <<_ACEOF
8501 /* end confdefs.h.  */
8502 #include <X11/Xlib.h>
8503 int
8504 main ()
8505 {
8506 XrmInitialize ()
8507   ;
8508   return 0;
8509 }
8510 _ACEOF
8511 rm -f conftest.$ac_objext conftest$ac_exeext
8512 if { (ac_try="$ac_link"
8513 case "(($ac_try" in
8514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8515   *) ac_try_echo=$ac_try;;
8516 esac
8517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8518   (eval "$ac_link") 2>conftest.er1
8519   ac_status=$?
8520   grep -v '^ *+' conftest.er1 >conftest.err
8521   rm -f conftest.er1
8522   cat conftest.err >&5
8523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524   (exit $ac_status); } && {
8525          test -z "$ac_c_werror_flag" ||
8526          test ! -s conftest.err
8527        } && test -s conftest$ac_exeext &&
8528        $as_test_x conftest$ac_exeext; then
8529   LIBS=$ac_save_LIBS
8530 # We can link X programs with no special library path.
8531 ac_x_libraries=
8532 else
8533   echo "$as_me: failed program was:" >&5
8534 sed 's/^/| /' conftest.$ac_ext >&5
8535
8536         LIBS=$ac_save_LIBS
8537 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8538 do
8539   # Don't even attempt the hair of trying to link an X program!
8540   for ac_extension in a so sl; do
8541     if test -r "$ac_dir/libX11.$ac_extension"; then
8542       ac_x_libraries=$ac_dir
8543       break 2
8544     fi
8545   done
8546 done
8547 fi
8548
8549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8550       conftest$ac_exeext conftest.$ac_ext
8551 fi # $ac_x_libraries = no
8552
8553 case $ac_x_includes,$ac_x_libraries in #(
8554   no,* | *,no | *\'*)
8555     # Didn't find X, or a directory has "'" in its name.
8556     ac_cv_have_x="have_x=no";; #(
8557   *)
8558     # Record where we found X for the cache.
8559     ac_cv_have_x="have_x=yes\
8560         ac_x_includes='$ac_x_includes'\
8561         ac_x_libraries='$ac_x_libraries'"
8562 esac
8563 fi
8564 ;; #(
8565     *) have_x=yes;;
8566   esac
8567   eval "$ac_cv_have_x"
8568 fi # $with_x != no
8569
8570 if test "$have_x" != yes; then
8571   { echo "$as_me:$LINENO: result: $have_x" >&5
8572 echo "${ECHO_T}$have_x" >&6; }
8573   no_x=yes
8574 else
8575   # If each of the values was on the command line, it overrides each guess.
8576   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8577   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8578   # Update the cache value to reflect the command line values.
8579   ac_cv_have_x="have_x=yes\
8580         ac_x_includes='$x_includes'\
8581         ac_x_libraries='$x_libraries'"
8582   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8583 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
8584 fi
8585
8586 if test "$no_x" = yes; then
8587   # Not all programs may use this symbol, but it does not hurt to define it.
8588
8589 cat >>confdefs.h <<\_ACEOF
8590 #define X_DISPLAY_MISSING 1
8591 _ACEOF
8592
8593   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8594 else
8595   if test -n "$x_includes"; then
8596     X_CFLAGS="$X_CFLAGS -I$x_includes"
8597   fi
8598
8599   # It would also be nice to do this for all -L options, not just this one.
8600   if test -n "$x_libraries"; then
8601     X_LIBS="$X_LIBS -L$x_libraries"
8602     # For Solaris; some versions of Sun CC require a space after -R and
8603     # others require no space.  Words are not sufficient . . . .
8604     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8605 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
8606     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8607     ac_xsave_c_werror_flag=$ac_c_werror_flag
8608     ac_c_werror_flag=yes
8609     cat >conftest.$ac_ext <<_ACEOF
8610 /* confdefs.h.  */
8611 _ACEOF
8612 cat confdefs.h >>conftest.$ac_ext
8613 cat >>conftest.$ac_ext <<_ACEOF
8614 /* end confdefs.h.  */
8615
8616 int
8617 main ()
8618 {
8619
8620   ;
8621   return 0;
8622 }
8623 _ACEOF
8624 rm -f conftest.$ac_objext conftest$ac_exeext
8625 if { (ac_try="$ac_link"
8626 case "(($ac_try" in
8627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8628   *) ac_try_echo=$ac_try;;
8629 esac
8630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8631   (eval "$ac_link") 2>conftest.er1
8632   ac_status=$?
8633   grep -v '^ *+' conftest.er1 >conftest.err
8634   rm -f conftest.er1
8635   cat conftest.err >&5
8636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637   (exit $ac_status); } && {
8638          test -z "$ac_c_werror_flag" ||
8639          test ! -s conftest.err
8640        } && test -s conftest$ac_exeext &&
8641        $as_test_x conftest$ac_exeext; then
8642   { echo "$as_me:$LINENO: result: no" >&5
8643 echo "${ECHO_T}no" >&6; }
8644        X_LIBS="$X_LIBS -R$x_libraries"
8645 else
8646   echo "$as_me: failed program was:" >&5
8647 sed 's/^/| /' conftest.$ac_ext >&5
8648
8649         LIBS="$ac_xsave_LIBS -R $x_libraries"
8650        cat >conftest.$ac_ext <<_ACEOF
8651 /* confdefs.h.  */
8652 _ACEOF
8653 cat confdefs.h >>conftest.$ac_ext
8654 cat >>conftest.$ac_ext <<_ACEOF
8655 /* end confdefs.h.  */
8656
8657 int
8658 main ()
8659 {
8660
8661   ;
8662   return 0;
8663 }
8664 _ACEOF
8665 rm -f conftest.$ac_objext conftest$ac_exeext
8666 if { (ac_try="$ac_link"
8667 case "(($ac_try" in
8668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8669   *) ac_try_echo=$ac_try;;
8670 esac
8671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8672   (eval "$ac_link") 2>conftest.er1
8673   ac_status=$?
8674   grep -v '^ *+' conftest.er1 >conftest.err
8675   rm -f conftest.er1
8676   cat conftest.err >&5
8677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8678   (exit $ac_status); } && {
8679          test -z "$ac_c_werror_flag" ||
8680          test ! -s conftest.err
8681        } && test -s conftest$ac_exeext &&
8682        $as_test_x conftest$ac_exeext; then
8683   { echo "$as_me:$LINENO: result: yes" >&5
8684 echo "${ECHO_T}yes" >&6; }
8685           X_LIBS="$X_LIBS -R $x_libraries"
8686 else
8687   echo "$as_me: failed program was:" >&5
8688 sed 's/^/| /' conftest.$ac_ext >&5
8689
8690         { echo "$as_me:$LINENO: result: neither works" >&5
8691 echo "${ECHO_T}neither works" >&6; }
8692 fi
8693
8694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8695       conftest$ac_exeext conftest.$ac_ext
8696 fi
8697
8698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8699       conftest$ac_exeext conftest.$ac_ext
8700     ac_c_werror_flag=$ac_xsave_c_werror_flag
8701     LIBS=$ac_xsave_LIBS
8702   fi
8703
8704   # Check for system-dependent libraries X programs must link with.
8705   # Do this before checking for the system-independent R6 libraries
8706   # (-lICE), since we may need -lsocket or whatever for X linking.
8707
8708   if test "$ISC" = yes; then
8709     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8710   else
8711     # Martyn Johnson says this is needed for Ultrix, if the X
8712     # libraries were built with DECnet support.  And Karl Berry says
8713     # the Alpha needs dnet_stub (dnet does not exist).
8714     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8715     cat >conftest.$ac_ext <<_ACEOF
8716 /* confdefs.h.  */
8717 _ACEOF
8718 cat confdefs.h >>conftest.$ac_ext
8719 cat >>conftest.$ac_ext <<_ACEOF
8720 /* end confdefs.h.  */
8721
8722 /* Override any GCC internal prototype to avoid an error.
8723    Use char because int might match the return type of a GCC
8724    builtin and then its argument prototype would still apply.  */
8725 #ifdef __cplusplus
8726 extern "C"
8727 #endif
8728 char XOpenDisplay ();
8729 int
8730 main ()
8731 {
8732 return XOpenDisplay ();
8733   ;
8734   return 0;
8735 }
8736 _ACEOF
8737 rm -f conftest.$ac_objext conftest$ac_exeext
8738 if { (ac_try="$ac_link"
8739 case "(($ac_try" in
8740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8741   *) ac_try_echo=$ac_try;;
8742 esac
8743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8744   (eval "$ac_link") 2>conftest.er1
8745   ac_status=$?
8746   grep -v '^ *+' conftest.er1 >conftest.err
8747   rm -f conftest.er1
8748   cat conftest.err >&5
8749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750   (exit $ac_status); } && {
8751          test -z "$ac_c_werror_flag" ||
8752          test ! -s conftest.err
8753        } && test -s conftest$ac_exeext &&
8754        $as_test_x conftest$ac_exeext; then
8755   :
8756 else
8757   echo "$as_me: failed program was:" >&5
8758 sed 's/^/| /' conftest.$ac_ext >&5
8759
8760         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8761 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
8762 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8763   echo $ECHO_N "(cached) $ECHO_C" >&6
8764 else
8765   ac_check_lib_save_LIBS=$LIBS
8766 LIBS="-ldnet  $LIBS"
8767 cat >conftest.$ac_ext <<_ACEOF
8768 /* confdefs.h.  */
8769 _ACEOF
8770 cat confdefs.h >>conftest.$ac_ext
8771 cat >>conftest.$ac_ext <<_ACEOF
8772 /* end confdefs.h.  */
8773
8774 /* Override any GCC internal prototype to avoid an error.
8775    Use char because int might match the return type of a GCC
8776    builtin and then its argument prototype would still apply.  */
8777 #ifdef __cplusplus
8778 extern "C"
8779 #endif
8780 char dnet_ntoa ();
8781 int
8782 main ()
8783 {
8784 return dnet_ntoa ();
8785   ;
8786   return 0;
8787 }
8788 _ACEOF
8789 rm -f conftest.$ac_objext conftest$ac_exeext
8790 if { (ac_try="$ac_link"
8791 case "(($ac_try" in
8792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8793   *) ac_try_echo=$ac_try;;
8794 esac
8795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8796   (eval "$ac_link") 2>conftest.er1
8797   ac_status=$?
8798   grep -v '^ *+' conftest.er1 >conftest.err
8799   rm -f conftest.er1
8800   cat conftest.err >&5
8801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802   (exit $ac_status); } && {
8803          test -z "$ac_c_werror_flag" ||
8804          test ! -s conftest.err
8805        } && test -s conftest$ac_exeext &&
8806        $as_test_x conftest$ac_exeext; then
8807   ac_cv_lib_dnet_dnet_ntoa=yes
8808 else
8809   echo "$as_me: failed program was:" >&5
8810 sed 's/^/| /' conftest.$ac_ext >&5
8811
8812         ac_cv_lib_dnet_dnet_ntoa=no
8813 fi
8814
8815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8816       conftest$ac_exeext conftest.$ac_ext
8817 LIBS=$ac_check_lib_save_LIBS
8818 fi
8819 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8820 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
8821 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8822   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8823 fi
8824
8825     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8826       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8827 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
8828 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8829   echo $ECHO_N "(cached) $ECHO_C" >&6
8830 else
8831   ac_check_lib_save_LIBS=$LIBS
8832 LIBS="-ldnet_stub  $LIBS"
8833 cat >conftest.$ac_ext <<_ACEOF
8834 /* confdefs.h.  */
8835 _ACEOF
8836 cat confdefs.h >>conftest.$ac_ext
8837 cat >>conftest.$ac_ext <<_ACEOF
8838 /* end confdefs.h.  */
8839
8840 /* Override any GCC internal prototype to avoid an error.
8841    Use char because int might match the return type of a GCC
8842    builtin and then its argument prototype would still apply.  */
8843 #ifdef __cplusplus
8844 extern "C"
8845 #endif
8846 char dnet_ntoa ();
8847 int
8848 main ()
8849 {
8850 return dnet_ntoa ();
8851   ;
8852   return 0;
8853 }
8854 _ACEOF
8855 rm -f conftest.$ac_objext conftest$ac_exeext
8856 if { (ac_try="$ac_link"
8857 case "(($ac_try" in
8858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8859   *) ac_try_echo=$ac_try;;
8860 esac
8861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8862   (eval "$ac_link") 2>conftest.er1
8863   ac_status=$?
8864   grep -v '^ *+' conftest.er1 >conftest.err
8865   rm -f conftest.er1
8866   cat conftest.err >&5
8867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868   (exit $ac_status); } && {
8869          test -z "$ac_c_werror_flag" ||
8870          test ! -s conftest.err
8871        } && test -s conftest$ac_exeext &&
8872        $as_test_x conftest$ac_exeext; then
8873   ac_cv_lib_dnet_stub_dnet_ntoa=yes
8874 else
8875   echo "$as_me: failed program was:" >&5
8876 sed 's/^/| /' conftest.$ac_ext >&5
8877
8878         ac_cv_lib_dnet_stub_dnet_ntoa=no
8879 fi
8880
8881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8882       conftest$ac_exeext conftest.$ac_ext
8883 LIBS=$ac_check_lib_save_LIBS
8884 fi
8885 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8886 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
8887 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8888   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8889 fi
8890
8891     fi
8892 fi
8893
8894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8895       conftest$ac_exeext conftest.$ac_ext
8896     LIBS="$ac_xsave_LIBS"
8897
8898     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8899     # to get the SysV transport functions.
8900     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8901     # needs -lnsl.
8902     # The nsl library prevents programs from opening the X display
8903     # on Irix 5.2, according to T.E. Dickey.
8904     # The functions gethostbyname, getservbyname, and inet_addr are
8905     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8906     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
8907 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
8908 if test "${ac_cv_func_gethostbyname+set}" = set; then
8909   echo $ECHO_N "(cached) $ECHO_C" >&6
8910 else
8911   cat >conftest.$ac_ext <<_ACEOF
8912 /* confdefs.h.  */
8913 _ACEOF
8914 cat confdefs.h >>conftest.$ac_ext
8915 cat >>conftest.$ac_ext <<_ACEOF
8916 /* end confdefs.h.  */
8917 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
8918    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8919 #define gethostbyname innocuous_gethostbyname
8920
8921 /* System header to define __stub macros and hopefully few prototypes,
8922     which can conflict with char gethostbyname (); below.
8923     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8924     <limits.h> exists even on freestanding compilers.  */
8925
8926 #ifdef __STDC__
8927 # include <limits.h>
8928 #else
8929 # include <assert.h>
8930 #endif
8931
8932 #undef gethostbyname
8933
8934 /* Override any GCC internal prototype to avoid an error.
8935    Use char because int might match the return type of a GCC
8936    builtin and then its argument prototype would still apply.  */
8937 #ifdef __cplusplus
8938 extern "C"
8939 #endif
8940 char gethostbyname ();
8941 /* The GNU C library defines this for functions which it implements
8942     to always fail with ENOSYS.  Some functions are actually named
8943     something starting with __ and the normal name is an alias.  */
8944 #if defined __stub_gethostbyname || defined __stub___gethostbyname
8945 choke me
8946 #endif
8947
8948 int
8949 main ()
8950 {
8951 return gethostbyname ();
8952   ;
8953   return 0;
8954 }
8955 _ACEOF
8956 rm -f conftest.$ac_objext conftest$ac_exeext
8957 if { (ac_try="$ac_link"
8958 case "(($ac_try" in
8959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8960   *) ac_try_echo=$ac_try;;
8961 esac
8962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8963   (eval "$ac_link") 2>conftest.er1
8964   ac_status=$?
8965   grep -v '^ *+' conftest.er1 >conftest.err
8966   rm -f conftest.er1
8967   cat conftest.err >&5
8968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969   (exit $ac_status); } && {
8970          test -z "$ac_c_werror_flag" ||
8971          test ! -s conftest.err
8972        } && test -s conftest$ac_exeext &&
8973        $as_test_x conftest$ac_exeext; then
8974   ac_cv_func_gethostbyname=yes
8975 else
8976   echo "$as_me: failed program was:" >&5
8977 sed 's/^/| /' conftest.$ac_ext >&5
8978
8979         ac_cv_func_gethostbyname=no
8980 fi
8981
8982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8983       conftest$ac_exeext conftest.$ac_ext
8984 fi
8985 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8986 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
8987
8988     if test $ac_cv_func_gethostbyname = no; then
8989       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8990 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
8991 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8992   echo $ECHO_N "(cached) $ECHO_C" >&6
8993 else
8994   ac_check_lib_save_LIBS=$LIBS
8995 LIBS="-lnsl  $LIBS"
8996 cat >conftest.$ac_ext <<_ACEOF
8997 /* confdefs.h.  */
8998 _ACEOF
8999 cat confdefs.h >>conftest.$ac_ext
9000 cat >>conftest.$ac_ext <<_ACEOF
9001 /* end confdefs.h.  */
9002
9003 /* Override any GCC internal prototype to avoid an error.
9004    Use char because int might match the return type of a GCC
9005    builtin and then its argument prototype would still apply.  */
9006 #ifdef __cplusplus
9007 extern "C"
9008 #endif
9009 char gethostbyname ();
9010 int
9011 main ()
9012 {
9013 return gethostbyname ();
9014   ;
9015   return 0;
9016 }
9017 _ACEOF
9018 rm -f conftest.$ac_objext conftest$ac_exeext
9019 if { (ac_try="$ac_link"
9020 case "(($ac_try" in
9021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9022   *) ac_try_echo=$ac_try;;
9023 esac
9024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9025   (eval "$ac_link") 2>conftest.er1
9026   ac_status=$?
9027   grep -v '^ *+' conftest.er1 >conftest.err
9028   rm -f conftest.er1
9029   cat conftest.err >&5
9030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031   (exit $ac_status); } && {
9032          test -z "$ac_c_werror_flag" ||
9033          test ! -s conftest.err
9034        } && test -s conftest$ac_exeext &&
9035        $as_test_x conftest$ac_exeext; then
9036   ac_cv_lib_nsl_gethostbyname=yes
9037 else
9038   echo "$as_me: failed program was:" >&5
9039 sed 's/^/| /' conftest.$ac_ext >&5
9040
9041         ac_cv_lib_nsl_gethostbyname=no
9042 fi
9043
9044 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9045       conftest$ac_exeext conftest.$ac_ext
9046 LIBS=$ac_check_lib_save_LIBS
9047 fi
9048 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
9049 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
9050 if test $ac_cv_lib_nsl_gethostbyname = yes; then
9051   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9052 fi
9053
9054       if test $ac_cv_lib_nsl_gethostbyname = no; then
9055         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
9056 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
9057 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9058   echo $ECHO_N "(cached) $ECHO_C" >&6
9059 else
9060   ac_check_lib_save_LIBS=$LIBS
9061 LIBS="-lbsd  $LIBS"
9062 cat >conftest.$ac_ext <<_ACEOF
9063 /* confdefs.h.  */
9064 _ACEOF
9065 cat confdefs.h >>conftest.$ac_ext
9066 cat >>conftest.$ac_ext <<_ACEOF
9067 /* end confdefs.h.  */
9068
9069 /* Override any GCC internal prototype to avoid an error.
9070    Use char because int might match the return type of a GCC
9071    builtin and then its argument prototype would still apply.  */
9072 #ifdef __cplusplus
9073 extern "C"
9074 #endif
9075 char gethostbyname ();
9076 int
9077 main ()
9078 {
9079 return gethostbyname ();
9080   ;
9081   return 0;
9082 }
9083 _ACEOF
9084 rm -f conftest.$ac_objext conftest$ac_exeext
9085 if { (ac_try="$ac_link"
9086 case "(($ac_try" in
9087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9088   *) ac_try_echo=$ac_try;;
9089 esac
9090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9091   (eval "$ac_link") 2>conftest.er1
9092   ac_status=$?
9093   grep -v '^ *+' conftest.er1 >conftest.err
9094   rm -f conftest.er1
9095   cat conftest.err >&5
9096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097   (exit $ac_status); } && {
9098          test -z "$ac_c_werror_flag" ||
9099          test ! -s conftest.err
9100        } && test -s conftest$ac_exeext &&
9101        $as_test_x conftest$ac_exeext; then
9102   ac_cv_lib_bsd_gethostbyname=yes
9103 else
9104   echo "$as_me: failed program was:" >&5
9105 sed 's/^/| /' conftest.$ac_ext >&5
9106
9107         ac_cv_lib_bsd_gethostbyname=no
9108 fi
9109
9110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9111       conftest$ac_exeext conftest.$ac_ext
9112 LIBS=$ac_check_lib_save_LIBS
9113 fi
9114 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
9115 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
9116 if test $ac_cv_lib_bsd_gethostbyname = yes; then
9117   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9118 fi
9119
9120       fi
9121     fi
9122
9123     # lieder@skyler.mavd.honeywell.com says without -lsocket,
9124     # socket/setsockopt and other routines are undefined under SCO ODT
9125     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
9126     # on later versions), says Simon Leinen: it contains gethostby*
9127     # variants that don't use the name server (or something).  -lsocket
9128     # must be given before -lnsl if both are needed.  We assume that
9129     # if connect needs -lnsl, so does gethostbyname.
9130     { echo "$as_me:$LINENO: checking for connect" >&5
9131 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
9132 if test "${ac_cv_func_connect+set}" = set; then
9133   echo $ECHO_N "(cached) $ECHO_C" >&6
9134 else
9135   cat >conftest.$ac_ext <<_ACEOF
9136 /* confdefs.h.  */
9137 _ACEOF
9138 cat confdefs.h >>conftest.$ac_ext
9139 cat >>conftest.$ac_ext <<_ACEOF
9140 /* end confdefs.h.  */
9141 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
9142    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9143 #define connect innocuous_connect
9144
9145 /* System header to define __stub macros and hopefully few prototypes,
9146     which can conflict with char connect (); below.
9147     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9148     <limits.h> exists even on freestanding compilers.  */
9149
9150 #ifdef __STDC__
9151 # include <limits.h>
9152 #else
9153 # include <assert.h>
9154 #endif
9155
9156 #undef connect
9157
9158 /* Override any GCC internal prototype to avoid an error.
9159    Use char because int might match the return type of a GCC
9160    builtin and then its argument prototype would still apply.  */
9161 #ifdef __cplusplus
9162 extern "C"
9163 #endif
9164 char connect ();
9165 /* The GNU C library defines this for functions which it implements
9166     to always fail with ENOSYS.  Some functions are actually named
9167     something starting with __ and the normal name is an alias.  */
9168 #if defined __stub_connect || defined __stub___connect
9169 choke me
9170 #endif
9171
9172 int
9173 main ()
9174 {
9175 return connect ();
9176   ;
9177   return 0;
9178 }
9179 _ACEOF
9180 rm -f conftest.$ac_objext conftest$ac_exeext
9181 if { (ac_try="$ac_link"
9182 case "(($ac_try" in
9183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9184   *) ac_try_echo=$ac_try;;
9185 esac
9186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9187   (eval "$ac_link") 2>conftest.er1
9188   ac_status=$?
9189   grep -v '^ *+' conftest.er1 >conftest.err
9190   rm -f conftest.er1
9191   cat conftest.err >&5
9192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193   (exit $ac_status); } && {
9194          test -z "$ac_c_werror_flag" ||
9195          test ! -s conftest.err
9196        } && test -s conftest$ac_exeext &&
9197        $as_test_x conftest$ac_exeext; then
9198   ac_cv_func_connect=yes
9199 else
9200   echo "$as_me: failed program was:" >&5
9201 sed 's/^/| /' conftest.$ac_ext >&5
9202
9203         ac_cv_func_connect=no
9204 fi
9205
9206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9207       conftest$ac_exeext conftest.$ac_ext
9208 fi
9209 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
9210 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
9211
9212     if test $ac_cv_func_connect = no; then
9213       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
9214 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
9215 if test "${ac_cv_lib_socket_connect+set}" = set; then
9216   echo $ECHO_N "(cached) $ECHO_C" >&6
9217 else
9218   ac_check_lib_save_LIBS=$LIBS
9219 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9220 cat >conftest.$ac_ext <<_ACEOF
9221 /* confdefs.h.  */
9222 _ACEOF
9223 cat confdefs.h >>conftest.$ac_ext
9224 cat >>conftest.$ac_ext <<_ACEOF
9225 /* end confdefs.h.  */
9226
9227 /* Override any GCC internal prototype to avoid an error.
9228    Use char because int might match the return type of a GCC
9229    builtin and then its argument prototype would still apply.  */
9230 #ifdef __cplusplus
9231 extern "C"
9232 #endif
9233 char connect ();
9234 int
9235 main ()
9236 {
9237 return connect ();
9238   ;
9239   return 0;
9240 }
9241 _ACEOF
9242 rm -f conftest.$ac_objext conftest$ac_exeext
9243 if { (ac_try="$ac_link"
9244 case "(($ac_try" in
9245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9246   *) ac_try_echo=$ac_try;;
9247 esac
9248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9249   (eval "$ac_link") 2>conftest.er1
9250   ac_status=$?
9251   grep -v '^ *+' conftest.er1 >conftest.err
9252   rm -f conftest.er1
9253   cat conftest.err >&5
9254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255   (exit $ac_status); } && {
9256          test -z "$ac_c_werror_flag" ||
9257          test ! -s conftest.err
9258        } && test -s conftest$ac_exeext &&
9259        $as_test_x conftest$ac_exeext; then
9260   ac_cv_lib_socket_connect=yes
9261 else
9262   echo "$as_me: failed program was:" >&5
9263 sed 's/^/| /' conftest.$ac_ext >&5
9264
9265         ac_cv_lib_socket_connect=no
9266 fi
9267
9268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9269       conftest$ac_exeext conftest.$ac_ext
9270 LIBS=$ac_check_lib_save_LIBS
9271 fi
9272 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
9273 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
9274 if test $ac_cv_lib_socket_connect = yes; then
9275   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9276 fi
9277
9278     fi
9279
9280     # Guillermo Gomez says -lposix is necessary on A/UX.
9281     { echo "$as_me:$LINENO: checking for remove" >&5
9282 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
9283 if test "${ac_cv_func_remove+set}" = set; then
9284   echo $ECHO_N "(cached) $ECHO_C" >&6
9285 else
9286   cat >conftest.$ac_ext <<_ACEOF
9287 /* confdefs.h.  */
9288 _ACEOF
9289 cat confdefs.h >>conftest.$ac_ext
9290 cat >>conftest.$ac_ext <<_ACEOF
9291 /* end confdefs.h.  */
9292 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
9293    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9294 #define remove innocuous_remove
9295
9296 /* System header to define __stub macros and hopefully few prototypes,
9297     which can conflict with char remove (); below.
9298     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9299     <limits.h> exists even on freestanding compilers.  */
9300
9301 #ifdef __STDC__
9302 # include <limits.h>
9303 #else
9304 # include <assert.h>
9305 #endif
9306
9307 #undef remove
9308
9309 /* Override any GCC internal prototype to avoid an error.
9310    Use char because int might match the return type of a GCC
9311    builtin and then its argument prototype would still apply.  */
9312 #ifdef __cplusplus
9313 extern "C"
9314 #endif
9315 char remove ();
9316 /* The GNU C library defines this for functions which it implements
9317     to always fail with ENOSYS.  Some functions are actually named
9318     something starting with __ and the normal name is an alias.  */
9319 #if defined __stub_remove || defined __stub___remove
9320 choke me
9321 #endif
9322
9323 int
9324 main ()
9325 {
9326 return remove ();
9327   ;
9328   return 0;
9329 }
9330 _ACEOF
9331 rm -f conftest.$ac_objext conftest$ac_exeext
9332 if { (ac_try="$ac_link"
9333 case "(($ac_try" in
9334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9335   *) ac_try_echo=$ac_try;;
9336 esac
9337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9338   (eval "$ac_link") 2>conftest.er1
9339   ac_status=$?
9340   grep -v '^ *+' conftest.er1 >conftest.err
9341   rm -f conftest.er1
9342   cat conftest.err >&5
9343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344   (exit $ac_status); } && {
9345          test -z "$ac_c_werror_flag" ||
9346          test ! -s conftest.err
9347        } && test -s conftest$ac_exeext &&
9348        $as_test_x conftest$ac_exeext; then
9349   ac_cv_func_remove=yes
9350 else
9351   echo "$as_me: failed program was:" >&5
9352 sed 's/^/| /' conftest.$ac_ext >&5
9353
9354         ac_cv_func_remove=no
9355 fi
9356
9357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9358       conftest$ac_exeext conftest.$ac_ext
9359 fi
9360 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
9361 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
9362
9363     if test $ac_cv_func_remove = no; then
9364       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
9365 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
9366 if test "${ac_cv_lib_posix_remove+set}" = set; then
9367   echo $ECHO_N "(cached) $ECHO_C" >&6
9368 else
9369   ac_check_lib_save_LIBS=$LIBS
9370 LIBS="-lposix  $LIBS"
9371 cat >conftest.$ac_ext <<_ACEOF
9372 /* confdefs.h.  */
9373 _ACEOF
9374 cat confdefs.h >>conftest.$ac_ext
9375 cat >>conftest.$ac_ext <<_ACEOF
9376 /* end confdefs.h.  */
9377
9378 /* Override any GCC internal prototype to avoid an error.
9379    Use char because int might match the return type of a GCC
9380    builtin and then its argument prototype would still apply.  */
9381 #ifdef __cplusplus
9382 extern "C"
9383 #endif
9384 char remove ();
9385 int
9386 main ()
9387 {
9388 return remove ();
9389   ;
9390   return 0;
9391 }
9392 _ACEOF
9393 rm -f conftest.$ac_objext conftest$ac_exeext
9394 if { (ac_try="$ac_link"
9395 case "(($ac_try" in
9396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9397   *) ac_try_echo=$ac_try;;
9398 esac
9399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9400   (eval "$ac_link") 2>conftest.er1
9401   ac_status=$?
9402   grep -v '^ *+' conftest.er1 >conftest.err
9403   rm -f conftest.er1
9404   cat conftest.err >&5
9405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406   (exit $ac_status); } && {
9407          test -z "$ac_c_werror_flag" ||
9408          test ! -s conftest.err
9409        } && test -s conftest$ac_exeext &&
9410        $as_test_x conftest$ac_exeext; then
9411   ac_cv_lib_posix_remove=yes
9412 else
9413   echo "$as_me: failed program was:" >&5
9414 sed 's/^/| /' conftest.$ac_ext >&5
9415
9416         ac_cv_lib_posix_remove=no
9417 fi
9418
9419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9420       conftest$ac_exeext conftest.$ac_ext
9421 LIBS=$ac_check_lib_save_LIBS
9422 fi
9423 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
9424 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
9425 if test $ac_cv_lib_posix_remove = yes; then
9426   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9427 fi
9428
9429     fi
9430
9431     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9432     { echo "$as_me:$LINENO: checking for shmat" >&5
9433 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
9434 if test "${ac_cv_func_shmat+set}" = set; then
9435   echo $ECHO_N "(cached) $ECHO_C" >&6
9436 else
9437   cat >conftest.$ac_ext <<_ACEOF
9438 /* confdefs.h.  */
9439 _ACEOF
9440 cat confdefs.h >>conftest.$ac_ext
9441 cat >>conftest.$ac_ext <<_ACEOF
9442 /* end confdefs.h.  */
9443 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
9444    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9445 #define shmat innocuous_shmat
9446
9447 /* System header to define __stub macros and hopefully few prototypes,
9448     which can conflict with char shmat (); below.
9449     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9450     <limits.h> exists even on freestanding compilers.  */
9451
9452 #ifdef __STDC__
9453 # include <limits.h>
9454 #else
9455 # include <assert.h>
9456 #endif
9457
9458 #undef shmat
9459
9460 /* Override any GCC internal prototype to avoid an error.
9461    Use char because int might match the return type of a GCC
9462    builtin and then its argument prototype would still apply.  */
9463 #ifdef __cplusplus
9464 extern "C"
9465 #endif
9466 char shmat ();
9467 /* The GNU C library defines this for functions which it implements
9468     to always fail with ENOSYS.  Some functions are actually named
9469     something starting with __ and the normal name is an alias.  */
9470 #if defined __stub_shmat || defined __stub___shmat
9471 choke me
9472 #endif
9473
9474 int
9475 main ()
9476 {
9477 return shmat ();
9478   ;
9479   return 0;
9480 }
9481 _ACEOF
9482 rm -f conftest.$ac_objext conftest$ac_exeext
9483 if { (ac_try="$ac_link"
9484 case "(($ac_try" in
9485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9486   *) ac_try_echo=$ac_try;;
9487 esac
9488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9489   (eval "$ac_link") 2>conftest.er1
9490   ac_status=$?
9491   grep -v '^ *+' conftest.er1 >conftest.err
9492   rm -f conftest.er1
9493   cat conftest.err >&5
9494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495   (exit $ac_status); } && {
9496          test -z "$ac_c_werror_flag" ||
9497          test ! -s conftest.err
9498        } && test -s conftest$ac_exeext &&
9499        $as_test_x conftest$ac_exeext; then
9500   ac_cv_func_shmat=yes
9501 else
9502   echo "$as_me: failed program was:" >&5
9503 sed 's/^/| /' conftest.$ac_ext >&5
9504
9505         ac_cv_func_shmat=no
9506 fi
9507
9508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9509       conftest$ac_exeext conftest.$ac_ext
9510 fi
9511 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9512 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
9513
9514     if test $ac_cv_func_shmat = no; then
9515       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9516 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
9517 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9518   echo $ECHO_N "(cached) $ECHO_C" >&6
9519 else
9520   ac_check_lib_save_LIBS=$LIBS
9521 LIBS="-lipc  $LIBS"
9522 cat >conftest.$ac_ext <<_ACEOF
9523 /* confdefs.h.  */
9524 _ACEOF
9525 cat confdefs.h >>conftest.$ac_ext
9526 cat >>conftest.$ac_ext <<_ACEOF
9527 /* end confdefs.h.  */
9528
9529 /* Override any GCC internal prototype to avoid an error.
9530    Use char because int might match the return type of a GCC
9531    builtin and then its argument prototype would still apply.  */
9532 #ifdef __cplusplus
9533 extern "C"
9534 #endif
9535 char shmat ();
9536 int
9537 main ()
9538 {
9539 return shmat ();
9540   ;
9541   return 0;
9542 }
9543 _ACEOF
9544 rm -f conftest.$ac_objext conftest$ac_exeext
9545 if { (ac_try="$ac_link"
9546 case "(($ac_try" in
9547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9548   *) ac_try_echo=$ac_try;;
9549 esac
9550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9551   (eval "$ac_link") 2>conftest.er1
9552   ac_status=$?
9553   grep -v '^ *+' conftest.er1 >conftest.err
9554   rm -f conftest.er1
9555   cat conftest.err >&5
9556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557   (exit $ac_status); } && {
9558          test -z "$ac_c_werror_flag" ||
9559          test ! -s conftest.err
9560        } && test -s conftest$ac_exeext &&
9561        $as_test_x conftest$ac_exeext; then
9562   ac_cv_lib_ipc_shmat=yes
9563 else
9564   echo "$as_me: failed program was:" >&5
9565 sed 's/^/| /' conftest.$ac_ext >&5
9566
9567         ac_cv_lib_ipc_shmat=no
9568 fi
9569
9570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9571       conftest$ac_exeext conftest.$ac_ext
9572 LIBS=$ac_check_lib_save_LIBS
9573 fi
9574 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9575 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
9576 if test $ac_cv_lib_ipc_shmat = yes; then
9577   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9578 fi
9579
9580     fi
9581   fi
9582
9583   # Check for libraries that X11R6 Xt/Xaw programs need.
9584   ac_save_LDFLAGS=$LDFLAGS
9585   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9586   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9587   # check for ICE first), but we must link in the order -lSM -lICE or
9588   # we get undefined symbols.  So assume we have SM if we have ICE.
9589   # These have to be linked with before -lX11, unlike the other
9590   # libraries we check for below, so use a different variable.
9591   # John Interrante, Karl Berry
9592   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9593 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
9594 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9595   echo $ECHO_N "(cached) $ECHO_C" >&6
9596 else
9597   ac_check_lib_save_LIBS=$LIBS
9598 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9599 cat >conftest.$ac_ext <<_ACEOF
9600 /* confdefs.h.  */
9601 _ACEOF
9602 cat confdefs.h >>conftest.$ac_ext
9603 cat >>conftest.$ac_ext <<_ACEOF
9604 /* end confdefs.h.  */
9605
9606 /* Override any GCC internal prototype to avoid an error.
9607    Use char because int might match the return type of a GCC
9608    builtin and then its argument prototype would still apply.  */
9609 #ifdef __cplusplus
9610 extern "C"
9611 #endif
9612 char IceConnectionNumber ();
9613 int
9614 main ()
9615 {
9616 return IceConnectionNumber ();
9617   ;
9618   return 0;
9619 }
9620 _ACEOF
9621 rm -f conftest.$ac_objext conftest$ac_exeext
9622 if { (ac_try="$ac_link"
9623 case "(($ac_try" in
9624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9625   *) ac_try_echo=$ac_try;;
9626 esac
9627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9628   (eval "$ac_link") 2>conftest.er1
9629   ac_status=$?
9630   grep -v '^ *+' conftest.er1 >conftest.err
9631   rm -f conftest.er1
9632   cat conftest.err >&5
9633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634   (exit $ac_status); } && {
9635          test -z "$ac_c_werror_flag" ||
9636          test ! -s conftest.err
9637        } && test -s conftest$ac_exeext &&
9638        $as_test_x conftest$ac_exeext; then
9639   ac_cv_lib_ICE_IceConnectionNumber=yes
9640 else
9641   echo "$as_me: failed program was:" >&5
9642 sed 's/^/| /' conftest.$ac_ext >&5
9643
9644         ac_cv_lib_ICE_IceConnectionNumber=no
9645 fi
9646
9647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9648       conftest$ac_exeext conftest.$ac_ext
9649 LIBS=$ac_check_lib_save_LIBS
9650 fi
9651 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9652 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
9653 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9654   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9655 fi
9656
9657   LDFLAGS=$ac_save_LDFLAGS
9658
9659 fi
9660
9661 if test -n "$no_x" ; then
9662   echo $PRODUCT requires the X Window System header files and libraries!
9663   echo They were not found on your system.  See FAQ topic C.2.
9664   echo configure failed
9665   exit 1
9666 fi
9667
9668 if test "${ac_cv_header_X11_Intrinsic_h+set}" = set; then
9669   { echo "$as_me:$LINENO: checking for X11/Intrinsic.h" >&5
9670 echo $ECHO_N "checking for X11/Intrinsic.h... $ECHO_C" >&6; }
9671 if test "${ac_cv_header_X11_Intrinsic_h+set}" = set; then
9672   echo $ECHO_N "(cached) $ECHO_C" >&6
9673 fi
9674 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Intrinsic_h" >&5
9675 echo "${ECHO_T}$ac_cv_header_X11_Intrinsic_h" >&6; }
9676 else
9677   # Is the header compilable?
9678 { echo "$as_me:$LINENO: checking X11/Intrinsic.h usability" >&5
9679 echo $ECHO_N "checking X11/Intrinsic.h usability... $ECHO_C" >&6; }
9680 cat >conftest.$ac_ext <<_ACEOF
9681 /* confdefs.h.  */
9682 _ACEOF
9683 cat confdefs.h >>conftest.$ac_ext
9684 cat >>conftest.$ac_ext <<_ACEOF
9685 /* end confdefs.h.  */
9686 $ac_includes_default
9687 #include <X11/Intrinsic.h>
9688 _ACEOF
9689 rm -f conftest.$ac_objext
9690 if { (ac_try="$ac_compile"
9691 case "(($ac_try" in
9692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9693   *) ac_try_echo=$ac_try;;
9694 esac
9695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9696   (eval "$ac_compile") 2>conftest.er1
9697   ac_status=$?
9698   grep -v '^ *+' conftest.er1 >conftest.err
9699   rm -f conftest.er1
9700   cat conftest.err >&5
9701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702   (exit $ac_status); } && {
9703          test -z "$ac_c_werror_flag" ||
9704          test ! -s conftest.err
9705        } && test -s conftest.$ac_objext; then
9706   ac_header_compiler=yes
9707 else
9708   echo "$as_me: failed program was:" >&5
9709 sed 's/^/| /' conftest.$ac_ext >&5
9710
9711         ac_header_compiler=no
9712 fi
9713
9714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9715 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9716 echo "${ECHO_T}$ac_header_compiler" >&6; }
9717
9718 # Is the header present?
9719 { echo "$as_me:$LINENO: checking X11/Intrinsic.h presence" >&5
9720 echo $ECHO_N "checking X11/Intrinsic.h presence... $ECHO_C" >&6; }
9721 cat >conftest.$ac_ext <<_ACEOF
9722 /* confdefs.h.  */
9723 _ACEOF
9724 cat confdefs.h >>conftest.$ac_ext
9725 cat >>conftest.$ac_ext <<_ACEOF
9726 /* end confdefs.h.  */
9727 #include <X11/Intrinsic.h>
9728 _ACEOF
9729 if { (ac_try="$ac_cpp conftest.$ac_ext"
9730 case "(($ac_try" in
9731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9732   *) ac_try_echo=$ac_try;;
9733 esac
9734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9735   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9736   ac_status=$?
9737   grep -v '^ *+' conftest.er1 >conftest.err
9738   rm -f conftest.er1
9739   cat conftest.err >&5
9740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741   (exit $ac_status); } >/dev/null && {
9742          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9743          test ! -s conftest.err
9744        }; then
9745   ac_header_preproc=yes
9746 else
9747   echo "$as_me: failed program was:" >&5
9748 sed 's/^/| /' conftest.$ac_ext >&5
9749
9750   ac_header_preproc=no
9751 fi
9752
9753 rm -f conftest.err conftest.$ac_ext
9754 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9755 echo "${ECHO_T}$ac_header_preproc" >&6; }
9756
9757 # So?  What about this header?
9758 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9759   yes:no: )
9760     { echo "$as_me:$LINENO: WARNING: X11/Intrinsic.h: accepted by the compiler, rejected by the preprocessor!" >&5
9761 echo "$as_me: WARNING: X11/Intrinsic.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9762     { echo "$as_me:$LINENO: WARNING: X11/Intrinsic.h: proceeding with the compiler's result" >&5
9763 echo "$as_me: WARNING: X11/Intrinsic.h: proceeding with the compiler's result" >&2;}
9764     ac_header_preproc=yes
9765     ;;
9766   no:yes:* )
9767     { echo "$as_me:$LINENO: WARNING: X11/Intrinsic.h: present but cannot be compiled" >&5
9768 echo "$as_me: WARNING: X11/Intrinsic.h: present but cannot be compiled" >&2;}
9769     { echo "$as_me:$LINENO: WARNING: X11/Intrinsic.h:     check for missing prerequisite headers?" >&5
9770 echo "$as_me: WARNING: X11/Intrinsic.h:     check for missing prerequisite headers?" >&2;}
9771     { echo "$as_me:$LINENO: WARNING: X11/Intrinsic.h: see the Autoconf documentation" >&5
9772 echo "$as_me: WARNING: X11/Intrinsic.h: see the Autoconf documentation" >&2;}
9773     { echo "$as_me:$LINENO: WARNING: X11/Intrinsic.h:     section \"Present But Cannot Be Compiled\"" >&5
9774 echo "$as_me: WARNING: X11/Intrinsic.h:     section \"Present But Cannot Be Compiled\"" >&2;}
9775     { echo "$as_me:$LINENO: WARNING: X11/Intrinsic.h: proceeding with the preprocessor's result" >&5
9776 echo "$as_me: WARNING: X11/Intrinsic.h: proceeding with the preprocessor's result" >&2;}
9777     { echo "$as_me:$LINENO: WARNING: X11/Intrinsic.h: in the future, the compiler will take precedence" >&5
9778 echo "$as_me: WARNING: X11/Intrinsic.h: in the future, the compiler will take precedence" >&2;}
9779
9780     ;;
9781 esac
9782 { echo "$as_me:$LINENO: checking for X11/Intrinsic.h" >&5
9783 echo $ECHO_N "checking for X11/Intrinsic.h... $ECHO_C" >&6; }
9784 if test "${ac_cv_header_X11_Intrinsic_h+set}" = set; then
9785   echo $ECHO_N "(cached) $ECHO_C" >&6
9786 else
9787   ac_cv_header_X11_Intrinsic_h=$ac_header_preproc
9788 fi
9789 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Intrinsic_h" >&5
9790 echo "${ECHO_T}$ac_cv_header_X11_Intrinsic_h" >&6; }
9791
9792 fi
9793 if test $ac_cv_header_X11_Intrinsic_h = yes; then
9794   xt="yes"
9795 else
9796   xt="no"
9797 fi
9798
9799
9800
9801 if test "$xt" == "no" ; then
9802    echo Xt headers not found
9803    exit 1
9804 fi
9805
9806
9807 # Check whether --with-Xaw3d was given.
9808 if test "${with_Xaw3d+set}" = set; then
9809   withval=$with_Xaw3d; with_xaw3d="yes"
9810 else
9811   with_xaw3d="no"
9812 fi
9813
9814
9815
9816 xaw_headers="no"
9817 if test "$with_xaw3d" == "yes" ; then
9818    XAW_LIBS="-lXaw3d"
9819    { echo "$as_me:$LINENO: checking for XawTextReplace in -lXaw3d" >&5
9820 echo $ECHO_N "checking for XawTextReplace in -lXaw3d... $ECHO_C" >&6; }
9821 if test "${ac_cv_lib_Xaw3d_XawTextReplace+set}" = set; then
9822   echo $ECHO_N "(cached) $ECHO_C" >&6
9823 else
9824   ac_check_lib_save_LIBS=$LIBS
9825 LIBS="-lXaw3d  $LIBS"
9826 cat >conftest.$ac_ext <<_ACEOF
9827 /* confdefs.h.  */
9828 _ACEOF
9829 cat confdefs.h >>conftest.$ac_ext
9830 cat >>conftest.$ac_ext <<_ACEOF
9831 /* end confdefs.h.  */
9832
9833 /* Override any GCC internal prototype to avoid an error.
9834    Use char because int might match the return type of a GCC
9835    builtin and then its argument prototype would still apply.  */
9836 #ifdef __cplusplus
9837 extern "C"
9838 #endif
9839 char XawTextReplace ();
9840 int
9841 main ()
9842 {
9843 return XawTextReplace ();
9844   ;
9845   return 0;
9846 }
9847 _ACEOF
9848 rm -f conftest.$ac_objext conftest$ac_exeext
9849 if { (ac_try="$ac_link"
9850 case "(($ac_try" in
9851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9852   *) ac_try_echo=$ac_try;;
9853 esac
9854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9855   (eval "$ac_link") 2>conftest.er1
9856   ac_status=$?
9857   grep -v '^ *+' conftest.er1 >conftest.err
9858   rm -f conftest.er1
9859   cat conftest.err >&5
9860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861   (exit $ac_status); } && {
9862          test -z "$ac_c_werror_flag" ||
9863          test ! -s conftest.err
9864        } && test -s conftest$ac_exeext &&
9865        $as_test_x conftest$ac_exeext; then
9866   ac_cv_lib_Xaw3d_XawTextReplace=yes
9867 else
9868   echo "$as_me: failed program was:" >&5
9869 sed 's/^/| /' conftest.$ac_ext >&5
9870
9871         ac_cv_lib_Xaw3d_XawTextReplace=no
9872 fi
9873
9874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9875       conftest$ac_exeext conftest.$ac_ext
9876 LIBS=$ac_check_lib_save_LIBS
9877 fi
9878 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawTextReplace" >&5
9879 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawTextReplace" >&6; }
9880 if test $ac_cv_lib_Xaw3d_XawTextReplace = yes; then
9881   xaw3d_lib="yes"
9882 else
9883   xaw3d_lib="no"
9884 fi
9885
9886    if test "$xaw3d_lib" == "no" ; then
9887       echo Xaw3d libraries not found
9888       exit 1
9889    else
9890       if test "${ac_cv_header_X11_Xaw3d_Dialog_h+set}" = set; then
9891   { echo "$as_me:$LINENO: checking for X11/Xaw3d/Dialog.h" >&5
9892 echo $ECHO_N "checking for X11/Xaw3d/Dialog.h... $ECHO_C" >&6; }
9893 if test "${ac_cv_header_X11_Xaw3d_Dialog_h+set}" = set; then
9894   echo $ECHO_N "(cached) $ECHO_C" >&6
9895 fi
9896 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Dialog_h" >&5
9897 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Dialog_h" >&6; }
9898 else
9899   # Is the header compilable?
9900 { echo "$as_me:$LINENO: checking X11/Xaw3d/Dialog.h usability" >&5
9901 echo $ECHO_N "checking X11/Xaw3d/Dialog.h usability... $ECHO_C" >&6; }
9902 cat >conftest.$ac_ext <<_ACEOF
9903 /* confdefs.h.  */
9904 _ACEOF
9905 cat confdefs.h >>conftest.$ac_ext
9906 cat >>conftest.$ac_ext <<_ACEOF
9907 /* end confdefs.h.  */
9908 $ac_includes_default
9909 #include <X11/Xaw3d/Dialog.h>
9910 _ACEOF
9911 rm -f conftest.$ac_objext
9912 if { (ac_try="$ac_compile"
9913 case "(($ac_try" in
9914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9915   *) ac_try_echo=$ac_try;;
9916 esac
9917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9918   (eval "$ac_compile") 2>conftest.er1
9919   ac_status=$?
9920   grep -v '^ *+' conftest.er1 >conftest.err
9921   rm -f conftest.er1
9922   cat conftest.err >&5
9923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924   (exit $ac_status); } && {
9925          test -z "$ac_c_werror_flag" ||
9926          test ! -s conftest.err
9927        } && test -s conftest.$ac_objext; then
9928   ac_header_compiler=yes
9929 else
9930   echo "$as_me: failed program was:" >&5
9931 sed 's/^/| /' conftest.$ac_ext >&5
9932
9933         ac_header_compiler=no
9934 fi
9935
9936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9937 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9938 echo "${ECHO_T}$ac_header_compiler" >&6; }
9939
9940 # Is the header present?
9941 { echo "$as_me:$LINENO: checking X11/Xaw3d/Dialog.h presence" >&5
9942 echo $ECHO_N "checking X11/Xaw3d/Dialog.h presence... $ECHO_C" >&6; }
9943 cat >conftest.$ac_ext <<_ACEOF
9944 /* confdefs.h.  */
9945 _ACEOF
9946 cat confdefs.h >>conftest.$ac_ext
9947 cat >>conftest.$ac_ext <<_ACEOF
9948 /* end confdefs.h.  */
9949 #include <X11/Xaw3d/Dialog.h>
9950 _ACEOF
9951 if { (ac_try="$ac_cpp conftest.$ac_ext"
9952 case "(($ac_try" in
9953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9954   *) ac_try_echo=$ac_try;;
9955 esac
9956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9957   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9958   ac_status=$?
9959   grep -v '^ *+' conftest.er1 >conftest.err
9960   rm -f conftest.er1
9961   cat conftest.err >&5
9962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963   (exit $ac_status); } >/dev/null && {
9964          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9965          test ! -s conftest.err
9966        }; then
9967   ac_header_preproc=yes
9968 else
9969   echo "$as_me: failed program was:" >&5
9970 sed 's/^/| /' conftest.$ac_ext >&5
9971
9972   ac_header_preproc=no
9973 fi
9974
9975 rm -f conftest.err conftest.$ac_ext
9976 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9977 echo "${ECHO_T}$ac_header_preproc" >&6; }
9978
9979 # So?  What about this header?
9980 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9981   yes:no: )
9982     { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Dialog.h: accepted by the compiler, rejected by the preprocessor!" >&5
9983 echo "$as_me: WARNING: X11/Xaw3d/Dialog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9984     { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Dialog.h: proceeding with the compiler's result" >&5
9985 echo "$as_me: WARNING: X11/Xaw3d/Dialog.h: proceeding with the compiler's result" >&2;}
9986     ac_header_preproc=yes
9987     ;;
9988   no:yes:* )
9989     { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Dialog.h: present but cannot be compiled" >&5
9990 echo "$as_me: WARNING: X11/Xaw3d/Dialog.h: present but cannot be compiled" >&2;}
9991     { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Dialog.h:     check for missing prerequisite headers?" >&5
9992 echo "$as_me: WARNING: X11/Xaw3d/Dialog.h:     check for missing prerequisite headers?" >&2;}
9993     { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Dialog.h: see the Autoconf documentation" >&5
9994 echo "$as_me: WARNING: X11/Xaw3d/Dialog.h: see the Autoconf documentation" >&2;}
9995     { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Dialog.h:     section \"Present But Cannot Be Compiled\"" >&5
9996 echo "$as_me: WARNING: X11/Xaw3d/Dialog.h:     section \"Present But Cannot Be Compiled\"" >&2;}
9997     { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Dialog.h: proceeding with the preprocessor's result" >&5
9998 echo "$as_me: WARNING: X11/Xaw3d/Dialog.h: proceeding with the preprocessor's result" >&2;}
9999     { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Dialog.h: in the future, the compiler will take precedence" >&5
10000 echo "$as_me: WARNING: X11/Xaw3d/Dialog.h: in the future, the compiler will take precedence" >&2;}
10001
10002     ;;
10003 esac
10004 { echo "$as_me:$LINENO: checking for X11/Xaw3d/Dialog.h" >&5
10005 echo $ECHO_N "checking for X11/Xaw3d/Dialog.h... $ECHO_C" >&6; }
10006 if test "${ac_cv_header_X11_Xaw3d_Dialog_h+set}" = set; then
10007   echo $ECHO_N "(cached) $ECHO_C" >&6
10008 else
10009   ac_cv_header_X11_Xaw3d_Dialog_h=$ac_header_preproc
10010 fi
10011 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Dialog_h" >&5
10012 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Dialog_h" >&6; }
10013
10014 fi
10015 if test $ac_cv_header_X11_Xaw3d_Dialog_h = yes; then
10016   xaw3d_headers="yes"
10017 else
10018   xaw3d_headers="no"
10019 fi
10020
10021
10022       if test "$xaw3d_headers" == "yes" ; then
10023         cat >>confdefs.h <<\_ACEOF
10024 #define USE_XAW3D 1
10025 _ACEOF
10026
10027         xaw_headers="yes"
10028       else
10029         if test "${ac_cv_header_X11_Xaw_Dialog_h+set}" = set; then
10030   { echo "$as_me:$LINENO: checking for X11/Xaw/Dialog.h" >&5
10031 echo $ECHO_N "checking for X11/Xaw/Dialog.h... $ECHO_C" >&6; }
10032 if test "${ac_cv_header_X11_Xaw_Dialog_h+set}" = set; then
10033   echo $ECHO_N "(cached) $ECHO_C" >&6
10034 fi
10035 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw_Dialog_h" >&5
10036 echo "${ECHO_T}$ac_cv_header_X11_Xaw_Dialog_h" >&6; }
10037 else
10038   # Is the header compilable?
10039 { echo "$as_me:$LINENO: checking X11/Xaw/Dialog.h usability" >&5
10040 echo $ECHO_N "checking X11/Xaw/Dialog.h usability... $ECHO_C" >&6; }
10041 cat >conftest.$ac_ext <<_ACEOF
10042 /* confdefs.h.  */
10043 _ACEOF
10044 cat confdefs.h >>conftest.$ac_ext
10045 cat >>conftest.$ac_ext <<_ACEOF
10046 /* end confdefs.h.  */
10047 $ac_includes_default
10048 #include <X11/Xaw/Dialog.h>
10049 _ACEOF
10050 rm -f conftest.$ac_objext
10051 if { (ac_try="$ac_compile"
10052 case "(($ac_try" in
10053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10054   *) ac_try_echo=$ac_try;;
10055 esac
10056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10057   (eval "$ac_compile") 2>conftest.er1
10058   ac_status=$?
10059   grep -v '^ *+' conftest.er1 >conftest.err
10060   rm -f conftest.er1
10061   cat conftest.err >&5
10062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063   (exit $ac_status); } && {
10064          test -z "$ac_c_werror_flag" ||
10065          test ! -s conftest.err
10066        } && test -s conftest.$ac_objext; then
10067   ac_header_compiler=yes
10068 else
10069   echo "$as_me: failed program was:" >&5
10070 sed 's/^/| /' conftest.$ac_ext >&5
10071
10072         ac_header_compiler=no
10073 fi
10074
10075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10076 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10077 echo "${ECHO_T}$ac_header_compiler" >&6; }
10078
10079 # Is the header present?
10080 { echo "$as_me:$LINENO: checking X11/Xaw/Dialog.h presence" >&5
10081 echo $ECHO_N "checking X11/Xaw/Dialog.h presence... $ECHO_C" >&6; }
10082 cat >conftest.$ac_ext <<_ACEOF
10083 /* confdefs.h.  */
10084 _ACEOF
10085 cat confdefs.h >>conftest.$ac_ext
10086 cat >>conftest.$ac_ext <<_ACEOF
10087 /* end confdefs.h.  */
10088 #include <X11/Xaw/Dialog.h>
10089 _ACEOF
10090 if { (ac_try="$ac_cpp conftest.$ac_ext"
10091 case "(($ac_try" in
10092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10093   *) ac_try_echo=$ac_try;;
10094 esac
10095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10096   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10097   ac_status=$?
10098   grep -v '^ *+' conftest.er1 >conftest.err
10099   rm -f conftest.er1
10100   cat conftest.err >&5
10101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102   (exit $ac_status); } >/dev/null && {
10103          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10104          test ! -s conftest.err
10105        }; then
10106   ac_header_preproc=yes
10107 else
10108   echo "$as_me: failed program was:" >&5
10109 sed 's/^/| /' conftest.$ac_ext >&5
10110
10111   ac_header_preproc=no
10112 fi
10113
10114 rm -f conftest.err conftest.$ac_ext
10115 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10116 echo "${ECHO_T}$ac_header_preproc" >&6; }
10117
10118 # So?  What about this header?
10119 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10120   yes:no: )
10121     { echo "$as_me:$LINENO: WARNING: X11/Xaw/Dialog.h: accepted by the compiler, rejected by the preprocessor!" >&5
10122 echo "$as_me: WARNING: X11/Xaw/Dialog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10123     { echo "$as_me:$LINENO: WARNING: X11/Xaw/Dialog.h: proceeding with the compiler's result" >&5
10124 echo "$as_me: WARNING: X11/Xaw/Dialog.h: proceeding with the compiler's result" >&2;}
10125     ac_header_preproc=yes
10126     ;;
10127   no:yes:* )
10128     { echo "$as_me:$LINENO: WARNING: X11/Xaw/Dialog.h: present but cannot be compiled" >&5
10129 echo "$as_me: WARNING: X11/Xaw/Dialog.h: present but cannot be compiled" >&2;}
10130     { echo "$as_me:$LINENO: WARNING: X11/Xaw/Dialog.h:     check for missing prerequisite headers?" >&5
10131 echo "$as_me: WARNING: X11/Xaw/Dialog.h:     check for missing prerequisite headers?" >&2;}
10132     { echo "$as_me:$LINENO: WARNING: X11/Xaw/Dialog.h: see the Autoconf documentation" >&5
10133 echo "$as_me: WARNING: X11/Xaw/Dialog.h: see the Autoconf documentation" >&2;}
10134     { echo "$as_me:$LINENO: WARNING: X11/Xaw/Dialog.h:     section \"Present But Cannot Be Compiled\"" >&5
10135 echo "$as_me: WARNING: X11/Xaw/Dialog.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10136     { echo "$as_me:$LINENO: WARNING: X11/Xaw/Dialog.h: proceeding with the preprocessor's result" >&5
10137 echo "$as_me: WARNING: X11/Xaw/Dialog.h: proceeding with the preprocessor's result" >&2;}
10138     { echo "$as_me:$LINENO: WARNING: X11/Xaw/Dialog.h: in the future, the compiler will take precedence" >&5
10139 echo "$as_me: WARNING: X11/Xaw/Dialog.h: in the future, the compiler will take precedence" >&2;}
10140
10141     ;;
10142 esac
10143 { echo "$as_me:$LINENO: checking for X11/Xaw/Dialog.h" >&5
10144 echo $ECHO_N "checking for X11/Xaw/Dialog.h... $ECHO_C" >&6; }
10145 if test "${ac_cv_header_X11_Xaw_Dialog_h+set}" = set; then
10146   echo $ECHO_N "(cached) $ECHO_C" >&6
10147 else
10148   ac_cv_header_X11_Xaw_Dialog_h=$ac_header_preproc
10149 fi
10150 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw_Dialog_h" >&5
10151 echo "${ECHO_T}$ac_cv_header_X11_Xaw_Dialog_h" >&6; }
10152
10153 fi
10154 if test $ac_cv_header_X11_Xaw_Dialog_h = yes; then
10155   xaw_headers="yes"
10156 fi
10157
10158
10159       fi
10160    fi
10161 else
10162    XAW_LIBS="-lXaw"
10163    if test "${ac_cv_header_X11_Xaw_Dialog_h+set}" = set; then
10164   { echo "$as_me:$LINENO: checking for X11/Xaw/Dialog.h" >&5
10165 echo $ECHO_N "checking for X11/Xaw/Dialog.h... $ECHO_C" >&6; }
10166 if test "${ac_cv_header_X11_Xaw_Dialog_h+set}" = set; then
10167   echo $ECHO_N "(cached) $ECHO_C" >&6
10168 fi
10169 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw_Dialog_h" >&5
10170 echo "${ECHO_T}$ac_cv_header_X11_Xaw_Dialog_h" >&6; }
10171 else
10172   # Is the header compilable?
10173 { echo "$as_me:$LINENO: checking X11/Xaw/Dialog.h usability" >&5
10174 echo $ECHO_N "checking X11/Xaw/Dialog.h usability... $ECHO_C" >&6; }
10175 cat >conftest.$ac_ext <<_ACEOF
10176 /* confdefs.h.  */
10177 _ACEOF
10178 cat confdefs.h >>conftest.$ac_ext
10179 cat >>conftest.$ac_ext <<_ACEOF
10180 /* end confdefs.h.  */
10181 $ac_includes_default
10182 #include <X11/Xaw/Dialog.h>
10183 _ACEOF
10184 rm -f conftest.$ac_objext
10185 if { (ac_try="$ac_compile"
10186 case "(($ac_try" in
10187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10188   *) ac_try_echo=$ac_try;;
10189 esac
10190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10191   (eval "$ac_compile") 2>conftest.er1
10192   ac_status=$?
10193   grep -v '^ *+' conftest.er1 >conftest.err
10194   rm -f conftest.er1
10195   cat conftest.err >&5
10196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197   (exit $ac_status); } && {
10198          test -z "$ac_c_werror_flag" ||
10199          test ! -s conftest.err
10200        } && test -s conftest.$ac_objext; then
10201   ac_header_compiler=yes
10202 else
10203   echo "$as_me: failed program was:" >&5
10204 sed 's/^/| /' conftest.$ac_ext >&5
10205
10206         ac_header_compiler=no
10207 fi
10208
10209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10210 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10211 echo "${ECHO_T}$ac_header_compiler" >&6; }
10212
10213 # Is the header present?
10214 { echo "$as_me:$LINENO: checking X11/Xaw/Dialog.h presence" >&5
10215 echo $ECHO_N "checking X11/Xaw/Dialog.h presence... $ECHO_C" >&6; }
10216 cat >conftest.$ac_ext <<_ACEOF
10217 /* confdefs.h.  */
10218 _ACEOF
10219 cat confdefs.h >>conftest.$ac_ext
10220 cat >>conftest.$ac_ext <<_ACEOF
10221 /* end confdefs.h.  */
10222 #include <X11/Xaw/Dialog.h>
10223 _ACEOF
10224 if { (ac_try="$ac_cpp conftest.$ac_ext"
10225 case "(($ac_try" in
10226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10227   *) ac_try_echo=$ac_try;;
10228 esac
10229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10230   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10231   ac_status=$?
10232   grep -v '^ *+' conftest.er1 >conftest.err
10233   rm -f conftest.er1
10234   cat conftest.err >&5
10235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236   (exit $ac_status); } >/dev/null && {
10237          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10238          test ! -s conftest.err
10239        }; then
10240   ac_header_preproc=yes
10241 else
10242   echo "$as_me: failed program was:" >&5
10243 sed 's/^/| /' conftest.$ac_ext >&5
10244
10245   ac_header_preproc=no
10246 fi
10247
10248 rm -f conftest.err conftest.$ac_ext
10249 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10250 echo "${ECHO_T}$ac_header_preproc" >&6; }
10251
10252 # So?  What about this header?
10253 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10254   yes:no: )
10255     { echo "$as_me:$LINENO: WARNING: X11/Xaw/Dialog.h: accepted by the compiler, rejected by the preprocessor!" >&5
10256 echo "$as_me: WARNING: X11/Xaw/Dialog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10257     { echo "$as_me:$LINENO: WARNING: X11/Xaw/Dialog.h: proceeding with the compiler's result" >&5
10258 echo "$as_me: WARNING: X11/Xaw/Dialog.h: proceeding with the compiler's result" >&2;}
10259     ac_header_preproc=yes
10260     ;;
10261   no:yes:* )
10262     { echo "$as_me:$LINENO: WARNING: X11/Xaw/Dialog.h: present but cannot be compiled" >&5
10263 echo "$as_me: WARNING: X11/Xaw/Dialog.h: present but cannot be compiled" >&2;}
10264     { echo "$as_me:$LINENO: WARNING: X11/Xaw/Dialog.h:     check for missing prerequisite headers?" >&5
10265 echo "$as_me: WARNING: X11/Xaw/Dialog.h:     check for missing prerequisite headers?" >&2;}
10266     { echo "$as_me:$LINENO: WARNING: X11/Xaw/Dialog.h: see the Autoconf documentation" >&5
10267 echo "$as_me: WARNING: X11/Xaw/Dialog.h: see the Autoconf documentation" >&2;}
10268     { echo "$as_me:$LINENO: WARNING: X11/Xaw/Dialog.h:     section \"Present But Cannot Be Compiled\"" >&5
10269 echo "$as_me: WARNING: X11/Xaw/Dialog.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10270     { echo "$as_me:$LINENO: WARNING: X11/Xaw/Dialog.h: proceeding with the preprocessor's result" >&5
10271 echo "$as_me: WARNING: X11/Xaw/Dialog.h: proceeding with the preprocessor's result" >&2;}
10272     { echo "$as_me:$LINENO: WARNING: X11/Xaw/Dialog.h: in the future, the compiler will take precedence" >&5
10273 echo "$as_me: WARNING: X11/Xaw/Dialog.h: in the future, the compiler will take precedence" >&2;}
10274
10275     ;;
10276 esac
10277 { echo "$as_me:$LINENO: checking for X11/Xaw/Dialog.h" >&5
10278 echo $ECHO_N "checking for X11/Xaw/Dialog.h... $ECHO_C" >&6; }
10279 if test "${ac_cv_header_X11_Xaw_Dialog_h+set}" = set; then
10280   echo $ECHO_N "(cached) $ECHO_C" >&6
10281 else
10282   ac_cv_header_X11_Xaw_Dialog_h=$ac_header_preproc
10283 fi
10284 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw_Dialog_h" >&5
10285 echo "${ECHO_T}$ac_cv_header_X11_Xaw_Dialog_h" >&6; }
10286
10287 fi
10288 if test $ac_cv_header_X11_Xaw_Dialog_h = yes; then
10289   xaw_headers="yes"
10290 fi
10291
10292
10293 fi
10294
10295
10296
10297
10298
10299 if test "$xaw_headers" == "no" ; then
10300    echo Xaw headers not found
10301    exit 1
10302
10303 fi
10304
10305
10306
10307
10308 # Make sure we can run config.sub.
10309 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
10310   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
10311 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
10312    { (exit 1); exit 1; }; }
10313
10314 { echo "$as_me:$LINENO: checking build system type" >&5
10315 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
10316 if test "${ac_cv_build+set}" = set; then
10317   echo $ECHO_N "(cached) $ECHO_C" >&6
10318 else
10319   ac_build_alias=$build_alias
10320 test "x$ac_build_alias" = x &&
10321   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
10322 test "x$ac_build_alias" = x &&
10323   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
10324 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
10325    { (exit 1); exit 1; }; }
10326 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
10327   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
10328 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
10329    { (exit 1); exit 1; }; }
10330
10331 fi
10332 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
10333 echo "${ECHO_T}$ac_cv_build" >&6; }
10334 case $ac_cv_build in
10335 *-*-*) ;;
10336 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
10337 echo "$as_me: error: invalid value of canonical build" >&2;}
10338    { (exit 1); exit 1; }; };;
10339 esac
10340 build=$ac_cv_build
10341 ac_save_IFS=$IFS; IFS='-'
10342 set x $ac_cv_build
10343 shift
10344 build_cpu=$1
10345 build_vendor=$2
10346 shift; shift
10347 # Remember, the first character of IFS is used to create $*,
10348 # except with old shells:
10349 build_os=$*
10350 IFS=$ac_save_IFS
10351 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
10352
10353
10354 { echo "$as_me:$LINENO: checking host system type" >&5
10355 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
10356 if test "${ac_cv_host+set}" = set; then
10357   echo $ECHO_N "(cached) $ECHO_C" >&6
10358 else
10359   if test "x$host_alias" = x; then
10360   ac_cv_host=$ac_cv_build
10361 else
10362   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
10363     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
10364 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
10365    { (exit 1); exit 1; }; }
10366 fi
10367
10368 fi
10369 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
10370 echo "${ECHO_T}$ac_cv_host" >&6; }
10371 case $ac_cv_host in
10372 *-*-*) ;;
10373 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
10374 echo "$as_me: error: invalid value of canonical host" >&2;}
10375    { (exit 1); exit 1; }; };;
10376 esac
10377 host=$ac_cv_host
10378 ac_save_IFS=$IFS; IFS='-'
10379 set x $ac_cv_host
10380 shift
10381 host_cpu=$1
10382 host_vendor=$2
10383 shift; shift
10384 # Remember, the first character of IFS is used to create $*,
10385 # except with old shells:
10386 host_os=$*
10387 IFS=$ac_save_IFS
10388 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
10389
10390
10391
10392
10393
10394 USE_PTYS=0
10395 case "$host" in
10396   *-*-hpux* )
10397     cat >>confdefs.h <<\_ACEOF
10398 #define PTY_TTY_NAME_SPRINTF sprintf (pty_name, "/dev/pty/tty%c%x", c, i);
10399 _ACEOF
10400
10401     cat >>confdefs.h <<\_ACEOF
10402 #define PTY_NAME_SPRINTF sprintf (pty_name, "/dev/ptym/pty%c%x", c, i);
10403 _ACEOF
10404
10405     if test "$GCC" = yes; then
10406       CONF_CFLAGS="-fwritable-strings"
10407     else
10408
10409
10410       CONF_CFLAGS="-Aa -D_HPUX_SOURCE"
10411     fi
10412
10413
10414     if test -d /opt/hppd/include/X11; then
10415       X_CFLAGS="$X_CFLAGS -I/opt/hppd/include"
10416       X_LIBS="$X_LIBS -L/opt/hppd/lib"
10417     elif test -d /usr/contrib/X11R5/include; then
10418       X_CFLAGS="$X_CFLAGS -I/usr/contrib/X11R5/include"
10419       X_LIBS="$X_LIBS -L/usr/contrib/X11R5/lib"
10420     elif test -d /usr/contrib/mitX11R5/include; then
10421       X_CFLAGS="$X_CFLAGS -I/usr/contrib/mitX11R5/include"
10422       X_LIBS="$X_LIBS -L/usr/contrib/mitX11R5/lib"
10423     elif test -d /MIT/X11R5/include; then
10424       X_CFLAGS="$X_CFLAGS -I/MIT/X11R5/include"
10425       X_LIBS="$X_LIBS -L/MIT/X11R5/lib"
10426     elif test -d /usr/local/include/X11R5; then
10427       X_CFLAGS="$X_CFLAGS -I/usr/local/include/X11R5"
10428       X_LIBS="$X_LIBS -L/usr/local/lib/X11R5"
10429     fi
10430     if test -d /usr/include/X11R5; then
10431       X_CFLAGS="$X_CFLAGS -I/usr/include/X11R5"
10432       X_LIBS="$X_LIBS -L/usr/lib/X11R5 -L/usr/lib/X11R4"
10433     elif test -d /usr/include/X11R4; then
10434       X_CFLAGS="$X_CFLAGS -I/usr/include/X11R4"
10435       X_LIBS="$X_LIBS -L/usr/lib/X11R4"
10436     fi
10437   ;;
10438
10439   romp-ibm-aix* )
10440     cat >>confdefs.h <<\_ACEOF
10441 #define IBMRTAIX 1
10442 _ACEOF
10443
10444   ;;
10445
10446   i386-ibm-aix )
10447     if test "$GCC" = yes; then
10448       CONF_CFLAGS="-fwritable-strings"
10449     fi
10450   ;;
10451
10452   *-*-aix3* | *-*-bosx* )
10453     cat >>confdefs.h <<\_ACEOF
10454 #define PTY_ITERATION for (c = 0; !c; c++)
10455 _ACEOF
10456
10457     cat >>confdefs.h <<\_ACEOF
10458 #define PTY_NAME_SPRINTF strcpy (pty_name, "/dev/ptc");
10459 _ACEOF
10460
10461     cat >>confdefs.h <<\_ACEOF
10462 #define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));
10463 _ACEOF
10464
10465   ;;
10466
10467   *-*-cxux* )
10468     cat >>confdefs.h <<\_ACEOF
10469 #define FIRST_PTY_LETTER 'A'
10470 _ACEOF
10471
10472     cat >>confdefs.h <<\_ACEOF
10473 #define LAST_PTY_LETTER 'P'
10474 _ACEOF
10475
10476   ;;
10477
10478   *-*-uniplus* )
10479     cat >>confdefs.h <<\_ACEOF
10480 #define UNIPLUS 1
10481 _ACEOF
10482
10483   ;;
10484
10485   *-*-rtu* )
10486     cat >>confdefs.h <<\_ACEOF
10487 #define FIRST_PTY_LETTER 'z'
10488 _ACEOF
10489
10490     cat >>confdefs.h <<\_ACEOF
10491 #define PTY_TTY_NAME_SPRINTF sprintf (pty_name, "/dev/ttyp%x", i);
10492 _ACEOF
10493
10494     cat >>confdefs.h <<\_ACEOF
10495 #define PTY_NAME_SPRINTF sprintf (pty_name, "/dev/pty%x", i);
10496 _ACEOF
10497
10498     cat >>confdefs.h <<\_ACEOF
10499 #define RTU 1
10500 _ACEOF
10501
10502   ;;
10503
10504   *-*-iris* | *-*-irix3* )
10505     cat >>confdefs.h <<\_ACEOF
10506 #define PTY_ITERATION for (c = 0; !c; c++)
10507 _ACEOF
10508
10509     cat >>confdefs.h <<\_ACEOF
10510 #define PTY_NAME_SPRINTF strcpy (pty_name, "/dev/ptc");
10511 _ACEOF
10512
10513     cat >>confdefs.h <<\_ACEOF
10514 #define PTY_TTY_NAME_SPRINTF sprintf (pty_name, "/dev/ttyq%d", minor(stb.st_rdev));
10515 _ACEOF
10516
10517   ;;
10518
10519   *-*-irix* )
10520   ;;
10521
10522   *-*-sunos4* | *-*-solaris1* )
10523
10524
10525     if test "$GCC" = yes; then
10526       PRE_XMULIB="-static"
10527       POST_XMULIB="-dynamic"
10528     else
10529       PRE_XMULIB="-Bstatic"
10530       POST_XMULIB="-Bdynamic"
10531     fi
10532   ;;
10533
10534   *-*-sunos5* | *-*-solaris2* )
10535
10536
10537     X_LIBS="$X_LIBS -lelf"
10538   ;;
10539
10540   *-*-sco* )
10541     cat >>confdefs.h <<\_ACEOF
10542 #define PTY_ITERATION for (i = 0; ; i++)
10543 _ACEOF
10544
10545     cat >>confdefs.h <<\_ACEOF
10546 #define PTY_NAME_SPRINTF sprintf (pty_name, "/dev/ptyp%d", i);
10547 _ACEOF
10548
10549     cat >>confdefs.h <<\_ACEOF
10550 #define PTY_TTY_NAME_SPRINTF sprintf (pty_name, "/dev/ttyp%d", i);
10551 _ACEOF
10552
10553   ;;
10554
10555   *-*-dynix* | *-*-ptx* )
10556   ;;
10557
10558   *-*-esix* )
10559   ;;
10560
10561   *-*-usg5-4* | *-*-sysvr4* )
10562   ;;
10563
10564   *-*-usg* | *-*-sysv* | *-*-aix* )
10565   ;;
10566
10567   vax-*-ultrix )
10568     if test "$GCC" = yes; then
10569       CONF_CFLAGS="-fwritable-strings"
10570     fi
10571   ;;
10572 esac
10573
10574 # Check whether --enable-xpm was given.
10575 if test "${enable_xpm+set}" = set; then
10576   enableval=$enable_xpm; enable_xpm="$enableval"
10577 else
10578   enable_xpm="yes"
10579 fi
10580
10581
10582 if test "$enable_xpm" = "yes"; then
10583   save_cflags="$CFLAGS"
10584   CFLAGS="$CFLAGS $X_CFLAGS"
10585   CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10586
10587 for ac_header in X11/xpm.h
10588 do
10589 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10591   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10594   echo $ECHO_N "(cached) $ECHO_C" >&6
10595 fi
10596 ac_res=`eval echo '${'$as_ac_Header'}'`
10597                { echo "$as_me:$LINENO: result: $ac_res" >&5
10598 echo "${ECHO_T}$ac_res" >&6; }
10599 else
10600   # Is the header compilable?
10601 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10602 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10603 cat >conftest.$ac_ext <<_ACEOF
10604 /* confdefs.h.  */
10605 _ACEOF
10606 cat confdefs.h >>conftest.$ac_ext
10607 cat >>conftest.$ac_ext <<_ACEOF
10608 /* end confdefs.h.  */
10609 $ac_includes_default
10610 #include <$ac_header>
10611 _ACEOF
10612 rm -f conftest.$ac_objext
10613 if { (ac_try="$ac_compile"
10614 case "(($ac_try" in
10615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10616   *) ac_try_echo=$ac_try;;
10617 esac
10618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10619   (eval "$ac_compile") 2>conftest.er1
10620   ac_status=$?
10621   grep -v '^ *+' conftest.er1 >conftest.err
10622   rm -f conftest.er1
10623   cat conftest.err >&5
10624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625   (exit $ac_status); } && {
10626          test -z "$ac_c_werror_flag" ||
10627          test ! -s conftest.err
10628        } && test -s conftest.$ac_objext; then
10629   ac_header_compiler=yes
10630 else
10631   echo "$as_me: failed program was:" >&5
10632 sed 's/^/| /' conftest.$ac_ext >&5
10633
10634         ac_header_compiler=no
10635 fi
10636
10637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10638 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10639 echo "${ECHO_T}$ac_header_compiler" >&6; }
10640
10641 # Is the header present?
10642 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10643 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10644 cat >conftest.$ac_ext <<_ACEOF
10645 /* confdefs.h.  */
10646 _ACEOF
10647 cat confdefs.h >>conftest.$ac_ext
10648 cat >>conftest.$ac_ext <<_ACEOF
10649 /* end confdefs.h.  */
10650 #include <$ac_header>
10651 _ACEOF
10652 if { (ac_try="$ac_cpp conftest.$ac_ext"
10653 case "(($ac_try" in
10654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10655   *) ac_try_echo=$ac_try;;
10656 esac
10657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10658   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10659   ac_status=$?
10660   grep -v '^ *+' conftest.er1 >conftest.err
10661   rm -f conftest.er1
10662   cat conftest.err >&5
10663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664   (exit $ac_status); } >/dev/null && {
10665          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10666          test ! -s conftest.err
10667        }; then
10668   ac_header_preproc=yes
10669 else
10670   echo "$as_me: failed program was:" >&5
10671 sed 's/^/| /' conftest.$ac_ext >&5
10672
10673   ac_header_preproc=no
10674 fi
10675
10676 rm -f conftest.err conftest.$ac_ext
10677 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10678 echo "${ECHO_T}$ac_header_preproc" >&6; }
10679
10680 # So?  What about this header?
10681 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10682   yes:no: )
10683     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10684 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10685     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10686 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10687     ac_header_preproc=yes
10688     ;;
10689   no:yes:* )
10690     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10691 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10692     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10693 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10694     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10695 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10696     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10697 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10698     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10699 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10700     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10701 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10702
10703     ;;
10704 esac
10705 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10708   echo $ECHO_N "(cached) $ECHO_C" >&6
10709 else
10710   eval "$as_ac_Header=\$ac_header_preproc"
10711 fi
10712 ac_res=`eval echo '${'$as_ac_Header'}'`
10713                { echo "$as_me:$LINENO: result: $ac_res" >&5
10714 echo "${ECHO_T}$ac_res" >&6; }
10715
10716 fi
10717 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10718   cat >>confdefs.h <<_ACEOF
10719 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10720 _ACEOF
10721
10722 fi
10723
10724 done
10725
10726   CFLAGS="$save_cflags"
10727   if test "$ac_cv_header_X11_xpm_h" = "yes"; then
10728     save_ldflags="$LDFLAGS"
10729     LDFLAGS="$LDFLAGS $X_LIBS"
10730     { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
10731 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
10732 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
10733   echo $ECHO_N "(cached) $ECHO_C" >&6
10734 else
10735   ac_check_lib_save_LIBS=$LIBS
10736 LIBS="-lXpm $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10737 cat >conftest.$ac_ext <<_ACEOF
10738 /* confdefs.h.  */
10739 _ACEOF
10740 cat confdefs.h >>conftest.$ac_ext
10741 cat >>conftest.$ac_ext <<_ACEOF
10742 /* end confdefs.h.  */
10743
10744 /* Override any GCC internal prototype to avoid an error.
10745    Use char because int might match the return type of a GCC
10746    builtin and then its argument prototype would still apply.  */
10747 #ifdef __cplusplus
10748 extern "C"
10749 #endif
10750 char XpmReadFileToPixmap ();
10751 int
10752 main ()
10753 {
10754 return XpmReadFileToPixmap ();
10755   ;
10756   return 0;
10757 }
10758 _ACEOF
10759 rm -f conftest.$ac_objext conftest$ac_exeext
10760 if { (ac_try="$ac_link"
10761 case "(($ac_try" in
10762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10763   *) ac_try_echo=$ac_try;;
10764 esac
10765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10766   (eval "$ac_link") 2>conftest.er1
10767   ac_status=$?
10768   grep -v '^ *+' conftest.er1 >conftest.err
10769   rm -f conftest.er1
10770   cat conftest.err >&5
10771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772   (exit $ac_status); } && {
10773          test -z "$ac_c_werror_flag" ||
10774          test ! -s conftest.err
10775        } && test -s conftest$ac_exeext &&
10776        $as_test_x conftest$ac_exeext; then
10777   ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
10778 else
10779   echo "$as_me: failed program was:" >&5
10780 sed 's/^/| /' conftest.$ac_ext >&5
10781
10782         ac_cv_lib_Xpm_XpmReadFileToPixmap=no
10783 fi
10784
10785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10786       conftest$ac_exeext conftest.$ac_ext
10787 LIBS=$ac_check_lib_save_LIBS
10788 fi
10789 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
10790 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
10791 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
10792   X_PRE_LIBS="-lXpm $X_PRE_LIBS"; cat >>confdefs.h <<\_ACEOF
10793 #define HAVE_LIBXPM 1
10794 _ACEOF
10795
10796 fi
10797
10798     LDFLAGS="$save_ldflags"
10799   fi
10800 fi
10801
10802
10803
10804
10805
10806
10807 { echo "$as_me:$LINENO: checking whether ptys or pipes should be used" >&5
10808 echo $ECHO_N "checking whether ptys or pipes should be used... $ECHO_C" >&6; }
10809 # Check whether --enable-ptys was given.
10810 if test "${enable_ptys+set}" = set; then
10811   enableval=$enable_ptys; if test "$enableval" = yes; then
10812   USE_PTYS=1
10813   { echo "$as_me:$LINENO: result: ptys (user override)" >&5
10814 echo "${ECHO_T}ptys (user override)" >&6; }
10815 fi
10816 if test "$enableval" = no; then
10817   USE_PTYS=0
10818   { echo "$as_me:$LINENO: result: pipes (user override)" >&5
10819 echo "${ECHO_T}pipes (user override)" >&6; }
10820 fi
10821 else
10822   if test "$USE_PTYS" = 1; then
10823   { echo "$as_me:$LINENO: result: ptys" >&5
10824 echo "${ECHO_T}ptys" >&6; }
10825 else
10826   { echo "$as_me:$LINENO: result: pipes" >&5
10827 echo "${ECHO_T}pipes" >&6; }
10828 fi
10829 fi
10830
10831 cat >>confdefs.h <<_ACEOF
10832 #define USE_PTYS $USE_PTYS
10833 _ACEOF
10834
10835
10836 # Check whether --enable-zippy was given.
10837 if test "${enable_zippy+set}" = set; then
10838   enableval=$enable_zippy; enable_zippy="$enableval"
10839 else
10840   enable_zippy="yes"
10841 fi
10842
10843 if test "$enable_zippy" = yes; then
10844   cat >>confdefs.h <<\_ACEOF
10845 #define ZIPPY 1
10846 _ACEOF
10847
10848   ZIPPY_O=zippy.o
10849   ZIPPY_H=zippy.h
10850 fi
10851
10852
10853
10854 # Check whether --enable-sigint was given.
10855 if test "${enable_sigint+set}" = set; then
10856   enableval=$enable_sigint; if test "$enableval" = yes; then
10857   cat >>confdefs.h <<\_ACEOF
10858 #define ATTENTION 1
10859 _ACEOF
10860
10861 fi
10862 else
10863   cat >>confdefs.h <<\_ACEOF
10864 #define ATTENTION 1
10865 _ACEOF
10866
10867 fi
10868
10869
10870 cat >>confdefs.h <<_ACEOF
10871 #define PRODUCT "$PRODUCT"
10872 _ACEOF
10873
10874 cat >>confdefs.h <<_ACEOF
10875 #define VERSION "$VERSION"
10876 _ACEOF
10877
10878 cat >>confdefs.h <<_ACEOF
10879 #define PATCHLEVEL "$PATCHLEVEL"
10880 _ACEOF
10881
10882
10883
10884
10885
10886 ac_config_files="$ac_config_files cmail xboard.texinfo"
10887
10888 ac_config_commands="$ac_config_commands default"
10889
10890 cat >confcache <<\_ACEOF
10891 # This file is a shell script that caches the results of configure
10892 # tests run on this system so they can be shared between configure
10893 # scripts and configure runs, see configure's option --config-cache.
10894 # It is not useful on other systems.  If it contains results you don't
10895 # want to keep, you may remove or edit it.
10896 #
10897 # config.status only pays attention to the cache file if you give it
10898 # the --recheck option to rerun configure.
10899 #
10900 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10901 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10902 # following values.
10903
10904 _ACEOF
10905
10906 # The following way of writing the cache mishandles newlines in values,
10907 # but we know of no workaround that is simple, portable, and efficient.
10908 # So, we kill variables containing newlines.
10909 # Ultrix sh set writes to stderr and can't be redirected directly,
10910 # and sets the high bit in the cache file unless we assign to the vars.
10911 (
10912   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10913     eval ac_val=\$$ac_var
10914     case $ac_val in #(
10915     *${as_nl}*)
10916       case $ac_var in #(
10917       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
10918 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
10919       esac
10920       case $ac_var in #(
10921       _ | IFS | as_nl) ;; #(
10922       *) $as_unset $ac_var ;;
10923       esac ;;
10924     esac
10925   done
10926
10927   (set) 2>&1 |
10928     case $as_nl`(ac_space=' '; set) 2>&1` in #(
10929     *${as_nl}ac_space=\ *)
10930       # `set' does not quote correctly, so add quotes (double-quote
10931       # substitution turns \\\\ into \\, and sed turns \\ into \).
10932       sed -n \
10933         "s/'/'\\\\''/g;
10934           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10935       ;; #(
10936     *)
10937       # `set' quotes correctly as required by POSIX, so do not add quotes.
10938       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10939       ;;
10940     esac |
10941     sort
10942 ) |
10943   sed '
10944      /^ac_cv_env_/b end
10945      t clear
10946      :clear
10947      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10948      t end
10949      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10950      :end' >>confcache
10951 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10952   if test -w "$cache_file"; then
10953     test "x$cache_file" != "x/dev/null" &&
10954       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
10955 echo "$as_me: updating cache $cache_file" >&6;}
10956     cat confcache >$cache_file
10957   else
10958     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10959 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10960   fi
10961 fi
10962 rm -f confcache
10963
10964 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10965 # Let make expand exec_prefix.
10966 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10967
10968 DEFS=-DHAVE_CONFIG_H
10969
10970 ac_libobjs=
10971 ac_ltlibobjs=
10972 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10973   # 1. Remove the extension, and $U if already installed.
10974   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10975   ac_i=`echo "$ac_i" | sed "$ac_script"`
10976   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10977   #    will be set to the directory where LIBOBJS objects are built.
10978   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10979   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10980 done
10981 LIBOBJS=$ac_libobjs
10982
10983 LTLIBOBJS=$ac_ltlibobjs
10984
10985
10986 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10987   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10988 Usually this means the macro was only invoked conditionally." >&5
10989 echo "$as_me: error: conditional \"AMDEP\" was never defined.
10990 Usually this means the macro was only invoked conditionally." >&2;}
10991    { (exit 1); exit 1; }; }
10992 fi
10993 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10994   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10995 Usually this means the macro was only invoked conditionally." >&5
10996 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10997 Usually this means the macro was only invoked conditionally." >&2;}
10998    { (exit 1); exit 1; }; }
10999 fi
11000 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11001   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11002 Usually this means the macro was only invoked conditionally." >&5
11003 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11004 Usually this means the macro was only invoked conditionally." >&2;}
11005    { (exit 1); exit 1; }; }
11006 fi
11007
11008 : ${CONFIG_STATUS=./config.status}
11009 ac_clean_files_save=$ac_clean_files
11010 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11011 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11012 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11013 cat >$CONFIG_STATUS <<_ACEOF
11014 #! $SHELL
11015 # Generated by $as_me.
11016 # Run this file to recreate the current configuration.
11017 # Compiler output produced by configure, useful for debugging
11018 # configure, is in config.log if it exists.
11019
11020 debug=false
11021 ac_cs_recheck=false
11022 ac_cs_silent=false
11023 SHELL=\${CONFIG_SHELL-$SHELL}
11024 _ACEOF
11025
11026 cat >>$CONFIG_STATUS <<\_ACEOF
11027 ## --------------------- ##
11028 ## M4sh Initialization.  ##
11029 ## --------------------- ##
11030
11031 # Be more Bourne compatible
11032 DUALCASE=1; export DUALCASE # for MKS sh
11033 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11034   emulate sh
11035   NULLCMD=:
11036   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11037   # is contrary to our usage.  Disable this feature.
11038   alias -g '${1+"$@"}'='"$@"'
11039   setopt NO_GLOB_SUBST
11040 else
11041   case `(set -o) 2>/dev/null` in
11042   *posix*) set -o posix ;;
11043 esac
11044
11045 fi
11046
11047
11048
11049
11050 # PATH needs CR
11051 # Avoid depending upon Character Ranges.
11052 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11053 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11054 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11055 as_cr_digits='0123456789'
11056 as_cr_alnum=$as_cr_Letters$as_cr_digits
11057
11058 # The user is always right.
11059 if test "${PATH_SEPARATOR+set}" != set; then
11060   echo "#! /bin/sh" >conf$$.sh
11061   echo  "exit 0"   >>conf$$.sh
11062   chmod +x conf$$.sh
11063   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11064     PATH_SEPARATOR=';'
11065   else
11066     PATH_SEPARATOR=:
11067   fi
11068   rm -f conf$$.sh
11069 fi
11070
11071 # Support unset when possible.
11072 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11073   as_unset=unset
11074 else
11075   as_unset=false
11076 fi
11077
11078
11079 # IFS
11080 # We need space, tab and new line, in precisely that order.  Quoting is
11081 # there to prevent editors from complaining about space-tab.
11082 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11083 # splitting by setting IFS to empty value.)
11084 as_nl='
11085 '
11086 IFS=" ""        $as_nl"
11087
11088 # Find who we are.  Look in the path if we contain no directory separator.
11089 case $0 in
11090   *[\\/]* ) as_myself=$0 ;;
11091   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11092 for as_dir in $PATH
11093 do
11094   IFS=$as_save_IFS
11095   test -z "$as_dir" && as_dir=.
11096   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11097 done
11098 IFS=$as_save_IFS
11099
11100      ;;
11101 esac
11102 # We did not find ourselves, most probably we were run as `sh COMMAND'
11103 # in which case we are not to be found in the path.
11104 if test "x$as_myself" = x; then
11105   as_myself=$0
11106 fi
11107 if test ! -f "$as_myself"; then
11108   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11109   { (exit 1); exit 1; }
11110 fi
11111
11112 # Work around bugs in pre-3.0 UWIN ksh.
11113 for as_var in ENV MAIL MAILPATH
11114 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11115 done
11116 PS1='$ '
11117 PS2='> '
11118 PS4='+ '
11119
11120 # NLS nuisances.
11121 for as_var in \
11122   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11123   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11124   LC_TELEPHONE LC_TIME
11125 do
11126   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11127     eval $as_var=C; export $as_var
11128   else
11129     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11130   fi
11131 done
11132
11133 # Required to use basename.
11134 if expr a : '\(a\)' >/dev/null 2>&1 &&
11135    test "X`expr 00001 : '.*\(...\)'`" = X001; then
11136   as_expr=expr
11137 else
11138   as_expr=false
11139 fi
11140
11141 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11142   as_basename=basename
11143 else
11144   as_basename=false
11145 fi
11146
11147
11148 # Name of the executable.
11149 as_me=`$as_basename -- "$0" ||
11150 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11151          X"$0" : 'X\(//\)$' \| \
11152          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11153 echo X/"$0" |
11154     sed '/^.*\/\([^/][^/]*\)\/*$/{
11155             s//\1/
11156             q
11157           }
11158           /^X\/\(\/\/\)$/{
11159             s//\1/
11160             q
11161           }
11162           /^X\/\(\/\).*/{
11163             s//\1/
11164             q
11165           }
11166           s/.*/./; q'`
11167
11168 # CDPATH.
11169 $as_unset CDPATH
11170
11171
11172
11173   as_lineno_1=$LINENO
11174   as_lineno_2=$LINENO
11175   test "x$as_lineno_1" != "x$as_lineno_2" &&
11176   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11177
11178   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11179   # uniformly replaced by the line number.  The first 'sed' inserts a
11180   # line-number line after each line using $LINENO; the second 'sed'
11181   # does the real work.  The second script uses 'N' to pair each
11182   # line-number line with the line containing $LINENO, and appends
11183   # trailing '-' during substitution so that $LINENO is not a special
11184   # case at line end.
11185   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11186   # scripts with optimization help from Paolo Bonzini.  Blame Lee
11187   # E. McMahon (1931-1989) for sed's syntax.  :-)
11188   sed -n '
11189     p
11190     /[$]LINENO/=
11191   ' <$as_myself |
11192     sed '
11193       s/[$]LINENO.*/&-/
11194       t lineno
11195       b
11196       :lineno
11197       N
11198       :loop
11199       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11200       t loop
11201       s/-\n.*//
11202     ' >$as_me.lineno &&
11203   chmod +x "$as_me.lineno" ||
11204     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11205    { (exit 1); exit 1; }; }
11206
11207   # Don't try to exec as it changes $[0], causing all sort of problems
11208   # (the dirname of $[0] is not the place where we might find the
11209   # original and so on.  Autoconf is especially sensitive to this).
11210   . "./$as_me.lineno"
11211   # Exit status is that of the last command.
11212   exit
11213 }
11214
11215
11216 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11217   as_dirname=dirname
11218 else
11219   as_dirname=false
11220 fi
11221
11222 ECHO_C= ECHO_N= ECHO_T=
11223 case `echo -n x` in
11224 -n*)
11225   case `echo 'x\c'` in
11226   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
11227   *)   ECHO_C='\c';;
11228   esac;;
11229 *)
11230   ECHO_N='-n';;
11231 esac
11232
11233 if expr a : '\(a\)' >/dev/null 2>&1 &&
11234    test "X`expr 00001 : '.*\(...\)'`" = X001; then
11235   as_expr=expr
11236 else
11237   as_expr=false
11238 fi
11239
11240 rm -f conf$$ conf$$.exe conf$$.file
11241 if test -d conf$$.dir; then
11242   rm -f conf$$.dir/conf$$.file
11243 else
11244   rm -f conf$$.dir
11245   mkdir conf$$.dir
11246 fi
11247 echo >conf$$.file
11248 if ln -s conf$$.file conf$$ 2>/dev/null; then
11249   as_ln_s='ln -s'
11250   # ... but there are two gotchas:
11251   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11252   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11253   # In both cases, we have to default to `cp -p'.
11254   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11255     as_ln_s='cp -p'
11256 elif ln conf$$.file conf$$ 2>/dev/null; then
11257   as_ln_s=ln
11258 else
11259   as_ln_s='cp -p'
11260 fi
11261 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11262 rmdir conf$$.dir 2>/dev/null
11263
11264 if mkdir -p . 2>/dev/null; then
11265   as_mkdir_p=:
11266 else
11267   test -d ./-p && rmdir ./-p
11268   as_mkdir_p=false
11269 fi
11270
11271 if test -x / >/dev/null 2>&1; then
11272   as_test_x='test -x'
11273 else
11274   if ls -dL / >/dev/null 2>&1; then
11275     as_ls_L_option=L
11276   else
11277     as_ls_L_option=
11278   fi
11279   as_test_x='
11280     eval sh -c '\''
11281       if test -d "$1"; then
11282         test -d "$1/.";
11283       else
11284         case $1 in
11285         -*)set "./$1";;
11286         esac;
11287         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11288         ???[sx]*):;;*)false;;esac;fi
11289     '\'' sh
11290   '
11291 fi
11292 as_executable_p=$as_test_x
11293
11294 # Sed expression to map a string onto a valid CPP name.
11295 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11296
11297 # Sed expression to map a string onto a valid variable name.
11298 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11299
11300
11301 exec 6>&1
11302
11303 # Save the log message, to keep $[0] and so on meaningful, and to
11304 # report actual input values of CONFIG_FILES etc. instead of their
11305 # values after options handling.
11306 ac_log="
11307 This file was extended by xboard $as_me 4.3, which was
11308 generated by GNU Autoconf 2.61.  Invocation command line was
11309
11310   CONFIG_FILES    = $CONFIG_FILES
11311   CONFIG_HEADERS  = $CONFIG_HEADERS
11312   CONFIG_LINKS    = $CONFIG_LINKS
11313   CONFIG_COMMANDS = $CONFIG_COMMANDS
11314   $ $0 $@
11315
11316 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11317 "
11318
11319 _ACEOF
11320
11321 cat >>$CONFIG_STATUS <<_ACEOF
11322 # Files that config.status was made for.
11323 config_files="$ac_config_files"
11324 config_headers="$ac_config_headers"
11325 config_commands="$ac_config_commands"
11326
11327 _ACEOF
11328
11329 cat >>$CONFIG_STATUS <<\_ACEOF
11330 ac_cs_usage="\
11331 \`$as_me' instantiates files from templates according to the
11332 current configuration.
11333
11334 Usage: $0 [OPTIONS] [FILE]...
11335
11336   -h, --help       print this help, then exit
11337   -V, --version    print version number and configuration settings, then exit
11338   -q, --quiet      do not print progress messages
11339   -d, --debug      don't remove temporary files
11340       --recheck    update $as_me by reconfiguring in the same conditions
11341   --file=FILE[:TEMPLATE]
11342                    instantiate the configuration file FILE
11343   --header=FILE[:TEMPLATE]
11344                    instantiate the configuration header FILE
11345
11346 Configuration files:
11347 $config_files
11348
11349 Configuration headers:
11350 $config_headers
11351
11352 Configuration commands:
11353 $config_commands
11354
11355 Report bugs to <bug-autoconf@gnu.org>."
11356
11357 _ACEOF
11358 cat >>$CONFIG_STATUS <<_ACEOF
11359 ac_cs_version="\\
11360 xboard config.status 4.3
11361 configured by $0, generated by GNU Autoconf 2.61,
11362   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11363
11364 Copyright (C) 2006 Free Software Foundation, Inc.
11365 This config.status script is free software; the Free Software Foundation
11366 gives unlimited permission to copy, distribute and modify it."
11367
11368 ac_pwd='$ac_pwd'
11369 srcdir='$srcdir'
11370 INSTALL='$INSTALL'
11371 MKDIR_P='$MKDIR_P'
11372 _ACEOF
11373
11374 cat >>$CONFIG_STATUS <<\_ACEOF
11375 # If no file are specified by the user, then we need to provide default
11376 # value.  By we need to know if files were specified by the user.
11377 ac_need_defaults=:
11378 while test $# != 0
11379 do
11380   case $1 in
11381   --*=*)
11382     ac_option=`expr "X$1" : 'X\([^=]*\)='`
11383     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11384     ac_shift=:
11385     ;;
11386   *)
11387     ac_option=$1
11388     ac_optarg=$2
11389     ac_shift=shift
11390     ;;
11391   esac
11392
11393   case $ac_option in
11394   # Handling of the options.
11395   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11396     ac_cs_recheck=: ;;
11397   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11398     echo "$ac_cs_version"; exit ;;
11399   --debug | --debu | --deb | --de | --d | -d )
11400     debug=: ;;
11401   --file | --fil | --fi | --f )
11402     $ac_shift
11403     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11404     ac_need_defaults=false;;
11405   --header | --heade | --head | --hea )
11406     $ac_shift
11407     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11408     ac_need_defaults=false;;
11409   --he | --h)
11410     # Conflict between --help and --header
11411     { echo "$as_me: error: ambiguous option: $1
11412 Try \`$0 --help' for more information." >&2
11413    { (exit 1); exit 1; }; };;
11414   --help | --hel | -h )
11415     echo "$ac_cs_usage"; exit ;;
11416   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11417   | -silent | --silent | --silen | --sile | --sil | --si | --s)
11418     ac_cs_silent=: ;;
11419
11420   # This is an error.
11421   -*) { echo "$as_me: error: unrecognized option: $1
11422 Try \`$0 --help' for more information." >&2
11423    { (exit 1); exit 1; }; } ;;
11424
11425   *) ac_config_targets="$ac_config_targets $1"
11426      ac_need_defaults=false ;;
11427
11428   esac
11429   shift
11430 done
11431
11432 ac_configure_extra_args=
11433
11434 if $ac_cs_silent; then
11435   exec 6>/dev/null
11436   ac_configure_extra_args="$ac_configure_extra_args --silent"
11437 fi
11438
11439 _ACEOF
11440 cat >>$CONFIG_STATUS <<_ACEOF
11441 if \$ac_cs_recheck; then
11442   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11443   CONFIG_SHELL=$SHELL
11444   export CONFIG_SHELL
11445   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11446 fi
11447
11448 _ACEOF
11449 cat >>$CONFIG_STATUS <<\_ACEOF
11450 exec 5>>config.log
11451 {
11452   echo
11453   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11454 ## Running $as_me. ##
11455 _ASBOX
11456   echo "$ac_log"
11457 } >&5
11458
11459 _ACEOF
11460 cat >>$CONFIG_STATUS <<_ACEOF
11461 #
11462 # INIT-COMMANDS
11463 #
11464 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11465
11466 _ACEOF
11467
11468 cat >>$CONFIG_STATUS <<\_ACEOF
11469
11470 # Handling of arguments.
11471 for ac_config_target in $ac_config_targets
11472 do
11473   case $ac_config_target in
11474     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11475     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11476     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11477     "cmail") CONFIG_FILES="$CONFIG_FILES cmail" ;;
11478     "xboard.texinfo") CONFIG_FILES="$CONFIG_FILES xboard.texinfo" ;;
11479     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
11480
11481   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11482 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11483    { (exit 1); exit 1; }; };;
11484   esac
11485 done
11486
11487
11488 # If the user did not use the arguments to specify the items to instantiate,
11489 # then the envvar interface is used.  Set only those that are not.
11490 # We use the long form for the default assignment because of an extremely
11491 # bizarre bug on SunOS 4.1.3.
11492 if $ac_need_defaults; then
11493   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11494   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11495   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11496 fi
11497
11498 # Have a temporary directory for convenience.  Make it in the build tree
11499 # simply because there is no reason against having it here, and in addition,
11500 # creating and moving files from /tmp can sometimes cause problems.
11501 # Hook for its removal unless debugging.
11502 # Note that there is a small window in which the directory will not be cleaned:
11503 # after its creation but before its name has been assigned to `$tmp'.
11504 $debug ||
11505 {
11506   tmp=
11507   trap 'exit_status=$?
11508   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11509 ' 0
11510   trap '{ (exit 1); exit 1; }' 1 2 13 15
11511 }
11512 # Create a (secure) tmp directory for tmp files.
11513
11514 {
11515   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11516   test -n "$tmp" && test -d "$tmp"
11517 }  ||
11518 {
11519   tmp=./conf$$-$RANDOM
11520   (umask 077 && mkdir "$tmp")
11521 } ||
11522 {
11523    echo "$me: cannot create a temporary directory in ." >&2
11524    { (exit 1); exit 1; }
11525 }
11526
11527 #
11528 # Set up the sed scripts for CONFIG_FILES section.
11529 #
11530
11531 # No need to generate the scripts if there are no CONFIG_FILES.
11532 # This happens for instance when ./config.status config.h
11533 if test -n "$CONFIG_FILES"; then
11534
11535 _ACEOF
11536
11537
11538
11539 ac_delim='%!_!# '
11540 for ac_last_try in false false false false false :; do
11541   cat >conf$$subs.sed <<_ACEOF
11542 SHELL!$SHELL$ac_delim
11543 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
11544 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
11545 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
11546 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
11547 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
11548 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
11549 exec_prefix!$exec_prefix$ac_delim
11550 prefix!$prefix$ac_delim
11551 program_transform_name!$program_transform_name$ac_delim
11552 bindir!$bindir$ac_delim
11553 sbindir!$sbindir$ac_delim
11554 libexecdir!$libexecdir$ac_delim
11555 datarootdir!$datarootdir$ac_delim
11556 datadir!$datadir$ac_delim
11557 sysconfdir!$sysconfdir$ac_delim
11558 sharedstatedir!$sharedstatedir$ac_delim
11559 localstatedir!$localstatedir$ac_delim
11560 includedir!$includedir$ac_delim
11561 oldincludedir!$oldincludedir$ac_delim
11562 docdir!$docdir$ac_delim
11563 infodir!$infodir$ac_delim
11564 htmldir!$htmldir$ac_delim
11565 dvidir!$dvidir$ac_delim
11566 pdfdir!$pdfdir$ac_delim
11567 psdir!$psdir$ac_delim
11568 libdir!$libdir$ac_delim
11569 localedir!$localedir$ac_delim
11570 mandir!$mandir$ac_delim
11571 DEFS!$DEFS$ac_delim
11572 ECHO_C!$ECHO_C$ac_delim
11573 ECHO_N!$ECHO_N$ac_delim
11574 ECHO_T!$ECHO_T$ac_delim
11575 LIBS!$LIBS$ac_delim
11576 build_alias!$build_alias$ac_delim
11577 host_alias!$host_alias$ac_delim
11578 target_alias!$target_alias$ac_delim
11579 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
11580 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
11581 INSTALL_DATA!$INSTALL_DATA$ac_delim
11582 am__isrc!$am__isrc$ac_delim
11583 CYGPATH_W!$CYGPATH_W$ac_delim
11584 PACKAGE!$PACKAGE$ac_delim
11585 VERSION!$VERSION$ac_delim
11586 ACLOCAL!$ACLOCAL$ac_delim
11587 AUTOCONF!$AUTOCONF$ac_delim
11588 AUTOMAKE!$AUTOMAKE$ac_delim
11589 AUTOHEADER!$AUTOHEADER$ac_delim
11590 MAKEINFO!$MAKEINFO$ac_delim
11591 install_sh!$install_sh$ac_delim
11592 STRIP!$STRIP$ac_delim
11593 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
11594 mkdir_p!$mkdir_p$ac_delim
11595 AWK!$AWK$ac_delim
11596 SET_MAKE!$SET_MAKE$ac_delim
11597 am__leading_dot!$am__leading_dot$ac_delim
11598 AMTAR!$AMTAR$ac_delim
11599 am__tar!$am__tar$ac_delim
11600 am__untar!$am__untar$ac_delim
11601 CC!$CC$ac_delim
11602 CFLAGS!$CFLAGS$ac_delim
11603 LDFLAGS!$LDFLAGS$ac_delim
11604 CPPFLAGS!$CPPFLAGS$ac_delim
11605 ac_ct_CC!$ac_ct_CC$ac_delim
11606 EXEEXT!$EXEEXT$ac_delim
11607 OBJEXT!$OBJEXT$ac_delim
11608 DEPDIR!$DEPDIR$ac_delim
11609 am__include!$am__include$ac_delim
11610 am__quote!$am__quote$ac_delim
11611 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
11612 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
11613 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
11614 CCDEPMODE!$CCDEPMODE$ac_delim
11615 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
11616 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
11617 LIBOBJS!$LIBOBJS$ac_delim
11618 LTLIBOBJS!$LTLIBOBJS$ac_delim
11619 CPP!$CPP$ac_delim
11620 LEX!$LEX$ac_delim
11621 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
11622 LEXLIB!$LEXLIB$ac_delim
11623 RSH!$RSH$ac_delim
11624 MINFO!$MINFO$ac_delim
11625 NROFF!$NROFF$ac_delim
11626 NROFFFLAGS!$NROFFFLAGS$ac_delim
11627 AWKPATH!$AWKPATH$ac_delim
11628 PERLPATH!$PERLPATH$ac_delim
11629 GREP!$GREP$ac_delim
11630 EGREP!$EGREP$ac_delim
11631 XMKMF!$XMKMF$ac_delim
11632 X_CFLAGS!$X_CFLAGS$ac_delim
11633 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
11634 X_LIBS!$X_LIBS$ac_delim
11635 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
11636 XAW_LIBS!$XAW_LIBS$ac_delim
11637 build!$build$ac_delim
11638 build_cpu!$build_cpu$ac_delim
11639 _ACEOF
11640
11641   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
11642     break
11643   elif $ac_last_try; then
11644     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11645 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11646    { (exit 1); exit 1; }; }
11647   else
11648     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11649   fi
11650 done
11651
11652 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11653 if test -n "$ac_eof"; then
11654   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11655   ac_eof=`expr $ac_eof + 1`
11656 fi
11657
11658 cat >>$CONFIG_STATUS <<_ACEOF
11659 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
11660 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11661 _ACEOF
11662 sed '
11663 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11664 s/^/s,@/; s/!/@,|#_!!_#|/
11665 :n
11666 t n
11667 s/'"$ac_delim"'$/,g/; t
11668 s/$/\\/; p
11669 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11670 ' >>$CONFIG_STATUS <conf$$subs.sed
11671 rm -f conf$$subs.sed
11672 cat >>$CONFIG_STATUS <<_ACEOF
11673 CEOF$ac_eof
11674 _ACEOF
11675
11676
11677 ac_delim='%!_!# '
11678 for ac_last_try in false false false false false :; do
11679   cat >conf$$subs.sed <<_ACEOF
11680 build_vendor!$build_vendor$ac_delim
11681 build_os!$build_os$ac_delim
11682 host!$host$ac_delim
11683 host_cpu!$host_cpu$ac_delim
11684 host_vendor!$host_vendor$ac_delim
11685 host_os!$host_os$ac_delim
11686 PRE_XMULIB!$PRE_XMULIB$ac_delim
11687 POST_XMULIB!$POST_XMULIB$ac_delim
11688 CONF_CFLAGS!$CONF_CFLAGS$ac_delim
11689 CONF_LDFLAGS!$CONF_LDFLAGS$ac_delim
11690 ZIPPY_O!$ZIPPY_O$ac_delim
11691 ZIPPY_H!$ZIPPY_H$ac_delim
11692 PRODUCT!$PRODUCT$ac_delim
11693 PATCHLEVEL!$PATCHLEVEL$ac_delim
11694 _ACEOF
11695
11696   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 14; then
11697     break
11698   elif $ac_last_try; then
11699     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11700 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11701    { (exit 1); exit 1; }; }
11702   else
11703     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11704   fi
11705 done
11706
11707 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11708 if test -n "$ac_eof"; then
11709   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11710   ac_eof=`expr $ac_eof + 1`
11711 fi
11712
11713 cat >>$CONFIG_STATUS <<_ACEOF
11714 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
11715 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
11716 _ACEOF
11717 sed '
11718 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11719 s/^/s,@/; s/!/@,|#_!!_#|/
11720 :n
11721 t n
11722 s/'"$ac_delim"'$/,g/; t
11723 s/$/\\/; p
11724 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11725 ' >>$CONFIG_STATUS <conf$$subs.sed
11726 rm -f conf$$subs.sed
11727 cat >>$CONFIG_STATUS <<_ACEOF
11728 :end
11729 s/|#_!!_#|//g
11730 CEOF$ac_eof
11731 _ACEOF
11732
11733
11734 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11735 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11736 # trailing colons and then remove the whole line if VPATH becomes empty
11737 # (actually we leave an empty line to preserve line numbers).
11738 if test "x$srcdir" = x.; then
11739   ac_vpsub='/^[  ]*VPATH[        ]*=/{
11740 s/:*\$(srcdir):*/:/
11741 s/:*\${srcdir}:*/:/
11742 s/:*@srcdir@:*/:/
11743 s/^\([^=]*=[     ]*\):*/\1/
11744 s/:*$//
11745 s/^[^=]*=[       ]*$//
11746 }'
11747 fi
11748
11749 cat >>$CONFIG_STATUS <<\_ACEOF
11750 fi # test -n "$CONFIG_FILES"
11751
11752
11753 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
11754 do
11755   case $ac_tag in
11756   :[FHLC]) ac_mode=$ac_tag; continue;;
11757   esac
11758   case $ac_mode$ac_tag in
11759   :[FHL]*:*);;
11760   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
11761 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
11762    { (exit 1); exit 1; }; };;
11763   :[FH]-) ac_tag=-:-;;
11764   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11765   esac
11766   ac_save_IFS=$IFS
11767   IFS=:
11768   set x $ac_tag
11769   IFS=$ac_save_IFS
11770   shift
11771   ac_file=$1
11772   shift
11773
11774   case $ac_mode in
11775   :L) ac_source=$1;;
11776   :[FH])
11777     ac_file_inputs=
11778     for ac_f
11779     do
11780       case $ac_f in
11781       -) ac_f="$tmp/stdin";;
11782       *) # Look for the file first in the build tree, then in the source tree
11783          # (if the path is not absolute).  The absolute path cannot be DOS-style,
11784          # because $ac_f cannot contain `:'.
11785          test -f "$ac_f" ||
11786            case $ac_f in
11787            [\\/$]*) false;;
11788            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11789            esac ||
11790            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11791 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11792    { (exit 1); exit 1; }; };;
11793       esac
11794       ac_file_inputs="$ac_file_inputs $ac_f"
11795     done
11796
11797     # Let's still pretend it is `configure' which instantiates (i.e., don't
11798     # use $as_me), people would be surprised to read:
11799     #    /* config.h.  Generated by config.status.  */
11800     configure_input="Generated from "`IFS=:
11801           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
11802     if test x"$ac_file" != x-; then
11803       configure_input="$ac_file.  $configure_input"
11804       { echo "$as_me:$LINENO: creating $ac_file" >&5
11805 echo "$as_me: creating $ac_file" >&6;}
11806     fi
11807
11808     case $ac_tag in
11809     *:-:* | *:-) cat >"$tmp/stdin";;
11810     esac
11811     ;;
11812   esac
11813
11814   ac_dir=`$as_dirname -- "$ac_file" ||
11815 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11816          X"$ac_file" : 'X\(//\)[^/]' \| \
11817          X"$ac_file" : 'X\(//\)$' \| \
11818          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11819 echo X"$ac_file" |
11820     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11821             s//\1/
11822             q
11823           }
11824           /^X\(\/\/\)[^/].*/{
11825             s//\1/
11826             q
11827           }
11828           /^X\(\/\/\)$/{
11829             s//\1/
11830             q
11831           }
11832           /^X\(\/\).*/{
11833             s//\1/
11834             q
11835           }
11836           s/.*/./; q'`
11837   { as_dir="$ac_dir"
11838   case $as_dir in #(
11839   -*) as_dir=./$as_dir;;
11840   esac
11841   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11842     as_dirs=
11843     while :; do
11844       case $as_dir in #(
11845       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11846       *) as_qdir=$as_dir;;
11847       esac
11848       as_dirs="'$as_qdir' $as_dirs"
11849       as_dir=`$as_dirname -- "$as_dir" ||
11850 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11851          X"$as_dir" : 'X\(//\)[^/]' \| \
11852          X"$as_dir" : 'X\(//\)$' \| \
11853          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11854 echo X"$as_dir" |
11855     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11856             s//\1/
11857             q
11858           }
11859           /^X\(\/\/\)[^/].*/{
11860             s//\1/
11861             q
11862           }
11863           /^X\(\/\/\)$/{
11864             s//\1/
11865             q
11866           }
11867           /^X\(\/\).*/{
11868             s//\1/
11869             q
11870           }
11871           s/.*/./; q'`
11872       test -d "$as_dir" && break
11873     done
11874     test -z "$as_dirs" || eval "mkdir $as_dirs"
11875   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11876 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11877    { (exit 1); exit 1; }; }; }
11878   ac_builddir=.
11879
11880 case "$ac_dir" in
11881 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11882 *)
11883   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11884   # A ".." for each directory in $ac_dir_suffix.
11885   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
11886   case $ac_top_builddir_sub in
11887   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11888   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11889   esac ;;
11890 esac
11891 ac_abs_top_builddir=$ac_pwd
11892 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11893 # for backward compatibility:
11894 ac_top_builddir=$ac_top_build_prefix
11895
11896 case $srcdir in
11897   .)  # We are building in place.
11898     ac_srcdir=.
11899     ac_top_srcdir=$ac_top_builddir_sub
11900     ac_abs_top_srcdir=$ac_pwd ;;
11901   [\\/]* | ?:[\\/]* )  # Absolute name.
11902     ac_srcdir=$srcdir$ac_dir_suffix;
11903     ac_top_srcdir=$srcdir
11904     ac_abs_top_srcdir=$srcdir ;;
11905   *) # Relative name.
11906     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11907     ac_top_srcdir=$ac_top_build_prefix$srcdir
11908     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11909 esac
11910 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11911
11912
11913   case $ac_mode in
11914   :F)
11915   #
11916   # CONFIG_FILE
11917   #
11918
11919   case $INSTALL in
11920   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11921   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11922   esac
11923   ac_MKDIR_P=$MKDIR_P
11924   case $MKDIR_P in
11925   [\\/$]* | ?:[\\/]* ) ;;
11926   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11927   esac
11928 _ACEOF
11929
11930 cat >>$CONFIG_STATUS <<\_ACEOF
11931 # If the template does not know about datarootdir, expand it.
11932 # FIXME: This hack should be removed a few years after 2.60.
11933 ac_datarootdir_hack=; ac_datarootdir_seen=
11934
11935 case `sed -n '/datarootdir/ {
11936   p
11937   q
11938 }
11939 /@datadir@/p
11940 /@docdir@/p
11941 /@infodir@/p
11942 /@localedir@/p
11943 /@mandir@/p
11944 ' $ac_file_inputs` in
11945 *datarootdir*) ac_datarootdir_seen=yes;;
11946 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11947   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11948 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11949 _ACEOF
11950 cat >>$CONFIG_STATUS <<_ACEOF
11951   ac_datarootdir_hack='
11952   s&@datadir@&$datadir&g
11953   s&@docdir@&$docdir&g
11954   s&@infodir@&$infodir&g
11955   s&@localedir@&$localedir&g
11956   s&@mandir@&$mandir&g
11957     s&\\\${datarootdir}&$datarootdir&g' ;;
11958 esac
11959 _ACEOF
11960
11961 # Neutralize VPATH when `$srcdir' = `.'.
11962 # Shell code in configure.ac might set extrasub.
11963 # FIXME: do we really want to maintain this feature?
11964 cat >>$CONFIG_STATUS <<_ACEOF
11965   sed "$ac_vpsub
11966 $extrasub
11967 _ACEOF
11968 cat >>$CONFIG_STATUS <<\_ACEOF
11969 :t
11970 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11971 s&@configure_input@&$configure_input&;t t
11972 s&@top_builddir@&$ac_top_builddir_sub&;t t
11973 s&@srcdir@&$ac_srcdir&;t t
11974 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11975 s&@top_srcdir@&$ac_top_srcdir&;t t
11976 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11977 s&@builddir@&$ac_builddir&;t t
11978 s&@abs_builddir@&$ac_abs_builddir&;t t
11979 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11980 s&@INSTALL@&$ac_INSTALL&;t t
11981 s&@MKDIR_P@&$ac_MKDIR_P&;t t
11982 $ac_datarootdir_hack
11983 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
11984
11985 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11986   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11987   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11988   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11989 which seems to be undefined.  Please make sure it is defined." >&5
11990 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11991 which seems to be undefined.  Please make sure it is defined." >&2;}
11992
11993   rm -f "$tmp/stdin"
11994   case $ac_file in
11995   -) cat "$tmp/out"; rm -f "$tmp/out";;
11996   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
11997   esac
11998  ;;
11999   :H)
12000   #
12001   # CONFIG_HEADER
12002   #
12003 _ACEOF
12004
12005 # Transform confdefs.h into a sed script `conftest.defines', that
12006 # substitutes the proper values into config.h.in to produce config.h.
12007 rm -f conftest.defines conftest.tail
12008 # First, append a space to every undef/define line, to ease matching.
12009 echo 's/$/ /' >conftest.defines
12010 # Then, protect against being on the right side of a sed subst, or in
12011 # an unquoted here document, in config.status.  If some macros were
12012 # called several times there might be several #defines for the same
12013 # symbol, which is useless.  But do not sort them, since the last
12014 # AC_DEFINE must be honored.
12015 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12016 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
12017 # NAME is the cpp macro being defined, VALUE is the value it is being given.
12018 # PARAMS is the parameter list in the macro definition--in most cases, it's
12019 # just an empty string.
12020 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
12021 ac_dB='\\)[      (].*,\\1define\\2'
12022 ac_dC=' '
12023 ac_dD=' ,'
12024
12025 uniq confdefs.h |
12026   sed -n '
12027         t rset
12028         :rset
12029         s/^[     ]*#[    ]*define[       ][      ]*//
12030         t ok
12031         d
12032         :ok
12033         s/[\\&,]/\\&/g
12034         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
12035         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
12036   ' >>conftest.defines
12037
12038 # Remove the space that was appended to ease matching.
12039 # Then replace #undef with comments.  This is necessary, for
12040 # example, in the case of _POSIX_SOURCE, which is predefined and required
12041 # on some systems where configure will not decide to define it.
12042 # (The regexp can be short, since the line contains either #define or #undef.)
12043 echo 's/ $//
12044 s,^[     #]*u.*,/* & */,' >>conftest.defines
12045
12046 # Break up conftest.defines:
12047 ac_max_sed_lines=50
12048
12049 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
12050 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
12051 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
12052 # et cetera.
12053 ac_in='$ac_file_inputs'
12054 ac_out='"$tmp/out1"'
12055 ac_nxt='"$tmp/out2"'
12056
12057 while :
12058 do
12059   # Write a here document:
12060     cat >>$CONFIG_STATUS <<_ACEOF
12061     # First, check the format of the line:
12062     cat >"\$tmp/defines.sed" <<\\CEOF
12063 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
12064 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
12065 b
12066 :def
12067 _ACEOF
12068   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
12069   echo 'CEOF
12070     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
12071   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
12072   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
12073   grep . conftest.tail >/dev/null || break
12074   rm -f conftest.defines
12075   mv conftest.tail conftest.defines
12076 done
12077 rm -f conftest.defines conftest.tail
12078
12079 echo "ac_result=$ac_in" >>$CONFIG_STATUS
12080 cat >>$CONFIG_STATUS <<\_ACEOF
12081   if test x"$ac_file" != x-; then
12082     echo "/* $configure_input  */" >"$tmp/config.h"
12083     cat "$ac_result" >>"$tmp/config.h"
12084     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
12085       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12086 echo "$as_me: $ac_file is unchanged" >&6;}
12087     else
12088       rm -f $ac_file
12089       mv "$tmp/config.h" $ac_file
12090     fi
12091   else
12092     echo "/* $configure_input  */"
12093     cat "$ac_result"
12094   fi
12095   rm -f "$tmp/out12"
12096 # Compute $ac_file's index in $config_headers.
12097 _am_arg=$ac_file
12098 _am_stamp_count=1
12099 for _am_header in $config_headers :; do
12100   case $_am_header in
12101     $_am_arg | $_am_arg:* )
12102       break ;;
12103     * )
12104       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12105   esac
12106 done
12107 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12108 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12109          X"$_am_arg" : 'X\(//\)[^/]' \| \
12110          X"$_am_arg" : 'X\(//\)$' \| \
12111          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12112 echo X"$_am_arg" |
12113     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12114             s//\1/
12115             q
12116           }
12117           /^X\(\/\/\)[^/].*/{
12118             s//\1/
12119             q
12120           }
12121           /^X\(\/\/\)$/{
12122             s//\1/
12123             q
12124           }
12125           /^X\(\/\).*/{
12126             s//\1/
12127             q
12128           }
12129           s/.*/./; q'`/stamp-h$_am_stamp_count
12130  ;;
12131
12132   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
12133 echo "$as_me: executing $ac_file commands" >&6;}
12134  ;;
12135   esac
12136
12137
12138   case $ac_file$ac_mode in
12139     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12140   # Strip MF so we end up with the name of the file.
12141   mf=`echo "$mf" | sed -e 's/:.*$//'`
12142   # Check whether this is an Automake generated Makefile or not.
12143   # We used to match only the files named `Makefile.in', but
12144   # some people rename them; so instead we look at the file content.
12145   # Grep'ing the first line is not enough: some people post-process
12146   # each Makefile.in and add a new line on top of each file to say so.
12147   # Grep'ing the whole file is not good either: AIX grep has a line
12148   # limit of 2048, but all sed's we know have understand at least 4000.
12149   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12150     dirpart=`$as_dirname -- "$mf" ||
12151 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12152          X"$mf" : 'X\(//\)[^/]' \| \
12153          X"$mf" : 'X\(//\)$' \| \
12154          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12155 echo X"$mf" |
12156     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12157             s//\1/
12158             q
12159           }
12160           /^X\(\/\/\)[^/].*/{
12161             s//\1/
12162             q
12163           }
12164           /^X\(\/\/\)$/{
12165             s//\1/
12166             q
12167           }
12168           /^X\(\/\).*/{
12169             s//\1/
12170             q
12171           }
12172           s/.*/./; q'`
12173   else
12174     continue
12175   fi
12176   # Extract the definition of DEPDIR, am__include, and am__quote
12177   # from the Makefile without running `make'.
12178   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12179   test -z "$DEPDIR" && continue
12180   am__include=`sed -n 's/^am__include = //p' < "$mf"`
12181   test -z "am__include" && continue
12182   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12183   # When using ansi2knr, U may be empty or an underscore; expand it
12184   U=`sed -n 's/^U = //p' < "$mf"`
12185   # Find all dependency output files, they are included files with
12186   # $(DEPDIR) in their names.  We invoke sed twice because it is the
12187   # simplest approach to changing $(DEPDIR) to its actual value in the
12188   # expansion.
12189   for file in `sed -n "
12190     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12191        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12192     # Make sure the directory exists.
12193     test -f "$dirpart/$file" && continue
12194     fdir=`$as_dirname -- "$file" ||
12195 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12196          X"$file" : 'X\(//\)[^/]' \| \
12197          X"$file" : 'X\(//\)$' \| \
12198          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12199 echo X"$file" |
12200     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12201             s//\1/
12202             q
12203           }
12204           /^X\(\/\/\)[^/].*/{
12205             s//\1/
12206             q
12207           }
12208           /^X\(\/\/\)$/{
12209             s//\1/
12210             q
12211           }
12212           /^X\(\/\).*/{
12213             s//\1/
12214             q
12215           }
12216           s/.*/./; q'`
12217     { as_dir=$dirpart/$fdir
12218   case $as_dir in #(
12219   -*) as_dir=./$as_dir;;
12220   esac
12221   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12222     as_dirs=
12223     while :; do
12224       case $as_dir in #(
12225       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12226       *) as_qdir=$as_dir;;
12227       esac
12228       as_dirs="'$as_qdir' $as_dirs"
12229       as_dir=`$as_dirname -- "$as_dir" ||
12230 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12231          X"$as_dir" : 'X\(//\)[^/]' \| \
12232          X"$as_dir" : 'X\(//\)$' \| \
12233          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12234 echo X"$as_dir" |
12235     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12236             s//\1/
12237             q
12238           }
12239           /^X\(\/\/\)[^/].*/{
12240             s//\1/
12241             q
12242           }
12243           /^X\(\/\/\)$/{
12244             s//\1/
12245             q
12246           }
12247           /^X\(\/\).*/{
12248             s//\1/
12249             q
12250           }
12251           s/.*/./; q'`
12252       test -d "$as_dir" && break
12253     done
12254     test -z "$as_dirs" || eval "mkdir $as_dirs"
12255   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12256 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12257    { (exit 1); exit 1; }; }; }
12258     # echo "creating $dirpart/$file"
12259     echo '# dummy' > "$dirpart/$file"
12260   done
12261 done
12262  ;;
12263     "default":C) test -z "$CONFIG_HEADERS" || date > stamp-h
12264 chmod 755 cmail
12265  ;;
12266
12267   esac
12268 done # for ac_tag
12269
12270
12271 { (exit 0); exit 0; }
12272 _ACEOF
12273 chmod +x $CONFIG_STATUS
12274 ac_clean_files=$ac_clean_files_save
12275
12276
12277 # configure is writing to config.log, and then calls config.status.
12278 # config.status does its own redirection, appending to config.log.
12279 # Unfortunately, on DOS this fails, as config.log is still kept open
12280 # by configure, so config.status won't be able to write to it; its
12281 # output is simply discarded.  So we exec the FD to /dev/null,
12282 # effectively closing config.log, so it can be properly (re)opened and
12283 # appended to by config.status.  When coming back to configure, we
12284 # need to make the FD available again.
12285 if test "$no_create" != yes; then
12286   ac_cs_success=:
12287   ac_config_status_args=
12288   test "$silent" = yes &&
12289     ac_config_status_args="$ac_config_status_args --quiet"
12290   exec 5>/dev/null
12291   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12292   exec 5>>config.log
12293   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12294   # would make configure fail if this is the last instruction.
12295   $ac_cs_success || { (exit 1); exit 1; }
12296 fi
12297