34426c99a0019d4651485c917efe1ad08a98e209
[xboard.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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   # Pre-4.2 versions of Zsh do 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 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83   as_unset=unset
84 else
85   as_unset=false
86 fi
87
88
89 # IFS
90 # We need space, tab and new line, in precisely that order.  Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" ""        $as_nl"
95
96 # Find who we are.  Look in the path if we contain no directory separator.
97 case $0 in
98   *[\\/]* ) as_myself=$0 ;;
99   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102   IFS=$as_save_IFS
103   test -z "$as_dir" && as_dir=.
104   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
107
108      ;;
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113   as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117   { (exit 1); exit 1; }
118 fi
119
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136    test "X`expr 00001 : '.*\(...\)'`" = X001; then
137   as_expr=expr
138 else
139   as_expr=false
140 fi
141
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143   as_basename=basename
144 else
145   as_basename=false
146 fi
147
148
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152          X"$0" : 'X\(//\)$' \| \
153          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155     sed '/^.*\/\([^/][^/]*\)\/*$/{
156             s//\1/
157             q
158           }
159           /^X\/\(\/\/\)$/{
160             s//\1/
161             q
162           }
163           /^X\/\(\/\).*/{
164             s//\1/
165             q
166           }
167           s/.*/./; q'`
168
169 # CDPATH.
170 $as_unset CDPATH
171
172
173 if test "x$CONFIG_SHELL" = x; then
174   if (eval ":") 2>/dev/null; then
175   as_have_required=yes
176 else
177   as_have_required=no
178 fi
179
180   if test $as_have_required = yes &&     (eval ":
181 (as_func_return () {
182   (exit \$1)
183 }
184 as_func_success () {
185   as_func_return 0
186 }
187 as_func_failure () {
188   as_func_return 1
189 }
190 as_func_ret_success () {
191   return 0
192 }
193 as_func_ret_failure () {
194   return 1
195 }
196
197 exitcode=0
198 if as_func_success; then
199   :
200 else
201   exitcode=1
202   echo as_func_success failed.
203 fi
204
205 if as_func_failure; then
206   exitcode=1
207   echo as_func_failure succeeded.
208 fi
209
210 if as_func_ret_success; then
211   :
212 else
213   exitcode=1
214   echo as_func_ret_success failed.
215 fi
216
217 if as_func_ret_failure; then
218   exitcode=1
219   echo as_func_ret_failure succeeded.
220 fi
221
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223   :
224 else
225   exitcode=1
226   echo positional parameters were not saved.
227 fi
228
229 test \$exitcode = 0) || { (exit 1); exit 1; }
230
231 (
232   as_lineno_1=\$LINENO
233   as_lineno_2=\$LINENO
234   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
237   :
238 else
239   as_candidate_shells=
240     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243   IFS=$as_save_IFS
244   test -z "$as_dir" && as_dir=.
245   case $as_dir in
246          /*)
247            for as_base in sh bash ksh sh5; do
248              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249            done;;
250        esac
251 done
252 IFS=$as_save_IFS
253
254
255       for as_shell in $as_candidate_shells $SHELL; do
256          # Try only shells that exist, to save several forks.
257          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258                 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260   emulate sh
261   NULLCMD=:
262   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263   # is contrary to our usage.  Disable this feature.
264   alias -g '${1+"$@"}'='"$@"'
265   setopt NO_GLOB_SUBST
266 else
267   case `(set -o) 2>/dev/null` in
268   *posix*) set -o posix ;;
269 esac
270
271 fi
272
273
274 :
275 _ASEOF
276 }; then
277   CONFIG_SHELL=$as_shell
278                as_have_required=yes
279                if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281   emulate sh
282   NULLCMD=:
283   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284   # is contrary to our usage.  Disable this feature.
285   alias -g '${1+"$@"}'='"$@"'
286   setopt NO_GLOB_SUBST
287 else
288   case `(set -o) 2>/dev/null` in
289   *posix*) set -o posix ;;
290 esac
291
292 fi
293
294
295 :
296 (as_func_return () {
297   (exit $1)
298 }
299 as_func_success () {
300   as_func_return 0
301 }
302 as_func_failure () {
303   as_func_return 1
304 }
305 as_func_ret_success () {
306   return 0
307 }
308 as_func_ret_failure () {
309   return 1
310 }
311
312 exitcode=0
313 if as_func_success; then
314   :
315 else
316   exitcode=1
317   echo as_func_success failed.
318 fi
319
320 if as_func_failure; then
321   exitcode=1
322   echo as_func_failure succeeded.
323 fi
324
325 if as_func_ret_success; then
326   :
327 else
328   exitcode=1
329   echo as_func_ret_success failed.
330 fi
331
332 if as_func_ret_failure; then
333   exitcode=1
334   echo as_func_ret_failure succeeded.
335 fi
336
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338   :
339 else
340   exitcode=1
341   echo positional parameters were not saved.
342 fi
343
344 test $exitcode = 0) || { (exit 1); exit 1; }
345
346 (
347   as_lineno_1=$LINENO
348   as_lineno_2=$LINENO
349   test "x$as_lineno_1" != "x$as_lineno_2" &&
350   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352 _ASEOF
353 }; then
354   break
355 fi
356
357 fi
358
359       done
360
361       if test "x$CONFIG_SHELL" != x; then
362   for as_var in BASH_ENV ENV
363         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364         done
365         export CONFIG_SHELL
366         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367 fi
368
369
370     if test $as_have_required = no; then
371   echo This script requires a shell more modern than all the
372       echo shells that I found on your system.  Please install a
373       echo modern shell, or manually run the script under such a
374       echo shell if you do have one.
375       { (exit 1); exit 1; }
376 fi
377
378
379 fi
380
381 fi
382
383
384
385 (eval "as_func_return () {
386   (exit \$1)
387 }
388 as_func_success () {
389   as_func_return 0
390 }
391 as_func_failure () {
392   as_func_return 1
393 }
394 as_func_ret_success () {
395   return 0
396 }
397 as_func_ret_failure () {
398   return 1
399 }
400
401 exitcode=0
402 if as_func_success; then
403   :
404 else
405   exitcode=1
406   echo as_func_success failed.
407 fi
408
409 if as_func_failure; then
410   exitcode=1
411   echo as_func_failure succeeded.
412 fi
413
414 if as_func_ret_success; then
415   :
416 else
417   exitcode=1
418   echo as_func_ret_success failed.
419 fi
420
421 if as_func_ret_failure; then
422   exitcode=1
423   echo as_func_ret_failure succeeded.
424 fi
425
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427   :
428 else
429   exitcode=1
430   echo positional parameters were not saved.
431 fi
432
433 test \$exitcode = 0") || {
434   echo No shell found that supports shell functions.
435   echo Please tell bug-autoconf@gnu.org about your system,
436   echo including any error possibly output before this message.
437   echo This can help us improve future autoconf versions.
438   echo Configuration will now proceed without shell functions.
439 }
440
441
442
443   as_lineno_1=$LINENO
444   as_lineno_2=$LINENO
445   test "x$as_lineno_1" != "x$as_lineno_2" &&
446   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449   # uniformly replaced by the line number.  The first 'sed' inserts a
450   # line-number line after each line using $LINENO; the second 'sed'
451   # does the real work.  The second script uses 'N' to pair each
452   # line-number line with the line containing $LINENO, and appends
453   # trailing '-' during substitution so that $LINENO is not a special
454   # case at line end.
455   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456   # scripts with optimization help from Paolo Bonzini.  Blame Lee
457   # E. McMahon (1931-1989) for sed's syntax.  :-)
458   sed -n '
459     p
460     /[$]LINENO/=
461   ' <$as_myself |
462     sed '
463       s/[$]LINENO.*/&-/
464       t lineno
465       b
466       :lineno
467       N
468       :loop
469       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470       t loop
471       s/-\n.*//
472     ' >$as_me.lineno &&
473   chmod +x "$as_me.lineno" ||
474     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475    { (exit 1); exit 1; }; }
476
477   # Don't try to exec as it changes $[0], causing all sort of problems
478   # (the dirname of $[0] is not the place where we might find the
479   # original and so on.  Autoconf is especially sensitive to this).
480   . "./$as_me.lineno"
481   # Exit status is that of the last command.
482   exit
483 }
484
485
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487   as_dirname=dirname
488 else
489   as_dirname=false
490 fi
491
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495   case `echo 'x\c'` in
496   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
497   *)   ECHO_C='\c';;
498   esac;;
499 *)
500   ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503    test "X`expr 00001 : '.*\(...\)'`" = X001; then
504   as_expr=expr
505 else
506   as_expr=false
507 fi
508
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511   rm -f conf$$.dir/conf$$.file
512 else
513   rm -f conf$$.dir
514   mkdir conf$$.dir 2>/dev/null
515 fi
516 if (echo >conf$$.file) 2>/dev/null; then
517   if ln -s conf$$.file conf$$ 2>/dev/null; then
518     as_ln_s='ln -s'
519     # ... but there are two gotchas:
520     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522     # In both cases, we have to default to `cp -p'.
523     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524       as_ln_s='cp -p'
525   elif ln conf$$.file conf$$ 2>/dev/null; then
526     as_ln_s=ln
527   else
528     as_ln_s='cp -p'
529   fi
530 else
531   as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
535
536 if mkdir -p . 2>/dev/null; then
537   as_mkdir_p=:
538 else
539   test -d ./-p && rmdir ./-p
540   as_mkdir_p=false
541 fi
542
543 if test -x / >/dev/null 2>&1; then
544   as_test_x='test -x'
545 else
546   if ls -dL / >/dev/null 2>&1; then
547     as_ls_L_option=L
548   else
549     as_ls_L_option=
550   fi
551   as_test_x='
552     eval sh -c '\''
553       if test -d "$1"; then
554         test -d "$1/.";
555       else
556         case $1 in
557         -*)set "./$1";;
558         esac;
559         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560         ???[sx]*):;;*)false;;esac;fi
561     '\'' sh
562   '
563 fi
564 as_executable_p=$as_test_x
565
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574 exec 7<&0 </dev/null 6>&1
575
576 # Name of the host.
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
581 #
582 # Initializations.
583 #
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592 SHELL=${CONFIG_SHELL-/bin/sh}
593
594 # Identity of this package.
595 PACKAGE_NAME=
596 PACKAGE_TARNAME=
597 PACKAGE_VERSION=
598 PACKAGE_STRING=
599 PACKAGE_BUGREPORT=
600
601 ac_unique_file="xboard.c"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
604 #include <stdio.h>
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
607 #endif
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
610 #endif
611 #ifdef STDC_HEADERS
612 # include <stdlib.h>
613 # include <stddef.h>
614 #else
615 # ifdef HAVE_STDLIB_H
616 #  include <stdlib.h>
617 # endif
618 #endif
619 #ifdef HAVE_STRING_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 #  include <memory.h>
622 # endif
623 # include <string.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
637
638 ac_subst_vars='LTLIBOBJS
639 LIBOBJS
640 PATCHLEVEL
641 VERSION
642 PRODUCT
643 ZIPPY_H
644 ZIPPY_O
645 CONF_LDFLAGS
646 CONF_CFLAGS
647 POST_XMULIB
648 PRE_XMULIB
649 POSUB
650 LTLIBINTL
651 LIBINTL
652 INTLLIBS
653 LTLIBICONV
654 LIBICONV
655 MSGMERGE
656 XGETTEXT
657 GMSGFMT
658 MSGFMT
659 USE_NLS
660 MKINSTALLDIRS
661 SET_MAKE
662 host_os
663 host_vendor
664 host_cpu
665 host
666 build_os
667 build_vendor
668 build_cpu
669 build
670 X_EXTRA_LIBS
671 X_LIBS
672 X_PRE_LIBS
673 X_CFLAGS
674 XMKMF
675 EGREP
676 GREP
677 XAW_LIBS
678 PERLPATH
679 AWKPATH
680 NROFFFLAGS
681 NROFF
682 RSH
683 LEXLIB
684 LEX_OUTPUT_ROOT
685 LEX
686 INSTALL_DATA
687 INSTALL_SCRIPT
688 INSTALL_PROGRAM
689 CPP
690 OBJEXT
691 EXEEXT
692 ac_ct_CC
693 CPPFLAGS
694 LDFLAGS
695 CFLAGS
696 CC
697 target_alias
698 host_alias
699 build_alias
700 LIBS
701 ECHO_T
702 ECHO_N
703 ECHO_C
704 DEFS
705 mandir
706 localedir
707 libdir
708 psdir
709 pdfdir
710 dvidir
711 htmldir
712 infodir
713 docdir
714 oldincludedir
715 includedir
716 localstatedir
717 sharedstatedir
718 sysconfdir
719 datadir
720 datarootdir
721 libexecdir
722 sbindir
723 bindir
724 program_transform_name
725 prefix
726 exec_prefix
727 PACKAGE_BUGREPORT
728 PACKAGE_STRING
729 PACKAGE_VERSION
730 PACKAGE_TARNAME
731 PACKAGE_NAME
732 PATH_SEPARATOR
733 SHELL'
734 ac_subst_files=''
735 ac_user_opts='
736 enable_option_checking
737 with_Xaw3d
738 with_x
739 enable_nls
740 with_gnu_ld
741 enable_rpath
742 with_libiconv_prefix
743 with_libintl_prefix
744 enable_xpm
745 enable_ptys
746 enable_zippy
747 enable_sigint
748 '
749       ac_precious_vars='build_alias
750 host_alias
751 target_alias
752 CC
753 CFLAGS
754 LDFLAGS
755 LIBS
756 CPPFLAGS
757 CPP
758 XMKMF'
759
760
761 # Initialize some variables set by options.
762 ac_init_help=
763 ac_init_version=false
764 ac_unrecognized_opts=
765 ac_unrecognized_sep=
766 # The variables have the same names as the options, with
767 # dashes changed to underlines.
768 cache_file=/dev/null
769 exec_prefix=NONE
770 no_create=
771 no_recursion=
772 prefix=NONE
773 program_prefix=NONE
774 program_suffix=NONE
775 program_transform_name=s,x,x,
776 silent=
777 site=
778 srcdir=
779 verbose=
780 x_includes=NONE
781 x_libraries=NONE
782
783 # Installation directory options.
784 # These are left unexpanded so users can "make install exec_prefix=/foo"
785 # and all the variables that are supposed to be based on exec_prefix
786 # by default will actually change.
787 # Use braces instead of parens because sh, perl, etc. also accept them.
788 # (The list follows the same order as the GNU Coding Standards.)
789 bindir='${exec_prefix}/bin'
790 sbindir='${exec_prefix}/sbin'
791 libexecdir='${exec_prefix}/libexec'
792 datarootdir='${prefix}/share'
793 datadir='${datarootdir}'
794 sysconfdir='${prefix}/etc'
795 sharedstatedir='${prefix}/com'
796 localstatedir='${prefix}/var'
797 includedir='${prefix}/include'
798 oldincludedir='/usr/include'
799 docdir='${datarootdir}/doc/${PACKAGE}'
800 infodir='${datarootdir}/info'
801 htmldir='${docdir}'
802 dvidir='${docdir}'
803 pdfdir='${docdir}'
804 psdir='${docdir}'
805 libdir='${exec_prefix}/lib'
806 localedir='${datarootdir}/locale'
807 mandir='${datarootdir}/man'
808
809 ac_prev=
810 ac_dashdash=
811 for ac_option
812 do
813   # If the previous option needs an argument, assign it.
814   if test -n "$ac_prev"; then
815     eval $ac_prev=\$ac_option
816     ac_prev=
817     continue
818   fi
819
820   case $ac_option in
821   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
822   *)    ac_optarg=yes ;;
823   esac
824
825   # Accept the important Cygnus configure options, so we can diagnose typos.
826
827   case $ac_dashdash$ac_option in
828   --)
829     ac_dashdash=yes ;;
830
831   -bindir | --bindir | --bindi | --bind | --bin | --bi)
832     ac_prev=bindir ;;
833   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
834     bindir=$ac_optarg ;;
835
836   -build | --build | --buil | --bui | --bu)
837     ac_prev=build_alias ;;
838   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
839     build_alias=$ac_optarg ;;
840
841   -cache-file | --cache-file | --cache-fil | --cache-fi \
842   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
843     ac_prev=cache_file ;;
844   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
845   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
846     cache_file=$ac_optarg ;;
847
848   --config-cache | -C)
849     cache_file=config.cache ;;
850
851   -datadir | --datadir | --datadi | --datad)
852     ac_prev=datadir ;;
853   -datadir=* | --datadir=* | --datadi=* | --datad=*)
854     datadir=$ac_optarg ;;
855
856   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
857   | --dataroo | --dataro | --datar)
858     ac_prev=datarootdir ;;
859   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
860   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
861     datarootdir=$ac_optarg ;;
862
863   -disable-* | --disable-*)
864     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
865     # Reject names that are not valid shell variable names.
866     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
867       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
868    { (exit 1); exit 1; }; }
869     ac_useropt_orig=$ac_useropt
870     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
871     case $ac_user_opts in
872       *"
873 "enable_$ac_useropt"
874 "*) ;;
875       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
876          ac_unrecognized_sep=', ';;
877     esac
878     eval enable_$ac_useropt=no ;;
879
880   -docdir | --docdir | --docdi | --doc | --do)
881     ac_prev=docdir ;;
882   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
883     docdir=$ac_optarg ;;
884
885   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
886     ac_prev=dvidir ;;
887   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
888     dvidir=$ac_optarg ;;
889
890   -enable-* | --enable-*)
891     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
892     # Reject names that are not valid shell variable names.
893     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
894       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
895    { (exit 1); exit 1; }; }
896     ac_useropt_orig=$ac_useropt
897     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
898     case $ac_user_opts in
899       *"
900 "enable_$ac_useropt"
901 "*) ;;
902       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
903          ac_unrecognized_sep=', ';;
904     esac
905     eval enable_$ac_useropt=\$ac_optarg ;;
906
907   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
908   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
909   | --exec | --exe | --ex)
910     ac_prev=exec_prefix ;;
911   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
912   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
913   | --exec=* | --exe=* | --ex=*)
914     exec_prefix=$ac_optarg ;;
915
916   -gas | --gas | --ga | --g)
917     # Obsolete; use --with-gas.
918     with_gas=yes ;;
919
920   -help | --help | --hel | --he | -h)
921     ac_init_help=long ;;
922   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
923     ac_init_help=recursive ;;
924   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
925     ac_init_help=short ;;
926
927   -host | --host | --hos | --ho)
928     ac_prev=host_alias ;;
929   -host=* | --host=* | --hos=* | --ho=*)
930     host_alias=$ac_optarg ;;
931
932   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
933     ac_prev=htmldir ;;
934   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
935   | --ht=*)
936     htmldir=$ac_optarg ;;
937
938   -includedir | --includedir | --includedi | --included | --include \
939   | --includ | --inclu | --incl | --inc)
940     ac_prev=includedir ;;
941   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
942   | --includ=* | --inclu=* | --incl=* | --inc=*)
943     includedir=$ac_optarg ;;
944
945   -infodir | --infodir | --infodi | --infod | --info | --inf)
946     ac_prev=infodir ;;
947   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
948     infodir=$ac_optarg ;;
949
950   -libdir | --libdir | --libdi | --libd)
951     ac_prev=libdir ;;
952   -libdir=* | --libdir=* | --libdi=* | --libd=*)
953     libdir=$ac_optarg ;;
954
955   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
956   | --libexe | --libex | --libe)
957     ac_prev=libexecdir ;;
958   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
959   | --libexe=* | --libex=* | --libe=*)
960     libexecdir=$ac_optarg ;;
961
962   -localedir | --localedir | --localedi | --localed | --locale)
963     ac_prev=localedir ;;
964   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
965     localedir=$ac_optarg ;;
966
967   -localstatedir | --localstatedir | --localstatedi | --localstated \
968   | --localstate | --localstat | --localsta | --localst | --locals)
969     ac_prev=localstatedir ;;
970   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
971   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
972     localstatedir=$ac_optarg ;;
973
974   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
975     ac_prev=mandir ;;
976   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
977     mandir=$ac_optarg ;;
978
979   -nfp | --nfp | --nf)
980     # Obsolete; use --without-fp.
981     with_fp=no ;;
982
983   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
984   | --no-cr | --no-c | -n)
985     no_create=yes ;;
986
987   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
988   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
989     no_recursion=yes ;;
990
991   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
992   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
993   | --oldin | --oldi | --old | --ol | --o)
994     ac_prev=oldincludedir ;;
995   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
996   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
997   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
998     oldincludedir=$ac_optarg ;;
999
1000   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1001     ac_prev=prefix ;;
1002   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1003     prefix=$ac_optarg ;;
1004
1005   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1006   | --program-pre | --program-pr | --program-p)
1007     ac_prev=program_prefix ;;
1008   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1009   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1010     program_prefix=$ac_optarg ;;
1011
1012   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1013   | --program-suf | --program-su | --program-s)
1014     ac_prev=program_suffix ;;
1015   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1016   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1017     program_suffix=$ac_optarg ;;
1018
1019   -program-transform-name | --program-transform-name \
1020   | --program-transform-nam | --program-transform-na \
1021   | --program-transform-n | --program-transform- \
1022   | --program-transform | --program-transfor \
1023   | --program-transfo | --program-transf \
1024   | --program-trans | --program-tran \
1025   | --progr-tra | --program-tr | --program-t)
1026     ac_prev=program_transform_name ;;
1027   -program-transform-name=* | --program-transform-name=* \
1028   | --program-transform-nam=* | --program-transform-na=* \
1029   | --program-transform-n=* | --program-transform-=* \
1030   | --program-transform=* | --program-transfor=* \
1031   | --program-transfo=* | --program-transf=* \
1032   | --program-trans=* | --program-tran=* \
1033   | --progr-tra=* | --program-tr=* | --program-t=*)
1034     program_transform_name=$ac_optarg ;;
1035
1036   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1037     ac_prev=pdfdir ;;
1038   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1039     pdfdir=$ac_optarg ;;
1040
1041   -psdir | --psdir | --psdi | --psd | --ps)
1042     ac_prev=psdir ;;
1043   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1044     psdir=$ac_optarg ;;
1045
1046   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1047   | -silent | --silent | --silen | --sile | --sil)
1048     silent=yes ;;
1049
1050   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1051     ac_prev=sbindir ;;
1052   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1053   | --sbi=* | --sb=*)
1054     sbindir=$ac_optarg ;;
1055
1056   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1057   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1058   | --sharedst | --shareds | --shared | --share | --shar \
1059   | --sha | --sh)
1060     ac_prev=sharedstatedir ;;
1061   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1062   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1063   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1064   | --sha=* | --sh=*)
1065     sharedstatedir=$ac_optarg ;;
1066
1067   -site | --site | --sit)
1068     ac_prev=site ;;
1069   -site=* | --site=* | --sit=*)
1070     site=$ac_optarg ;;
1071
1072   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1073     ac_prev=srcdir ;;
1074   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1075     srcdir=$ac_optarg ;;
1076
1077   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1078   | --syscon | --sysco | --sysc | --sys | --sy)
1079     ac_prev=sysconfdir ;;
1080   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1081   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1082     sysconfdir=$ac_optarg ;;
1083
1084   -target | --target | --targe | --targ | --tar | --ta | --t)
1085     ac_prev=target_alias ;;
1086   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1087     target_alias=$ac_optarg ;;
1088
1089   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1090     verbose=yes ;;
1091
1092   -version | --version | --versio | --versi | --vers | -V)
1093     ac_init_version=: ;;
1094
1095   -with-* | --with-*)
1096     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1097     # Reject names that are not valid shell variable names.
1098     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1099       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1100    { (exit 1); exit 1; }; }
1101     ac_useropt_orig=$ac_useropt
1102     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1103     case $ac_user_opts in
1104       *"
1105 "with_$ac_useropt"
1106 "*) ;;
1107       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1108          ac_unrecognized_sep=', ';;
1109     esac
1110     eval with_$ac_useropt=\$ac_optarg ;;
1111
1112   -without-* | --without-*)
1113     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1114     # Reject names that are not valid shell variable names.
1115     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1116       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1117    { (exit 1); exit 1; }; }
1118     ac_useropt_orig=$ac_useropt
1119     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120     case $ac_user_opts in
1121       *"
1122 "with_$ac_useropt"
1123 "*) ;;
1124       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1125          ac_unrecognized_sep=', ';;
1126     esac
1127     eval with_$ac_useropt=no ;;
1128
1129   --x)
1130     # Obsolete; use --with-x.
1131     with_x=yes ;;
1132
1133   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1134   | --x-incl | --x-inc | --x-in | --x-i)
1135     ac_prev=x_includes ;;
1136   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1137   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1138     x_includes=$ac_optarg ;;
1139
1140   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1141   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1142     ac_prev=x_libraries ;;
1143   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1144   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1145     x_libraries=$ac_optarg ;;
1146
1147   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1148 Try \`$0 --help' for more information." >&2
1149    { (exit 1); exit 1; }; }
1150     ;;
1151
1152   *=*)
1153     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1154     # Reject names that are not valid shell variable names.
1155     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1156       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1157    { (exit 1); exit 1; }; }
1158     eval $ac_envvar=\$ac_optarg
1159     export $ac_envvar ;;
1160
1161   *)
1162     # FIXME: should be removed in autoconf 3.0.
1163     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1164     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1165       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1166     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1167     ;;
1168
1169   esac
1170 done
1171
1172 if test -n "$ac_prev"; then
1173   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1174   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1175    { (exit 1); exit 1; }; }
1176 fi
1177
1178 if test -n "$ac_unrecognized_opts"; then
1179   case $enable_option_checking in
1180     no) ;;
1181     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1182    { (exit 1); exit 1; }; } ;;
1183     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1184   esac
1185 fi
1186
1187 # Check all directory arguments for consistency.
1188 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1189                 datadir sysconfdir sharedstatedir localstatedir includedir \
1190                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1191                 libdir localedir mandir
1192 do
1193   eval ac_val=\$$ac_var
1194   # Remove trailing slashes.
1195   case $ac_val in
1196     */ )
1197       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1198       eval $ac_var=\$ac_val;;
1199   esac
1200   # Be sure to have absolute directory names.
1201   case $ac_val in
1202     [\\/$]* | ?:[\\/]* )  continue;;
1203     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1204   esac
1205   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1206    { (exit 1); exit 1; }; }
1207 done
1208
1209 # There might be people who depend on the old broken behavior: `$host'
1210 # used to hold the argument of --host etc.
1211 # FIXME: To remove some day.
1212 build=$build_alias
1213 host=$host_alias
1214 target=$target_alias
1215
1216 # FIXME: To remove some day.
1217 if test "x$host_alias" != x; then
1218   if test "x$build_alias" = x; then
1219     cross_compiling=maybe
1220     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1221     If a cross compiler is detected then cross compile mode will be used." >&2
1222   elif test "x$build_alias" != "x$host_alias"; then
1223     cross_compiling=yes
1224   fi
1225 fi
1226
1227 ac_tool_prefix=
1228 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1229
1230 test "$silent" = yes && exec 6>/dev/null
1231
1232
1233 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1234 ac_ls_di=`ls -di .` &&
1235 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1236   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1237    { (exit 1); exit 1; }; }
1238 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1239   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1240    { (exit 1); exit 1; }; }
1241
1242
1243 # Find the source files, if location was not specified.
1244 if test -z "$srcdir"; then
1245   ac_srcdir_defaulted=yes
1246   # Try the directory containing this script, then the parent directory.
1247   ac_confdir=`$as_dirname -- "$as_myself" ||
1248 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1249          X"$as_myself" : 'X\(//\)[^/]' \| \
1250          X"$as_myself" : 'X\(//\)$' \| \
1251          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1252 $as_echo X"$as_myself" |
1253     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1254             s//\1/
1255             q
1256           }
1257           /^X\(\/\/\)[^/].*/{
1258             s//\1/
1259             q
1260           }
1261           /^X\(\/\/\)$/{
1262             s//\1/
1263             q
1264           }
1265           /^X\(\/\).*/{
1266             s//\1/
1267             q
1268           }
1269           s/.*/./; q'`
1270   srcdir=$ac_confdir
1271   if test ! -r "$srcdir/$ac_unique_file"; then
1272     srcdir=..
1273   fi
1274 else
1275   ac_srcdir_defaulted=no
1276 fi
1277 if test ! -r "$srcdir/$ac_unique_file"; then
1278   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1279   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1280    { (exit 1); exit 1; }; }
1281 fi
1282 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1283 ac_abs_confdir=`(
1284         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1285    { (exit 1); exit 1; }; }
1286         pwd)`
1287 # When building in place, set srcdir=.
1288 if test "$ac_abs_confdir" = "$ac_pwd"; then
1289   srcdir=.
1290 fi
1291 # Remove unnecessary trailing slashes from srcdir.
1292 # Double slashes in file names in object file debugging info
1293 # mess up M-x gdb in Emacs.
1294 case $srcdir in
1295 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1296 esac
1297 for ac_var in $ac_precious_vars; do
1298   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1299   eval ac_env_${ac_var}_value=\$${ac_var}
1300   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1301   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1302 done
1303
1304 #
1305 # Report the --help message.
1306 #
1307 if test "$ac_init_help" = "long"; then
1308   # Omit some internal or obsolete options to make the list less imposing.
1309   # This message is too long to be a string in the A/UX 3.1 sh.
1310   cat <<_ACEOF
1311 \`configure' configures this package to adapt to many kinds of systems.
1312
1313 Usage: $0 [OPTION]... [VAR=VALUE]...
1314
1315 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1316 VAR=VALUE.  See below for descriptions of some of the useful variables.
1317
1318 Defaults for the options are specified in brackets.
1319
1320 Configuration:
1321   -h, --help              display this help and exit
1322       --help=short        display options specific to this package
1323       --help=recursive    display the short help of all the included packages
1324   -V, --version           display version information and exit
1325   -q, --quiet, --silent   do not print \`checking...' messages
1326       --cache-file=FILE   cache test results in FILE [disabled]
1327   -C, --config-cache      alias for \`--cache-file=config.cache'
1328   -n, --no-create         do not create output files
1329       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1330
1331 Installation directories:
1332   --prefix=PREFIX         install architecture-independent files in PREFIX
1333                           [$ac_default_prefix]
1334   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1335                           [PREFIX]
1336
1337 By default, \`make install' will install all the files in
1338 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1339 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1340 for instance \`--prefix=\$HOME'.
1341
1342 For better control, use the options below.
1343
1344 Fine tuning of the installation directories:
1345   --bindir=DIR            user executables [EPREFIX/bin]
1346   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1347   --libexecdir=DIR        program executables [EPREFIX/libexec]
1348   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1349   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1350   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1351   --libdir=DIR            object code libraries [EPREFIX/lib]
1352   --includedir=DIR        C header files [PREFIX/include]
1353   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1354   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1355   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1356   --infodir=DIR           info documentation [DATAROOTDIR/info]
1357   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1358   --mandir=DIR            man documentation [DATAROOTDIR/man]
1359   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1360   --htmldir=DIR           html documentation [DOCDIR]
1361   --dvidir=DIR            dvi documentation [DOCDIR]
1362   --pdfdir=DIR            pdf documentation [DOCDIR]
1363   --psdir=DIR             ps documentation [DOCDIR]
1364 _ACEOF
1365
1366   cat <<\_ACEOF
1367
1368 X features:
1369   --x-includes=DIR    X include files are in DIR
1370   --x-libraries=DIR   X library files are in DIR
1371
1372 System types:
1373   --build=BUILD     configure for building on BUILD [guessed]
1374   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1375 _ACEOF
1376 fi
1377
1378 if test -n "$ac_init_help"; then
1379
1380   cat <<\_ACEOF
1381
1382 Optional Features:
1383   --disable-option-checking  ignore unrecognized --enable/--with options
1384   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1385   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1386   --disable-nls           do not use Native Language Support
1387   --disable-rpath         do not hardcode runtime library paths
1388   --enable-xpm            libXpm will be used if found (default)
1389   --disable-xpm           libXpm will not be used
1390   --enable-ptys           force use of pseudo-ttys with child processes
1391   --disable-ptys          force use of pipes with child processes
1392   --enable-zippy          support interfacing a chess program to ICS (default)
1393   --disable-zippy         do not support interfacing a chess program to ICS
1394   --enable-sigint         sending SIGINT (^C) wakes up GNU Chess (default)
1395   --disable-sigint        typing a command wakes up GNU Chess
1396
1397 Optional Packages:
1398   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1399   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1400   --with-Xaw3d            use Xaw3d instead of Xaw
1401   --with-x                use the X Window System
1402   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1403   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1404   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1405   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1406   --without-libintl-prefix     don't search for libintl in includedir and libdir
1407
1408 Some influential environment variables:
1409   CC          C compiler command
1410   CFLAGS      C compiler flags
1411   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1412               nonstandard directory <lib dir>
1413   LIBS        libraries to pass to the linker, e.g. -l<library>
1414   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1415               you have headers in a nonstandard directory <include dir>
1416   CPP         C preprocessor
1417   XMKMF       Path to xmkmf, Makefile generator for X Window System
1418
1419 Use these variables to override the choices made by `configure' or to help
1420 it to find libraries and programs with nonstandard names/locations.
1421
1422 _ACEOF
1423 ac_status=$?
1424 fi
1425
1426 if test "$ac_init_help" = "recursive"; then
1427   # If there are subdirs, report their specific --help.
1428   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1429     test -d "$ac_dir" ||
1430       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1431       continue
1432     ac_builddir=.
1433
1434 case "$ac_dir" in
1435 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1436 *)
1437   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1438   # A ".." for each directory in $ac_dir_suffix.
1439   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1440   case $ac_top_builddir_sub in
1441   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1442   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1443   esac ;;
1444 esac
1445 ac_abs_top_builddir=$ac_pwd
1446 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1447 # for backward compatibility:
1448 ac_top_builddir=$ac_top_build_prefix
1449
1450 case $srcdir in
1451   .)  # We are building in place.
1452     ac_srcdir=.
1453     ac_top_srcdir=$ac_top_builddir_sub
1454     ac_abs_top_srcdir=$ac_pwd ;;
1455   [\\/]* | ?:[\\/]* )  # Absolute name.
1456     ac_srcdir=$srcdir$ac_dir_suffix;
1457     ac_top_srcdir=$srcdir
1458     ac_abs_top_srcdir=$srcdir ;;
1459   *) # Relative name.
1460     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1461     ac_top_srcdir=$ac_top_build_prefix$srcdir
1462     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1463 esac
1464 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1465
1466     cd "$ac_dir" || { ac_status=$?; continue; }
1467     # Check for guested configure.
1468     if test -f "$ac_srcdir/configure.gnu"; then
1469       echo &&
1470       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1471     elif test -f "$ac_srcdir/configure"; then
1472       echo &&
1473       $SHELL "$ac_srcdir/configure" --help=recursive
1474     else
1475       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1476     fi || ac_status=$?
1477     cd "$ac_pwd" || { ac_status=$?; break; }
1478   done
1479 fi
1480
1481 test -n "$ac_init_help" && exit $ac_status
1482 if $ac_init_version; then
1483   cat <<\_ACEOF
1484 configure
1485 generated by GNU Autoconf 2.63
1486
1487 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1488 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1489 This configure script is free software; the Free Software Foundation
1490 gives unlimited permission to copy, distribute and modify it.
1491 _ACEOF
1492   exit
1493 fi
1494 cat >config.log <<_ACEOF
1495 This file contains any messages produced by compilers while
1496 running configure, to aid debugging if configure makes a mistake.
1497
1498 It was created by $as_me, which was
1499 generated by GNU Autoconf 2.63.  Invocation command line was
1500
1501   $ $0 $@
1502
1503 _ACEOF
1504 exec 5>>config.log
1505 {
1506 cat <<_ASUNAME
1507 ## --------- ##
1508 ## Platform. ##
1509 ## --------- ##
1510
1511 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1512 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1513 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1514 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1515 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1516
1517 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1518 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1519
1520 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1521 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1522 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1523 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1524 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1525 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1526 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1527
1528 _ASUNAME
1529
1530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1531 for as_dir in $PATH
1532 do
1533   IFS=$as_save_IFS
1534   test -z "$as_dir" && as_dir=.
1535   $as_echo "PATH: $as_dir"
1536 done
1537 IFS=$as_save_IFS
1538
1539 } >&5
1540
1541 cat >&5 <<_ACEOF
1542
1543
1544 ## ----------- ##
1545 ## Core tests. ##
1546 ## ----------- ##
1547
1548 _ACEOF
1549
1550
1551 # Keep a trace of the command line.
1552 # Strip out --no-create and --no-recursion so they do not pile up.
1553 # Strip out --silent because we don't want to record it for future runs.
1554 # Also quote any args containing shell meta-characters.
1555 # Make two passes to allow for proper duplicate-argument suppression.
1556 ac_configure_args=
1557 ac_configure_args0=
1558 ac_configure_args1=
1559 ac_must_keep_next=false
1560 for ac_pass in 1 2
1561 do
1562   for ac_arg
1563   do
1564     case $ac_arg in
1565     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1566     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1567     | -silent | --silent | --silen | --sile | --sil)
1568       continue ;;
1569     *\'*)
1570       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1571     esac
1572     case $ac_pass in
1573     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1574     2)
1575       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1576       if test $ac_must_keep_next = true; then
1577         ac_must_keep_next=false # Got value, back to normal.
1578       else
1579         case $ac_arg in
1580           *=* | --config-cache | -C | -disable-* | --disable-* \
1581           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1582           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1583           | -with-* | --with-* | -without-* | --without-* | --x)
1584             case "$ac_configure_args0 " in
1585               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1586             esac
1587             ;;
1588           -* ) ac_must_keep_next=true ;;
1589         esac
1590       fi
1591       ac_configure_args="$ac_configure_args '$ac_arg'"
1592       ;;
1593     esac
1594   done
1595 done
1596 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1597 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1598
1599 # When interrupted or exit'd, cleanup temporary files, and complete
1600 # config.log.  We remove comments because anyway the quotes in there
1601 # would cause problems or look ugly.
1602 # WARNING: Use '\'' to represent an apostrophe within the trap.
1603 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1604 trap 'exit_status=$?
1605   # Save into config.log some information that might help in debugging.
1606   {
1607     echo
1608
1609     cat <<\_ASBOX
1610 ## ---------------- ##
1611 ## Cache variables. ##
1612 ## ---------------- ##
1613 _ASBOX
1614     echo
1615     # The following way of writing the cache mishandles newlines in values,
1616 (
1617   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1618     eval ac_val=\$$ac_var
1619     case $ac_val in #(
1620     *${as_nl}*)
1621       case $ac_var in #(
1622       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1623 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1624       esac
1625       case $ac_var in #(
1626       _ | IFS | as_nl) ;; #(
1627       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1628       *) $as_unset $ac_var ;;
1629       esac ;;
1630     esac
1631   done
1632   (set) 2>&1 |
1633     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1634     *${as_nl}ac_space=\ *)
1635       sed -n \
1636         "s/'\''/'\''\\\\'\'''\''/g;
1637           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1638       ;; #(
1639     *)
1640       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1641       ;;
1642     esac |
1643     sort
1644 )
1645     echo
1646
1647     cat <<\_ASBOX
1648 ## ----------------- ##
1649 ## Output variables. ##
1650 ## ----------------- ##
1651 _ASBOX
1652     echo
1653     for ac_var in $ac_subst_vars
1654     do
1655       eval ac_val=\$$ac_var
1656       case $ac_val in
1657       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1658       esac
1659       $as_echo "$ac_var='\''$ac_val'\''"
1660     done | sort
1661     echo
1662
1663     if test -n "$ac_subst_files"; then
1664       cat <<\_ASBOX
1665 ## ------------------- ##
1666 ## File substitutions. ##
1667 ## ------------------- ##
1668 _ASBOX
1669       echo
1670       for ac_var in $ac_subst_files
1671       do
1672         eval ac_val=\$$ac_var
1673         case $ac_val in
1674         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1675         esac
1676         $as_echo "$ac_var='\''$ac_val'\''"
1677       done | sort
1678       echo
1679     fi
1680
1681     if test -s confdefs.h; then
1682       cat <<\_ASBOX
1683 ## ----------- ##
1684 ## confdefs.h. ##
1685 ## ----------- ##
1686 _ASBOX
1687       echo
1688       cat confdefs.h
1689       echo
1690     fi
1691     test "$ac_signal" != 0 &&
1692       $as_echo "$as_me: caught signal $ac_signal"
1693     $as_echo "$as_me: exit $exit_status"
1694   } >&5
1695   rm -f core *.core core.conftest.* &&
1696     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1697     exit $exit_status
1698 ' 0
1699 for ac_signal in 1 2 13 15; do
1700   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1701 done
1702 ac_signal=0
1703
1704 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1705 rm -f -r conftest* confdefs.h
1706
1707 # Predefined preprocessor variables.
1708
1709 cat >>confdefs.h <<_ACEOF
1710 #define PACKAGE_NAME "$PACKAGE_NAME"
1711 _ACEOF
1712
1713
1714 cat >>confdefs.h <<_ACEOF
1715 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1716 _ACEOF
1717
1718
1719 cat >>confdefs.h <<_ACEOF
1720 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1721 _ACEOF
1722
1723
1724 cat >>confdefs.h <<_ACEOF
1725 #define PACKAGE_STRING "$PACKAGE_STRING"
1726 _ACEOF
1727
1728
1729 cat >>confdefs.h <<_ACEOF
1730 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1731 _ACEOF
1732
1733
1734 # Let the site file select an alternate cache file if it wants to.
1735 # Prefer an explicitly selected file to automatically selected ones.
1736 ac_site_file1=NONE
1737 ac_site_file2=NONE
1738 if test -n "$CONFIG_SITE"; then
1739   ac_site_file1=$CONFIG_SITE
1740 elif test "x$prefix" != xNONE; then
1741   ac_site_file1=$prefix/share/config.site
1742   ac_site_file2=$prefix/etc/config.site
1743 else
1744   ac_site_file1=$ac_default_prefix/share/config.site
1745   ac_site_file2=$ac_default_prefix/etc/config.site
1746 fi
1747 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1748 do
1749   test "x$ac_site_file" = xNONE && continue
1750   if test -r "$ac_site_file"; then
1751     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1752 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1753     sed 's/^/| /' "$ac_site_file" >&5
1754     . "$ac_site_file"
1755   fi
1756 done
1757
1758 if test -r "$cache_file"; then
1759   # Some versions of bash will fail to source /dev/null (special
1760   # files actually), so we avoid doing that.
1761   if test -f "$cache_file"; then
1762     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1763 $as_echo "$as_me: loading cache $cache_file" >&6;}
1764     case $cache_file in
1765       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1766       *)                      . "./$cache_file";;
1767     esac
1768   fi
1769 else
1770   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1771 $as_echo "$as_me: creating cache $cache_file" >&6;}
1772   >$cache_file
1773 fi
1774
1775 # Check that the precious variables saved in the cache have kept the same
1776 # value.
1777 ac_cache_corrupted=false
1778 for ac_var in $ac_precious_vars; do
1779   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1780   eval ac_new_set=\$ac_env_${ac_var}_set
1781   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1782   eval ac_new_val=\$ac_env_${ac_var}_value
1783   case $ac_old_set,$ac_new_set in
1784     set,)
1785       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1786 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1787       ac_cache_corrupted=: ;;
1788     ,set)
1789       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1790 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1791       ac_cache_corrupted=: ;;
1792     ,);;
1793     *)
1794       if test "x$ac_old_val" != "x$ac_new_val"; then
1795         # differences in whitespace do not lead to failure.
1796         ac_old_val_w=`echo x $ac_old_val`
1797         ac_new_val_w=`echo x $ac_new_val`
1798         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1799           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1800 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1801           ac_cache_corrupted=:
1802         else
1803           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1804 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1805           eval $ac_var=\$ac_old_val
1806         fi
1807         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1808 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1809         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1810 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1811       fi;;
1812   esac
1813   # Pass precious variables to config.status.
1814   if test "$ac_new_set" = set; then
1815     case $ac_new_val in
1816     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1817     *) ac_arg=$ac_var=$ac_new_val ;;
1818     esac
1819     case " $ac_configure_args " in
1820       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1821       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1822     esac
1823   fi
1824 done
1825 if $ac_cache_corrupted; then
1826   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1827 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1828   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1829 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1830   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1831 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1832    { (exit 1); exit 1; }; }
1833 fi
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851 ac_ext=c
1852 ac_cpp='$CPP $CPPFLAGS'
1853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1856
1857
1858 ac_config_headers="$ac_config_headers config.h"
1859
1860
1861 PRODUCT=xboard
1862 VERSION=4.2
1863 PATCHLEVEL=pre8
1864
1865 if test -z "$CFLAGS" ; then
1866   CFLAGS=" "
1867 fi
1868 ac_ext=c
1869 ac_cpp='$CPP $CPPFLAGS'
1870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1873 if test -n "$ac_tool_prefix"; then
1874   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1875 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1876 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1877 $as_echo_n "checking for $ac_word... " >&6; }
1878 if test "${ac_cv_prog_CC+set}" = set; then
1879   $as_echo_n "(cached) " >&6
1880 else
1881   if test -n "$CC"; then
1882   ac_cv_prog_CC="$CC" # Let the user override the test.
1883 else
1884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1885 for as_dir in $PATH
1886 do
1887   IFS=$as_save_IFS
1888   test -z "$as_dir" && as_dir=.
1889   for ac_exec_ext in '' $ac_executable_extensions; do
1890   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1891     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1892     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1893     break 2
1894   fi
1895 done
1896 done
1897 IFS=$as_save_IFS
1898
1899 fi
1900 fi
1901 CC=$ac_cv_prog_CC
1902 if test -n "$CC"; then
1903   { $as_echo "$as_me:$LINENO: result: $CC" >&5
1904 $as_echo "$CC" >&6; }
1905 else
1906   { $as_echo "$as_me:$LINENO: result: no" >&5
1907 $as_echo "no" >&6; }
1908 fi
1909
1910
1911 fi
1912 if test -z "$ac_cv_prog_CC"; then
1913   ac_ct_CC=$CC
1914   # Extract the first word of "gcc", so it can be a program name with args.
1915 set dummy gcc; ac_word=$2
1916 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1917 $as_echo_n "checking for $ac_word... " >&6; }
1918 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1919   $as_echo_n "(cached) " >&6
1920 else
1921   if test -n "$ac_ct_CC"; then
1922   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1923 else
1924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1925 for as_dir in $PATH
1926 do
1927   IFS=$as_save_IFS
1928   test -z "$as_dir" && as_dir=.
1929   for ac_exec_ext in '' $ac_executable_extensions; do
1930   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1931     ac_cv_prog_ac_ct_CC="gcc"
1932     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1933     break 2
1934   fi
1935 done
1936 done
1937 IFS=$as_save_IFS
1938
1939 fi
1940 fi
1941 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1942 if test -n "$ac_ct_CC"; then
1943   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1944 $as_echo "$ac_ct_CC" >&6; }
1945 else
1946   { $as_echo "$as_me:$LINENO: result: no" >&5
1947 $as_echo "no" >&6; }
1948 fi
1949
1950   if test "x$ac_ct_CC" = x; then
1951     CC=""
1952   else
1953     case $cross_compiling:$ac_tool_warned in
1954 yes:)
1955 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
1956 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1957 ac_tool_warned=yes ;;
1958 esac
1959     CC=$ac_ct_CC
1960   fi
1961 else
1962   CC="$ac_cv_prog_CC"
1963 fi
1964
1965 if test -z "$CC"; then
1966           if test -n "$ac_tool_prefix"; then
1967     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1968 set dummy ${ac_tool_prefix}cc; ac_word=$2
1969 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1970 $as_echo_n "checking for $ac_word... " >&6; }
1971 if test "${ac_cv_prog_CC+set}" = set; then
1972   $as_echo_n "(cached) " >&6
1973 else
1974   if test -n "$CC"; then
1975   ac_cv_prog_CC="$CC" # Let the user override the test.
1976 else
1977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1978 for as_dir in $PATH
1979 do
1980   IFS=$as_save_IFS
1981   test -z "$as_dir" && as_dir=.
1982   for ac_exec_ext in '' $ac_executable_extensions; do
1983   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1984     ac_cv_prog_CC="${ac_tool_prefix}cc"
1985     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1986     break 2
1987   fi
1988 done
1989 done
1990 IFS=$as_save_IFS
1991
1992 fi
1993 fi
1994 CC=$ac_cv_prog_CC
1995 if test -n "$CC"; then
1996   { $as_echo "$as_me:$LINENO: result: $CC" >&5
1997 $as_echo "$CC" >&6; }
1998 else
1999   { $as_echo "$as_me:$LINENO: result: no" >&5
2000 $as_echo "no" >&6; }
2001 fi
2002
2003
2004   fi
2005 fi
2006 if test -z "$CC"; then
2007   # Extract the first word of "cc", so it can be a program name with args.
2008 set dummy cc; ac_word=$2
2009 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2010 $as_echo_n "checking for $ac_word... " >&6; }
2011 if test "${ac_cv_prog_CC+set}" = set; then
2012   $as_echo_n "(cached) " >&6
2013 else
2014   if test -n "$CC"; then
2015   ac_cv_prog_CC="$CC" # Let the user override the test.
2016 else
2017   ac_prog_rejected=no
2018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2019 for as_dir in $PATH
2020 do
2021   IFS=$as_save_IFS
2022   test -z "$as_dir" && as_dir=.
2023   for ac_exec_ext in '' $ac_executable_extensions; do
2024   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2025     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2026        ac_prog_rejected=yes
2027        continue
2028      fi
2029     ac_cv_prog_CC="cc"
2030     $as_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 if test $ac_prog_rejected = yes; then
2038   # We found a bogon in the path, so make sure we never use it.
2039   set dummy $ac_cv_prog_CC
2040   shift
2041   if test $# != 0; then
2042     # We chose a different compiler from the bogus one.
2043     # However, it has the same basename, so the bogon will be chosen
2044     # first if we set CC to just the basename; use the full file name.
2045     shift
2046     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2047   fi
2048 fi
2049 fi
2050 fi
2051 CC=$ac_cv_prog_CC
2052 if test -n "$CC"; then
2053   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2054 $as_echo "$CC" >&6; }
2055 else
2056   { $as_echo "$as_me:$LINENO: result: no" >&5
2057 $as_echo "no" >&6; }
2058 fi
2059
2060
2061 fi
2062 if test -z "$CC"; then
2063   if test -n "$ac_tool_prefix"; then
2064   for ac_prog in cl.exe
2065   do
2066     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2067 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2068 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2069 $as_echo_n "checking for $ac_word... " >&6; }
2070 if test "${ac_cv_prog_CC+set}" = set; then
2071   $as_echo_n "(cached) " >&6
2072 else
2073   if test -n "$CC"; then
2074   ac_cv_prog_CC="$CC" # Let the user override the test.
2075 else
2076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2077 for as_dir in $PATH
2078 do
2079   IFS=$as_save_IFS
2080   test -z "$as_dir" && as_dir=.
2081   for ac_exec_ext in '' $ac_executable_extensions; do
2082   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2083     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2084     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2085     break 2
2086   fi
2087 done
2088 done
2089 IFS=$as_save_IFS
2090
2091 fi
2092 fi
2093 CC=$ac_cv_prog_CC
2094 if test -n "$CC"; then
2095   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2096 $as_echo "$CC" >&6; }
2097 else
2098   { $as_echo "$as_me:$LINENO: result: no" >&5
2099 $as_echo "no" >&6; }
2100 fi
2101
2102
2103     test -n "$CC" && break
2104   done
2105 fi
2106 if test -z "$CC"; then
2107   ac_ct_CC=$CC
2108   for ac_prog in cl.exe
2109 do
2110   # Extract the first word of "$ac_prog", so it can be a program name with args.
2111 set dummy $ac_prog; ac_word=$2
2112 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2113 $as_echo_n "checking for $ac_word... " >&6; }
2114 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2115   $as_echo_n "(cached) " >&6
2116 else
2117   if test -n "$ac_ct_CC"; then
2118   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2119 else
2120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2121 for as_dir in $PATH
2122 do
2123   IFS=$as_save_IFS
2124   test -z "$as_dir" && as_dir=.
2125   for ac_exec_ext in '' $ac_executable_extensions; do
2126   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2127     ac_cv_prog_ac_ct_CC="$ac_prog"
2128     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2129     break 2
2130   fi
2131 done
2132 done
2133 IFS=$as_save_IFS
2134
2135 fi
2136 fi
2137 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2138 if test -n "$ac_ct_CC"; then
2139   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2140 $as_echo "$ac_ct_CC" >&6; }
2141 else
2142   { $as_echo "$as_me:$LINENO: result: no" >&5
2143 $as_echo "no" >&6; }
2144 fi
2145
2146
2147   test -n "$ac_ct_CC" && break
2148 done
2149
2150   if test "x$ac_ct_CC" = x; then
2151     CC=""
2152   else
2153     case $cross_compiling:$ac_tool_warned in
2154 yes:)
2155 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2156 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2157 ac_tool_warned=yes ;;
2158 esac
2159     CC=$ac_ct_CC
2160   fi
2161 fi
2162
2163 fi
2164
2165
2166 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2168 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2169 See \`config.log' for more details." >&5
2170 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2171 See \`config.log' for more details." >&2;}
2172    { (exit 1); exit 1; }; }; }
2173
2174 # Provide some information about the compiler.
2175 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2176 set X $ac_compile
2177 ac_compiler=$2
2178 { (ac_try="$ac_compiler --version >&5"
2179 case "(($ac_try" in
2180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2181   *) ac_try_echo=$ac_try;;
2182 esac
2183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2184 $as_echo "$ac_try_echo") >&5
2185   (eval "$ac_compiler --version >&5") 2>&5
2186   ac_status=$?
2187   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188   (exit $ac_status); }
2189 { (ac_try="$ac_compiler -v >&5"
2190 case "(($ac_try" in
2191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2192   *) ac_try_echo=$ac_try;;
2193 esac
2194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2195 $as_echo "$ac_try_echo") >&5
2196   (eval "$ac_compiler -v >&5") 2>&5
2197   ac_status=$?
2198   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199   (exit $ac_status); }
2200 { (ac_try="$ac_compiler -V >&5"
2201 case "(($ac_try" in
2202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2203   *) ac_try_echo=$ac_try;;
2204 esac
2205 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2206 $as_echo "$ac_try_echo") >&5
2207   (eval "$ac_compiler -V >&5") 2>&5
2208   ac_status=$?
2209   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210   (exit $ac_status); }
2211
2212 cat >conftest.$ac_ext <<_ACEOF
2213 /* confdefs.h.  */
2214 _ACEOF
2215 cat confdefs.h >>conftest.$ac_ext
2216 cat >>conftest.$ac_ext <<_ACEOF
2217 /* end confdefs.h.  */
2218
2219 int
2220 main ()
2221 {
2222
2223   ;
2224   return 0;
2225 }
2226 _ACEOF
2227 ac_clean_files_save=$ac_clean_files
2228 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2229 # Try to create an executable without -o first, disregard a.out.
2230 # It will help us diagnose broken compilers, and finding out an intuition
2231 # of exeext.
2232 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2233 $as_echo_n "checking for C compiler default output file name... " >&6; }
2234 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2235
2236 # The possible output files:
2237 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2238
2239 ac_rmfiles=
2240 for ac_file in $ac_files
2241 do
2242   case $ac_file in
2243     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2244     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2245   esac
2246 done
2247 rm -f $ac_rmfiles
2248
2249 if { (ac_try="$ac_link_default"
2250 case "(($ac_try" in
2251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2252   *) ac_try_echo=$ac_try;;
2253 esac
2254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2255 $as_echo "$ac_try_echo") >&5
2256   (eval "$ac_link_default") 2>&5
2257   ac_status=$?
2258   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259   (exit $ac_status); }; then
2260   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2261 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2262 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2263 # so that the user can short-circuit this test for compilers unknown to
2264 # Autoconf.
2265 for ac_file in $ac_files ''
2266 do
2267   test -f "$ac_file" || continue
2268   case $ac_file in
2269     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2270         ;;
2271     [ab].out )
2272         # We found the default executable, but exeext='' is most
2273         # certainly right.
2274         break;;
2275     *.* )
2276         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2277         then :; else
2278            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2279         fi
2280         # We set ac_cv_exeext here because the later test for it is not
2281         # safe: cross compilers may not add the suffix if given an `-o'
2282         # argument, so we may need to know it at that point already.
2283         # Even if this section looks crufty: it has the advantage of
2284         # actually working.
2285         break;;
2286     * )
2287         break;;
2288   esac
2289 done
2290 test "$ac_cv_exeext" = no && ac_cv_exeext=
2291
2292 else
2293   ac_file=''
2294 fi
2295
2296 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2297 $as_echo "$ac_file" >&6; }
2298 if test -z "$ac_file"; then
2299   $as_echo "$as_me: failed program was:" >&5
2300 sed 's/^/| /' conftest.$ac_ext >&5
2301
2302 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2303 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2304 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2305 See \`config.log' for more details." >&5
2306 $as_echo "$as_me: error: C compiler cannot create executables
2307 See \`config.log' for more details." >&2;}
2308    { (exit 77); exit 77; }; }; }
2309 fi
2310
2311 ac_exeext=$ac_cv_exeext
2312
2313 # Check that the compiler produces executables we can run.  If not, either
2314 # the compiler is broken, or we cross compile.
2315 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2316 $as_echo_n "checking whether the C compiler works... " >&6; }
2317 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2318 # If not cross compiling, check that we can run a simple program.
2319 if test "$cross_compiling" != yes; then
2320   if { ac_try='./$ac_file'
2321   { (case "(($ac_try" in
2322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2323   *) ac_try_echo=$ac_try;;
2324 esac
2325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2326 $as_echo "$ac_try_echo") >&5
2327   (eval "$ac_try") 2>&5
2328   ac_status=$?
2329   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330   (exit $ac_status); }; }; then
2331     cross_compiling=no
2332   else
2333     if test "$cross_compiling" = maybe; then
2334         cross_compiling=yes
2335     else
2336         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2337 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2338 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2339 If you meant to cross compile, use \`--host'.
2340 See \`config.log' for more details." >&5
2341 $as_echo "$as_me: error: cannot run C compiled programs.
2342 If you meant to cross compile, use \`--host'.
2343 See \`config.log' for more details." >&2;}
2344    { (exit 1); exit 1; }; }; }
2345     fi
2346   fi
2347 fi
2348 { $as_echo "$as_me:$LINENO: result: yes" >&5
2349 $as_echo "yes" >&6; }
2350
2351 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2352 ac_clean_files=$ac_clean_files_save
2353 # Check that the compiler produces executables we can run.  If not, either
2354 # the compiler is broken, or we cross compile.
2355 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2356 $as_echo_n "checking whether we are cross compiling... " >&6; }
2357 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2358 $as_echo "$cross_compiling" >&6; }
2359
2360 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2361 $as_echo_n "checking for suffix of executables... " >&6; }
2362 if { (ac_try="$ac_link"
2363 case "(($ac_try" in
2364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2365   *) ac_try_echo=$ac_try;;
2366 esac
2367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2368 $as_echo "$ac_try_echo") >&5
2369   (eval "$ac_link") 2>&5
2370   ac_status=$?
2371   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372   (exit $ac_status); }; then
2373   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2374 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2375 # work properly (i.e., refer to `conftest.exe'), while it won't with
2376 # `rm'.
2377 for ac_file in conftest.exe conftest conftest.*; do
2378   test -f "$ac_file" || continue
2379   case $ac_file in
2380     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2381     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2382           break;;
2383     * ) break;;
2384   esac
2385 done
2386 else
2387   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2388 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2389 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2390 See \`config.log' for more details." >&5
2391 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2392 See \`config.log' for more details." >&2;}
2393    { (exit 1); exit 1; }; }; }
2394 fi
2395
2396 rm -f conftest$ac_cv_exeext
2397 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2398 $as_echo "$ac_cv_exeext" >&6; }
2399
2400 rm -f conftest.$ac_ext
2401 EXEEXT=$ac_cv_exeext
2402 ac_exeext=$EXEEXT
2403 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2404 $as_echo_n "checking for suffix of object files... " >&6; }
2405 if test "${ac_cv_objext+set}" = set; then
2406   $as_echo_n "(cached) " >&6
2407 else
2408   cat >conftest.$ac_ext <<_ACEOF
2409 /* confdefs.h.  */
2410 _ACEOF
2411 cat confdefs.h >>conftest.$ac_ext
2412 cat >>conftest.$ac_ext <<_ACEOF
2413 /* end confdefs.h.  */
2414
2415 int
2416 main ()
2417 {
2418
2419   ;
2420   return 0;
2421 }
2422 _ACEOF
2423 rm -f conftest.o conftest.obj
2424 if { (ac_try="$ac_compile"
2425 case "(($ac_try" in
2426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2427   *) ac_try_echo=$ac_try;;
2428 esac
2429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2430 $as_echo "$ac_try_echo") >&5
2431   (eval "$ac_compile") 2>&5
2432   ac_status=$?
2433   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434   (exit $ac_status); }; then
2435   for ac_file in conftest.o conftest.obj conftest.*; do
2436   test -f "$ac_file" || continue;
2437   case $ac_file in
2438     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2439     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2440        break;;
2441   esac
2442 done
2443 else
2444   $as_echo "$as_me: failed program was:" >&5
2445 sed 's/^/| /' conftest.$ac_ext >&5
2446
2447 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2448 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2449 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2450 See \`config.log' for more details." >&5
2451 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2452 See \`config.log' for more details." >&2;}
2453    { (exit 1); exit 1; }; }; }
2454 fi
2455
2456 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2457 fi
2458 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2459 $as_echo "$ac_cv_objext" >&6; }
2460 OBJEXT=$ac_cv_objext
2461 ac_objext=$OBJEXT
2462 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2463 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2464 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2465   $as_echo_n "(cached) " >&6
2466 else
2467   cat >conftest.$ac_ext <<_ACEOF
2468 /* confdefs.h.  */
2469 _ACEOF
2470 cat confdefs.h >>conftest.$ac_ext
2471 cat >>conftest.$ac_ext <<_ACEOF
2472 /* end confdefs.h.  */
2473
2474 int
2475 main ()
2476 {
2477 #ifndef __GNUC__
2478        choke me
2479 #endif
2480
2481   ;
2482   return 0;
2483 }
2484 _ACEOF
2485 rm -f conftest.$ac_objext
2486 if { (ac_try="$ac_compile"
2487 case "(($ac_try" in
2488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2489   *) ac_try_echo=$ac_try;;
2490 esac
2491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2492 $as_echo "$ac_try_echo") >&5
2493   (eval "$ac_compile") 2>conftest.er1
2494   ac_status=$?
2495   grep -v '^ *+' conftest.er1 >conftest.err
2496   rm -f conftest.er1
2497   cat conftest.err >&5
2498   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499   (exit $ac_status); } && {
2500          test -z "$ac_c_werror_flag" ||
2501          test ! -s conftest.err
2502        } && test -s conftest.$ac_objext; then
2503   ac_compiler_gnu=yes
2504 else
2505   $as_echo "$as_me: failed program was:" >&5
2506 sed 's/^/| /' conftest.$ac_ext >&5
2507
2508         ac_compiler_gnu=no
2509 fi
2510
2511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2512 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2513
2514 fi
2515 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2516 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2517 if test $ac_compiler_gnu = yes; then
2518   GCC=yes
2519 else
2520   GCC=
2521 fi
2522 ac_test_CFLAGS=${CFLAGS+set}
2523 ac_save_CFLAGS=$CFLAGS
2524 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2525 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2526 if test "${ac_cv_prog_cc_g+set}" = set; then
2527   $as_echo_n "(cached) " >&6
2528 else
2529   ac_save_c_werror_flag=$ac_c_werror_flag
2530    ac_c_werror_flag=yes
2531    ac_cv_prog_cc_g=no
2532    CFLAGS="-g"
2533    cat >conftest.$ac_ext <<_ACEOF
2534 /* confdefs.h.  */
2535 _ACEOF
2536 cat confdefs.h >>conftest.$ac_ext
2537 cat >>conftest.$ac_ext <<_ACEOF
2538 /* end confdefs.h.  */
2539
2540 int
2541 main ()
2542 {
2543
2544   ;
2545   return 0;
2546 }
2547 _ACEOF
2548 rm -f conftest.$ac_objext
2549 if { (ac_try="$ac_compile"
2550 case "(($ac_try" in
2551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2552   *) ac_try_echo=$ac_try;;
2553 esac
2554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2555 $as_echo "$ac_try_echo") >&5
2556   (eval "$ac_compile") 2>conftest.er1
2557   ac_status=$?
2558   grep -v '^ *+' conftest.er1 >conftest.err
2559   rm -f conftest.er1
2560   cat conftest.err >&5
2561   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562   (exit $ac_status); } && {
2563          test -z "$ac_c_werror_flag" ||
2564          test ! -s conftest.err
2565        } && test -s conftest.$ac_objext; then
2566   ac_cv_prog_cc_g=yes
2567 else
2568   $as_echo "$as_me: failed program was:" >&5
2569 sed 's/^/| /' conftest.$ac_ext >&5
2570
2571         CFLAGS=""
2572       cat >conftest.$ac_ext <<_ACEOF
2573 /* confdefs.h.  */
2574 _ACEOF
2575 cat confdefs.h >>conftest.$ac_ext
2576 cat >>conftest.$ac_ext <<_ACEOF
2577 /* end confdefs.h.  */
2578
2579 int
2580 main ()
2581 {
2582
2583   ;
2584   return 0;
2585 }
2586 _ACEOF
2587 rm -f conftest.$ac_objext
2588 if { (ac_try="$ac_compile"
2589 case "(($ac_try" in
2590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2591   *) ac_try_echo=$ac_try;;
2592 esac
2593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2594 $as_echo "$ac_try_echo") >&5
2595   (eval "$ac_compile") 2>conftest.er1
2596   ac_status=$?
2597   grep -v '^ *+' conftest.er1 >conftest.err
2598   rm -f conftest.er1
2599   cat conftest.err >&5
2600   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601   (exit $ac_status); } && {
2602          test -z "$ac_c_werror_flag" ||
2603          test ! -s conftest.err
2604        } && test -s conftest.$ac_objext; then
2605   :
2606 else
2607   $as_echo "$as_me: failed program was:" >&5
2608 sed 's/^/| /' conftest.$ac_ext >&5
2609
2610         ac_c_werror_flag=$ac_save_c_werror_flag
2611          CFLAGS="-g"
2612          cat >conftest.$ac_ext <<_ACEOF
2613 /* confdefs.h.  */
2614 _ACEOF
2615 cat confdefs.h >>conftest.$ac_ext
2616 cat >>conftest.$ac_ext <<_ACEOF
2617 /* end confdefs.h.  */
2618
2619 int
2620 main ()
2621 {
2622
2623   ;
2624   return 0;
2625 }
2626 _ACEOF
2627 rm -f conftest.$ac_objext
2628 if { (ac_try="$ac_compile"
2629 case "(($ac_try" in
2630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2631   *) ac_try_echo=$ac_try;;
2632 esac
2633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2634 $as_echo "$ac_try_echo") >&5
2635   (eval "$ac_compile") 2>conftest.er1
2636   ac_status=$?
2637   grep -v '^ *+' conftest.er1 >conftest.err
2638   rm -f conftest.er1
2639   cat conftest.err >&5
2640   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641   (exit $ac_status); } && {
2642          test -z "$ac_c_werror_flag" ||
2643          test ! -s conftest.err
2644        } && test -s conftest.$ac_objext; then
2645   ac_cv_prog_cc_g=yes
2646 else
2647   $as_echo "$as_me: failed program was:" >&5
2648 sed 's/^/| /' conftest.$ac_ext >&5
2649
2650
2651 fi
2652
2653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2654 fi
2655
2656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2657 fi
2658
2659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2660    ac_c_werror_flag=$ac_save_c_werror_flag
2661 fi
2662 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2663 $as_echo "$ac_cv_prog_cc_g" >&6; }
2664 if test "$ac_test_CFLAGS" = set; then
2665   CFLAGS=$ac_save_CFLAGS
2666 elif test $ac_cv_prog_cc_g = yes; then
2667   if test "$GCC" = yes; then
2668     CFLAGS="-g -O2"
2669   else
2670     CFLAGS="-g"
2671   fi
2672 else
2673   if test "$GCC" = yes; then
2674     CFLAGS="-O2"
2675   else
2676     CFLAGS=
2677   fi
2678 fi
2679 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2680 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2681 if test "${ac_cv_prog_cc_c89+set}" = set; then
2682   $as_echo_n "(cached) " >&6
2683 else
2684   ac_cv_prog_cc_c89=no
2685 ac_save_CC=$CC
2686 cat >conftest.$ac_ext <<_ACEOF
2687 /* confdefs.h.  */
2688 _ACEOF
2689 cat confdefs.h >>conftest.$ac_ext
2690 cat >>conftest.$ac_ext <<_ACEOF
2691 /* end confdefs.h.  */
2692 #include <stdarg.h>
2693 #include <stdio.h>
2694 #include <sys/types.h>
2695 #include <sys/stat.h>
2696 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2697 struct buf { int x; };
2698 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2699 static char *e (p, i)
2700      char **p;
2701      int i;
2702 {
2703   return p[i];
2704 }
2705 static char *f (char * (*g) (char **, int), char **p, ...)
2706 {
2707   char *s;
2708   va_list v;
2709   va_start (v,p);
2710   s = g (p, va_arg (v,int));
2711   va_end (v);
2712   return s;
2713 }
2714
2715 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2716    function prototypes and stuff, but not '\xHH' hex character constants.
2717    These don't provoke an error unfortunately, instead are silently treated
2718    as 'x'.  The following induces an error, until -std is added to get
2719    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2720    array size at least.  It's necessary to write '\x00'==0 to get something
2721    that's true only with -std.  */
2722 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2723
2724 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2725    inside strings and character constants.  */
2726 #define FOO(x) 'x'
2727 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2728
2729 int test (int i, double x);
2730 struct s1 {int (*f) (int a);};
2731 struct s2 {int (*f) (double a);};
2732 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2733 int argc;
2734 char **argv;
2735 int
2736 main ()
2737 {
2738 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2739   ;
2740   return 0;
2741 }
2742 _ACEOF
2743 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2744         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2745 do
2746   CC="$ac_save_CC $ac_arg"
2747   rm -f conftest.$ac_objext
2748 if { (ac_try="$ac_compile"
2749 case "(($ac_try" in
2750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2751   *) ac_try_echo=$ac_try;;
2752 esac
2753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2754 $as_echo "$ac_try_echo") >&5
2755   (eval "$ac_compile") 2>conftest.er1
2756   ac_status=$?
2757   grep -v '^ *+' conftest.er1 >conftest.err
2758   rm -f conftest.er1
2759   cat conftest.err >&5
2760   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761   (exit $ac_status); } && {
2762          test -z "$ac_c_werror_flag" ||
2763          test ! -s conftest.err
2764        } && test -s conftest.$ac_objext; then
2765   ac_cv_prog_cc_c89=$ac_arg
2766 else
2767   $as_echo "$as_me: failed program was:" >&5
2768 sed 's/^/| /' conftest.$ac_ext >&5
2769
2770
2771 fi
2772
2773 rm -f core conftest.err conftest.$ac_objext
2774   test "x$ac_cv_prog_cc_c89" != "xno" && break
2775 done
2776 rm -f conftest.$ac_ext
2777 CC=$ac_save_CC
2778
2779 fi
2780 # AC_CACHE_VAL
2781 case "x$ac_cv_prog_cc_c89" in
2782   x)
2783     { $as_echo "$as_me:$LINENO: result: none needed" >&5
2784 $as_echo "none needed" >&6; } ;;
2785   xno)
2786     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2787 $as_echo "unsupported" >&6; } ;;
2788   *)
2789     CC="$CC $ac_cv_prog_cc_c89"
2790     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2791 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2792 esac
2793
2794
2795 ac_ext=c
2796 ac_cpp='$CPP $CPPFLAGS'
2797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2800
2801 ac_ext=c
2802 ac_cpp='$CPP $CPPFLAGS'
2803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2806 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2807 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2808 # On Suns, sometimes $CPP names a directory.
2809 if test -n "$CPP" && test -d "$CPP"; then
2810   CPP=
2811 fi
2812 if test -z "$CPP"; then
2813   if test "${ac_cv_prog_CPP+set}" = set; then
2814   $as_echo_n "(cached) " >&6
2815 else
2816       # Double quotes because CPP needs to be expanded
2817     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2818     do
2819       ac_preproc_ok=false
2820 for ac_c_preproc_warn_flag in '' yes
2821 do
2822   # Use a header file that comes with gcc, so configuring glibc
2823   # with a fresh cross-compiler works.
2824   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2825   # <limits.h> exists even on freestanding compilers.
2826   # On the NeXT, cc -E runs the code through the compiler's parser,
2827   # not just through cpp. "Syntax error" is here to catch this case.
2828   cat >conftest.$ac_ext <<_ACEOF
2829 /* confdefs.h.  */
2830 _ACEOF
2831 cat confdefs.h >>conftest.$ac_ext
2832 cat >>conftest.$ac_ext <<_ACEOF
2833 /* end confdefs.h.  */
2834 #ifdef __STDC__
2835 # include <limits.h>
2836 #else
2837 # include <assert.h>
2838 #endif
2839                      Syntax error
2840 _ACEOF
2841 if { (ac_try="$ac_cpp conftest.$ac_ext"
2842 case "(($ac_try" in
2843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2844   *) ac_try_echo=$ac_try;;
2845 esac
2846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2847 $as_echo "$ac_try_echo") >&5
2848   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2849   ac_status=$?
2850   grep -v '^ *+' conftest.er1 >conftest.err
2851   rm -f conftest.er1
2852   cat conftest.err >&5
2853   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854   (exit $ac_status); } >/dev/null && {
2855          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2856          test ! -s conftest.err
2857        }; then
2858   :
2859 else
2860   $as_echo "$as_me: failed program was:" >&5
2861 sed 's/^/| /' conftest.$ac_ext >&5
2862
2863   # Broken: fails on valid input.
2864 continue
2865 fi
2866
2867 rm -f conftest.err conftest.$ac_ext
2868
2869   # OK, works on sane cases.  Now check whether nonexistent headers
2870   # can be detected and how.
2871   cat >conftest.$ac_ext <<_ACEOF
2872 /* confdefs.h.  */
2873 _ACEOF
2874 cat confdefs.h >>conftest.$ac_ext
2875 cat >>conftest.$ac_ext <<_ACEOF
2876 /* end confdefs.h.  */
2877 #include <ac_nonexistent.h>
2878 _ACEOF
2879 if { (ac_try="$ac_cpp conftest.$ac_ext"
2880 case "(($ac_try" in
2881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2882   *) ac_try_echo=$ac_try;;
2883 esac
2884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2885 $as_echo "$ac_try_echo") >&5
2886   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2887   ac_status=$?
2888   grep -v '^ *+' conftest.er1 >conftest.err
2889   rm -f conftest.er1
2890   cat conftest.err >&5
2891   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892   (exit $ac_status); } >/dev/null && {
2893          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2894          test ! -s conftest.err
2895        }; then
2896   # Broken: success on invalid input.
2897 continue
2898 else
2899   $as_echo "$as_me: failed program was:" >&5
2900 sed 's/^/| /' conftest.$ac_ext >&5
2901
2902   # Passes both tests.
2903 ac_preproc_ok=:
2904 break
2905 fi
2906
2907 rm -f conftest.err conftest.$ac_ext
2908
2909 done
2910 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2911 rm -f conftest.err conftest.$ac_ext
2912 if $ac_preproc_ok; then
2913   break
2914 fi
2915
2916     done
2917     ac_cv_prog_CPP=$CPP
2918
2919 fi
2920   CPP=$ac_cv_prog_CPP
2921 else
2922   ac_cv_prog_CPP=$CPP
2923 fi
2924 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
2925 $as_echo "$CPP" >&6; }
2926 ac_preproc_ok=false
2927 for ac_c_preproc_warn_flag in '' yes
2928 do
2929   # Use a header file that comes with gcc, so configuring glibc
2930   # with a fresh cross-compiler works.
2931   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2932   # <limits.h> exists even on freestanding compilers.
2933   # On the NeXT, cc -E runs the code through the compiler's parser,
2934   # not just through cpp. "Syntax error" is here to catch this case.
2935   cat >conftest.$ac_ext <<_ACEOF
2936 /* confdefs.h.  */
2937 _ACEOF
2938 cat confdefs.h >>conftest.$ac_ext
2939 cat >>conftest.$ac_ext <<_ACEOF
2940 /* end confdefs.h.  */
2941 #ifdef __STDC__
2942 # include <limits.h>
2943 #else
2944 # include <assert.h>
2945 #endif
2946                      Syntax error
2947 _ACEOF
2948 if { (ac_try="$ac_cpp conftest.$ac_ext"
2949 case "(($ac_try" in
2950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951   *) ac_try_echo=$ac_try;;
2952 esac
2953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2954 $as_echo "$ac_try_echo") >&5
2955   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2956   ac_status=$?
2957   grep -v '^ *+' conftest.er1 >conftest.err
2958   rm -f conftest.er1
2959   cat conftest.err >&5
2960   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961   (exit $ac_status); } >/dev/null && {
2962          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2963          test ! -s conftest.err
2964        }; then
2965   :
2966 else
2967   $as_echo "$as_me: failed program was:" >&5
2968 sed 's/^/| /' conftest.$ac_ext >&5
2969
2970   # Broken: fails on valid input.
2971 continue
2972 fi
2973
2974 rm -f conftest.err conftest.$ac_ext
2975
2976   # OK, works on sane cases.  Now check whether nonexistent headers
2977   # can be detected and how.
2978   cat >conftest.$ac_ext <<_ACEOF
2979 /* confdefs.h.  */
2980 _ACEOF
2981 cat confdefs.h >>conftest.$ac_ext
2982 cat >>conftest.$ac_ext <<_ACEOF
2983 /* end confdefs.h.  */
2984 #include <ac_nonexistent.h>
2985 _ACEOF
2986 if { (ac_try="$ac_cpp conftest.$ac_ext"
2987 case "(($ac_try" in
2988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989   *) ac_try_echo=$ac_try;;
2990 esac
2991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2992 $as_echo "$ac_try_echo") >&5
2993   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2994   ac_status=$?
2995   grep -v '^ *+' conftest.er1 >conftest.err
2996   rm -f conftest.er1
2997   cat conftest.err >&5
2998   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999   (exit $ac_status); } >/dev/null && {
3000          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3001          test ! -s conftest.err
3002        }; then
3003   # Broken: success on invalid input.
3004 continue
3005 else
3006   $as_echo "$as_me: failed program was:" >&5
3007 sed 's/^/| /' conftest.$ac_ext >&5
3008
3009   # Passes both tests.
3010 ac_preproc_ok=:
3011 break
3012 fi
3013
3014 rm -f conftest.err conftest.$ac_ext
3015
3016 done
3017 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3018 rm -f conftest.err conftest.$ac_ext
3019 if $ac_preproc_ok; then
3020   :
3021 else
3022   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3023 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3024 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3025 See \`config.log' for more details." >&5
3026 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3027 See \`config.log' for more details." >&2;}
3028    { (exit 1); exit 1; }; }; }
3029 fi
3030
3031 ac_ext=c
3032 ac_cpp='$CPP $CPPFLAGS'
3033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3036
3037
3038 { $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
3039 $as_echo_n "checking for library containing strerror... " >&6; }
3040 if test "${ac_cv_search_strerror+set}" = set; then
3041   $as_echo_n "(cached) " >&6
3042 else
3043   ac_func_search_save_LIBS=$LIBS
3044 cat >conftest.$ac_ext <<_ACEOF
3045 /* confdefs.h.  */
3046 _ACEOF
3047 cat confdefs.h >>conftest.$ac_ext
3048 cat >>conftest.$ac_ext <<_ACEOF
3049 /* end confdefs.h.  */
3050
3051 /* Override any GCC internal prototype to avoid an error.
3052    Use char because int might match the return type of a GCC
3053    builtin and then its argument prototype would still apply.  */
3054 #ifdef __cplusplus
3055 extern "C"
3056 #endif
3057 char strerror ();
3058 int
3059 main ()
3060 {
3061 return strerror ();
3062   ;
3063   return 0;
3064 }
3065 _ACEOF
3066 for ac_lib in '' cposix; do
3067   if test -z "$ac_lib"; then
3068     ac_res="none required"
3069   else
3070     ac_res=-l$ac_lib
3071     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3072   fi
3073   rm -f conftest.$ac_objext conftest$ac_exeext
3074 if { (ac_try="$ac_link"
3075 case "(($ac_try" in
3076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077   *) ac_try_echo=$ac_try;;
3078 esac
3079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3080 $as_echo "$ac_try_echo") >&5
3081   (eval "$ac_link") 2>conftest.er1
3082   ac_status=$?
3083   grep -v '^ *+' conftest.er1 >conftest.err
3084   rm -f conftest.er1
3085   cat conftest.err >&5
3086   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087   (exit $ac_status); } && {
3088          test -z "$ac_c_werror_flag" ||
3089          test ! -s conftest.err
3090        } && test -s conftest$ac_exeext && {
3091          test "$cross_compiling" = yes ||
3092          $as_test_x conftest$ac_exeext
3093        }; then
3094   ac_cv_search_strerror=$ac_res
3095 else
3096   $as_echo "$as_me: failed program was:" >&5
3097 sed 's/^/| /' conftest.$ac_ext >&5
3098
3099
3100 fi
3101
3102 rm -rf conftest.dSYM
3103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3104       conftest$ac_exeext
3105   if test "${ac_cv_search_strerror+set}" = set; then
3106   break
3107 fi
3108 done
3109 if test "${ac_cv_search_strerror+set}" = set; then
3110   :
3111 else
3112   ac_cv_search_strerror=no
3113 fi
3114 rm conftest.$ac_ext
3115 LIBS=$ac_func_search_save_LIBS
3116 fi
3117 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3118 $as_echo "$ac_cv_search_strerror" >&6; }
3119 ac_res=$ac_cv_search_strerror
3120 if test "$ac_res" != no; then
3121   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3122
3123 fi
3124
3125 ac_aux_dir=
3126 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3127   if test -f "$ac_dir/install-sh"; then
3128     ac_aux_dir=$ac_dir
3129     ac_install_sh="$ac_aux_dir/install-sh -c"
3130     break
3131   elif test -f "$ac_dir/install.sh"; then
3132     ac_aux_dir=$ac_dir
3133     ac_install_sh="$ac_aux_dir/install.sh -c"
3134     break
3135   elif test -f "$ac_dir/shtool"; then
3136     ac_aux_dir=$ac_dir
3137     ac_install_sh="$ac_aux_dir/shtool install -c"
3138     break
3139   fi
3140 done
3141 if test -z "$ac_aux_dir"; then
3142   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
3143 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
3144    { (exit 1); exit 1; }; }
3145 fi
3146
3147 # These three variables are undocumented and unsupported,
3148 # and are intended to be withdrawn in a future Autoconf release.
3149 # They can cause serious problems if a builder's source tree is in a directory
3150 # whose full name contains unusual characters.
3151 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3152 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3153 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3154
3155
3156 # Find a good install program.  We prefer a C program (faster),
3157 # so one script is as good as another.  But avoid the broken or
3158 # incompatible versions:
3159 # SysV /etc/install, /usr/sbin/install
3160 # SunOS /usr/etc/install
3161 # IRIX /sbin/install
3162 # AIX /bin/install
3163 # AmigaOS /C/install, which installs bootblocks on floppy discs
3164 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3165 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3166 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3167 # OS/2's system install, which has a completely different semantic
3168 # ./install, which can be erroneously created by make from ./install.sh.
3169 # Reject install programs that cannot install multiple files.
3170 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3171 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3172 if test -z "$INSTALL"; then
3173 if test "${ac_cv_path_install+set}" = set; then
3174   $as_echo_n "(cached) " >&6
3175 else
3176   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3177 for as_dir in $PATH
3178 do
3179   IFS=$as_save_IFS
3180   test -z "$as_dir" && as_dir=.
3181   # Account for people who put trailing slashes in PATH elements.
3182 case $as_dir/ in
3183   ./ | .// | /cC/* | \
3184   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3185   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3186   /usr/ucb/* ) ;;
3187   *)
3188     # OSF1 and SCO ODT 3.0 have their own names for install.
3189     # Don't use installbsd from OSF since it installs stuff as root
3190     # by default.
3191     for ac_prog in ginstall scoinst install; do
3192       for ac_exec_ext in '' $ac_executable_extensions; do
3193         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3194           if test $ac_prog = install &&
3195             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3196             # AIX install.  It has an incompatible calling convention.
3197             :
3198           elif test $ac_prog = install &&
3199             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3200             # program-specific install script used by HP pwplus--don't use.
3201             :
3202           else
3203             rm -rf conftest.one conftest.two conftest.dir
3204             echo one > conftest.one
3205             echo two > conftest.two
3206             mkdir conftest.dir
3207             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3208               test -s conftest.one && test -s conftest.two &&
3209               test -s conftest.dir/conftest.one &&
3210               test -s conftest.dir/conftest.two
3211             then
3212               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3213               break 3
3214             fi
3215           fi
3216         fi
3217       done
3218     done
3219     ;;
3220 esac
3221
3222 done
3223 IFS=$as_save_IFS
3224
3225 rm -rf conftest.one conftest.two conftest.dir
3226
3227 fi
3228   if test "${ac_cv_path_install+set}" = set; then
3229     INSTALL=$ac_cv_path_install
3230   else
3231     # As a last resort, use the slow shell script.  Don't cache a
3232     # value for INSTALL within a source directory, because that will
3233     # break other packages using the cache if that directory is
3234     # removed, or if the value is a relative name.
3235     INSTALL=$ac_install_sh
3236   fi
3237 fi
3238 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3239 $as_echo "$INSTALL" >&6; }
3240
3241 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3242 # It thinks the first close brace ends the variable substitution.
3243 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3244
3245 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3246
3247 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3248
3249 for ac_prog in lex flex
3250 do
3251   # Extract the first word of "$ac_prog", so it can be a program name with args.
3252 set dummy $ac_prog; ac_word=$2
3253 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3254 $as_echo_n "checking for $ac_word... " >&6; }
3255 if test "${ac_cv_prog_LEX+set}" = set; then
3256   $as_echo_n "(cached) " >&6
3257 else
3258   if test -n "$LEX"; then
3259   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3260 else
3261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3262 for as_dir in $PATH
3263 do
3264   IFS=$as_save_IFS
3265   test -z "$as_dir" && as_dir=.
3266   for ac_exec_ext in '' $ac_executable_extensions; do
3267   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3268     ac_cv_prog_LEX="$ac_prog"
3269     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3270     break 2
3271   fi
3272 done
3273 done
3274 IFS=$as_save_IFS
3275
3276 fi
3277 fi
3278 LEX=$ac_cv_prog_LEX
3279 if test -n "$LEX"; then
3280   { $as_echo "$as_me:$LINENO: result: $LEX" >&5
3281 $as_echo "$LEX" >&6; }
3282 else
3283   { $as_echo "$as_me:$LINENO: result: no" >&5
3284 $as_echo "no" >&6; }
3285 fi
3286
3287
3288   test -n "$LEX" && break
3289 done
3290 test -n "$LEX" || LEX="lex_not_found"
3291
3292 if test "$LEX" != lex_not_found ; then
3293   for ac_prog in flex lex
3294 do
3295   # Extract the first word of "$ac_prog", so it can be a program name with args.
3296 set dummy $ac_prog; ac_word=$2
3297 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3298 $as_echo_n "checking for $ac_word... " >&6; }
3299 if test "${ac_cv_prog_LEX+set}" = set; then
3300   $as_echo_n "(cached) " >&6
3301 else
3302   if test -n "$LEX"; then
3303   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3304 else
3305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3306 for as_dir in $PATH
3307 do
3308   IFS=$as_save_IFS
3309   test -z "$as_dir" && as_dir=.
3310   for ac_exec_ext in '' $ac_executable_extensions; do
3311   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3312     ac_cv_prog_LEX="$ac_prog"
3313     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3314     break 2
3315   fi
3316 done
3317 done
3318 IFS=$as_save_IFS
3319
3320 fi
3321 fi
3322 LEX=$ac_cv_prog_LEX
3323 if test -n "$LEX"; then
3324   { $as_echo "$as_me:$LINENO: result: $LEX" >&5
3325 $as_echo "$LEX" >&6; }
3326 else
3327   { $as_echo "$as_me:$LINENO: result: no" >&5
3328 $as_echo "no" >&6; }
3329 fi
3330
3331
3332   test -n "$LEX" && break
3333 done
3334 test -n "$LEX" || LEX=":"
3335
3336 if test "x$LEX" != "x:"; then
3337   cat >conftest.l <<_ACEOF
3338 %%
3339 a { ECHO; }
3340 b { REJECT; }
3341 c { yymore (); }
3342 d { yyless (1); }
3343 e { yyless (input () != 0); }
3344 f { unput (yytext[0]); }
3345 . { BEGIN INITIAL; }
3346 %%
3347 #ifdef YYTEXT_POINTER
3348 extern char *yytext;
3349 #endif
3350 int
3351 main (void)
3352 {
3353   return ! yylex () + ! yywrap ();
3354 }
3355 _ACEOF
3356 { (ac_try="$LEX conftest.l"
3357 case "(($ac_try" in
3358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359   *) ac_try_echo=$ac_try;;
3360 esac
3361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3362 $as_echo "$ac_try_echo") >&5
3363   (eval "$LEX conftest.l") 2>&5
3364   ac_status=$?
3365   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366   (exit $ac_status); }
3367 { $as_echo "$as_me:$LINENO: checking lex output file root" >&5
3368 $as_echo_n "checking lex output file root... " >&6; }
3369 if test "${ac_cv_prog_lex_root+set}" = set; then
3370   $as_echo_n "(cached) " >&6
3371 else
3372
3373 if test -f lex.yy.c; then
3374   ac_cv_prog_lex_root=lex.yy
3375 elif test -f lexyy.c; then
3376   ac_cv_prog_lex_root=lexyy
3377 else
3378   { { $as_echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3379 $as_echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3380    { (exit 1); exit 1; }; }
3381 fi
3382 fi
3383 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3384 $as_echo "$ac_cv_prog_lex_root" >&6; }
3385 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3386
3387 if test -z "${LEXLIB+set}"; then
3388   { $as_echo "$as_me:$LINENO: checking lex library" >&5
3389 $as_echo_n "checking lex library... " >&6; }
3390 if test "${ac_cv_lib_lex+set}" = set; then
3391   $as_echo_n "(cached) " >&6
3392 else
3393
3394     ac_save_LIBS=$LIBS
3395     ac_cv_lib_lex='none needed'
3396     for ac_lib in '' -lfl -ll; do
3397       LIBS="$ac_lib $ac_save_LIBS"
3398       cat >conftest.$ac_ext <<_ACEOF
3399 `cat $LEX_OUTPUT_ROOT.c`
3400 _ACEOF
3401 rm -f conftest.$ac_objext conftest$ac_exeext
3402 if { (ac_try="$ac_link"
3403 case "(($ac_try" in
3404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405   *) ac_try_echo=$ac_try;;
3406 esac
3407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3408 $as_echo "$ac_try_echo") >&5
3409   (eval "$ac_link") 2>conftest.er1
3410   ac_status=$?
3411   grep -v '^ *+' conftest.er1 >conftest.err
3412   rm -f conftest.er1
3413   cat conftest.err >&5
3414   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415   (exit $ac_status); } && {
3416          test -z "$ac_c_werror_flag" ||
3417          test ! -s conftest.err
3418        } && test -s conftest$ac_exeext && {
3419          test "$cross_compiling" = yes ||
3420          $as_test_x conftest$ac_exeext
3421        }; then
3422   ac_cv_lib_lex=$ac_lib
3423 else
3424   $as_echo "$as_me: failed program was:" >&5
3425 sed 's/^/| /' conftest.$ac_ext >&5
3426
3427
3428 fi
3429
3430 rm -rf conftest.dSYM
3431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3432       conftest$ac_exeext conftest.$ac_ext
3433       test "$ac_cv_lib_lex" != 'none needed' && break
3434     done
3435     LIBS=$ac_save_LIBS
3436
3437 fi
3438 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
3439 $as_echo "$ac_cv_lib_lex" >&6; }
3440   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
3441 fi
3442
3443
3444 { $as_echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3445 $as_echo_n "checking whether yytext is a pointer... " >&6; }
3446 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3447   $as_echo_n "(cached) " >&6
3448 else
3449   # POSIX says lex can declare yytext either as a pointer or an array; the
3450 # default is implementation-dependent.  Figure out which it is, since
3451 # not all implementations provide the %pointer and %array declarations.
3452 ac_cv_prog_lex_yytext_pointer=no
3453 ac_save_LIBS=$LIBS
3454 LIBS="$LEXLIB $ac_save_LIBS"
3455 cat >conftest.$ac_ext <<_ACEOF
3456 #define YYTEXT_POINTER 1
3457 `cat $LEX_OUTPUT_ROOT.c`
3458 _ACEOF
3459 rm -f conftest.$ac_objext conftest$ac_exeext
3460 if { (ac_try="$ac_link"
3461 case "(($ac_try" in
3462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3463   *) ac_try_echo=$ac_try;;
3464 esac
3465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3466 $as_echo "$ac_try_echo") >&5
3467   (eval "$ac_link") 2>conftest.er1
3468   ac_status=$?
3469   grep -v '^ *+' conftest.er1 >conftest.err
3470   rm -f conftest.er1
3471   cat conftest.err >&5
3472   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473   (exit $ac_status); } && {
3474          test -z "$ac_c_werror_flag" ||
3475          test ! -s conftest.err
3476        } && test -s conftest$ac_exeext && {
3477          test "$cross_compiling" = yes ||
3478          $as_test_x conftest$ac_exeext
3479        }; then
3480   ac_cv_prog_lex_yytext_pointer=yes
3481 else
3482   $as_echo "$as_me: failed program was:" >&5
3483 sed 's/^/| /' conftest.$ac_ext >&5
3484
3485
3486 fi
3487
3488 rm -rf conftest.dSYM
3489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3490       conftest$ac_exeext conftest.$ac_ext
3491 LIBS=$ac_save_LIBS
3492
3493 fi
3494 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3495 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
3496 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3497
3498 cat >>confdefs.h <<\_ACEOF
3499 #define YYTEXT_POINTER 1
3500 _ACEOF
3501
3502 fi
3503 rm -f conftest.l $LEX_OUTPUT_ROOT.c
3504
3505 fi
3506 fi
3507 for ac_prog in remsh rsh
3508 do
3509   # Extract the first word of "$ac_prog", so it can be a program name with args.
3510 set dummy $ac_prog; ac_word=$2
3511 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3512 $as_echo_n "checking for $ac_word... " >&6; }
3513 if test "${ac_cv_prog_RSH+set}" = set; then
3514   $as_echo_n "(cached) " >&6
3515 else
3516   if test -n "$RSH"; then
3517   ac_cv_prog_RSH="$RSH" # Let the user override the test.
3518 else
3519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3520 for as_dir in $PATH
3521 do
3522   IFS=$as_save_IFS
3523   test -z "$as_dir" && as_dir=.
3524   for ac_exec_ext in '' $ac_executable_extensions; do
3525   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3526     ac_cv_prog_RSH="$ac_prog"
3527     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3528     break 2
3529   fi
3530 done
3531 done
3532 IFS=$as_save_IFS
3533
3534 fi
3535 fi
3536 RSH=$ac_cv_prog_RSH
3537 if test -n "$RSH"; then
3538   { $as_echo "$as_me:$LINENO: result: $RSH" >&5
3539 $as_echo "$RSH" >&6; }
3540 else
3541   { $as_echo "$as_me:$LINENO: result: no" >&5
3542 $as_echo "no" >&6; }
3543 fi
3544
3545
3546   test -n "$RSH" && break
3547 done
3548 test -n "$RSH" || RSH="rsh"
3549
3550 cat >>confdefs.h <<_ACEOF
3551 #define REMOTE_SHELL "$RSH"
3552 _ACEOF
3553
3554 # Extract the first word of "nroff", so it can be a program name with args.
3555 set dummy nroff; ac_word=$2
3556 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3557 $as_echo_n "checking for $ac_word... " >&6; }
3558 if test "${ac_cv_prog_NROFF+set}" = set; then
3559   $as_echo_n "(cached) " >&6
3560 else
3561   if test -n "$NROFF"; then
3562   ac_cv_prog_NROFF="$NROFF" # Let the user override the test.
3563 else
3564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3565 for as_dir in $PATH
3566 do
3567   IFS=$as_save_IFS
3568   test -z "$as_dir" && as_dir=.
3569   for ac_exec_ext in '' $ac_executable_extensions; do
3570   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3571     ac_cv_prog_NROFF="nroff -man"
3572     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3573     break 2
3574   fi
3575 done
3576 done
3577 IFS=$as_save_IFS
3578
3579   test -z "$ac_cv_prog_NROFF" && ac_cv_prog_NROFF="cat"
3580 fi
3581 fi
3582 NROFF=$ac_cv_prog_NROFF
3583 if test -n "$NROFF"; then
3584   { $as_echo "$as_me:$LINENO: result: $NROFF" >&5
3585 $as_echo "$NROFF" >&6; }
3586 else
3587   { $as_echo "$as_me:$LINENO: result: no" >&5
3588 $as_echo "no" >&6; }
3589 fi
3590
3591
3592
3593 for ac_prog in awk mawk gawk nawk
3594 do
3595   # Extract the first word of "$ac_prog", so it can be a program name with args.
3596 set dummy $ac_prog; ac_word=$2
3597 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3598 $as_echo_n "checking for $ac_word... " >&6; }
3599 if test "${ac_cv_path_AWKPATH+set}" = set; then
3600   $as_echo_n "(cached) " >&6
3601 else
3602   case $AWKPATH in
3603   [\\/]* | ?:[\\/]*)
3604   ac_cv_path_AWKPATH="$AWKPATH" # Let the user override the test with a path.
3605   ;;
3606   *)
3607   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3608 for as_dir in $PATH
3609 do
3610   IFS=$as_save_IFS
3611   test -z "$as_dir" && as_dir=.
3612   for ac_exec_ext in '' $ac_executable_extensions; do
3613   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3614     ac_cv_path_AWKPATH="$as_dir/$ac_word$ac_exec_ext"
3615     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3616     break 2
3617   fi
3618 done
3619 done
3620 IFS=$as_save_IFS
3621
3622   ;;
3623 esac
3624 fi
3625 AWKPATH=$ac_cv_path_AWKPATH
3626 if test -n "$AWKPATH"; then
3627   { $as_echo "$as_me:$LINENO: result: $AWKPATH" >&5
3628 $as_echo "$AWKPATH" >&6; }
3629 else
3630   { $as_echo "$as_me:$LINENO: result: no" >&5
3631 $as_echo "no" >&6; }
3632 fi
3633
3634
3635   test -n "$AWKPATH" && break
3636 done
3637
3638 for ac_prog in perl
3639 do
3640   # Extract the first word of "$ac_prog", so it can be a program name with args.
3641 set dummy $ac_prog; ac_word=$2
3642 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3643 $as_echo_n "checking for $ac_word... " >&6; }
3644 if test "${ac_cv_path_PERLPATH+set}" = set; then
3645   $as_echo_n "(cached) " >&6
3646 else
3647   case $PERLPATH in
3648   [\\/]* | ?:[\\/]*)
3649   ac_cv_path_PERLPATH="$PERLPATH" # Let the user override the test with a path.
3650   ;;
3651   *)
3652   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3653 for as_dir in $PATH
3654 do
3655   IFS=$as_save_IFS
3656   test -z "$as_dir" && as_dir=.
3657   for ac_exec_ext in '' $ac_executable_extensions; do
3658   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3659     ac_cv_path_PERLPATH="$as_dir/$ac_word$ac_exec_ext"
3660     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3661     break 2
3662   fi
3663 done
3664 done
3665 IFS=$as_save_IFS
3666
3667   ;;
3668 esac
3669 fi
3670 PERLPATH=$ac_cv_path_PERLPATH
3671 if test -n "$PERLPATH"; then
3672   { $as_echo "$as_me:$LINENO: result: $PERLPATH" >&5
3673 $as_echo "$PERLPATH" >&6; }
3674 else
3675   { $as_echo "$as_me:$LINENO: result: no" >&5
3676 $as_echo "no" >&6; }
3677 fi
3678
3679
3680   test -n "$PERLPATH" && break
3681 done
3682
3683
3684
3685 # Check whether --with-Xaw3d was given.
3686 if test "${with_Xaw3d+set}" = set; then
3687   withval=$with_Xaw3d; cat >>confdefs.h <<\_ACEOF
3688 #define USE_XAW3D 1
3689 _ACEOF
3690
3691    XAW_LIBS="-lXaw3d"
3692 else
3693   XAW_LIBS="-lXaw"
3694 fi
3695
3696
3697
3698
3699 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3700 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3701 if test "${ac_cv_path_GREP+set}" = set; then
3702   $as_echo_n "(cached) " >&6
3703 else
3704   if test -z "$GREP"; then
3705   ac_path_GREP_found=false
3706   # Loop through the user's path and test for each of PROGNAME-LIST
3707   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3708 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3709 do
3710   IFS=$as_save_IFS
3711   test -z "$as_dir" && as_dir=.
3712   for ac_prog in grep ggrep; do
3713     for ac_exec_ext in '' $ac_executable_extensions; do
3714       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3715       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3716 # Check for GNU ac_path_GREP and select it if it is found.
3717   # Check for GNU $ac_path_GREP
3718 case `"$ac_path_GREP" --version 2>&1` in
3719 *GNU*)
3720   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3721 *)
3722   ac_count=0
3723   $as_echo_n 0123456789 >"conftest.in"
3724   while :
3725   do
3726     cat "conftest.in" "conftest.in" >"conftest.tmp"
3727     mv "conftest.tmp" "conftest.in"
3728     cp "conftest.in" "conftest.nl"
3729     $as_echo 'GREP' >> "conftest.nl"
3730     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3731     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3732     ac_count=`expr $ac_count + 1`
3733     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3734       # Best one so far, save it but keep looking for a better one
3735       ac_cv_path_GREP="$ac_path_GREP"
3736       ac_path_GREP_max=$ac_count
3737     fi
3738     # 10*(2^10) chars as input seems more than enough
3739     test $ac_count -gt 10 && break
3740   done
3741   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3742 esac
3743
3744       $ac_path_GREP_found && break 3
3745     done
3746   done
3747 done
3748 IFS=$as_save_IFS
3749   if test -z "$ac_cv_path_GREP"; then
3750     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3751 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3752    { (exit 1); exit 1; }; }
3753   fi
3754 else
3755   ac_cv_path_GREP=$GREP
3756 fi
3757
3758 fi
3759 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3760 $as_echo "$ac_cv_path_GREP" >&6; }
3761  GREP="$ac_cv_path_GREP"
3762
3763
3764 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3765 $as_echo_n "checking for egrep... " >&6; }
3766 if test "${ac_cv_path_EGREP+set}" = set; then
3767   $as_echo_n "(cached) " >&6
3768 else
3769   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3770    then ac_cv_path_EGREP="$GREP -E"
3771    else
3772      if test -z "$EGREP"; then
3773   ac_path_EGREP_found=false
3774   # Loop through the user's path and test for each of PROGNAME-LIST
3775   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3776 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3777 do
3778   IFS=$as_save_IFS
3779   test -z "$as_dir" && as_dir=.
3780   for ac_prog in egrep; do
3781     for ac_exec_ext in '' $ac_executable_extensions; do
3782       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3783       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3784 # Check for GNU ac_path_EGREP and select it if it is found.
3785   # Check for GNU $ac_path_EGREP
3786 case `"$ac_path_EGREP" --version 2>&1` in
3787 *GNU*)
3788   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3789 *)
3790   ac_count=0
3791   $as_echo_n 0123456789 >"conftest.in"
3792   while :
3793   do
3794     cat "conftest.in" "conftest.in" >"conftest.tmp"
3795     mv "conftest.tmp" "conftest.in"
3796     cp "conftest.in" "conftest.nl"
3797     $as_echo 'EGREP' >> "conftest.nl"
3798     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3799     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3800     ac_count=`expr $ac_count + 1`
3801     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3802       # Best one so far, save it but keep looking for a better one
3803       ac_cv_path_EGREP="$ac_path_EGREP"
3804       ac_path_EGREP_max=$ac_count
3805     fi
3806     # 10*(2^10) chars as input seems more than enough
3807     test $ac_count -gt 10 && break
3808   done
3809   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3810 esac
3811
3812       $ac_path_EGREP_found && break 3
3813     done
3814   done
3815 done
3816 IFS=$as_save_IFS
3817   if test -z "$ac_cv_path_EGREP"; then
3818     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3819 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3820    { (exit 1); exit 1; }; }
3821   fi
3822 else
3823   ac_cv_path_EGREP=$EGREP
3824 fi
3825
3826    fi
3827 fi
3828 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3829 $as_echo "$ac_cv_path_EGREP" >&6; }
3830  EGREP="$ac_cv_path_EGREP"
3831
3832
3833 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3834 $as_echo_n "checking for ANSI C header files... " >&6; }
3835 if test "${ac_cv_header_stdc+set}" = set; then
3836   $as_echo_n "(cached) " >&6
3837 else
3838   cat >conftest.$ac_ext <<_ACEOF
3839 /* confdefs.h.  */
3840 _ACEOF
3841 cat confdefs.h >>conftest.$ac_ext
3842 cat >>conftest.$ac_ext <<_ACEOF
3843 /* end confdefs.h.  */
3844 #include <stdlib.h>
3845 #include <stdarg.h>
3846 #include <string.h>
3847 #include <float.h>
3848
3849 int
3850 main ()
3851 {
3852
3853   ;
3854   return 0;
3855 }
3856 _ACEOF
3857 rm -f conftest.$ac_objext
3858 if { (ac_try="$ac_compile"
3859 case "(($ac_try" in
3860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3861   *) ac_try_echo=$ac_try;;
3862 esac
3863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3864 $as_echo "$ac_try_echo") >&5
3865   (eval "$ac_compile") 2>conftest.er1
3866   ac_status=$?
3867   grep -v '^ *+' conftest.er1 >conftest.err
3868   rm -f conftest.er1
3869   cat conftest.err >&5
3870   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871   (exit $ac_status); } && {
3872          test -z "$ac_c_werror_flag" ||
3873          test ! -s conftest.err
3874        } && test -s conftest.$ac_objext; then
3875   ac_cv_header_stdc=yes
3876 else
3877   $as_echo "$as_me: failed program was:" >&5
3878 sed 's/^/| /' conftest.$ac_ext >&5
3879
3880         ac_cv_header_stdc=no
3881 fi
3882
3883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3884
3885 if test $ac_cv_header_stdc = yes; then
3886   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3887   cat >conftest.$ac_ext <<_ACEOF
3888 /* confdefs.h.  */
3889 _ACEOF
3890 cat confdefs.h >>conftest.$ac_ext
3891 cat >>conftest.$ac_ext <<_ACEOF
3892 /* end confdefs.h.  */
3893 #include <string.h>
3894
3895 _ACEOF
3896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3897   $EGREP "memchr" >/dev/null 2>&1; then
3898   :
3899 else
3900   ac_cv_header_stdc=no
3901 fi
3902 rm -f conftest*
3903