r11241: Oct 19, 2006 Version 4.5.2
[ctsim.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60a.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20   setopt NO_GLOB_SUBST
21 else
22   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
23 fi
24 BIN_SH=xpg4; export BIN_SH # for Tru64
25 DUALCASE=1; export DUALCASE # for MKS sh
26
27
28 # PATH needs CR
29 # Avoid depending upon Character Ranges.
30 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33 as_cr_digits='0123456789'
34 as_cr_alnum=$as_cr_Letters$as_cr_digits
35
36 # The user is always right.
37 if test "${PATH_SEPARATOR+set}" != set; then
38   echo "#! /bin/sh" >conf$$.sh
39   echo  "exit 0"   >>conf$$.sh
40   chmod +x conf$$.sh
41   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42     PATH_SEPARATOR=';'
43   else
44     PATH_SEPARATOR=:
45   fi
46   rm -f conf$$.sh
47 fi
48
49 # Support unset when possible.
50 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51   as_unset=unset
52 else
53   as_unset=false
54 fi
55
56
57 # IFS
58 # We need space, tab and new line, in precisely that order.  Quoting is
59 # there to prevent editors from complaining about space-tab.
60 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
61 # splitting by setting IFS to empty value.)
62 as_nl='
63 '
64 IFS=" ""        $as_nl"
65
66 # Find who we are.  Look in the path if we contain no directory separator.
67 case $0 in
68   *[\\/]* ) as_myself=$0 ;;
69   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
70 for as_dir in $PATH
71 do
72   IFS=$as_save_IFS
73   test -z "$as_dir" && as_dir=.
74   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
75 done
76 IFS=$as_save_IFS
77
78      ;;
79 esac
80 # We did not find ourselves, most probably we were run as `sh COMMAND'
81 # in which case we are not to be found in the path.
82 if test "x$as_myself" = x; then
83   as_myself=$0
84 fi
85 if test ! -f "$as_myself"; then
86   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
87   { (exit 1); exit 1; }
88 fi
89
90 # Work around bugs in pre-3.0 UWIN ksh.
91 for as_var in ENV MAIL MAILPATH
92 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
93 done
94 PS1='$ '
95 PS2='> '
96 PS4='+ '
97
98 # NLS nuisances.
99 for as_var in \
100   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
101   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
102   LC_TELEPHONE LC_TIME
103 do
104   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
105     eval $as_var=C; export $as_var
106   else
107     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
108   fi
109 done
110
111 # Required to use basename.
112 if expr a : '\(a\)' >/dev/null 2>&1 &&
113    test "X`expr 00001 : '.*\(...\)'`" = X001; then
114   as_expr=expr
115 else
116   as_expr=false
117 fi
118
119 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
120   as_basename=basename
121 else
122   as_basename=false
123 fi
124
125
126 # Name of the executable.
127 as_me=`$as_basename -- "$0" ||
128 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
129          X"$0" : 'X\(//\)$' \| \
130          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
131 echo X/"$0" |
132     sed '/^.*\/\([^/][^/]*\)\/*$/{
133             s//\1/
134             q
135           }
136           /^X\/\(\/\/\)$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\).*/{
141             s//\1/
142             q
143           }
144           s/.*/./; q'`
145
146 # CDPATH.
147 $as_unset CDPATH
148
149
150 if test "x$CONFIG_SHELL" = x; then
151   if (eval ":") 2>/dev/null; then
152   as_have_required=yes
153 else
154   as_have_required=no
155 fi
156
157   if test $as_have_required = yes &&     (eval ":
158 (as_func_return () {
159   (exit \$1)
160 }
161 as_func_success () {
162   as_func_return 0
163 }
164 as_func_failure () {
165   as_func_return 1
166 }
167 as_func_ret_success () {
168   return 0
169 }
170 as_func_ret_failure () {
171   return 1
172 }
173
174 exitcode=0
175 if as_func_success; then
176   :
177 else
178   exitcode=1
179   echo as_func_success failed.
180 fi
181
182 if as_func_failure; then
183   exitcode=1
184   echo as_func_failure succeeded.
185 fi
186
187 if as_func_ret_success; then
188   :
189 else
190   exitcode=1
191   echo as_func_ret_success failed.
192 fi
193
194 if as_func_ret_failure; then
195   exitcode=1
196   echo as_func_ret_failure succeeded.
197 fi
198
199 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
200   :
201 else
202   exitcode=1
203   echo positional parameters were not saved.
204 fi
205
206 test \$exitcode = 0) || { (exit 1); exit 1; }
207
208 (
209   as_lineno_1=\$LINENO
210   as_lineno_2=\$LINENO
211   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
212   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
213 ") 2> /dev/null; then
214   :
215 else
216   as_candidate_shells=
217     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220   IFS=$as_save_IFS
221   test -z "$as_dir" && as_dir=.
222   case $as_dir in
223          /*)
224            for as_base in sh bash ksh sh5; do
225              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
226            done;;
227        esac
228 done
229 IFS=$as_save_IFS
230
231
232       for as_shell in $as_candidate_shells $SHELL; do
233          # Try only shells that exist, to save several forks.
234          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
235                 { ("$as_shell") 2> /dev/null <<\_ASEOF
236 # Be Bourne compatible
237 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
238   emulate sh
239   NULLCMD=:
240   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
241   # is contrary to our usage.  Disable this feature.
242   alias -g '${1+"$@"}'='"$@"'
243   setopt NO_GLOB_SUBST
244 else
245   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
246 fi
247 BIN_SH=xpg4; export BIN_SH # for Tru64
248 DUALCASE=1; export DUALCASE # for MKS sh
249
250 :
251 _ASEOF
252 }; then
253   CONFIG_SHELL=$as_shell
254                as_have_required=yes
255                if { "$as_shell" 2> /dev/null <<\_ASEOF
256 # Be Bourne compatible
257 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
258   emulate sh
259   NULLCMD=:
260   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
261   # is contrary to our usage.  Disable this feature.
262   alias -g '${1+"$@"}'='"$@"'
263   setopt NO_GLOB_SUBST
264 else
265   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
266 fi
267 BIN_SH=xpg4; export BIN_SH # for Tru64
268 DUALCASE=1; export DUALCASE # for MKS sh
269
270 :
271 (as_func_return () {
272   (exit $1)
273 }
274 as_func_success () {
275   as_func_return 0
276 }
277 as_func_failure () {
278   as_func_return 1
279 }
280 as_func_ret_success () {
281   return 0
282 }
283 as_func_ret_failure () {
284   return 1
285 }
286
287 exitcode=0
288 if as_func_success; then
289   :
290 else
291   exitcode=1
292   echo as_func_success failed.
293 fi
294
295 if as_func_failure; then
296   exitcode=1
297   echo as_func_failure succeeded.
298 fi
299
300 if as_func_ret_success; then
301   :
302 else
303   exitcode=1
304   echo as_func_ret_success failed.
305 fi
306
307 if as_func_ret_failure; then
308   exitcode=1
309   echo as_func_ret_failure succeeded.
310 fi
311
312 if ( set x; as_func_ret_success y && test x = "$1" ); then
313   :
314 else
315   exitcode=1
316   echo positional parameters were not saved.
317 fi
318
319 test $exitcode = 0) || { (exit 1); exit 1; }
320
321 (
322   as_lineno_1=$LINENO
323   as_lineno_2=$LINENO
324   test "x$as_lineno_1" != "x$as_lineno_2" &&
325   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
326
327 _ASEOF
328 }; then
329   break
330 fi
331
332 fi
333
334       done
335
336       if test "x$CONFIG_SHELL" != x; then
337   for as_var in BASH_ENV ENV
338         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
339         done
340         export CONFIG_SHELL
341         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
342 fi
343
344
345     if test $as_have_required = no; then
346   echo This script requires a shell more modern than all the
347       echo shells that I found on your system.  Please install a
348       echo modern shell, or manually run the script under such a
349       echo shell if you do have one.
350       { (exit 1); exit 1; }
351 fi
352
353
354 fi
355
356 fi
357
358
359
360 (eval "as_func_return () {
361   (exit \$1)
362 }
363 as_func_success () {
364   as_func_return 0
365 }
366 as_func_failure () {
367   as_func_return 1
368 }
369 as_func_ret_success () {
370   return 0
371 }
372 as_func_ret_failure () {
373   return 1
374 }
375
376 exitcode=0
377 if as_func_success; then
378   :
379 else
380   exitcode=1
381   echo as_func_success failed.
382 fi
383
384 if as_func_failure; then
385   exitcode=1
386   echo as_func_failure succeeded.
387 fi
388
389 if as_func_ret_success; then
390   :
391 else
392   exitcode=1
393   echo as_func_ret_success failed.
394 fi
395
396 if as_func_ret_failure; then
397   exitcode=1
398   echo as_func_ret_failure succeeded.
399 fi
400
401 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
402   :
403 else
404   exitcode=1
405   echo positional parameters were not saved.
406 fi
407
408 test \$exitcode = 0") || {
409   echo No shell found that supports shell functions.
410   echo Please tell autoconf@gnu.org about your system,
411   echo including any error possibly output before this
412   echo message
413 }
414
415
416
417   as_lineno_1=$LINENO
418   as_lineno_2=$LINENO
419   test "x$as_lineno_1" != "x$as_lineno_2" &&
420   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
421
422   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
423   # uniformly replaced by the line number.  The first 'sed' inserts a
424   # line-number line after each line using $LINENO; the second 'sed'
425   # does the real work.  The second script uses 'N' to pair each
426   # line-number line with the line containing $LINENO, and appends
427   # trailing '-' during substitution so that $LINENO is not a special
428   # case at line end.
429   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
430   # scripts with optimization help from Paolo Bonzini.  Blame Lee
431   # E. McMahon (1931-1989) for sed's syntax.  :-)
432   sed -n '
433     p
434     /[$]LINENO/=
435   ' <$as_myself |
436     sed '
437       s/[$]LINENO.*/&-/
438       t lineno
439       b
440       :lineno
441       N
442       :loop
443       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444       t loop
445       s/-\n.*//
446     ' >$as_me.lineno &&
447   chmod +x "$as_me.lineno" ||
448     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
449    { (exit 1); exit 1; }; }
450
451   # Don't try to exec as it changes $[0], causing all sort of problems
452   # (the dirname of $[0] is not the place where we might find the
453   # original and so on.  Autoconf is especially sensitive to this).
454   . "./$as_me.lineno"
455   # Exit status is that of the last command.
456   exit
457 }
458
459
460 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
461   as_dirname=dirname
462 else
463   as_dirname=false
464 fi
465
466 ECHO_C= ECHO_N= ECHO_T=
467 case `echo -n x` in
468 -n*)
469   case `echo 'x\c'` in
470   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
471   *)   ECHO_C='\c';;
472   esac;;
473 *)
474   ECHO_N='-n';;
475 esac
476
477 if expr a : '\(a\)' >/dev/null 2>&1 &&
478    test "X`expr 00001 : '.*\(...\)'`" = X001; then
479   as_expr=expr
480 else
481   as_expr=false
482 fi
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486   rm -f conf$$.dir/conf$$.file
487 else
488   rm -f conf$$.dir
489   mkdir conf$$.dir
490 fi
491 echo >conf$$.file
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
493   as_ln_s='ln -s'
494   # ... but there are two gotchas:
495   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497   # In both cases, we have to default to `cp -p'.
498   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499     as_ln_s='cp -p'
500 elif ln conf$$.file conf$$ 2>/dev/null; then
501   as_ln_s=ln
502 else
503   as_ln_s='cp -p'
504 fi
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
507
508 if mkdir -p . 2>/dev/null; then
509   as_mkdir_p=:
510 else
511   test -d ./-p && rmdir ./-p
512   as_mkdir_p=false
513 fi
514
515 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
516 # systems may use methods other than mode bits to determine executability.
517 cat >conf$$.file <<_ASEOF
518 #! /bin/sh
519 exit 0
520 _ASEOF
521 chmod +x conf$$.file
522 if test -x conf$$.file >/dev/null 2>&1; then
523   as_executable_p="test -x"
524 else
525   as_executable_p=:
526 fi
527 rm -f conf$$.file
528
529 # Sed expression to map a string onto a valid CPP name.
530 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531
532 # Sed expression to map a string onto a valid variable name.
533 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555 SHELL=${CONFIG_SHELL-/bin/sh}
556
557 # Identity of this package.
558 PACKAGE_NAME=
559 PACKAGE_TARNAME=
560 PACKAGE_VERSION=
561 PACKAGE_STRING=
562 PACKAGE_BUGREPORT=
563
564 ac_unique_file="src/ctsim.cpp"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 #  include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 #  include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
600
601 ac_subst_vars='SHELL
602 PATH_SEPARATOR
603 PACKAGE_NAME
604 PACKAGE_TARNAME
605 PACKAGE_VERSION
606 PACKAGE_STRING
607 PACKAGE_BUGREPORT
608 exec_prefix
609 prefix
610 program_transform_name
611 bindir
612 sbindir
613 libexecdir
614 datarootdir
615 datadir
616 sysconfdir
617 sharedstatedir
618 localstatedir
619 includedir
620 oldincludedir
621 docdir
622 infodir
623 htmldir
624 dvidir
625 pdfdir
626 psdir
627 libdir
628 localedir
629 mandir
630 DEFS
631 ECHO_C
632 ECHO_N
633 ECHO_T
634 LIBS
635 build_alias
636 host_alias
637 target_alias
638 MAINTAINER_MODE_TRUE
639 MAINTAINER_MODE_FALSE
640 MAINT
641 INSTALL_PROGRAM
642 INSTALL_SCRIPT
643 INSTALL_DATA
644 CYGPATH_W
645 PACKAGE
646 VERSION
647 ACLOCAL
648 AUTOCONF
649 AUTOMAKE
650 AUTOHEADER
651 MAKEINFO
652 AMTAR
653 install_sh
654 STRIP
655 INSTALL_STRIP_PROGRAM
656 AWK
657 SET_MAKE
658 am__leading_dot
659 RANLIB
660 CC
661 CFLAGS
662 LDFLAGS
663 CPPFLAGS
664 ac_ct_CC
665 EXEEXT
666 OBJEXT
667 DEPDIR
668 am__include
669 am__quote
670 AMDEP_TRUE
671 AMDEP_FALSE
672 AMDEPBACKSLASH
673 CCDEPMODE
674 am__fastdepCC_TRUE
675 am__fastdepCC_FALSE
676 CXX
677 CXXFLAGS
678 ac_ct_CXX
679 CXXDEPMODE
680 am__fastdepCXX_TRUE
681 am__fastdepCXX_FALSE
682 CPP
683 GREP
684 EGREP
685 wxconfig
686 build
687 build_cpu
688 build_vendor
689 build_os
690 host
691 host_cpu
692 host_vendor
693 host_os
694 INCLUDED_GETOPT_LONG_TRUE
695 INCLUDED_GETOPT_LONG_FALSE
696 DEBUG_TRUE
697 DEBUG_FALSE
698 lamdir
699 mpienable
700 cgibindir
701 cgibinurl
702 webdatadir
703 webdataurl
704 cgiprograms
705 htmldata
706 USE_HTML_TRUE
707 USE_HTML_FALSE
708 webenabled
709 USE_LAM_TRUE
710 USE_LAM_FALSE
711 XMKMF
712 X_CFLAGS
713 X_PRE_LIBS
714 X_LIBS
715 X_EXTRA_LIBS
716 X_TOOLKIT_LIBS
717 X_BASIC_LIBS
718 NO_X_TRUE
719 NO_X_FALSE
720 my_includes
721 HAVE_SGP_TRUE
722 HAVE_SGP_FALSE
723 wxcflags
724 wxlibs
725 HAVE_WXWINDOWS_TRUE
726 HAVE_WXWINDOWS_FALSE
727 ctlibs
728 lamprograms
729 lamdefs
730 LIBOBJS
731 LTLIBOBJS'
732 ac_subst_files=''
733       ac_precious_vars='build_alias
734 host_alias
735 target_alias
736 CC
737 CFLAGS
738 LDFLAGS
739 CPPFLAGS
740 CXX
741 CXXFLAGS
742 CCC
743 CPP
744 XMKMF'
745
746
747 # Initialize some variables set by options.
748 ac_init_help=
749 ac_init_version=false
750 # The variables have the same names as the options, with
751 # dashes changed to underlines.
752 cache_file=/dev/null
753 exec_prefix=NONE
754 no_create=
755 no_recursion=
756 prefix=NONE
757 program_prefix=NONE
758 program_suffix=NONE
759 program_transform_name=s,x,x,
760 silent=
761 site=
762 srcdir=
763 verbose=
764 x_includes=NONE
765 x_libraries=NONE
766
767 # Installation directory options.
768 # These are left unexpanded so users can "make install exec_prefix=/foo"
769 # and all the variables that are supposed to be based on exec_prefix
770 # by default will actually change.
771 # Use braces instead of parens because sh, perl, etc. also accept them.
772 # (The list follows the same order as the GNU Coding Standards.)
773 bindir='${exec_prefix}/bin'
774 sbindir='${exec_prefix}/sbin'
775 libexecdir='${exec_prefix}/libexec'
776 datarootdir='${prefix}/share'
777 datadir='${datarootdir}'
778 sysconfdir='${prefix}/etc'
779 sharedstatedir='${prefix}/com'
780 localstatedir='${prefix}/var'
781 includedir='${prefix}/include'
782 oldincludedir='/usr/include'
783 docdir='${datarootdir}/doc/${PACKAGE}'
784 infodir='${datarootdir}/info'
785 htmldir='${docdir}'
786 dvidir='${docdir}'
787 pdfdir='${docdir}'
788 psdir='${docdir}'
789 libdir='${exec_prefix}/lib'
790 localedir='${datarootdir}/locale'
791 mandir='${datarootdir}/man'
792
793 ac_prev=
794 ac_dashdash=
795 for ac_option
796 do
797   # If the previous option needs an argument, assign it.
798   if test -n "$ac_prev"; then
799     eval $ac_prev=\$ac_option
800     ac_prev=
801     continue
802   fi
803
804   case $ac_option in
805   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
806   *)    ac_optarg=yes ;;
807   esac
808
809   # Accept the important Cygnus configure options, so we can diagnose typos.
810
811   case $ac_dashdash$ac_option in
812   --)
813     ac_dashdash=yes ;;
814
815   -bindir | --bindir | --bindi | --bind | --bin | --bi)
816     ac_prev=bindir ;;
817   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
818     bindir=$ac_optarg ;;
819
820   -build | --build | --buil | --bui | --bu)
821     ac_prev=build_alias ;;
822   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
823     build_alias=$ac_optarg ;;
824
825   -cache-file | --cache-file | --cache-fil | --cache-fi \
826   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
827     ac_prev=cache_file ;;
828   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
829   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
830     cache_file=$ac_optarg ;;
831
832   --config-cache | -C)
833     cache_file=config.cache ;;
834
835   -datadir | --datadir | --datadi | --datad)
836     ac_prev=datadir ;;
837   -datadir=* | --datadir=* | --datadi=* | --datad=*)
838     datadir=$ac_optarg ;;
839
840   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
841   | --dataroo | --dataro | --datar)
842     ac_prev=datarootdir ;;
843   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
844   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
845     datarootdir=$ac_optarg ;;
846
847   -disable-* | --disable-*)
848     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
849     # Reject names that are not valid shell variable names.
850     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
851       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
852    { (exit 1); exit 1; }; }
853     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
854     eval enable_$ac_feature=no ;;
855
856   -docdir | --docdir | --docdi | --doc | --do)
857     ac_prev=docdir ;;
858   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
859     docdir=$ac_optarg ;;
860
861   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
862     ac_prev=dvidir ;;
863   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
864     dvidir=$ac_optarg ;;
865
866   -enable-* | --enable-*)
867     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
868     # Reject names that are not valid shell variable names.
869     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
870       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
871    { (exit 1); exit 1; }; }
872     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
873     eval enable_$ac_feature=\$ac_optarg ;;
874
875   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
876   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
877   | --exec | --exe | --ex)
878     ac_prev=exec_prefix ;;
879   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
880   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
881   | --exec=* | --exe=* | --ex=*)
882     exec_prefix=$ac_optarg ;;
883
884   -gas | --gas | --ga | --g)
885     # Obsolete; use --with-gas.
886     with_gas=yes ;;
887
888   -help | --help | --hel | --he | -h)
889     ac_init_help=long ;;
890   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
891     ac_init_help=recursive ;;
892   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
893     ac_init_help=short ;;
894
895   -host | --host | --hos | --ho)
896     ac_prev=host_alias ;;
897   -host=* | --host=* | --hos=* | --ho=*)
898     host_alias=$ac_optarg ;;
899
900   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
901     ac_prev=htmldir ;;
902   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
903   | --ht=*)
904     htmldir=$ac_optarg ;;
905
906   -includedir | --includedir | --includedi | --included | --include \
907   | --includ | --inclu | --incl | --inc)
908     ac_prev=includedir ;;
909   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
910   | --includ=* | --inclu=* | --incl=* | --inc=*)
911     includedir=$ac_optarg ;;
912
913   -infodir | --infodir | --infodi | --infod | --info | --inf)
914     ac_prev=infodir ;;
915   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
916     infodir=$ac_optarg ;;
917
918   -libdir | --libdir | --libdi | --libd)
919     ac_prev=libdir ;;
920   -libdir=* | --libdir=* | --libdi=* | --libd=*)
921     libdir=$ac_optarg ;;
922
923   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
924   | --libexe | --libex | --libe)
925     ac_prev=libexecdir ;;
926   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
927   | --libexe=* | --libex=* | --libe=*)
928     libexecdir=$ac_optarg ;;
929
930   -localedir | --localedir | --localedi | --localed | --locale)
931     ac_prev=localedir ;;
932   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
933     localedir=$ac_optarg ;;
934
935   -localstatedir | --localstatedir | --localstatedi | --localstated \
936   | --localstate | --localstat | --localsta | --localst | --locals)
937     ac_prev=localstatedir ;;
938   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
939   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
940     localstatedir=$ac_optarg ;;
941
942   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
943     ac_prev=mandir ;;
944   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
945     mandir=$ac_optarg ;;
946
947   -nfp | --nfp | --nf)
948     # Obsolete; use --without-fp.
949     with_fp=no ;;
950
951   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
952   | --no-cr | --no-c | -n)
953     no_create=yes ;;
954
955   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
956   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
957     no_recursion=yes ;;
958
959   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
960   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
961   | --oldin | --oldi | --old | --ol | --o)
962     ac_prev=oldincludedir ;;
963   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
964   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
965   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
966     oldincludedir=$ac_optarg ;;
967
968   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
969     ac_prev=prefix ;;
970   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
971     prefix=$ac_optarg ;;
972
973   -program-prefix | --program-prefix | --program-prefi | --program-pref \
974   | --program-pre | --program-pr | --program-p)
975     ac_prev=program_prefix ;;
976   -program-prefix=* | --program-prefix=* | --program-prefi=* \
977   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
978     program_prefix=$ac_optarg ;;
979
980   -program-suffix | --program-suffix | --program-suffi | --program-suff \
981   | --program-suf | --program-su | --program-s)
982     ac_prev=program_suffix ;;
983   -program-suffix=* | --program-suffix=* | --program-suffi=* \
984   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
985     program_suffix=$ac_optarg ;;
986
987   -program-transform-name | --program-transform-name \
988   | --program-transform-nam | --program-transform-na \
989   | --program-transform-n | --program-transform- \
990   | --program-transform | --program-transfor \
991   | --program-transfo | --program-transf \
992   | --program-trans | --program-tran \
993   | --progr-tra | --program-tr | --program-t)
994     ac_prev=program_transform_name ;;
995   -program-transform-name=* | --program-transform-name=* \
996   | --program-transform-nam=* | --program-transform-na=* \
997   | --program-transform-n=* | --program-transform-=* \
998   | --program-transform=* | --program-transfor=* \
999   | --program-transfo=* | --program-transf=* \
1000   | --program-trans=* | --program-tran=* \
1001   | --progr-tra=* | --program-tr=* | --program-t=*)
1002     program_transform_name=$ac_optarg ;;
1003
1004   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1005     ac_prev=pdfdir ;;
1006   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1007     pdfdir=$ac_optarg ;;
1008
1009   -psdir | --psdir | --psdi | --psd | --ps)
1010     ac_prev=psdir ;;
1011   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1012     psdir=$ac_optarg ;;
1013
1014   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1015   | -silent | --silent | --silen | --sile | --sil)
1016     silent=yes ;;
1017
1018   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1019     ac_prev=sbindir ;;
1020   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1021   | --sbi=* | --sb=*)
1022     sbindir=$ac_optarg ;;
1023
1024   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1025   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1026   | --sharedst | --shareds | --shared | --share | --shar \
1027   | --sha | --sh)
1028     ac_prev=sharedstatedir ;;
1029   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1030   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1031   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1032   | --sha=* | --sh=*)
1033     sharedstatedir=$ac_optarg ;;
1034
1035   -site | --site | --sit)
1036     ac_prev=site ;;
1037   -site=* | --site=* | --sit=*)
1038     site=$ac_optarg ;;
1039
1040   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1041     ac_prev=srcdir ;;
1042   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1043     srcdir=$ac_optarg ;;
1044
1045   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1046   | --syscon | --sysco | --sysc | --sys | --sy)
1047     ac_prev=sysconfdir ;;
1048   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1049   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1050     sysconfdir=$ac_optarg ;;
1051
1052   -target | --target | --targe | --targ | --tar | --ta | --t)
1053     ac_prev=target_alias ;;
1054   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1055     target_alias=$ac_optarg ;;
1056
1057   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1058     verbose=yes ;;
1059
1060   -version | --version | --versio | --versi | --vers | -V)
1061     ac_init_version=: ;;
1062
1063   -with-* | --with-*)
1064     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1065     # Reject names that are not valid shell variable names.
1066     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1067       { echo "$as_me: error: invalid package name: $ac_package" >&2
1068    { (exit 1); exit 1; }; }
1069     ac_package=`echo $ac_package| sed 's/-/_/g'`
1070     eval with_$ac_package=\$ac_optarg ;;
1071
1072   -without-* | --without-*)
1073     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1074     # Reject names that are not valid shell variable names.
1075     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1076       { echo "$as_me: error: invalid package name: $ac_package" >&2
1077    { (exit 1); exit 1; }; }
1078     ac_package=`echo $ac_package | sed 's/-/_/g'`
1079     eval with_$ac_package=no ;;
1080
1081   --x)
1082     # Obsolete; use --with-x.
1083     with_x=yes ;;
1084
1085   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1086   | --x-incl | --x-inc | --x-in | --x-i)
1087     ac_prev=x_includes ;;
1088   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1089   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1090     x_includes=$ac_optarg ;;
1091
1092   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1093   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1094     ac_prev=x_libraries ;;
1095   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1096   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1097     x_libraries=$ac_optarg ;;
1098
1099   -*) { echo "$as_me: error: unrecognized option: $ac_option
1100 Try \`$0 --help' for more information." >&2
1101    { (exit 1); exit 1; }; }
1102     ;;
1103
1104   *=*)
1105     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1106     # Reject names that are not valid shell variable names.
1107     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1108       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1109    { (exit 1); exit 1; }; }
1110     eval $ac_envvar=\$ac_optarg
1111     export $ac_envvar ;;
1112
1113   *)
1114     # FIXME: should be removed in autoconf 3.0.
1115     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1116     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1117       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1118     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1119     ;;
1120
1121   esac
1122 done
1123
1124 if test -n "$ac_prev"; then
1125   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1126   { echo "$as_me: error: missing argument to $ac_option" >&2
1127    { (exit 1); exit 1; }; }
1128 fi
1129
1130 # Be sure to have absolute directory names.
1131 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1132                 datadir sysconfdir sharedstatedir localstatedir includedir \
1133                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1134                 libdir localedir mandir
1135 do
1136   eval ac_val=\$$ac_var
1137   case $ac_val in
1138     [\\/$]* | ?:[\\/]* )  continue;;
1139     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1140   esac
1141   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1142    { (exit 1); exit 1; }; }
1143 done
1144
1145 # There might be people who depend on the old broken behavior: `$host'
1146 # used to hold the argument of --host etc.
1147 # FIXME: To remove some day.
1148 build=$build_alias
1149 host=$host_alias
1150 target=$target_alias
1151
1152 # FIXME: To remove some day.
1153 if test "x$host_alias" != x; then
1154   if test "x$build_alias" = x; then
1155     cross_compiling=maybe
1156     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1157     If a cross compiler is detected then cross compile mode will be used." >&2
1158   elif test "x$build_alias" != "x$host_alias"; then
1159     cross_compiling=yes
1160   fi
1161 fi
1162
1163 ac_tool_prefix=
1164 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1165
1166 test "$silent" = yes && exec 6>/dev/null
1167
1168
1169 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1170 ac_ls_di=`ls -di .` &&
1171 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1172   { echo "$as_me: error: Working directory cannot be determined" >&2
1173    { (exit 1); exit 1; }; }
1174 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1175   { echo "$as_me: error: pwd does not report name of working directory" >&2
1176    { (exit 1); exit 1; }; }
1177
1178
1179 # Find the source files, if location was not specified.
1180 if test -z "$srcdir"; then
1181   ac_srcdir_defaulted=yes
1182   # Try the directory containing this script, then the parent directory.
1183   ac_confdir=`$as_dirname -- "$0" ||
1184 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1185          X"$0" : 'X\(//\)[^/]' \| \
1186          X"$0" : 'X\(//\)$' \| \
1187          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1188 echo X"$0" |
1189     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1190             s//\1/
1191             q
1192           }
1193           /^X\(\/\/\)[^/].*/{
1194             s//\1/
1195             q
1196           }
1197           /^X\(\/\/\)$/{
1198             s//\1/
1199             q
1200           }
1201           /^X\(\/\).*/{
1202             s//\1/
1203             q
1204           }
1205           s/.*/./; q'`
1206   srcdir=$ac_confdir
1207   if test ! -r "$srcdir/$ac_unique_file"; then
1208     srcdir=..
1209   fi
1210 else
1211   ac_srcdir_defaulted=no
1212 fi
1213 if test ! -r "$srcdir/$ac_unique_file"; then
1214   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1215   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1216    { (exit 1); exit 1; }; }
1217 fi
1218 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1219 ac_abs_confdir=`(
1220         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1221    { (exit 1); exit 1; }; }
1222         pwd)`
1223 # When building in place, set srcdir=.
1224 if test "$ac_abs_confdir" = "$ac_pwd"; then
1225   srcdir=.
1226 fi
1227 # Remove unnecessary trailing slashes from srcdir.
1228 # Double slashes in file names in object file debugging info
1229 # mess up M-x gdb in Emacs.
1230 case $srcdir in
1231 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1232 esac
1233 for ac_var in $ac_precious_vars; do
1234   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1235   eval ac_env_${ac_var}_value=\$${ac_var}
1236   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1237   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1238 done
1239
1240 #
1241 # Report the --help message.
1242 #
1243 if test "$ac_init_help" = "long"; then
1244   # Omit some internal or obsolete options to make the list less imposing.
1245   # This message is too long to be a string in the A/UX 3.1 sh.
1246   cat <<_ACEOF
1247 \`configure' configures this package to adapt to many kinds of systems.
1248
1249 Usage: $0 [OPTION]... [VAR=VALUE]...
1250
1251 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1252 VAR=VALUE.  See below for descriptions of some of the useful variables.
1253
1254 Defaults for the options are specified in brackets.
1255
1256 Configuration:
1257   -h, --help              display this help and exit
1258       --help=short        display options specific to this package
1259       --help=recursive    display the short help of all the included packages
1260   -V, --version           display version information and exit
1261   -q, --quiet, --silent   do not print \`checking...' messages
1262       --cache-file=FILE   cache test results in FILE [disabled]
1263   -C, --config-cache      alias for \`--cache-file=config.cache'
1264   -n, --no-create         do not create output files
1265       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1266
1267 Installation directories:
1268   --prefix=PREFIX         install architecture-independent files in PREFIX
1269                           [$ac_default_prefix]
1270   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1271                           [PREFIX]
1272
1273 By default, \`make install' will install all the files in
1274 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1275 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1276 for instance \`--prefix=\$HOME'.
1277
1278 For better control, use the options below.
1279
1280 Fine tuning of the installation directories:
1281   --bindir=DIR           user executables [EPREFIX/bin]
1282   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1283   --libexecdir=DIR       program executables [EPREFIX/libexec]
1284   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1285   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1286   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1287   --libdir=DIR           object code libraries [EPREFIX/lib]
1288   --includedir=DIR       C header files [PREFIX/include]
1289   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1290   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1291   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1292   --infodir=DIR          info documentation [DATAROOTDIR/info]
1293   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1294   --mandir=DIR           man documentation [DATAROOTDIR/man]
1295   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1296   --htmldir=DIR          html documentation [DOCDIR]
1297   --dvidir=DIR           dvi documentation [DOCDIR]
1298   --pdfdir=DIR           pdf documentation [DOCDIR]
1299   --psdir=DIR            ps documentation [DOCDIR]
1300 _ACEOF
1301
1302   cat <<\_ACEOF
1303
1304 Program names:
1305   --program-prefix=PREFIX            prepend PREFIX to installed program names
1306   --program-suffix=SUFFIX            append SUFFIX to installed program names
1307   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1308
1309 X features:
1310   --x-includes=DIR    X include files are in DIR
1311   --x-libraries=DIR   X library files are in DIR
1312
1313 System types:
1314   --build=BUILD     configure for building on BUILD [guessed]
1315   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1316 _ACEOF
1317 fi
1318
1319 if test -n "$ac_init_help"; then
1320
1321   cat <<\_ACEOF
1322
1323 Optional Features:
1324   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1325   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1326   --enable-maintainer-mode enable make rules and dependencies not useful
1327                           (and sometimes confusing) to the casual installer
1328   --disable-dependency-tracking Speeds up one-time builds
1329   --enable-dependency-tracking  Do not reject slow dependency extractors
1330   --enable-debug          Turn on debugging
1331   --enable-verbose-warnings
1332                           Enable verbose compiler warnings.
1333   --enable-static
1334                             Enable static executables.
1335   --enable-dmalloc        Use dmalloc memory allocation
1336   --enable-efence        Use ElectricFence memory allocation
1337
1338 Optional Packages:
1339   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1340   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1341   --with-lam=PATH         Set path of LAM MPI
1342   --with-ctn=PATH         Set path of CTN DICOM library
1343   --with-mcpu=CPU         Set name of CPU for gcc -mcpu
1344   --with-cgibin-dir=PATH  Set path of CGI binaries directory
1345   --with-cgibin-url=PATH  Set URL path of CGI binaries
1346   --with-webdata-dir=PATH Set path of webdata
1347   --with-webdata-url=PATH Set URL path of webdata
1348   --with-html-dir=PATH    Set directory of html files
1349   --with-x                use the X Window System
1350
1351 Some influential environment variables:
1352   CC          C compiler command
1353   CFLAGS      C compiler flags
1354   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1355               nonstandard directory <lib dir>
1356   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1357               you have headers in a nonstandard directory <include dir>
1358   CXX         C++ compiler command
1359   CXXFLAGS    C++ compiler flags
1360   CPP         C preprocessor
1361   XMKMF       Path to xmkmf, Makefile generator for X Window System
1362
1363 Use these variables to override the choices made by `configure' or to help
1364 it to find libraries and programs with nonstandard names/locations.
1365
1366 _ACEOF
1367 ac_status=$?
1368 fi
1369
1370 if test "$ac_init_help" = "recursive"; then
1371   # If there are subdirs, report their specific --help.
1372   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1373     test -d "$ac_dir" || continue
1374     ac_builddir=.
1375
1376 case "$ac_dir" in
1377 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1378 *)
1379   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1380   # A ".." for each directory in $ac_dir_suffix.
1381   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1382   case $ac_top_builddir_sub in
1383   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1384   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1385   esac ;;
1386 esac
1387 ac_abs_top_builddir=$ac_pwd
1388 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1389 # for backward compatibility:
1390 ac_top_builddir=$ac_top_build_prefix
1391
1392 case $srcdir in
1393   .)  # We are building in place.
1394     ac_srcdir=.
1395     ac_top_srcdir=$ac_top_builddir_sub
1396     ac_abs_top_srcdir=$ac_pwd ;;
1397   [\\/]* | ?:[\\/]* )  # Absolute name.
1398     ac_srcdir=$srcdir$ac_dir_suffix;
1399     ac_top_srcdir=$srcdir
1400     ac_abs_top_srcdir=$srcdir ;;
1401   *) # Relative name.
1402     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1403     ac_top_srcdir=$ac_top_build_prefix$srcdir
1404     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1405 esac
1406 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1407
1408     cd "$ac_dir" || { ac_status=$?; continue; }
1409     # Check for guested configure.
1410     if test -f "$ac_srcdir/configure.gnu"; then
1411       echo &&
1412       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1413     elif test -f "$ac_srcdir/configure"; then
1414       echo &&
1415       $SHELL "$ac_srcdir/configure" --help=recursive
1416     else
1417       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1418     fi || ac_status=$?
1419     cd "$ac_pwd" || { ac_status=$?; break; }
1420   done
1421 fi
1422
1423 test -n "$ac_init_help" && exit $ac_status
1424 if $ac_init_version; then
1425   cat <<\_ACEOF
1426 configure
1427 generated by GNU Autoconf 2.60a
1428
1429 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1430 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1431 This configure script is free software; the Free Software Foundation
1432 gives unlimited permission to copy, distribute and modify it.
1433 _ACEOF
1434   exit
1435 fi
1436 cat >config.log <<_ACEOF
1437 This file contains any messages produced by compilers while
1438 running configure, to aid debugging if configure makes a mistake.
1439
1440 It was created by $as_me, which was
1441 generated by GNU Autoconf 2.60a.  Invocation command line was
1442
1443   $ $0 $@
1444
1445 _ACEOF
1446 exec 5>>config.log
1447 {
1448 cat <<_ASUNAME
1449 ## --------- ##
1450 ## Platform. ##
1451 ## --------- ##
1452
1453 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1454 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1455 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1456 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1457 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1458
1459 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1460 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1461
1462 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1463 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1464 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1465 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1466 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1467 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1468 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1469
1470 _ASUNAME
1471
1472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1473 for as_dir in $PATH
1474 do
1475   IFS=$as_save_IFS
1476   test -z "$as_dir" && as_dir=.
1477   echo "PATH: $as_dir"
1478 done
1479 IFS=$as_save_IFS
1480
1481 } >&5
1482
1483 cat >&5 <<_ACEOF
1484
1485
1486 ## ----------- ##
1487 ## Core tests. ##
1488 ## ----------- ##
1489
1490 _ACEOF
1491
1492
1493 # Keep a trace of the command line.
1494 # Strip out --no-create and --no-recursion so they do not pile up.
1495 # Strip out --silent because we don't want to record it for future runs.
1496 # Also quote any args containing shell meta-characters.
1497 # Make two passes to allow for proper duplicate-argument suppression.
1498 ac_configure_args=
1499 ac_configure_args0=
1500 ac_configure_args1=
1501 ac_must_keep_next=false
1502 for ac_pass in 1 2
1503 do
1504   for ac_arg
1505   do
1506     case $ac_arg in
1507     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1508     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1509     | -silent | --silent | --silen | --sile | --sil)
1510       continue ;;
1511     *\'*)
1512       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1513     esac
1514     case $ac_pass in
1515     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1516     2)
1517       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1518       if test $ac_must_keep_next = true; then
1519         ac_must_keep_next=false # Got value, back to normal.
1520       else
1521         case $ac_arg in
1522           *=* | --config-cache | -C | -disable-* | --disable-* \
1523           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1524           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1525           | -with-* | --with-* | -without-* | --without-* | --x)
1526             case "$ac_configure_args0 " in
1527               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1528             esac
1529             ;;
1530           -* ) ac_must_keep_next=true ;;
1531         esac
1532       fi
1533       ac_configure_args="$ac_configure_args '$ac_arg'"
1534       ;;
1535     esac
1536   done
1537 done
1538 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1539 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1540
1541 # When interrupted or exit'd, cleanup temporary files, and complete
1542 # config.log.  We remove comments because anyway the quotes in there
1543 # would cause problems or look ugly.
1544 # WARNING: Use '\'' to represent an apostrophe within the trap.
1545 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1546 trap 'exit_status=$?
1547   # Save into config.log some information that might help in debugging.
1548   {
1549     echo
1550
1551     cat <<\_ASBOX
1552 ## ---------------- ##
1553 ## Cache variables. ##
1554 ## ---------------- ##
1555 _ASBOX
1556     echo
1557     # The following way of writing the cache mishandles newlines in values,
1558 (
1559   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1560     eval ac_val=\$$ac_var
1561     case $ac_val in #(
1562     *${as_nl}*)
1563       case $ac_var in #(
1564       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1565 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1566       esac
1567       case $ac_var in #(
1568       _ | IFS | as_nl) ;; #(
1569       *) $as_unset $ac_var ;;
1570       esac ;;
1571     esac
1572   done
1573   (set) 2>&1 |
1574     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1575     *${as_nl}ac_space=\ *)
1576       sed -n \
1577         "s/'\''/'\''\\\\'\'''\''/g;
1578           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1579       ;; #(
1580     *)
1581       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1582       ;;
1583     esac |
1584     sort
1585 )
1586     echo
1587
1588     cat <<\_ASBOX
1589 ## ----------------- ##
1590 ## Output variables. ##
1591 ## ----------------- ##
1592 _ASBOX
1593     echo
1594     for ac_var in $ac_subst_vars
1595     do
1596       eval ac_val=\$$ac_var
1597       case $ac_val in
1598       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1599       esac
1600       echo "$ac_var='\''$ac_val'\''"
1601     done | sort
1602     echo
1603
1604     if test -n "$ac_subst_files"; then
1605       cat <<\_ASBOX
1606 ## ------------------- ##
1607 ## File substitutions. ##
1608 ## ------------------- ##
1609 _ASBOX
1610       echo
1611       for ac_var in $ac_subst_files
1612       do
1613         eval ac_val=\$$ac_var
1614         case $ac_val in
1615         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1616         esac
1617         echo "$ac_var='\''$ac_val'\''"
1618       done | sort
1619       echo
1620     fi
1621
1622     if test -s confdefs.h; then
1623       cat <<\_ASBOX
1624 ## ----------- ##
1625 ## confdefs.h. ##
1626 ## ----------- ##
1627 _ASBOX
1628       echo
1629       cat confdefs.h
1630       echo
1631     fi
1632     test "$ac_signal" != 0 &&
1633       echo "$as_me: caught signal $ac_signal"
1634     echo "$as_me: exit $exit_status"
1635   } >&5
1636   rm -f core *.core core.conftest.* &&
1637     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1638     exit $exit_status
1639 ' 0
1640 for ac_signal in 1 2 13 15; do
1641   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1642 done
1643 ac_signal=0
1644
1645 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1646 rm -f -r conftest* confdefs.h
1647
1648 # Predefined preprocessor variables.
1649
1650 cat >>confdefs.h <<_ACEOF
1651 #define PACKAGE_NAME "$PACKAGE_NAME"
1652 _ACEOF
1653
1654
1655 cat >>confdefs.h <<_ACEOF
1656 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1657 _ACEOF
1658
1659
1660 cat >>confdefs.h <<_ACEOF
1661 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1662 _ACEOF
1663
1664
1665 cat >>confdefs.h <<_ACEOF
1666 #define PACKAGE_STRING "$PACKAGE_STRING"
1667 _ACEOF
1668
1669
1670 cat >>confdefs.h <<_ACEOF
1671 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1672 _ACEOF
1673
1674
1675 # Let the site file select an alternate cache file if it wants to.
1676 # Prefer explicitly selected file to automatically selected ones.
1677 if test -n "$CONFIG_SITE"; then
1678   set x "$CONFIG_SITE"
1679 elif test "x$prefix" != xNONE; then
1680   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1681 else
1682   set x "$ac_default_prefix/share/config.site" \
1683         "$ac_default_prefix/etc/config.site"
1684 fi
1685 shift
1686 for ac_site_file
1687 do
1688   if test -r "$ac_site_file"; then
1689     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1690 echo "$as_me: loading site script $ac_site_file" >&6;}
1691     sed 's/^/| /' "$ac_site_file" >&5
1692     . "$ac_site_file"
1693   fi
1694 done
1695
1696 if test -r "$cache_file"; then
1697   # Some versions of bash will fail to source /dev/null (special
1698   # files actually), so we avoid doing that.
1699   if test -f "$cache_file"; then
1700     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1701 echo "$as_me: loading cache $cache_file" >&6;}
1702     case $cache_file in
1703       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1704       *)                      . "./$cache_file";;
1705     esac
1706   fi
1707 else
1708   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1709 echo "$as_me: creating cache $cache_file" >&6;}
1710   >$cache_file
1711 fi
1712
1713 # Check that the precious variables saved in the cache have kept the same
1714 # value.
1715 ac_cache_corrupted=false
1716 for ac_var in $ac_precious_vars; do
1717   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1718   eval ac_new_set=\$ac_env_${ac_var}_set
1719   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1720   eval ac_new_val=\$ac_env_${ac_var}_value
1721   case $ac_old_set,$ac_new_set in
1722     set,)
1723       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1724 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1725       ac_cache_corrupted=: ;;
1726     ,set)
1727       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1728 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1729       ac_cache_corrupted=: ;;
1730     ,);;
1731     *)
1732       if test "x$ac_old_val" != "x$ac_new_val"; then
1733         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1734 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1735         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1736 echo "$as_me:   former value:  $ac_old_val" >&2;}
1737         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1738 echo "$as_me:   current value: $ac_new_val" >&2;}
1739         ac_cache_corrupted=:
1740       fi;;
1741   esac
1742   # Pass precious variables to config.status.
1743   if test "$ac_new_set" = set; then
1744     case $ac_new_val in
1745     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1746     *) ac_arg=$ac_var=$ac_new_val ;;
1747     esac
1748     case " $ac_configure_args " in
1749       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1750       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1751     esac
1752   fi
1753 done
1754 if $ac_cache_corrupted; then
1755   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1756 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1757   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1758 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1759    { (exit 1); exit 1; }; }
1760 fi
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778 ac_ext=c
1779 ac_cpp='$CPP $CPPFLAGS'
1780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1783
1784
1785
1786 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1787 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
1788     # Check whether --enable-maintainer-mode was given.
1789 if test "${enable_maintainer_mode+set}" = set; then
1790   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1791 else
1792   USE_MAINTAINER_MODE=no
1793 fi
1794
1795   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1796 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
1797
1798
1799 if test $USE_MAINTAINER_MODE = yes; then
1800   MAINTAINER_MODE_TRUE=
1801   MAINTAINER_MODE_FALSE='#'
1802 else
1803   MAINTAINER_MODE_TRUE='#'
1804   MAINTAINER_MODE_FALSE=
1805 fi
1806
1807   MAINT=$MAINTAINER_MODE_TRUE
1808
1809
1810 am__api_version="1.7"
1811 ac_aux_dir=
1812 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1813   if test -f "$ac_dir/install-sh"; then
1814     ac_aux_dir=$ac_dir
1815     ac_install_sh="$ac_aux_dir/install-sh -c"
1816     break
1817   elif test -f "$ac_dir/install.sh"; then
1818     ac_aux_dir=$ac_dir
1819     ac_install_sh="$ac_aux_dir/install.sh -c"
1820     break
1821   elif test -f "$ac_dir/shtool"; then
1822     ac_aux_dir=$ac_dir
1823     ac_install_sh="$ac_aux_dir/shtool install -c"
1824     break
1825   fi
1826 done
1827 if test -z "$ac_aux_dir"; then
1828   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1829 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1830    { (exit 1); exit 1; }; }
1831 fi
1832
1833 # These three variables are undocumented and unsupported,
1834 # and are intended to be withdrawn in a future Autoconf release.
1835 # They can cause serious problems if a builder's source tree is in a directory
1836 # whose full name contains unusual characters.
1837 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1838 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1839 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1840
1841
1842 # Find a good install program.  We prefer a C program (faster),
1843 # so one script is as good as another.  But avoid the broken or
1844 # incompatible versions:
1845 # SysV /etc/install, /usr/sbin/install
1846 # SunOS /usr/etc/install
1847 # IRIX /sbin/install
1848 # AIX /bin/install
1849 # AmigaOS /C/install, which installs bootblocks on floppy discs
1850 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1851 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1852 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1853 # OS/2's system install, which has a completely different semantic
1854 # ./install, which can be erroneously created by make from ./install.sh.
1855 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1856 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1857 if test -z "$INSTALL"; then
1858 if test "${ac_cv_path_install+set}" = set; then
1859   echo $ECHO_N "(cached) $ECHO_C" >&6
1860 else
1861   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1862 for as_dir in $PATH
1863 do
1864   IFS=$as_save_IFS
1865   test -z "$as_dir" && as_dir=.
1866   # Account for people who put trailing slashes in PATH elements.
1867 case $as_dir/ in
1868   ./ | .// | /cC/* | \
1869   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1870   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1871   /usr/ucb/* ) ;;
1872   *)
1873     # OSF1 and SCO ODT 3.0 have their own names for install.
1874     # Don't use installbsd from OSF since it installs stuff as root
1875     # by default.
1876     for ac_prog in ginstall scoinst install; do
1877       for ac_exec_ext in '' $ac_executable_extensions; do
1878         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
1879           if test $ac_prog = install &&
1880             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1881             # AIX install.  It has an incompatible calling convention.
1882             :
1883           elif test $ac_prog = install &&
1884             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1885             # program-specific install script used by HP pwplus--don't use.
1886             :
1887           else
1888             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1889             break 3
1890           fi
1891         fi
1892       done
1893     done
1894     ;;
1895 esac
1896 done
1897 IFS=$as_save_IFS
1898
1899
1900 fi
1901   if test "${ac_cv_path_install+set}" = set; then
1902     INSTALL=$ac_cv_path_install
1903   else
1904     # As a last resort, use the slow shell script.  Don't cache a
1905     # value for INSTALL within a source directory, because that will
1906     # break other packages using the cache if that directory is
1907     # removed, or if the value is a relative name.
1908     INSTALL=$ac_install_sh
1909   fi
1910 fi
1911 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1912 echo "${ECHO_T}$INSTALL" >&6; }
1913
1914 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1915 # It thinks the first close brace ends the variable substitution.
1916 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1917
1918 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1919
1920 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1921
1922 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1923 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1924 # Just in case
1925 sleep 1
1926 echo timestamp > conftest.file
1927 # Do `set' in a subshell so we don't clobber the current shell's
1928 # arguments.  Must try -L first in case configure is actually a
1929 # symlink; some systems play weird games with the mod time of symlinks
1930 # (eg FreeBSD returns the mod time of the symlink's containing
1931 # directory).
1932 if (
1933    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1934    if test "$*" = "X"; then
1935       # -L didn't work.
1936       set X `ls -t $srcdir/configure conftest.file`
1937    fi
1938    rm -f conftest.file
1939    if test "$*" != "X $srcdir/configure conftest.file" \
1940       && test "$*" != "X conftest.file $srcdir/configure"; then
1941
1942       # If neither matched, then we have a broken ls.  This can happen
1943       # if, for instance, CONFIG_SHELL is bash and it inherits a
1944       # broken ls alias from the environment.  This has actually
1945       # happened.  Such a system could not be considered "sane".
1946       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1947 alias in your environment" >&5
1948 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1949 alias in your environment" >&2;}
1950    { (exit 1); exit 1; }; }
1951    fi
1952
1953    test "$2" = conftest.file
1954    )
1955 then
1956    # Ok.
1957    :
1958 else
1959    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1960 Check your system clock" >&5
1961 echo "$as_me: error: newly created file is older than distributed files!
1962 Check your system clock" >&2;}
1963    { (exit 1); exit 1; }; }
1964 fi
1965 { echo "$as_me:$LINENO: result: yes" >&5
1966 echo "${ECHO_T}yes" >&6; }
1967 test "$program_prefix" != NONE &&
1968   program_transform_name="s&^&$program_prefix&;$program_transform_name"
1969 # Use a double $ so make ignores it.
1970 test "$program_suffix" != NONE &&
1971   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1972 # Double any \ or $.  echo might interpret backslashes.
1973 # By default was `s,x,x', remove it if useless.
1974 cat <<\_ACEOF >conftest.sed
1975 s/[\\$]/&&/g;s/;s,x,x,$//
1976 _ACEOF
1977 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1978 rm -f conftest.sed
1979
1980
1981 # expand $ac_aux_dir to an absolute path
1982 am_aux_dir=`cd $ac_aux_dir && pwd`
1983
1984 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1985 # Use eval to expand $SHELL
1986 if eval "$MISSING --run true"; then
1987   am_missing_run="$MISSING --run "
1988 else
1989   am_missing_run=
1990   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1991 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1992 fi
1993
1994 for ac_prog in gawk mawk nawk awk
1995 do
1996   # Extract the first word of "$ac_prog", so it can be a program name with args.
1997 set dummy $ac_prog; ac_word=$2
1998 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2000 if test "${ac_cv_prog_AWK+set}" = set; then
2001   echo $ECHO_N "(cached) $ECHO_C" >&6
2002 else
2003   if test -n "$AWK"; then
2004   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2005 else
2006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2007 for as_dir in $PATH
2008 do
2009   IFS=$as_save_IFS
2010   test -z "$as_dir" && as_dir=.
2011   for ac_exec_ext in '' $ac_executable_extensions; do
2012   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2013     ac_cv_prog_AWK="$ac_prog"
2014     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2015     break 2
2016   fi
2017 done
2018 done
2019 IFS=$as_save_IFS
2020
2021 fi
2022 fi
2023 AWK=$ac_cv_prog_AWK
2024 if test -n "$AWK"; then
2025   { echo "$as_me:$LINENO: result: $AWK" >&5
2026 echo "${ECHO_T}$AWK" >&6; }
2027 else
2028   { echo "$as_me:$LINENO: result: no" >&5
2029 echo "${ECHO_T}no" >&6; }
2030 fi
2031
2032
2033   test -n "$AWK" && break
2034 done
2035
2036 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2037 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2038 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2039 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2040   echo $ECHO_N "(cached) $ECHO_C" >&6
2041 else
2042   cat >conftest.make <<\_ACEOF
2043 SHELL = /bin/sh
2044 all:
2045         @echo '@@@%%%=$(MAKE)=@@@%%%'
2046 _ACEOF
2047 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2048 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2049   *@@@%%%=?*=@@@%%%*)
2050     eval ac_cv_prog_make_${ac_make}_set=yes;;
2051   *)
2052     eval ac_cv_prog_make_${ac_make}_set=no;;
2053 esac
2054 rm -f conftest.make
2055 fi
2056 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2057   { echo "$as_me:$LINENO: result: yes" >&5
2058 echo "${ECHO_T}yes" >&6; }
2059   SET_MAKE=
2060 else
2061   { echo "$as_me:$LINENO: result: no" >&5
2062 echo "${ECHO_T}no" >&6; }
2063   SET_MAKE="MAKE=${MAKE-make}"
2064 fi
2065
2066 rm -rf .tst 2>/dev/null
2067 mkdir .tst 2>/dev/null
2068 if test -d .tst; then
2069   am__leading_dot=.
2070 else
2071   am__leading_dot=_
2072 fi
2073 rmdir .tst 2>/dev/null
2074
2075  # test to see if srcdir already configured
2076 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2077    test -f $srcdir/config.status; then
2078   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2079 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2080    { (exit 1); exit 1; }; }
2081 fi
2082
2083 # test whether we have cygpath
2084 if test -z "$CYGPATH_W"; then
2085   if (cygpath --version) >/dev/null 2>/dev/null; then
2086     CYGPATH_W='cygpath -w'
2087   else
2088     CYGPATH_W=echo
2089   fi
2090 fi
2091
2092
2093 # Define the identity of the package.
2094  PACKAGE=ctsim
2095  VERSION=4.5.2
2096
2097
2098 cat >>confdefs.h <<_ACEOF
2099 #define PACKAGE "$PACKAGE"
2100 _ACEOF
2101
2102
2103 cat >>confdefs.h <<_ACEOF
2104 #define VERSION "$VERSION"
2105 _ACEOF
2106
2107 # Some tools Automake needs.
2108
2109 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2110
2111
2112 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2113
2114
2115 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2116
2117
2118 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2119
2120
2121 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2122
2123
2124 AMTAR=${AMTAR-"${am_missing_run}tar"}
2125
2126 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2127
2128 # Installed binaries are usually stripped using `strip' when the user
2129 # run `make install-strip'.  However `strip' might not be the right
2130 # tool to use in cross-compilation environments, therefore Automake
2131 # will honor the `STRIP' environment variable to overrule this program.
2132 if test "$cross_compiling" != no; then
2133   if test -n "$ac_tool_prefix"; then
2134   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2135 set dummy ${ac_tool_prefix}strip; ac_word=$2
2136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2138 if test "${ac_cv_prog_STRIP+set}" = set; then
2139   echo $ECHO_N "(cached) $ECHO_C" >&6
2140 else
2141   if test -n "$STRIP"; then
2142   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2143 else
2144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2145 for as_dir in $PATH
2146 do
2147   IFS=$as_save_IFS
2148   test -z "$as_dir" && as_dir=.
2149   for ac_exec_ext in '' $ac_executable_extensions; do
2150   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2151     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2152     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2153     break 2
2154   fi
2155 done
2156 done
2157 IFS=$as_save_IFS
2158
2159 fi
2160 fi
2161 STRIP=$ac_cv_prog_STRIP
2162 if test -n "$STRIP"; then
2163   { echo "$as_me:$LINENO: result: $STRIP" >&5
2164 echo "${ECHO_T}$STRIP" >&6; }
2165 else
2166   { echo "$as_me:$LINENO: result: no" >&5
2167 echo "${ECHO_T}no" >&6; }
2168 fi
2169
2170
2171 fi
2172 if test -z "$ac_cv_prog_STRIP"; then
2173   ac_ct_STRIP=$STRIP
2174   # Extract the first word of "strip", so it can be a program name with args.
2175 set dummy strip; ac_word=$2
2176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2178 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2179   echo $ECHO_N "(cached) $ECHO_C" >&6
2180 else
2181   if test -n "$ac_ct_STRIP"; then
2182   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2183 else
2184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2185 for as_dir in $PATH
2186 do
2187   IFS=$as_save_IFS
2188   test -z "$as_dir" && as_dir=.
2189   for ac_exec_ext in '' $ac_executable_extensions; do
2190   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2191     ac_cv_prog_ac_ct_STRIP="strip"
2192     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2193     break 2
2194   fi
2195 done
2196 done
2197 IFS=$as_save_IFS
2198
2199 fi
2200 fi
2201 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2202 if test -n "$ac_ct_STRIP"; then
2203   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2204 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2205 else
2206   { echo "$as_me:$LINENO: result: no" >&5
2207 echo "${ECHO_T}no" >&6; }
2208 fi
2209
2210   if test "x$ac_ct_STRIP" = x; then
2211     STRIP=":"
2212   else
2213     case $cross_compiling:$ac_tool_warned in
2214 yes:)
2215 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2216 whose name does not start with the host triplet.  If you think this
2217 configuration is useful to you, please write to autoconf@gnu.org." >&5
2218 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2219 whose name does not start with the host triplet.  If you think this
2220 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2221 ac_tool_warned=yes ;;
2222 esac
2223     STRIP=$ac_ct_STRIP
2224   fi
2225 else
2226   STRIP="$ac_cv_prog_STRIP"
2227 fi
2228
2229 fi
2230 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2231
2232 # We need awk for the "check" target.  The system "awk" is bad on
2233 # some platforms.
2234
2235
2236
2237 ac_config_headers="$ac_config_headers config.h"
2238
2239
2240 for ac_prog in gawk mawk nawk awk
2241 do
2242   # Extract the first word of "$ac_prog", so it can be a program name with args.
2243 set dummy $ac_prog; ac_word=$2
2244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2246 if test "${ac_cv_prog_AWK+set}" = set; then
2247   echo $ECHO_N "(cached) $ECHO_C" >&6
2248 else
2249   if test -n "$AWK"; then
2250   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2251 else
2252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2253 for as_dir in $PATH
2254 do
2255   IFS=$as_save_IFS
2256   test -z "$as_dir" && as_dir=.
2257   for ac_exec_ext in '' $ac_executable_extensions; do
2258   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2259     ac_cv_prog_AWK="$ac_prog"
2260     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2261     break 2
2262   fi
2263 done
2264 done
2265 IFS=$as_save_IFS
2266
2267 fi
2268 fi
2269 AWK=$ac_cv_prog_AWK
2270 if test -n "$AWK"; then
2271   { echo "$as_me:$LINENO: result: $AWK" >&5
2272 echo "${ECHO_T}$AWK" >&6; }
2273 else
2274   { echo "$as_me:$LINENO: result: no" >&5
2275 echo "${ECHO_T}no" >&6; }
2276 fi
2277
2278
2279   test -n "$AWK" && break
2280 done
2281
2282 # Find a good install program.  We prefer a C program (faster),
2283 # so one script is as good as another.  But avoid the broken or
2284 # incompatible versions:
2285 # SysV /etc/install, /usr/sbin/install
2286 # SunOS /usr/etc/install
2287 # IRIX /sbin/install
2288 # AIX /bin/install
2289 # AmigaOS /C/install, which installs bootblocks on floppy discs
2290 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2291 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2292 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2293 # OS/2's system install, which has a completely different semantic
2294 # ./install, which can be erroneously created by make from ./install.sh.
2295 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2296 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2297 if test -z "$INSTALL"; then
2298 if test "${ac_cv_path_install+set}" = set; then
2299   echo $ECHO_N "(cached) $ECHO_C" >&6
2300 else
2301   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2302 for as_dir in $PATH
2303 do
2304   IFS=$as_save_IFS
2305   test -z "$as_dir" && as_dir=.
2306   # Account for people who put trailing slashes in PATH elements.
2307 case $as_dir/ in
2308   ./ | .// | /cC/* | \
2309   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2310   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2311   /usr/ucb/* ) ;;
2312   *)
2313     # OSF1 and SCO ODT 3.0 have their own names for install.
2314     # Don't use installbsd from OSF since it installs stuff as root
2315     # by default.
2316     for ac_prog in ginstall scoinst install; do
2317       for ac_exec_ext in '' $ac_executable_extensions; do
2318         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
2319           if test $ac_prog = install &&
2320             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2321             # AIX install.  It has an incompatible calling convention.
2322             :
2323           elif test $ac_prog = install &&
2324             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2325             # program-specific install script used by HP pwplus--don't use.
2326             :
2327           else
2328             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2329             break 3
2330           fi
2331         fi
2332       done
2333     done
2334     ;;
2335 esac
2336 done
2337 IFS=$as_save_IFS
2338
2339
2340 fi
2341   if test "${ac_cv_path_install+set}" = set; then
2342     INSTALL=$ac_cv_path_install
2343   else
2344     # As a last resort, use the slow shell script.  Don't cache a
2345     # value for INSTALL within a source directory, because that will
2346     # break other packages using the cache if that directory is
2347     # removed, or if the value is a relative name.
2348     INSTALL=$ac_install_sh
2349   fi
2350 fi
2351 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2352 echo "${ECHO_T}$INSTALL" >&6; }
2353
2354 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2355 # It thinks the first close brace ends the variable substitution.
2356 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2357
2358 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2359
2360 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2361
2362 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2363 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2364 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2365 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2366   echo $ECHO_N "(cached) $ECHO_C" >&6
2367 else
2368   cat >conftest.make <<\_ACEOF
2369 SHELL = /bin/sh
2370 all:
2371         @echo '@@@%%%=$(MAKE)=@@@%%%'
2372 _ACEOF
2373 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2374 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2375   *@@@%%%=?*=@@@%%%*)
2376     eval ac_cv_prog_make_${ac_make}_set=yes;;
2377   *)
2378     eval ac_cv_prog_make_${ac_make}_set=no;;
2379 esac
2380 rm -f conftest.make
2381 fi
2382 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2383   { echo "$as_me:$LINENO: result: yes" >&5
2384 echo "${ECHO_T}yes" >&6; }
2385   SET_MAKE=
2386 else
2387   { echo "$as_me:$LINENO: result: no" >&5
2388 echo "${ECHO_T}no" >&6; }
2389   SET_MAKE="MAKE=${MAKE-make}"
2390 fi
2391
2392 if test -n "$ac_tool_prefix"; then
2393   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2394 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2397 if test "${ac_cv_prog_RANLIB+set}" = set; then
2398   echo $ECHO_N "(cached) $ECHO_C" >&6
2399 else
2400   if test -n "$RANLIB"; then
2401   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2402 else
2403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2404 for as_dir in $PATH
2405 do
2406   IFS=$as_save_IFS
2407   test -z "$as_dir" && as_dir=.
2408   for ac_exec_ext in '' $ac_executable_extensions; do
2409   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2410     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2411     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2412     break 2
2413   fi
2414 done
2415 done
2416 IFS=$as_save_IFS
2417
2418 fi
2419 fi
2420 RANLIB=$ac_cv_prog_RANLIB
2421 if test -n "$RANLIB"; then
2422   { echo "$as_me:$LINENO: result: $RANLIB" >&5
2423 echo "${ECHO_T}$RANLIB" >&6; }
2424 else
2425   { echo "$as_me:$LINENO: result: no" >&5
2426 echo "${ECHO_T}no" >&6; }
2427 fi
2428
2429
2430 fi
2431 if test -z "$ac_cv_prog_RANLIB"; then
2432   ac_ct_RANLIB=$RANLIB
2433   # Extract the first word of "ranlib", so it can be a program name with args.
2434 set dummy ranlib; ac_word=$2
2435 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2437 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2438   echo $ECHO_N "(cached) $ECHO_C" >&6
2439 else
2440   if test -n "$ac_ct_RANLIB"; then
2441   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2442 else
2443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444 for as_dir in $PATH
2445 do
2446   IFS=$as_save_IFS
2447   test -z "$as_dir" && as_dir=.
2448   for ac_exec_ext in '' $ac_executable_extensions; do
2449   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2450     ac_cv_prog_ac_ct_RANLIB="ranlib"
2451     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2452     break 2
2453   fi
2454 done
2455 done
2456 IFS=$as_save_IFS
2457
2458 fi
2459 fi
2460 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2461 if test -n "$ac_ct_RANLIB"; then
2462   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2463 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
2464 else
2465   { echo "$as_me:$LINENO: result: no" >&5
2466 echo "${ECHO_T}no" >&6; }
2467 fi
2468
2469   if test "x$ac_ct_RANLIB" = x; then
2470     RANLIB=":"
2471   else
2472     case $cross_compiling:$ac_tool_warned in
2473 yes:)
2474 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2475 whose name does not start with the host triplet.  If you think this
2476 configuration is useful to you, please write to autoconf@gnu.org." >&5
2477 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2478 whose name does not start with the host triplet.  If you think this
2479 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2480 ac_tool_warned=yes ;;
2481 esac
2482     RANLIB=$ac_ct_RANLIB
2483   fi
2484 else
2485   RANLIB="$ac_cv_prog_RANLIB"
2486 fi
2487
2488
2489 ac_ext=c
2490 ac_cpp='$CPP $CPPFLAGS'
2491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2494 if test -n "$ac_tool_prefix"; then
2495   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2496 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2497 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2499 if test "${ac_cv_prog_CC+set}" = set; then
2500   echo $ECHO_N "(cached) $ECHO_C" >&6
2501 else
2502   if test -n "$CC"; then
2503   ac_cv_prog_CC="$CC" # Let the user override the test.
2504 else
2505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2506 for as_dir in $PATH
2507 do
2508   IFS=$as_save_IFS
2509   test -z "$as_dir" && as_dir=.
2510   for ac_exec_ext in '' $ac_executable_extensions; do
2511   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2512     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2513     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2514     break 2
2515   fi
2516 done
2517 done
2518 IFS=$as_save_IFS
2519
2520 fi
2521 fi
2522 CC=$ac_cv_prog_CC
2523 if test -n "$CC"; then
2524   { echo "$as_me:$LINENO: result: $CC" >&5
2525 echo "${ECHO_T}$CC" >&6; }
2526 else
2527   { echo "$as_me:$LINENO: result: no" >&5
2528 echo "${ECHO_T}no" >&6; }
2529 fi
2530
2531
2532 fi
2533 if test -z "$ac_cv_prog_CC"; then
2534   ac_ct_CC=$CC
2535   # Extract the first word of "gcc", so it can be a program name with args.
2536 set dummy gcc; ac_word=$2
2537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2539 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2540   echo $ECHO_N "(cached) $ECHO_C" >&6
2541 else
2542   if test -n "$ac_ct_CC"; then
2543   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2544 else
2545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2546 for as_dir in $PATH
2547 do
2548   IFS=$as_save_IFS
2549   test -z "$as_dir" && as_dir=.
2550   for ac_exec_ext in '' $ac_executable_extensions; do
2551   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2552     ac_cv_prog_ac_ct_CC="gcc"
2553     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2554     break 2
2555   fi
2556 done
2557 done
2558 IFS=$as_save_IFS
2559
2560 fi
2561 fi
2562 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2563 if test -n "$ac_ct_CC"; then
2564   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2565 echo "${ECHO_T}$ac_ct_CC" >&6; }
2566 else
2567   { echo "$as_me:$LINENO: result: no" >&5
2568 echo "${ECHO_T}no" >&6; }
2569 fi
2570
2571   if test "x$ac_ct_CC" = x; then
2572     CC=""
2573   else
2574     case $cross_compiling:$ac_tool_warned in
2575 yes:)
2576 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2577 whose name does not start with the host triplet.  If you think this
2578 configuration is useful to you, please write to autoconf@gnu.org." >&5
2579 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2580 whose name does not start with the host triplet.  If you think this
2581 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2582 ac_tool_warned=yes ;;
2583 esac
2584     CC=$ac_ct_CC
2585   fi
2586 else
2587   CC="$ac_cv_prog_CC"
2588 fi
2589
2590 if test -z "$CC"; then
2591           if test -n "$ac_tool_prefix"; then
2592     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2593 set dummy ${ac_tool_prefix}cc; ac_word=$2
2594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2596 if test "${ac_cv_prog_CC+set}" = set; then
2597   echo $ECHO_N "(cached) $ECHO_C" >&6
2598 else
2599   if test -n "$CC"; then
2600   ac_cv_prog_CC="$CC" # Let the user override the test.
2601 else
2602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2603 for as_dir in $PATH
2604 do
2605   IFS=$as_save_IFS
2606   test -z "$as_dir" && as_dir=.
2607   for ac_exec_ext in '' $ac_executable_extensions; do
2608   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2609     ac_cv_prog_CC="${ac_tool_prefix}cc"
2610     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2611     break 2
2612   fi
2613 done
2614 done
2615 IFS=$as_save_IFS
2616
2617 fi
2618 fi
2619 CC=$ac_cv_prog_CC
2620 if test -n "$CC"; then
2621   { echo "$as_me:$LINENO: result: $CC" >&5
2622 echo "${ECHO_T}$CC" >&6; }
2623 else
2624   { echo "$as_me:$LINENO: result: no" >&5
2625 echo "${ECHO_T}no" >&6; }
2626 fi
2627
2628
2629   fi
2630 fi
2631 if test -z "$CC"; then
2632   # Extract the first word of "cc", so it can be a program name with args.
2633 set dummy cc; ac_word=$2
2634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2636 if test "${ac_cv_prog_CC+set}" = set; then
2637   echo $ECHO_N "(cached) $ECHO_C" >&6
2638 else
2639   if test -n "$CC"; then
2640   ac_cv_prog_CC="$CC" # Let the user override the test.
2641 else
2642   ac_prog_rejected=no
2643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644 for as_dir in $PATH
2645 do
2646   IFS=$as_save_IFS
2647   test -z "$as_dir" && as_dir=.
2648   for ac_exec_ext in '' $ac_executable_extensions; do
2649   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2650     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2651        ac_prog_rejected=yes
2652        continue
2653      fi
2654     ac_cv_prog_CC="cc"
2655     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2656     break 2
2657   fi
2658 done
2659 done
2660 IFS=$as_save_IFS
2661
2662 if test $ac_prog_rejected = yes; then
2663   # We found a bogon in the path, so make sure we never use it.
2664   set dummy $ac_cv_prog_CC
2665   shift
2666   if test $# != 0; then
2667     # We chose a different compiler from the bogus one.
2668     # However, it has the same basename, so the bogon will be chosen
2669     # first if we set CC to just the basename; use the full file name.
2670     shift
2671     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2672   fi
2673 fi
2674 fi
2675 fi
2676 CC=$ac_cv_prog_CC
2677 if test -n "$CC"; then
2678   { echo "$as_me:$LINENO: result: $CC" >&5
2679 echo "${ECHO_T}$CC" >&6; }
2680 else
2681   { echo "$as_me:$LINENO: result: no" >&5
2682 echo "${ECHO_T}no" >&6; }
2683 fi
2684
2685
2686 fi
2687 if test -z "$CC"; then
2688   if test -n "$ac_tool_prefix"; then
2689   for ac_prog in cl.exe
2690   do
2691     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2692 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2693 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2695 if test "${ac_cv_prog_CC+set}" = set; then
2696   echo $ECHO_N "(cached) $ECHO_C" >&6
2697 else
2698   if test -n "$CC"; then
2699   ac_cv_prog_CC="$CC" # Let the user override the test.
2700 else
2701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2702 for as_dir in $PATH
2703 do
2704   IFS=$as_save_IFS
2705   test -z "$as_dir" && as_dir=.
2706   for ac_exec_ext in '' $ac_executable_extensions; do
2707   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2708     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2709     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2710     break 2
2711   fi
2712 done
2713 done
2714 IFS=$as_save_IFS
2715
2716 fi
2717 fi
2718 CC=$ac_cv_prog_CC
2719 if test -n "$CC"; then
2720   { echo "$as_me:$LINENO: result: $CC" >&5
2721 echo "${ECHO_T}$CC" >&6; }
2722 else
2723   { echo "$as_me:$LINENO: result: no" >&5
2724 echo "${ECHO_T}no" >&6; }
2725 fi
2726
2727
2728     test -n "$CC" && break
2729   done
2730 fi
2731 if test -z "$CC"; then
2732   ac_ct_CC=$CC
2733   for ac_prog in cl.exe
2734 do
2735   # Extract the first word of "$ac_prog", so it can be a program name with args.
2736 set dummy $ac_prog; ac_word=$2
2737 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2739 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2740   echo $ECHO_N "(cached) $ECHO_C" >&6
2741 else
2742   if test -n "$ac_ct_CC"; then
2743   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2744 else
2745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2746 for as_dir in $PATH
2747 do
2748   IFS=$as_save_IFS
2749   test -z "$as_dir" && as_dir=.
2750   for ac_exec_ext in '' $ac_executable_extensions; do
2751   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2752     ac_cv_prog_ac_ct_CC="$ac_prog"
2753     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2754     break 2
2755   fi
2756 done
2757 done
2758 IFS=$as_save_IFS
2759
2760 fi
2761 fi
2762 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2763 if test -n "$ac_ct_CC"; then
2764   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2765 echo "${ECHO_T}$ac_ct_CC" >&6; }
2766 else
2767   { echo "$as_me:$LINENO: result: no" >&5
2768 echo "${ECHO_T}no" >&6; }
2769 fi
2770
2771
2772   test -n "$ac_ct_CC" && break
2773 done
2774
2775   if test "x$ac_ct_CC" = x; then
2776     CC=""
2777   else
2778     case $cross_compiling:$ac_tool_warned in
2779 yes:)
2780 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2781 whose name does not start with the host triplet.  If you think this
2782 configuration is useful to you, please write to autoconf@gnu.org." >&5
2783 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2784 whose name does not start with the host triplet.  If you think this
2785 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2786 ac_tool_warned=yes ;;
2787 esac
2788     CC=$ac_ct_CC
2789   fi
2790 fi
2791
2792 fi
2793
2794
2795 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2796 See \`config.log' for more details." >&5
2797 echo "$as_me: error: no acceptable C compiler found in \$PATH
2798 See \`config.log' for more details." >&2;}
2799    { (exit 1); exit 1; }; }
2800
2801 # Provide some information about the compiler.
2802 echo "$as_me:$LINENO: checking for C compiler version" >&5
2803 ac_compiler=`set X $ac_compile; echo $2`
2804 { (ac_try="$ac_compiler --version >&5"
2805 case "(($ac_try" in
2806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2807   *) ac_try_echo=$ac_try;;
2808 esac
2809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2810   (eval "$ac_compiler --version >&5") 2>&5
2811   ac_status=$?
2812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813   (exit $ac_status); }
2814 { (ac_try="$ac_compiler -v >&5"
2815 case "(($ac_try" in
2816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2817   *) ac_try_echo=$ac_try;;
2818 esac
2819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2820   (eval "$ac_compiler -v >&5") 2>&5
2821   ac_status=$?
2822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823   (exit $ac_status); }
2824 { (ac_try="$ac_compiler -V >&5"
2825 case "(($ac_try" in
2826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2827   *) ac_try_echo=$ac_try;;
2828 esac
2829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2830   (eval "$ac_compiler -V >&5") 2>&5
2831   ac_status=$?
2832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833   (exit $ac_status); }
2834
2835 cat >conftest.$ac_ext <<_ACEOF
2836 /* confdefs.h.  */
2837 _ACEOF
2838 cat confdefs.h >>conftest.$ac_ext
2839 cat >>conftest.$ac_ext <<_ACEOF
2840 /* end confdefs.h.  */
2841
2842 int
2843 main ()
2844 {
2845
2846   ;
2847   return 0;
2848 }
2849 _ACEOF
2850 ac_clean_files_save=$ac_clean_files
2851 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2852 # Try to create an executable without -o first, disregard a.out.
2853 # It will help us diagnose broken compilers, and finding out an intuition
2854 # of exeext.
2855 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2856 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2857 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2858 #
2859 # List of possible output files, starting from the most likely.
2860 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2861 # only as a last resort.  b.out is created by i960 compilers.
2862 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2863 #
2864 # The IRIX 6 linker writes into existing files which may not be
2865 # executable, retaining their permissions.  Remove them first so a
2866 # subsequent execution test works.
2867 ac_rmfiles=
2868 for ac_file in $ac_files
2869 do
2870   case $ac_file in
2871     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2872     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2873   esac
2874 done
2875 rm -f $ac_rmfiles
2876
2877 if { (ac_try="$ac_link_default"
2878 case "(($ac_try" in
2879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880   *) ac_try_echo=$ac_try;;
2881 esac
2882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2883   (eval "$ac_link_default") 2>&5
2884   ac_status=$?
2885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886   (exit $ac_status); }; then
2887   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2888 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2889 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2890 # so that the user can short-circuit this test for compilers unknown to
2891 # Autoconf.
2892 for ac_file in $ac_files ''
2893 do
2894   test -f "$ac_file" || continue
2895   case $ac_file in
2896     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2897         ;;
2898     [ab].out )
2899         # We found the default executable, but exeext='' is most
2900         # certainly right.
2901         break;;
2902     *.* )
2903         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2904         then :; else
2905            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2906         fi
2907         # We set ac_cv_exeext here because the later test for it is not
2908         # safe: cross compilers may not add the suffix if given an `-o'
2909         # argument, so we may need to know it at that point already.
2910         # Even if this section looks crufty: it has the advantage of
2911         # actually working.
2912         break;;
2913     * )
2914         break;;
2915   esac
2916 done
2917 test "$ac_cv_exeext" = no && ac_cv_exeext=
2918
2919 else
2920   ac_file=''
2921 fi
2922
2923 { echo "$as_me:$LINENO: result: $ac_file" >&5
2924 echo "${ECHO_T}$ac_file" >&6; }
2925 if test -z "$ac_file"; then
2926   echo "$as_me: failed program was:" >&5
2927 sed 's/^/| /' conftest.$ac_ext >&5
2928
2929 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2930 See \`config.log' for more details." >&5
2931 echo "$as_me: error: C compiler cannot create executables
2932 See \`config.log' for more details." >&2;}
2933    { (exit 77); exit 77; }; }
2934 fi
2935
2936 ac_exeext=$ac_cv_exeext
2937
2938 # Check that the compiler produces executables we can run.  If not, either
2939 # the compiler is broken, or we cross compile.
2940 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2941 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2942 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2943 # If not cross compiling, check that we can run a simple program.
2944 if test "$cross_compiling" != yes; then
2945   if { ac_try='./$ac_file'
2946   { (case "(($ac_try" in
2947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2948   *) ac_try_echo=$ac_try;;
2949 esac
2950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2951   (eval "$ac_try") 2>&5
2952   ac_status=$?
2953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954   (exit $ac_status); }; }; then
2955     cross_compiling=no
2956   else
2957     if test "$cross_compiling" = maybe; then
2958         cross_compiling=yes
2959     else
2960         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2961 If you meant to cross compile, use \`--host'.
2962 See \`config.log' for more details." >&5
2963 echo "$as_me: error: cannot run C compiled programs.
2964 If you meant to cross compile, use \`--host'.
2965 See \`config.log' for more details." >&2;}
2966    { (exit 1); exit 1; }; }
2967     fi
2968   fi
2969 fi
2970 { echo "$as_me:$LINENO: result: yes" >&5
2971 echo "${ECHO_T}yes" >&6; }
2972
2973 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2974 ac_clean_files=$ac_clean_files_save
2975 # Check that the compiler produces executables we can run.  If not, either
2976 # the compiler is broken, or we cross compile.
2977 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2978 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2979 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2980 echo "${ECHO_T}$cross_compiling" >&6; }
2981
2982 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2983 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2984 if { (ac_try="$ac_link"
2985 case "(($ac_try" in
2986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2987   *) ac_try_echo=$ac_try;;
2988 esac
2989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2990   (eval "$ac_link") 2>&5
2991   ac_status=$?
2992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993   (exit $ac_status); }; then
2994   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2995 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2996 # work properly (i.e., refer to `conftest.exe'), while it won't with
2997 # `rm'.
2998 for ac_file in conftest.exe conftest conftest.*; do
2999   test -f "$ac_file" || continue
3000   case $ac_file in
3001     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3002     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3003           break;;
3004     * ) break;;
3005   esac
3006 done
3007 else
3008   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3009 See \`config.log' for more details." >&5
3010 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3011 See \`config.log' for more details." >&2;}
3012    { (exit 1); exit 1; }; }
3013 fi
3014
3015 rm -f conftest$ac_cv_exeext
3016 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3017 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3018
3019 rm -f conftest.$ac_ext
3020 EXEEXT=$ac_cv_exeext
3021 ac_exeext=$EXEEXT
3022 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3023 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3024 if test "${ac_cv_objext+set}" = set; then
3025   echo $ECHO_N "(cached) $ECHO_C" >&6
3026 else
3027   cat >conftest.$ac_ext <<_ACEOF
3028 /* confdefs.h.  */
3029 _ACEOF
3030 cat confdefs.h >>conftest.$ac_ext
3031 cat >>conftest.$ac_ext <<_ACEOF
3032 /* end confdefs.h.  */
3033
3034 int
3035 main ()
3036 {
3037
3038   ;
3039   return 0;
3040 }
3041 _ACEOF
3042 rm -f conftest.o conftest.obj
3043 if { (ac_try="$ac_compile"
3044 case "(($ac_try" in
3045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046   *) ac_try_echo=$ac_try;;
3047 esac
3048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3049   (eval "$ac_compile") 2>&5
3050   ac_status=$?
3051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052   (exit $ac_status); }; then
3053   for ac_file in conftest.o conftest.obj conftest.*; do
3054   test -f "$ac_file" || continue;
3055   case $ac_file in
3056     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3057     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3058        break;;
3059   esac
3060 done
3061 else
3062   echo "$as_me: failed program was:" >&5
3063 sed 's/^/| /' conftest.$ac_ext >&5
3064
3065 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3066 See \`config.log' for more details." >&5
3067 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3068 See \`config.log' for more details." >&2;}
3069    { (exit 1); exit 1; }; }
3070 fi
3071
3072 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3073 fi
3074 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3075 echo "${ECHO_T}$ac_cv_objext" >&6; }
3076 OBJEXT=$ac_cv_objext
3077 ac_objext=$OBJEXT
3078 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3079 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3080 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3081   echo $ECHO_N "(cached) $ECHO_C" >&6
3082 else
3083   cat >conftest.$ac_ext <<_ACEOF
3084 /* confdefs.h.  */
3085 _ACEOF
3086 cat confdefs.h >>conftest.$ac_ext
3087 cat >>conftest.$ac_ext <<_ACEOF
3088 /* end confdefs.h.  */
3089
3090 int
3091 main ()
3092 {
3093 #ifndef __GNUC__
3094        choke me
3095 #endif
3096
3097   ;
3098   return 0;
3099 }
3100 _ACEOF
3101 rm -f conftest.$ac_objext
3102 if { (ac_try="$ac_compile"
3103 case "(($ac_try" in
3104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3105   *) ac_try_echo=$ac_try;;
3106 esac
3107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3108   (eval "$ac_compile") 2>conftest.er1
3109   ac_status=$?
3110   grep -v '^ *+' conftest.er1 >conftest.err
3111   rm -f conftest.er1
3112   cat conftest.err >&5
3113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114   (exit $ac_status); } &&
3115          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3116   { (case "(($ac_try" in
3117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3118   *) ac_try_echo=$ac_try;;
3119 esac
3120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3121   (eval "$ac_try") 2>&5
3122   ac_status=$?
3123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124   (exit $ac_status); }; } &&
3125          { ac_try='test -s conftest.$ac_objext'
3126   { (case "(($ac_try" in
3127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128   *) ac_try_echo=$ac_try;;
3129 esac
3130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131   (eval "$ac_try") 2>&5
3132   ac_status=$?
3133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134   (exit $ac_status); }; }; then
3135   ac_compiler_gnu=yes
3136 else
3137   echo "$as_me: failed program was:" >&5
3138 sed 's/^/| /' conftest.$ac_ext >&5
3139
3140         ac_compiler_gnu=no
3141 fi
3142
3143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3144 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3145
3146 fi
3147 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3148 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3149 GCC=`test $ac_compiler_gnu = yes && echo yes`
3150 ac_test_CFLAGS=${CFLAGS+set}
3151 ac_save_CFLAGS=$CFLAGS
3152 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3153 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3154 if test "${ac_cv_prog_cc_g+set}" = set; then
3155   echo $ECHO_N "(cached) $ECHO_C" >&6
3156 else
3157   ac_save_c_werror_flag=$ac_c_werror_flag
3158    ac_c_werror_flag=yes
3159    ac_cv_prog_cc_g=no
3160    CFLAGS="-g"
3161    cat >conftest.$ac_ext <<_ACEOF
3162 /* confdefs.h.  */
3163 _ACEOF
3164 cat confdefs.h >>conftest.$ac_ext
3165 cat >>conftest.$ac_ext <<_ACEOF
3166 /* end confdefs.h.  */
3167
3168 int
3169 main ()
3170 {
3171
3172   ;
3173   return 0;
3174 }
3175 _ACEOF
3176 rm -f conftest.$ac_objext
3177 if { (ac_try="$ac_compile"
3178 case "(($ac_try" in
3179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180   *) ac_try_echo=$ac_try;;
3181 esac
3182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183   (eval "$ac_compile") 2>conftest.er1
3184   ac_status=$?
3185   grep -v '^ *+' conftest.er1 >conftest.err
3186   rm -f conftest.er1
3187   cat conftest.err >&5
3188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189   (exit $ac_status); } &&
3190          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3191   { (case "(($ac_try" in
3192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3193   *) ac_try_echo=$ac_try;;
3194 esac
3195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3196   (eval "$ac_try") 2>&5
3197   ac_status=$?
3198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199   (exit $ac_status); }; } &&
3200          { ac_try='test -s conftest.$ac_objext'
3201   { (case "(($ac_try" in
3202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203   *) ac_try_echo=$ac_try;;
3204 esac
3205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3206   (eval "$ac_try") 2>&5
3207   ac_status=$?
3208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209   (exit $ac_status); }; }; then
3210   ac_cv_prog_cc_g=yes
3211 else
3212   echo "$as_me: failed program was:" >&5
3213 sed 's/^/| /' conftest.$ac_ext >&5
3214
3215         CFLAGS=""
3216       cat >conftest.$ac_ext <<_ACEOF
3217 /* confdefs.h.  */
3218 _ACEOF
3219 cat confdefs.h >>conftest.$ac_ext
3220 cat >>conftest.$ac_ext <<_ACEOF
3221 /* end confdefs.h.  */
3222
3223 int
3224 main ()
3225 {
3226
3227   ;
3228   return 0;
3229 }
3230 _ACEOF
3231 rm -f conftest.$ac_objext
3232 if { (ac_try="$ac_compile"
3233 case "(($ac_try" in
3234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3235   *) ac_try_echo=$ac_try;;
3236 esac
3237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3238   (eval "$ac_compile") 2>conftest.er1
3239   ac_status=$?
3240   grep -v '^ *+' conftest.er1 >conftest.err
3241   rm -f conftest.er1
3242   cat conftest.err >&5
3243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244   (exit $ac_status); } &&
3245          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3246   { (case "(($ac_try" in
3247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248   *) ac_try_echo=$ac_try;;
3249 esac
3250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3251   (eval "$ac_try") 2>&5
3252   ac_status=$?
3253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254   (exit $ac_status); }; } &&
3255          { ac_try='test -s conftest.$ac_objext'
3256   { (case "(($ac_try" in
3257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3258   *) ac_try_echo=$ac_try;;
3259 esac
3260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3261   (eval "$ac_try") 2>&5
3262   ac_status=$?
3263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264   (exit $ac_status); }; }; then
3265   :
3266 else
3267   echo "$as_me: failed program was:" >&5
3268 sed 's/^/| /' conftest.$ac_ext >&5
3269
3270         ac_c_werror_flag=$ac_save_c_werror_flag
3271          CFLAGS="-g"
3272          cat >conftest.$ac_ext <<_ACEOF
3273 /* confdefs.h.  */
3274 _ACEOF
3275 cat confdefs.h >>conftest.$ac_ext
3276 cat >>conftest.$ac_ext <<_ACEOF
3277 /* end confdefs.h.  */
3278
3279 int
3280 main ()
3281 {
3282
3283   ;
3284   return 0;
3285 }
3286 _ACEOF
3287 rm -f conftest.$ac_objext
3288 if { (ac_try="$ac_compile"
3289 case "(($ac_try" in
3290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291   *) ac_try_echo=$ac_try;;
3292 esac
3293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3294   (eval "$ac_compile") 2>conftest.er1
3295   ac_status=$?
3296   grep -v '^ *+' conftest.er1 >conftest.err
3297   rm -f conftest.er1
3298   cat conftest.err >&5
3299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300   (exit $ac_status); } &&
3301          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3302   { (case "(($ac_try" in
3303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3304   *) ac_try_echo=$ac_try;;
3305 esac
3306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3307   (eval "$ac_try") 2>&5
3308   ac_status=$?
3309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310   (exit $ac_status); }; } &&
3311          { ac_try='test -s conftest.$ac_objext'
3312   { (case "(($ac_try" in
3313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314   *) ac_try_echo=$ac_try;;
3315 esac
3316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3317   (eval "$ac_try") 2>&5
3318   ac_status=$?
3319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320   (exit $ac_status); }; }; then
3321   ac_cv_prog_cc_g=yes
3322 else
3323   echo "$as_me: failed program was:" >&5
3324 sed 's/^/| /' conftest.$ac_ext >&5
3325
3326
3327 fi
3328
3329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3330 fi
3331
3332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3333 fi
3334
3335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3336    ac_c_werror_flag=$ac_save_c_werror_flag
3337 fi
3338 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3339 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3340 if test "$ac_test_CFLAGS" = set; then
3341   CFLAGS=$ac_save_CFLAGS
3342 elif test $ac_cv_prog_cc_g = yes; then
3343   if test "$GCC" = yes; then
3344     CFLAGS="-g -O2"
3345   else
3346     CFLAGS="-g"
3347   fi
3348 else
3349   if test "$GCC" = yes; then
3350     CFLAGS="-O2"
3351   else
3352     CFLAGS=
3353   fi
3354 fi
3355 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3356 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3357 if test "${ac_cv_prog_cc_c89+set}" = set; then
3358   echo $ECHO_N "(cached) $ECHO_C" >&6
3359 else
3360   ac_cv_prog_cc_c89=no
3361 ac_save_CC=$CC
3362 cat >conftest.$ac_ext <<_ACEOF
3363 /* confdefs.h.  */
3364 _ACEOF
3365 cat confdefs.h >>conftest.$ac_ext
3366 cat >>conftest.$ac_ext <<_ACEOF
3367 /* end confdefs.h.  */
3368 #include <stdarg.h>
3369 #include <stdio.h>
3370 #include <sys/types.h>
3371 #include <sys/stat.h>
3372 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3373 struct buf { int x; };
3374 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3375 static char *e (p, i)
3376      char **p;
3377      int i;
3378 {
3379   return p[i];
3380 }
3381 static char *f (char * (*g) (char **, int), char **p, ...)
3382 {
3383   char *s;
3384   va_list v;
3385   va_start (v,p);
3386   s = g (p, va_arg (v,int));
3387   va_end (v);
3388   return s;
3389 }
3390
3391 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3392    function prototypes and stuff, but not '\xHH' hex character constants.
3393    These don't provoke an error unfortunately, instead are silently treated
3394    as 'x'.  The following induces an error, until -std is added to get
3395    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3396    array size at least.  It's necessary to write '\x00'==0 to get something
3397    that's true only with -std.  */
3398 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3399
3400 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3401    inside strings and character constants.  */
3402 #define FOO(x) 'x'
3403 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3404
3405 int test (int i, double x);
3406 struct s1 {int (*f) (int a);};
3407 struct s2 {int (*f) (double a);};
3408 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3409 int argc;
3410 char **argv;
3411 int
3412 main ()
3413 {
3414 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3415   ;
3416   return 0;
3417 }
3418 _ACEOF
3419 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3420         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3421 do
3422   CC="$ac_save_CC $ac_arg"
3423   rm -f conftest.$ac_objext
3424 if { (ac_try="$ac_compile"
3425 case "(($ac_try" in
3426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3427   *) ac_try_echo=$ac_try;;
3428 esac
3429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3430   (eval "$ac_compile") 2>conftest.er1
3431   ac_status=$?
3432   grep -v '^ *+' conftest.er1 >conftest.err
3433   rm -f conftest.er1
3434   cat conftest.err >&5
3435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436   (exit $ac_status); } &&
3437          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3438   { (case "(($ac_try" in
3439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440   *) ac_try_echo=$ac_try;;
3441 esac
3442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3443   (eval "$ac_try") 2>&5
3444   ac_status=$?
3445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446   (exit $ac_status); }; } &&
3447          { ac_try='test -s conftest.$ac_objext'
3448   { (case "(($ac_try" in
3449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3450   *) ac_try_echo=$ac_try;;
3451 esac
3452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3453   (eval "$ac_try") 2>&5
3454   ac_status=$?
3455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456   (exit $ac_status); }; }; then
3457   ac_cv_prog_cc_c89=$ac_arg
3458 else
3459   echo "$as_me: failed program was:" >&5
3460 sed 's/^/| /' conftest.$ac_ext >&5
3461
3462
3463 fi
3464
3465 rm -f core conftest.err conftest.$ac_objext
3466   test "x$ac_cv_prog_cc_c89" != "xno" && break
3467 done
3468 rm -f conftest.$ac_ext
3469 CC=$ac_save_CC
3470
3471 fi
3472 # AC_CACHE_VAL
3473 case "x$ac_cv_prog_cc_c89" in
3474   x)
3475     { echo "$as_me:$LINENO: result: none needed" >&5
3476 echo "${ECHO_T}none needed" >&6; } ;;
3477   xno)
3478     { echo "$as_me:$LINENO: result: unsupported" >&5
3479 echo "${ECHO_T}unsupported" >&6; } ;;
3480   *)
3481     CC="$CC $ac_cv_prog_cc_c89"
3482     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3483 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3484 esac
3485
3486
3487 ac_ext=c
3488 ac_cpp='$CPP $CPPFLAGS'
3489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3492 DEPDIR="${am__leading_dot}deps"
3493
3494 ac_config_commands="$ac_config_commands depfiles"
3495
3496
3497 am_make=${MAKE-make}
3498 cat > confinc << 'END'
3499 am__doit:
3500         @echo done
3501 .PHONY: am__doit
3502 END
3503 # If we don't find an include directive, just comment out the code.
3504 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3505 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3506 am__include="#"
3507 am__quote=
3508 _am_result=none
3509 # First try GNU make style include.
3510 echo "include confinc" > confmf
3511 # We grep out `Entering directory' and `Leaving directory'
3512 # messages which can occur if `w' ends up in MAKEFLAGS.
3513 # In particular we don't look at `^make:' because GNU make might
3514 # be invoked under some other name (usually "gmake"), in which
3515 # case it prints its new name instead of `make'.
3516 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3517    am__include=include
3518    am__quote=
3519    _am_result=GNU
3520 fi
3521 # Now try BSD make style include.
3522 if test "$am__include" = "#"; then
3523    echo '.include "confinc"' > confmf
3524    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3525       am__include=.include
3526       am__quote="\""
3527       _am_result=BSD
3528    fi
3529 fi
3530
3531
3532 { echo "$as_me:$LINENO: result: $_am_result" >&5
3533 echo "${ECHO_T}$_am_result" >&6; }
3534 rm -f confinc confmf
3535
3536 # Check whether --enable-dependency-tracking was given.
3537 if test "${enable_dependency_tracking+set}" = set; then
3538   enableval=$enable_dependency_tracking;
3539 fi
3540
3541 if test "x$enable_dependency_tracking" != xno; then
3542   am_depcomp="$ac_aux_dir/depcomp"
3543   AMDEPBACKSLASH='\'
3544 fi
3545
3546
3547 if test "x$enable_dependency_tracking" != xno; then
3548   AMDEP_TRUE=
3549   AMDEP_FALSE='#'
3550 else
3551   AMDEP_TRUE='#'
3552   AMDEP_FALSE=
3553 fi
3554
3555
3556
3557
3558 depcc="$CC"   am_compiler_list=
3559
3560 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3561 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3562 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3563   echo $ECHO_N "(cached) $ECHO_C" >&6
3564 else
3565   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3566   # We make a subdir and do the tests there.  Otherwise we can end up
3567   # making bogus files that we don't know about and never remove.  For
3568   # instance it was reported that on HP-UX the gcc test will end up
3569   # making a dummy file named `D' -- because `-MD' means `put the output
3570   # in D'.
3571   mkdir conftest.dir
3572   # Copy depcomp to subdir because otherwise we won't find it if we're
3573   # using a relative directory.
3574   cp "$am_depcomp" conftest.dir
3575   cd conftest.dir
3576   # We will build objects and dependencies in a subdirectory because
3577   # it helps to detect inapplicable dependency modes.  For instance
3578   # both Tru64's cc and ICC support -MD to output dependencies as a
3579   # side effect of compilation, but ICC will put the dependencies in
3580   # the current directory while Tru64 will put them in the object
3581   # directory.
3582   mkdir sub
3583
3584   am_cv_CC_dependencies_compiler_type=none
3585   if test "$am_compiler_list" = ""; then
3586      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3587   fi
3588   for depmode in $am_compiler_list; do
3589     # Setup a source with many dependencies, because some compilers
3590     # like to wrap large dependency lists on column 80 (with \), and
3591     # we should not choose a depcomp mode which is confused by this.
3592     #
3593     # We need to recreate these files for each test, as the compiler may
3594     # overwrite some of them when testing with obscure command lines.
3595     # This happens at least with the AIX C compiler.
3596     : > sub/conftest.c
3597     for i in 1 2 3 4 5 6; do
3598       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3599       : > sub/conftst$i.h
3600     done
3601     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3602
3603     case $depmode in
3604     nosideeffect)
3605       # after this tag, mechanisms are not by side-effect, so they'll
3606       # only be used when explicitly requested
3607       if test "x$enable_dependency_tracking" = xyes; then
3608         continue
3609       else
3610         break
3611       fi
3612       ;;
3613     none) break ;;
3614     esac
3615     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3616     # mode.  It turns out that the SunPro C++ compiler does not properly
3617     # handle `-M -o', and we need to detect this.
3618     if depmode=$depmode \
3619        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3620        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3621        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3622          >/dev/null 2>conftest.err &&
3623        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3624        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3625        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3626       # icc doesn't choke on unknown options, it will just issue warnings
3627       # (even with -Werror).  So we grep stderr for any message
3628       # that says an option was ignored.
3629       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3630         am_cv_CC_dependencies_compiler_type=$depmode
3631         break
3632       fi
3633     fi
3634   done
3635
3636   cd ..
3637   rm -rf conftest.dir
3638 else
3639   am_cv_CC_dependencies_compiler_type=none
3640 fi
3641
3642 fi
3643 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3644 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3645 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3646
3647
3648
3649 if
3650   test "x$enable_dependency_tracking" != xno \
3651   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3652   am__fastdepCC_TRUE=
3653   am__fastdepCC_FALSE='#'
3654 else
3655   am__fastdepCC_TRUE='#'
3656   am__fastdepCC_FALSE=
3657 fi
3658
3659
3660 ac_ext=cpp
3661 ac_cpp='$CXXCPP $CPPFLAGS'
3662 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3663 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3664 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3665 if test -z "$CXX"; then
3666   if test -n "$CCC"; then
3667     CXX=$CCC
3668   else
3669     if test -n "$ac_tool_prefix"; then
3670   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3671   do
3672     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3673 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3674 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3676 if test "${ac_cv_prog_CXX+set}" = set; then
3677   echo $ECHO_N "(cached) $ECHO_C" >&6
3678 else
3679   if test -n "$CXX"; then
3680   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3681 else
3682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3683 for as_dir in $PATH
3684 do
3685   IFS=$as_save_IFS
3686   test -z "$as_dir" && as_dir=.
3687   for ac_exec_ext in '' $ac_executable_extensions; do
3688   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3689     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3690     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3691     break 2
3692   fi
3693 done
3694 done
3695 IFS=$as_save_IFS
3696
3697 fi
3698 fi
3699 CXX=$ac_cv_prog_CXX
3700 if test -n "$CXX"; then
3701   { echo "$as_me:$LINENO: result: $CXX" >&5
3702 echo "${ECHO_T}$CXX" >&6; }
3703 else
3704   { echo "$as_me:$LINENO: result: no" >&5
3705 echo "${ECHO_T}no" >&6; }
3706 fi
3707
3708
3709     test -n "$CXX" && break
3710   done
3711 fi
3712 if test -z "$CXX"; then
3713   ac_ct_CXX=$CXX
3714   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3715 do
3716   # Extract the first word of "$ac_prog", so it can be a program name with args.
3717 set dummy $ac_prog; ac_word=$2
3718 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3720 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3721   echo $ECHO_N "(cached) $ECHO_C" >&6
3722 else
3723   if test -n "$ac_ct_CXX"; then
3724   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3725 else
3726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3727 for as_dir in $PATH
3728 do
3729   IFS=$as_save_IFS
3730   test -z "$as_dir" && as_dir=.
3731   for ac_exec_ext in '' $ac_executable_extensions; do
3732   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3733     ac_cv_prog_ac_ct_CXX="$ac_prog"
3734     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3735     break 2
3736   fi
3737 done
3738 done
3739 IFS=$as_save_IFS
3740
3741 fi
3742 fi
3743 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3744 if test -n "$ac_ct_CXX"; then
3745   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3746 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3747 else
3748   { echo "$as_me:$LINENO: result: no" >&5
3749 echo "${ECHO_T}no" >&6; }
3750 fi
3751
3752
3753   test -n "$ac_ct_CXX" && break
3754 done
3755
3756   if test "x$ac_ct_CXX" = x; then
3757     CXX="g++"
3758   else
3759     case $cross_compiling:$ac_tool_warned in
3760 yes:)
3761 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3762 whose name does not start with the host triplet.  If you think this
3763 configuration is useful to you, please write to autoconf@gnu.org." >&5
3764 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3765 whose name does not start with the host triplet.  If you think this
3766 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3767 ac_tool_warned=yes ;;
3768 esac
3769     CXX=$ac_ct_CXX
3770   fi
3771 fi
3772
3773   fi
3774 fi
3775 # Provide some information about the compiler.
3776 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3777 ac_compiler=`set X $ac_compile; echo $2`
3778 { (ac_try="$ac_compiler --version >&5"
3779 case "(($ac_try" in
3780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3781   *) ac_try_echo=$ac_try;;
3782 esac
3783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3784   (eval "$ac_compiler --version >&5") 2>&5
3785   ac_status=$?
3786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787   (exit $ac_status); }
3788 { (ac_try="$ac_compiler -v >&5"
3789 case "(($ac_try" in
3790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3791   *) ac_try_echo=$ac_try;;
3792 esac
3793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3794   (eval "$ac_compiler -v >&5") 2>&5
3795   ac_status=$?
3796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797   (exit $ac_status); }
3798 { (ac_try="$ac_compiler -V >&5"
3799 case "(($ac_try" in
3800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3801   *) ac_try_echo=$ac_try;;
3802 esac
3803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3804   (eval "$ac_compiler -V >&5") 2>&5
3805   ac_status=$?
3806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807   (exit $ac_status); }
3808
3809 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3810 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3811 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3812   echo $ECHO_N "(cached) $ECHO_C" >&6
3813 else
3814   cat >conftest.$ac_ext <<_ACEOF
3815 /* confdefs.h.  */
3816 _ACEOF
3817 cat confdefs.h >>conftest.$ac_ext
3818 cat >>conftest.$ac_ext <<_ACEOF
3819 /* end confdefs.h.  */
3820
3821 int
3822 main ()
3823 {
3824 #ifndef __GNUC__
3825        choke me
3826 #endif
3827
3828   ;
3829   return 0;
3830 }
3831 _ACEOF
3832 rm -f conftest.$ac_objext
3833 if { (ac_try="$ac_compile"
3834 case "(($ac_try" in
3835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3836   *) ac_try_echo=$ac_try;;
3837 esac
3838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3839   (eval "$ac_compile") 2>conftest.er1
3840   ac_status=$?
3841   grep -v '^ *+' conftest.er1 >conftest.err
3842   rm -f conftest.er1
3843   cat conftest.err >&5
3844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845   (exit $ac_status); } &&
3846          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3847   { (case "(($ac_try" in
3848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849   *) ac_try_echo=$ac_try;;
3850 esac
3851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3852   (eval "$ac_try") 2>&5
3853   ac_status=$?
3854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855   (exit $ac_status); }; } &&
3856          { ac_try='test -s conftest.$ac_objext'
3857   { (case "(($ac_try" in
3858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3859   *) ac_try_echo=$ac_try;;
3860 esac
3861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3862   (eval "$ac_try") 2>&5
3863   ac_status=$?
3864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865   (exit $ac_status); }; }; then
3866   ac_compiler_gnu=yes
3867 else
3868   echo "$as_me: failed program was:" >&5
3869 sed 's/^/| /' conftest.$ac_ext >&5
3870
3871         ac_compiler_gnu=no
3872 fi
3873
3874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3875 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3876
3877 fi
3878 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3879 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3880 GXX=`test $ac_compiler_gnu = yes && echo yes`
3881 ac_test_CXXFLAGS=${CXXFLAGS+set}
3882 ac_save_CXXFLAGS=$CXXFLAGS
3883 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3884 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3885 if test "${ac_cv_prog_cxx_g+set}" = set; then
3886   echo $ECHO_N "(cached) $ECHO_C" >&6
3887 else
3888   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3889    ac_cxx_werror_flag=yes
3890    ac_cv_prog_cxx_g=no
3891    CXXFLAGS="-g"
3892    cat >conftest.$ac_ext <<_ACEOF
3893 /* confdefs.h.  */
3894 _ACEOF
3895 cat confdefs.h >>conftest.$ac_ext
3896 cat >>conftest.$ac_ext <<_ACEOF
3897 /* end confdefs.h.  */
3898
3899 int
3900 main ()
3901 {
3902
3903   ;
3904   return 0;
3905 }
3906 _ACEOF
3907 rm -f conftest.$ac_objext
3908 if { (ac_try="$ac_compile"
3909 case "(($ac_try" in
3910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3911   *) ac_try_echo=$ac_try;;
3912 esac
3913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3914   (eval "$ac_compile") 2>conftest.er1
3915   ac_status=$?
3916   grep -v '^ *+' conftest.er1 >conftest.err
3917   rm -f conftest.er1
3918   cat conftest.err >&5
3919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920   (exit $ac_status); } &&
3921          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3922   { (case "(($ac_try" in
3923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3924   *) ac_try_echo=$ac_try;;
3925 esac
3926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3927   (eval "$ac_try") 2>&5
3928   ac_status=$?
3929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930   (exit $ac_status); }; } &&
3931          { ac_try='test -s conftest.$ac_objext'
3932   { (case "(($ac_try" in
3933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3934   *) ac_try_echo=$ac_try;;
3935 esac
3936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3937   (eval "$ac_try") 2>&5
3938   ac_status=$?
3939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940   (exit $ac_status); }; }; then
3941   ac_cv_prog_cxx_g=yes
3942 else
3943   echo "$as_me: failed program was:" >&5
3944 sed 's/^/| /' conftest.$ac_ext >&5
3945
3946         CXXFLAGS=""
3947       cat >conftest.$ac_ext <<_ACEOF
3948 /* confdefs.h.  */
3949 _ACEOF
3950 cat confdefs.h >>conftest.$ac_ext
3951 cat >>conftest.$ac_ext <<_ACEOF
3952 /* end confdefs.h.  */
3953
3954 int
3955 main ()
3956 {
3957
3958   ;
3959   return 0;
3960 }
3961 _ACEOF
3962 rm -f conftest.$ac_objext
3963 if { (ac_try="$ac_compile"
3964 case "(($ac_try" in
3965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3966   *) ac_try_echo=$ac_try;;
3967 esac
3968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3969   (eval "$ac_compile") 2>conftest.er1
3970   ac_status=$?
3971   grep -v '^ *+' conftest.er1 >conftest.err
3972   rm -f conftest.er1
3973   cat conftest.err >&5
3974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975   (exit $ac_status); } &&
3976          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3977   { (case "(($ac_try" in
3978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3979   *) ac_try_echo=$ac_try;;
3980 esac
3981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3982   (eval "$ac_try") 2>&5
3983   ac_status=$?
3984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985   (exit $ac_status); }; } &&
3986          { ac_try='test -s conftest.$ac_objext'
3987   { (case "(($ac_try" in
3988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3989   *) ac_try_echo=$ac_try;;
3990 esac
3991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3992   (eval "$ac_try") 2>&5
3993   ac_status=$?
3994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995   (exit $ac_status); }; }; then
3996   :
3997 else
3998   echo "$as_me: failed program was:" >&5
3999 sed 's/^/| /' conftest.$ac_ext >&5
4000
4001         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4002          CXXFLAGS="-g"
4003          cat >conftest.$ac_ext <<_ACEOF
4004 /* confdefs.h.  */
4005 _ACEOF
4006 cat confdefs.h >>conftest.$ac_ext
4007 cat >>conftest.$ac_ext <<_ACEOF
4008 /* end confdefs.h.  */
4009
4010 int
4011 main ()
4012 {
4013
4014   ;
4015   return 0;
4016 }
4017 _ACEOF
4018 rm -f conftest.$ac_objext
4019 if { (ac_try="$ac_compile"
4020 case "(($ac_try" in
4021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4022   *) ac_try_echo=$ac_try;;
4023 esac
4024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4025   (eval "$ac_compile") 2>conftest.er1
4026   ac_status=$?
4027   grep -v '^ *+' conftest.er1 >conftest.err
4028   rm -f conftest.er1
4029   cat conftest.err >&5
4030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031   (exit $ac_status); } &&
4032          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4033   { (case "(($ac_try" in
4034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4035   *) ac_try_echo=$ac_try;;
4036 esac
4037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4038   (eval "$ac_try") 2>&5
4039   ac_status=$?
4040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041   (exit $ac_status); }; } &&
4042          { ac_try='test -s conftest.$ac_objext'
4043   { (case "(($ac_try" in
4044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4045   *) ac_try_echo=$ac_try;;
4046 esac
4047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4048   (eval "$ac_try") 2>&5
4049   ac_status=$?
4050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051   (exit $ac_status); }; }; then
4052   ac_cv_prog_cxx_g=yes
4053 else
4054   echo "$as_me: failed program was:" >&5
4055 sed 's/^/| /' conftest.$ac_ext >&5
4056
4057
4058 fi
4059
4060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4061 fi
4062
4063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4064 fi
4065
4066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4067    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4068 fi
4069 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4070 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4071 if test "$ac_test_CXXFLAGS" = set; then
4072   CXXFLAGS=$ac_save_CXXFLAGS
4073 elif test $ac_cv_prog_cxx_g = yes; then
4074   if test "$GXX" = yes; then
4075     CXXFLAGS="-g -O2"
4076   else
4077     CXXFLAGS="-g"
4078   fi
4079 else
4080   if test "$GXX" = yes; then
4081     CXXFLAGS="-O2"
4082   else
4083     CXXFLAGS=
4084   fi
4085 fi
4086 ac_ext=c
4087 ac_cpp='$CPP $CPPFLAGS'
4088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4091
4092 depcc="$CXX"  am_compiler_list=
4093
4094 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4095 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4096 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4097   echo $ECHO_N "(cached) $ECHO_C" >&6
4098 else
4099   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4100   # We make a subdir and do the tests there.  Otherwise we can end up
4101   # making bogus files that we don't know about and never remove.  For
4102   # instance it was reported that on HP-UX the gcc test will end up
4103   # making a dummy file named `D' -- because `-MD' means `put the output
4104   # in D'.
4105   mkdir conftest.dir
4106   # Copy depcomp to subdir because otherwise we won't find it if we're
4107   # using a relative directory.
4108   cp "$am_depcomp" conftest.dir
4109   cd conftest.dir
4110   # We will build objects and dependencies in a subdirectory because
4111   # it helps to detect inapplicable dependency modes.  For instance
4112   # both Tru64's cc and ICC support -MD to output dependencies as a
4113   # side effect of compilation, but ICC will put the dependencies in
4114   # the current directory while Tru64 will put them in the object
4115   # directory.
4116   mkdir sub
4117
4118   am_cv_CXX_dependencies_compiler_type=none
4119   if test "$am_compiler_list" = ""; then
4120      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4121   fi
4122   for depmode in $am_compiler_list; do
4123     # Setup a source with many dependencies, because some compilers
4124     # like to wrap large dependency lists on column 80 (with \), and
4125     # we should not choose a depcomp mode which is confused by this.
4126     #
4127     # We need to recreate these files for each test, as the compiler may
4128     # overwrite some of them when testing with obscure command lines.
4129     # This happens at least with the AIX C compiler.
4130     : > sub/conftest.c
4131     for i in 1 2 3 4 5 6; do
4132       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4133       : > sub/conftst$i.h
4134     done
4135     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4136
4137     case $depmode in
4138     nosideeffect)
4139       # after this tag, mechanisms are not by side-effect, so they'll
4140       # only be used when explicitly requested
4141       if test "x$enable_dependency_tracking" = xyes; then
4142         continue
4143       else
4144         break
4145       fi
4146       ;;
4147     none) break ;;
4148     esac
4149     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4150     # mode.  It turns out that the SunPro C++ compiler does not properly
4151     # handle `-M -o', and we need to detect this.
4152     if depmode=$depmode \
4153        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4154        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4155        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4156          >/dev/null 2>conftest.err &&
4157        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4158        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4159        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4160       # icc doesn't choke on unknown options, it will just issue warnings
4161       # (even with -Werror).  So we grep stderr for any message
4162       # that says an option was ignored.
4163       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
4164         am_cv_CXX_dependencies_compiler_type=$depmode
4165         break
4166       fi
4167     fi
4168   done
4169
4170   cd ..
4171   rm -rf conftest.dir
4172 else
4173   am_cv_CXX_dependencies_compiler_type=none
4174 fi
4175
4176 fi
4177 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4178 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4179 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4180
4181
4182
4183 if
4184   test "x$enable_dependency_tracking" != xno \
4185   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4186   am__fastdepCXX_TRUE=
4187   am__fastdepCXX_FALSE='#'
4188 else
4189   am__fastdepCXX_TRUE='#'
4190   am__fastdepCXX_FALSE=
4191 fi
4192
4193
4194
4195 ac_ext=c
4196 ac_cpp='$CPP $CPPFLAGS'
4197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4200 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4201 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4202 # On Suns, sometimes $CPP names a directory.
4203 if test -n "$CPP" && test -d "$CPP"; then
4204   CPP=
4205 fi
4206 if test -z "$CPP"; then
4207   if test "${ac_cv_prog_CPP+set}" = set; then
4208   echo $ECHO_N "(cached) $ECHO_C" >&6
4209 else
4210       # Double quotes because CPP needs to be expanded
4211     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4212     do
4213       ac_preproc_ok=false
4214 for ac_c_preproc_warn_flag in '' yes
4215 do
4216   # Use a header file that comes with gcc, so configuring glibc
4217   # with a fresh cross-compiler works.
4218   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4219   # <limits.h> exists even on freestanding compilers.
4220   # On the NeXT, cc -E runs the code through the compiler's parser,
4221   # not just through cpp. "Syntax error" is here to catch this case.
4222   cat >conftest.$ac_ext <<_ACEOF
4223 /* confdefs.h.  */
4224 _ACEOF
4225 cat confdefs.h >>conftest.$ac_ext
4226 cat >>conftest.$ac_ext <<_ACEOF
4227 /* end confdefs.h.  */
4228 #ifdef __STDC__
4229 # include <limits.h>
4230 #else
4231 # include <assert.h>
4232 #endif
4233                      Syntax error
4234 _ACEOF
4235 if { (ac_try="$ac_cpp conftest.$ac_ext"
4236 case "(($ac_try" in
4237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4238   *) ac_try_echo=$ac_try;;
4239 esac
4240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4241   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4242   ac_status=$?
4243   grep -v '^ *+' conftest.er1 >conftest.err
4244   rm -f conftest.er1
4245   cat conftest.err >&5
4246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247   (exit $ac_status); } >/dev/null; then
4248   if test -s conftest.err; then
4249     ac_cpp_err=$ac_c_preproc_warn_flag
4250     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4251   else
4252     ac_cpp_err=
4253   fi
4254 else
4255   ac_cpp_err=yes
4256 fi
4257 if test -z "$ac_cpp_err"; then
4258   :
4259 else
4260   echo "$as_me: failed program was:" >&5
4261 sed 's/^/| /' conftest.$ac_ext >&5
4262
4263   # Broken: fails on valid input.
4264 continue
4265 fi
4266
4267 rm -f conftest.err conftest.$ac_ext
4268
4269   # OK, works on sane cases.  Now check whether nonexistent headers
4270   # can be detected and how.
4271   cat >conftest.$ac_ext <<_ACEOF
4272 /* confdefs.h.  */
4273 _ACEOF
4274 cat confdefs.h >>conftest.$ac_ext
4275 cat >>conftest.$ac_ext <<_ACEOF
4276 /* end confdefs.h.  */
4277 #include <ac_nonexistent.h>
4278 _ACEOF
4279 if { (ac_try="$ac_cpp conftest.$ac_ext"
4280 case "(($ac_try" in
4281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4282   *) ac_try_echo=$ac_try;;
4283 esac
4284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4285   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4286   ac_status=$?
4287   grep -v '^ *+' conftest.er1 >conftest.err
4288   rm -f conftest.er1
4289   cat conftest.err >&5
4290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291   (exit $ac_status); } >/dev/null; then
4292   if test -s conftest.err; then
4293     ac_cpp_err=$ac_c_preproc_warn_flag
4294     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4295   else
4296     ac_cpp_err=
4297   fi
4298 else
4299   ac_cpp_err=yes
4300 fi
4301 if test -z "$ac_cpp_err"; then
4302   # Broken: success on invalid input.
4303 continue
4304 else
4305   echo "$as_me: failed program was:" >&5
4306 sed 's/^/| /' conftest.$ac_ext >&5
4307
4308   # Passes both tests.
4309 ac_preproc_ok=:
4310 break
4311 fi
4312
4313 rm -f conftest.err conftest.$ac_ext
4314
4315 done
4316 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4317 rm -f conftest.err conftest.$ac_ext
4318 if $ac_preproc_ok; then
4319   break
4320 fi
4321
4322     done
4323     ac_cv_prog_CPP=$CPP
4324
4325 fi
4326   CPP=$ac_cv_prog_CPP
4327 else
4328   ac_cv_prog_CPP=$CPP
4329 fi
4330 { echo "$as_me:$LINENO: result: $CPP" >&5
4331 echo "${ECHO_T}$CPP" >&6; }
4332 ac_preproc_ok=false
4333 for ac_c_preproc_warn_flag in '' yes
4334 do
4335   # Use a header file that comes with gcc, so configuring glibc
4336   # with a fresh cross-compiler works.
4337   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4338   # <limits.h> exists even on freestanding compilers.
4339   # On the NeXT, cc -E runs the code through the compiler's parser,
4340   # not just through cpp. "Syntax error" is here to catch this case.
4341   cat >conftest.$ac_ext <<_ACEOF
4342 /* confdefs.h.  */
4343 _ACEOF
4344 cat confdefs.h >>conftest.$ac_ext
4345 cat >>conftest.$ac_ext <<_ACEOF
4346 /* end confdefs.h.  */
4347 #ifdef __STDC__
4348 # include <limits.h>
4349 #else
4350 # include <assert.h>
4351 #endif
4352                      Syntax error
4353 _ACEOF
4354 if { (ac_try="$ac_cpp conftest.$ac_ext"
4355 case "(($ac_try" in
4356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4357   *) ac_try_echo=$ac_try;;
4358 esac
4359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4360   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4361   ac_status=$?
4362   grep -v '^ *+' conftest.er1 >conftest.err
4363   rm -f conftest.er1
4364   cat conftest.err >&5
4365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366   (exit $ac_status); } >/dev/null; then
4367   if test -s conftest.err; then
4368     ac_cpp_err=$ac_c_preproc_warn_flag
4369     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4370   else
4371     ac_cpp_err=
4372   fi
4373 else
4374   ac_cpp_err=yes
4375 fi
4376 if test -z "$ac_cpp_err"; then
4377   :
4378 else
4379   echo "$as_me: failed program was:" >&5
4380 sed 's/^/| /' conftest.$ac_ext >&5
4381
4382   # Broken: fails on valid input.
4383 continue
4384 fi
4385
4386 rm -f conftest.err conftest.$ac_ext
4387
4388   # OK, works on sane cases.  Now check whether nonexistent headers
4389   # can be detected and how.
4390   cat >conftest.$ac_ext <<_ACEOF
4391 /* confdefs.h.  */
4392 _ACEOF
4393 cat confdefs.h >>conftest.$ac_ext
4394 cat >>conftest.$ac_ext <<_ACEOF
4395 /* end confdefs.h.  */
4396 #include <ac_nonexistent.h>
4397 _ACEOF
4398 if { (ac_try="$ac_cpp conftest.$ac_ext"
4399 case "(($ac_try" in
4400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4401   *) ac_try_echo=$ac_try;;
4402 esac
4403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4404   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4405   ac_status=$?
4406   grep -v '^ *+' conftest.er1 >conftest.err
4407   rm -f conftest.er1
4408   cat conftest.err >&5
4409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410   (exit $ac_status); } >/dev/null; then
4411   if test -s conftest.err; then
4412     ac_cpp_err=$ac_c_preproc_warn_flag
4413     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4414   else
4415     ac_cpp_err=
4416   fi
4417 else
4418   ac_cpp_err=yes
4419 fi
4420 if test -z "$ac_cpp_err"; then
4421   # Broken: success on invalid input.
4422 continue
4423 else
4424   echo "$as_me: failed program was:" >&5
4425 sed 's/^/| /' conftest.$ac_ext >&5
4426
4427   # Passes both tests.
4428 ac_preproc_ok=:
4429 break
4430 fi
4431
4432 rm -f conftest.err conftest.$ac_ext
4433
4434 done
4435 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4436 rm -f conftest.err conftest.$ac_ext
4437 if $ac_preproc_ok; then
4438   :
4439 else
4440   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4441 See \`config.log' for more details." >&5
4442 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4443 See \`config.log' for more details." >&2;}
4444    { (exit 1); exit 1; }; }
4445 fi
4446
4447 ac_ext=c
4448 ac_cpp='$CPP $CPPFLAGS'
4449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4452
4453
4454 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4455 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4456 if test "${ac_cv_path_GREP+set}" = set; then
4457   echo $ECHO_N "(cached) $ECHO_C" >&6
4458 else
4459   # Extract the first word of "grep ggrep" to use in msg output
4460 if test -z "$GREP"; then
4461 set dummy grep ggrep; ac_prog_name=$2
4462 if test "${ac_cv_path_GREP+set}" = set; then
4463   echo $ECHO_N "(cached) $ECHO_C" >&6
4464 else
4465   ac_path_GREP_found=false
4466 # Loop through the user's path and test for each of PROGNAME-LIST
4467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4468 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4469 do
4470   IFS=$as_save_IFS
4471   test -z "$as_dir" && as_dir=.
4472   for ac_prog in grep ggrep; do
4473   for ac_exec_ext in '' $ac_executable_extensions; do
4474     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4475     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4476     # Check for GNU ac_path_GREP and select it if it is found.
4477   # Check for GNU $ac_path_GREP
4478 case `"$ac_path_GREP" --version 2>&1` in
4479 *GNU*)
4480   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4481 *)
4482   ac_count=0
4483   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4484   while :
4485   do
4486     cat "conftest.in" "conftest.in" >"conftest.tmp"
4487     mv "conftest.tmp" "conftest.in"
4488     cp "conftest.in" "conftest.nl"
4489     echo 'GREP' >> "conftest.nl"
4490     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4491     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4492     ac_count=`expr $ac_count + 1`
4493     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4494       # Best one so far, save it but keep looking for a better one
4495       ac_cv_path_GREP="$ac_path_GREP"
4496       ac_path_GREP_max=$ac_count
4497     fi
4498     # 10*(2^10) chars as input seems more than enough
4499     test $ac_count -gt 10 && break
4500   done
4501   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4502 esac
4503
4504
4505     $ac_path_GREP_found && break 3
4506   done
4507 done
4508
4509 done
4510 IFS=$as_save_IFS
4511
4512
4513 fi
4514
4515 GREP="$ac_cv_path_GREP"
4516 if test -z "$GREP"; then
4517   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4518 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4519    { (exit 1); exit 1; }; }
4520 fi
4521
4522 else
4523   ac_cv_path_GREP=$GREP
4524 fi
4525
4526
4527 fi
4528 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4529 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4530  GREP="$ac_cv_path_GREP"
4531
4532
4533 { echo "$as_me:$LINENO: checking for egrep" >&5
4534 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4535 if test "${ac_cv_path_EGREP+set}" = set; then
4536   echo $ECHO_N "(cached) $ECHO_C" >&6
4537 else
4538   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4539    then ac_cv_path_EGREP="$GREP -E"
4540    else
4541      # Extract the first word of "egrep" to use in msg output
4542 if test -z "$EGREP"; then
4543 set dummy egrep; ac_prog_name=$2
4544 if test "${ac_cv_path_EGREP+set}" = set; then
4545   echo $ECHO_N "(cached) $ECHO_C" >&6
4546 else
4547   ac_path_EGREP_found=false
4548 # Loop through the user's path and test for each of PROGNAME-LIST
4549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4550 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4551 do
4552   IFS=$as_save_IFS
4553   test -z "$as_dir" && as_dir=.
4554   for ac_prog in egrep; do
4555   for ac_exec_ext in '' $ac_executable_extensions; do
4556     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4557     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4558     # Check for GNU ac_path_EGREP and select it if it is found.
4559   # Check for GNU $ac_path_EGREP
4560 case `"$ac_path_EGREP" --version 2>&1` in
4561 *GNU*)
4562   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4563 *)
4564   ac_count=0
4565   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4566   while :
4567   do
4568     cat "conftest.in" "conftest.in" >"conftest.tmp"
4569     mv "conftest.tmp" "conftest.in"
4570     cp "conftest.in" "conftest.nl"
4571     echo 'EGREP' >> "conftest.nl"
4572     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4573     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4574     ac_count=`expr $ac_count + 1`
4575     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4576       # Best one so far, save it but keep looking for a better one
4577       ac_cv_path_EGREP="$ac_path_EGREP"
4578       ac_path_EGREP_max=$ac_count
4579     fi
4580     # 10*(2^10) chars as input seems more than enough
4581     test $ac_count -gt 10 && break
4582   done
4583   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4584 esac
4585
4586
4587     $ac_path_EGREP_found && break 3
4588   done
4589 done
4590
4591 done
4592 IFS=$as_save_IFS
4593
4594
4595 fi
4596
4597 EGREP="$ac_cv_path_EGREP"
4598 if test -z "$EGREP"; then
4599   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4600 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4601    { (exit 1); exit 1; }; }
4602 fi
4603
4604 else
4605   ac_cv_path_EGREP=$EGREP
4606 fi
4607
4608
4609    fi
4610 fi
4611 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4612 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4613  EGREP="$ac_cv_path_EGREP"
4614
4615
4616 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4617 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4618 if test "${ac_cv_header_stdc+set}" = set; then
4619   echo $ECHO_N "(cached) $ECHO_C" >&6
4620 else
4621   cat >conftest.$ac_ext <<_ACEOF
4622 /* confdefs.h.  */
4623 _ACEOF
4624 cat confdefs.h >>conftest.$ac_ext
4625 cat >>conftest.$ac_ext <<_ACEOF
4626 /* end confdefs.h.  */
4627 #include <stdlib.h>
4628 #include <stdarg.h>
4629 #include <string.h>
4630 #include <float.h>
4631
4632 int
4633 main ()
4634 {
4635
4636   ;
4637   return 0;
4638 }
4639 _ACEOF
4640 rm -f conftest.$ac_objext
4641 if { (ac_try="$ac_compile"
4642 case "(($ac_try" in
4643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4644   *) ac_try_echo=$ac_try;;
4645 esac
4646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4647   (eval "$ac_compile") 2>conftest.er1
4648   ac_status=$?
4649   grep -v '^ *+' conftest.er1 >conftest.err
4650   rm -f conftest.er1
4651   cat conftest.err >&5
4652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653   (exit $ac_status); } &&
4654          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4655   { (case "(($ac_try" in
4656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4657   *) ac_try_echo=$ac_try;;
4658 esac
4659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4660   (eval "$ac_try") 2>&5
4661   ac_status=$?
4662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663   (exit $ac_status); }; } &&
4664          { ac_try='test -s conftest.$ac_objext'
4665   { (case "(($ac_try" in
4666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4667   *) ac_try_echo=$ac_try;;
4668 esac
4669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4670   (eval "$ac_try") 2>&5
4671   ac_status=$?
4672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673   (exit $ac_status); }; }; then
4674   ac_cv_header_stdc=yes
4675 else
4676   echo "$as_me: failed program was:" >&5
4677 sed 's/^/| /' conftest.$ac_ext >&5
4678
4679         ac_cv_header_stdc=no
4680 fi
4681
4682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4683
4684 if test $ac_cv_header_stdc = yes; then
4685   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4686   cat >conftest.$ac_ext <<_ACEOF
4687 /* confdefs.h.  */
4688 _ACEOF
4689 cat confdefs.h >>conftest.$ac_ext
4690 cat >>conftest.$ac_ext <<_ACEOF
4691 /* end confdefs.h.  */
4692 #include <string.h>
4693
4694 _ACEOF
4695 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4696   $EGREP "memchr" >/dev/null 2>&1; then
4697   :
4698 else
4699   ac_cv_header_stdc=no
4700 fi
4701 rm -f conftest*
4702
4703 fi
4704
4705 if test $ac_cv_header_stdc = yes; then
4706   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4707   cat >conftest.$ac_ext <<_ACEOF
4708 /* confdefs.h.  */
4709 _ACEOF
4710 cat confdefs.h >>conftest.$ac_ext
4711 cat >>conftest.$ac_ext <<_ACEOF
4712 /* end confdefs.h.  */
4713 #include <stdlib.h>
4714
4715 _ACEOF
4716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4717   $EGREP "free" >/dev/null 2>&1; then
4718   :
4719 else
4720   ac_cv_header_stdc=no
4721 fi
4722 rm -f conftest*
4723
4724 fi
4725
4726 if test $ac_cv_header_stdc = yes; then
4727   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4728   if test "$cross_compiling" = yes; then
4729   :
4730 else
4731   cat >conftest.$ac_ext <<_ACEOF
4732 /* confdefs.h.  */
4733 _ACEOF
4734 cat confdefs.h >>conftest.$ac_ext
4735 cat >>conftest.$ac_ext <<_ACEOF
4736 /* end confdefs.h.  */
4737 #include <ctype.h>
4738 #include <stdlib.h>
4739 #if ((' ' & 0x0FF) == 0x020)
4740 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4741 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4742 #else
4743 # define ISLOWER(c) \
4744                    (('a' <= (c) && (c) <= 'i') \
4745                      || ('j' <= (c) && (c) <= 'r') \
4746                      || ('s' <= (c) && (c) <= 'z'))
4747 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4748 #endif
4749
4750 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4751 int
4752 main ()
4753 {
4754   int i;
4755   for (i = 0; i < 256; i++)
4756     if (XOR (islower (i), ISLOWER (i))
4757         || toupper (i) != TOUPPER (i))
4758       return 2;
4759   return 0;
4760 }
4761 _ACEOF
4762 rm -f conftest$ac_exeext
4763 if { (ac_try="$ac_link"
4764 case "(($ac_try" in
4765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4766   *) ac_try_echo=$ac_try;;
4767 esac
4768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4769   (eval "$ac_link") 2>&5
4770   ac_status=$?
4771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4773   { (case "(($ac_try" in
4774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4775   *) ac_try_echo=$ac_try;;
4776 esac
4777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4778   (eval "$ac_try") 2>&5
4779   ac_status=$?
4780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781   (exit $ac_status); }; }; then
4782   :
4783 else
4784   echo "$as_me: program exited with status $ac_status" >&5
4785 echo "$as_me: failed program was:" >&5
4786 sed 's/^/| /' conftest.$ac_ext >&5
4787
4788 ( exit $ac_status )
4789 ac_cv_header_stdc=no
4790 fi
4791 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4792 fi
4793
4794
4795 fi
4796 fi
4797 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4798 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4799 if test $ac_cv_header_stdc = yes; then
4800
4801 cat >>confdefs.h <<\_ACEOF
4802 #define STDC_HEADERS 1
4803 _ACEOF
4804
4805 fi
4806
4807 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4818                   inttypes.h stdint.h unistd.h
4819 do
4820 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4821 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4824   echo $ECHO_N "(cached) $ECHO_C" >&6
4825 else
4826   cat >conftest.$ac_ext <<_ACEOF
4827 /* confdefs.h.  */
4828 _ACEOF
4829 cat confdefs.h >>conftest.$ac_ext
4830 cat >>conftest.$ac_ext <<_ACEOF
4831 /* end confdefs.h.  */
4832 $ac_includes_default
4833
4834 #include <$ac_header>
4835 _ACEOF
4836 rm -f conftest.$ac_objext
4837 if { (ac_try="$ac_compile"
4838 case "(($ac_try" in
4839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4840   *) ac_try_echo=$ac_try;;
4841 esac
4842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4843   (eval "$ac_compile") 2>conftest.er1
4844   ac_status=$?
4845   grep -v '^ *+' conftest.er1 >conftest.err
4846   rm -f conftest.er1
4847   cat conftest.err >&5
4848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849   (exit $ac_status); } &&
4850          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4851   { (case "(($ac_try" in
4852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4853   *) ac_try_echo=$ac_try;;
4854 esac
4855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4856   (eval "$ac_try") 2>&5
4857   ac_status=$?
4858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859   (exit $ac_status); }; } &&
4860          { ac_try='test -s conftest.$ac_objext'
4861   { (case "(($ac_try" in
4862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4863   *) ac_try_echo=$ac_try;;
4864 esac
4865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4866   (eval "$ac_try") 2>&5
4867   ac_status=$?
4868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869   (exit $ac_status); }; }; then
4870   eval "$as_ac_Header=yes"
4871 else
4872   echo "$as_me: failed program was:" >&5
4873 sed 's/^/| /' conftest.$ac_ext >&5
4874
4875         eval "$as_ac_Header=no"
4876 fi
4877
4878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4879 fi
4880 ac_res=`eval echo '${'$as_ac_Header'}'`
4881                { echo "$as_me:$LINENO: result: $ac_res" >&5
4882 echo "${ECHO_T}$ac_res" >&6; }
4883 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4884   cat >>confdefs.h <<_ACEOF
4885 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4886 _ACEOF
4887
4888 fi
4889
4890 done
4891
4892
4893 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4894 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4895 if test "${ac_cv_c_bigendian+set}" = set; then
4896   echo $ECHO_N "(cached) $ECHO_C" >&6
4897 else
4898   # See if sys/param.h defines the BYTE_ORDER macro.
4899 cat >conftest.$ac_ext <<_ACEOF
4900 /* confdefs.h.  */
4901 _ACEOF
4902 cat confdefs.h >>conftest.$ac_ext
4903 cat >>conftest.$ac_ext <<_ACEOF
4904 /* end confdefs.h.  */
4905 #include <sys/types.h>
4906 #include <sys/param.h>
4907
4908 int
4909 main ()
4910 {
4911 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4912         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4913  bogus endian macros
4914 #endif
4915
4916   ;
4917   return 0;
4918 }
4919 _ACEOF
4920 rm -f conftest.$ac_objext
4921 if { (ac_try="$ac_compile"
4922 case "(($ac_try" in
4923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4924   *) ac_try_echo=$ac_try;;
4925 esac
4926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4927   (eval "$ac_compile") 2>conftest.er1
4928   ac_status=$?
4929   grep -v '^ *+' conftest.er1 >conftest.err
4930   rm -f conftest.er1
4931   cat conftest.err >&5
4932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933   (exit $ac_status); } &&
4934          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4935   { (case "(($ac_try" in
4936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4937   *) ac_try_echo=$ac_try;;
4938 esac
4939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4940   (eval "$ac_try") 2>&5
4941   ac_status=$?
4942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943   (exit $ac_status); }; } &&
4944          { ac_try='test -s conftest.$ac_objext'
4945   { (case "(($ac_try" in
4946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4947   *) ac_try_echo=$ac_try;;
4948 esac
4949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4950   (eval "$ac_try") 2>&5
4951   ac_status=$?
4952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953   (exit $ac_status); }; }; then
4954   # It does; now see whether it defined to BIG_ENDIAN or not.
4955 cat >conftest.$ac_ext <<_ACEOF
4956 /* confdefs.h.  */
4957 _ACEOF
4958 cat confdefs.h >>conftest.$ac_ext
4959 cat >>conftest.$ac_ext <<_ACEOF
4960 /* end confdefs.h.  */
4961 #include <sys/types.h>
4962 #include <sys/param.h>
4963
4964 int
4965 main ()
4966 {
4967 #if BYTE_ORDER != BIG_ENDIAN
4968  not big endian
4969 #endif
4970
4971   ;
4972   return 0;
4973 }
4974 _ACEOF
4975 rm -f conftest.$ac_objext
4976 if { (ac_try="$ac_compile"
4977 case "(($ac_try" in
4978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4979   *) ac_try_echo=$ac_try;;
4980 esac
4981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4982   (eval "$ac_compile") 2>conftest.er1
4983   ac_status=$?
4984   grep -v '^ *+' conftest.er1 >conftest.err
4985   rm -f conftest.er1
4986   cat conftest.err >&5
4987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988   (exit $ac_status); } &&
4989          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4990   { (case "(($ac_try" in
4991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4992   *) ac_try_echo=$ac_try;;
4993 esac
4994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4995   (eval "$ac_try") 2>&5
4996   ac_status=$?
4997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998   (exit $ac_status); }; } &&
4999          { ac_try='test -s conftest.$ac_objext'
5000   { (case "(($ac_try" in
5001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5002   *) ac_try_echo=$ac_try;;
5003 esac
5004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5005   (eval "$ac_try") 2>&5
5006   ac_status=$?
5007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008   (exit $ac_status); }; }; then
5009   ac_cv_c_bigendian=yes
5010 else
5011   echo "$as_me: failed program was:" >&5
5012 sed 's/^/| /' conftest.$ac_ext >&5
5013
5014         ac_cv_c_bigendian=no
5015 fi
5016
5017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5018 else
5019   echo "$as_me: failed program was:" >&5
5020 sed 's/^/| /' conftest.$ac_ext >&5
5021
5022         # It does not; compile a test program.
5023 if test "$cross_compiling" = yes; then
5024   # try to guess the endianness by grepping values into an object file
5025   ac_cv_c_bigendian=unknown
5026   cat >conftest.$ac_ext <<_ACEOF
5027 /* confdefs.h.  */
5028 _ACEOF
5029 cat confdefs.h >>conftest.$ac_ext
5030 cat >>conftest.$ac_ext <<_ACEOF
5031 /* end confdefs.h.  */
5032 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5033 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5034 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
5035 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5036 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5037 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
5038 int
5039 main ()
5040 {
5041  _ascii (); _ebcdic ();
5042   ;
5043   return 0;
5044 }
5045 _ACEOF
5046 rm -f conftest.$ac_objext
5047 if { (ac_try="$ac_compile"
5048 case "(($ac_try" in
5049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5050   *) ac_try_echo=$ac_try;;
5051 esac
5052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5053   (eval "$ac_compile") 2>conftest.er1
5054   ac_status=$?
5055   grep -v '^ *+' conftest.er1 >conftest.err
5056   rm -f conftest.er1
5057   cat conftest.err >&5
5058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059   (exit $ac_status); } &&
5060          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5061   { (case "(($ac_try" in
5062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5063   *) ac_try_echo=$ac_try;;
5064 esac
5065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5066   (eval "$ac_try") 2>&5
5067   ac_status=$?
5068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069   (exit $ac_status); }; } &&
5070          { ac_try='test -s conftest.$ac_objext'
5071   { (case "(($ac_try" in
5072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5073   *) ac_try_echo=$ac_try;;
5074 esac
5075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5076   (eval "$ac_try") 2>&5
5077   ac_status=$?
5078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079   (exit $ac_status); }; }; then
5080   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
5081   ac_cv_c_bigendian=yes
5082 fi
5083 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5084   if test "$ac_cv_c_bigendian" = unknown; then
5085     ac_cv_c_bigendian=no
5086   else
5087     # finding both strings is unlikely to happen, but who knows?
5088     ac_cv_c_bigendian=unknown
5089   fi
5090 fi
5091 else
5092   echo "$as_me: failed program was:" >&5
5093 sed 's/^/| /' conftest.$ac_ext >&5
5094
5095
5096 fi
5097
5098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5099 else
5100   cat >conftest.$ac_ext <<_ACEOF
5101 /* confdefs.h.  */
5102 _ACEOF
5103 cat confdefs.h >>conftest.$ac_ext
5104 cat >>conftest.$ac_ext <<_ACEOF
5105 /* end confdefs.h.  */
5106 $ac_includes_default
5107 int
5108 main ()
5109 {
5110
5111   /* Are we little or big endian?  From Harbison&Steele.  */
5112   union
5113   {
5114     long int l;
5115     char c[sizeof (long int)];
5116   } u;
5117   u.l = 1;
5118   return u.c[sizeof (long int) - 1] == 1;
5119
5120   ;
5121   return 0;
5122 }
5123 _ACEOF
5124 rm -f conftest$ac_exeext
5125 if { (ac_try="$ac_link"
5126 case "(($ac_try" in
5127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5128   *) ac_try_echo=$ac_try;;
5129 esac
5130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5131   (eval "$ac_link") 2>&5
5132   ac_status=$?
5133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5135   { (case "(($ac_try" in
5136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5137   *) ac_try_echo=$ac_try;;
5138 esac
5139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5140   (eval "$ac_try") 2>&5
5141   ac_status=$?
5142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143   (exit $ac_status); }; }; then
5144   ac_cv_c_bigendian=no
5145 else
5146   echo "$as_me: program exited with status $ac_status" >&5
5147 echo "$as_me: failed program was:" >&5
5148 sed 's/^/| /' conftest.$ac_ext >&5
5149
5150 ( exit $ac_status )
5151 ac_cv_c_bigendian=yes
5152 fi
5153 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5154 fi
5155
5156
5157 fi
5158
5159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5160 fi
5161 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5162 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
5163 case $ac_cv_c_bigendian in
5164   yes)
5165
5166 cat >>confdefs.h <<\_ACEOF
5167 #define WORDS_BIGENDIAN 1
5168 _ACEOF
5169  ;;
5170   no)
5171      ;;
5172   *)
5173     { { echo "$as_me:$LINENO: error: unknown endianness
5174 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
5175 echo "$as_me: error: unknown endianness
5176 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
5177    { (exit 1); exit 1; }; } ;;
5178 esac
5179
5180
5181 # Extract the first word of "wxgtk-2.4-config", so it can be a program name with args.
5182 set dummy wxgtk-2.4-config; ac_word=$2
5183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5185 if test "${ac_cv_path_wxconfig+set}" = set; then
5186   echo $ECHO_N "(cached) $ECHO_C" >&6
5187 else
5188   case $wxconfig in
5189   [\\/]* | ?:[\\/]*)
5190   ac_cv_path_wxconfig="$wxconfig" # Let the user override the test with a path.
5191   ;;
5192   *)
5193   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194 for as_dir in $PATH
5195 do
5196   IFS=$as_save_IFS
5197   test -z "$as_dir" && as_dir=.
5198   for ac_exec_ext in '' $ac_executable_extensions; do
5199   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5200     ac_cv_path_wxconfig="$as_dir/$ac_word$ac_exec_ext"
5201     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5202     break 2
5203   fi
5204 done
5205 done
5206 IFS=$as_save_IFS
5207
5208   ;;
5209 esac
5210 fi
5211 wxconfig=$ac_cv_path_wxconfig
5212 if test -n "$wxconfig"; then
5213   { echo "$as_me:$LINENO: result: $wxconfig" >&5
5214 echo "${ECHO_T}$wxconfig" >&6; }
5215 else
5216   { echo "$as_me:$LINENO: result: no" >&5
5217 echo "${ECHO_T}no" >&6; }
5218 fi
5219
5220
5221 if  ! "$wxconfig" ; then
5222   # Extract the first word of "wx-config", so it can be a program name with args.
5223 set dummy wx-config; ac_word=$2
5224 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5226 if test "${ac_cv_path_wxconfig+set}" = set; then
5227   echo $ECHO_N "(cached) $ECHO_C" >&6
5228 else
5229   case $wxconfig in
5230   [\\/]* | ?:[\\/]*)
5231   ac_cv_path_wxconfig="$wxconfig" # Let the user override the test with a path.
5232   ;;
5233   *)
5234   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235 for as_dir in $PATH
5236 do
5237   IFS=$as_save_IFS
5238   test -z "$as_dir" && as_dir=.
5239   for ac_exec_ext in '' $ac_executable_extensions; do
5240   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5241     ac_cv_path_wxconfig="$as_dir/$ac_word$ac_exec_ext"
5242     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5243     break 2
5244   fi
5245 done
5246 done
5247 IFS=$as_save_IFS
5248
5249   ;;
5250 esac
5251 fi
5252 wxconfig=$ac_cv_path_wxconfig
5253 if test -n "$wxconfig"; then
5254   { echo "$as_me:$LINENO: result: $wxconfig" >&5
5255 echo "${ECHO_T}$wxconfig" >&6; }
5256 else
5257   { echo "$as_me:$LINENO: result: no" >&5
5258 echo "${ECHO_T}no" >&6; }
5259 fi
5260
5261
5262 fi
5263
5264 # Make sure we can run config.sub.
5265 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5266   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5267 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5268    { (exit 1); exit 1; }; }
5269
5270 { echo "$as_me:$LINENO: checking build system type" >&5
5271 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5272 if test "${ac_cv_build+set}" = set; then
5273   echo $ECHO_N "(cached) $ECHO_C" >&6
5274 else
5275   ac_build_alias=$build_alias
5276 test "x$ac_build_alias" = x &&
5277   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5278 test "x$ac_build_alias" = x &&
5279   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5280 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5281    { (exit 1); exit 1; }; }
5282 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5283   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5284 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5285    { (exit 1); exit 1; }; }
5286
5287 fi
5288 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5289 echo "${ECHO_T}$ac_cv_build" >&6; }
5290 case $ac_cv_build in
5291 *-*-*) ;;
5292 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5293 echo "$as_me: error: invalid value of canonical build" >&2;}
5294    { (exit 1); exit 1; }; };;
5295 esac
5296 build=$ac_cv_build
5297 ac_save_IFS=$IFS; IFS='-'
5298 set x $ac_cv_build
5299 shift
5300 build_cpu=$1
5301 build_vendor=$2
5302 shift; shift
5303 # Remember, the first character of IFS is used to create $*,
5304 # except with old shells:
5305 build_os=$*
5306 IFS=$ac_save_IFS
5307 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5308
5309
5310 { echo "$as_me:$LINENO: checking host system type" >&5
5311 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5312 if test "${ac_cv_host+set}" = set; then
5313   echo $ECHO_N "(cached) $ECHO_C" >&6
5314 else
5315   if test "x$host_alias" = x; then
5316   ac_cv_host=$ac_cv_build
5317 else
5318   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5319     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5320 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5321    { (exit 1); exit 1; }; }
5322 fi
5323
5324 fi
5325 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5326 echo "${ECHO_T}$ac_cv_host" >&6; }
5327 case $ac_cv_host in
5328 *-*-*) ;;
5329 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5330 echo "$as_me: error: invalid value of canonical host" >&2;}
5331    { (exit 1); exit 1; }; };;
5332 esac
5333 host=$ac_cv_host
5334 ac_save_IFS=$IFS; IFS='-'
5335 set x $ac_cv_host
5336 shift
5337 host_cpu=$1
5338 host_vendor=$2
5339 shift; shift
5340 # Remember, the first character of IFS is used to create $*,
5341 # except with old shells:
5342 host_os=$*
5343 IFS=$ac_save_IFS
5344 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5345
5346
5347 { echo "$as_me:$LINENO: checking for inline" >&5
5348 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5349 if test "${ac_cv_c_inline+set}" = set; then
5350   echo $ECHO_N "(cached) $ECHO_C" >&6
5351 else
5352   ac_cv_c_inline=no
5353 for ac_kw in inline __inline__ __inline; do
5354   cat >conftest.$ac_ext <<_ACEOF
5355 /* confdefs.h.  */
5356 _ACEOF
5357 cat confdefs.h >>conftest.$ac_ext
5358 cat >>conftest.$ac_ext <<_ACEOF
5359 /* end confdefs.h.  */
5360 #ifndef __cplusplus
5361 typedef int foo_t;
5362 static $ac_kw foo_t static_foo () {return 0; }
5363 $ac_kw foo_t foo () {return 0; }
5364 #endif
5365
5366 _ACEOF
5367 rm -f conftest.$ac_objext
5368 if { (ac_try="$ac_compile"
5369 case "(($ac_try" in
5370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5371   *) ac_try_echo=$ac_try;;
5372 esac
5373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5374   (eval "$ac_compile") 2>conftest.er1
5375   ac_status=$?
5376   grep -v '^ *+' conftest.er1 >conftest.err
5377   rm -f conftest.er1
5378   cat conftest.err >&5
5379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380   (exit $ac_status); } &&
5381          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5382   { (case "(($ac_try" in
5383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5384   *) ac_try_echo=$ac_try;;
5385 esac
5386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5387   (eval "$ac_try") 2>&5
5388   ac_status=$?
5389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390   (exit $ac_status); }; } &&
5391          { ac_try='test -s conftest.$ac_objext'
5392   { (case "(($ac_try" in
5393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5394   *) ac_try_echo=$ac_try;;
5395 esac
5396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5397   (eval "$ac_try") 2>&5
5398   ac_status=$?
5399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400   (exit $ac_status); }; }; then
5401   ac_cv_c_inline=$ac_kw
5402 else
5403   echo "$as_me: failed program was:" >&5
5404 sed 's/^/| /' conftest.$ac_ext >&5
5405
5406
5407 fi
5408
5409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5410   test "$ac_cv_c_inline" != no && break
5411 done
5412
5413 fi
5414 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5415 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5416
5417
5418 case $ac_cv_c_inline in
5419   inline | yes) ;;
5420   *)
5421     case $ac_cv_c_inline in
5422       no) ac_val=;;
5423       *) ac_val=$ac_cv_c_inline;;
5424     esac
5425     cat >>confdefs.h <<_ACEOF
5426 #ifndef __cplusplus
5427 #define inline $ac_val
5428 #endif
5429 _ACEOF
5430     ;;
5431 esac
5432
5433 { echo "$as_me:$LINENO: checking for short" >&5
5434 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
5435 if test "${ac_cv_type_short+set}" = set; then
5436   echo $ECHO_N "(cached) $ECHO_C" >&6
5437 else
5438   cat >conftest.$ac_ext <<_ACEOF
5439 /* confdefs.h.  */
5440 _ACEOF
5441 cat confdefs.h >>conftest.$ac_ext
5442 cat >>conftest.$ac_ext <<_ACEOF
5443 /* end confdefs.h.  */
5444 $ac_includes_default
5445 typedef short ac__type_new_;
5446 int
5447 main ()
5448 {
5449 if ((ac__type_new_ *) 0)
5450   return 0;
5451 if (sizeof (ac__type_new_))
5452   return 0;
5453   ;
5454   return 0;
5455 }
5456 _ACEOF
5457 rm -f conftest.$ac_objext
5458 if { (ac_try="$ac_compile"
5459 case "(($ac_try" in
5460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5461   *) ac_try_echo=$ac_try;;
5462 esac
5463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5464   (eval "$ac_compile") 2>conftest.er1
5465   ac_status=$?
5466   grep -v '^ *+' conftest.er1 >conftest.err
5467   rm -f conftest.er1
5468   cat conftest.err >&5
5469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470   (exit $ac_status); } &&
5471          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5472   { (case "(($ac_try" in
5473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5474   *) ac_try_echo=$ac_try;;
5475 esac
5476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5477   (eval "$ac_try") 2>&5
5478   ac_status=$?
5479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480   (exit $ac_status); }; } &&
5481          { ac_try='test -s conftest.$ac_objext'
5482   { (case "(($ac_try" in
5483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5484   *) ac_try_echo=$ac_try;;
5485 esac
5486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5487   (eval "$ac_try") 2>&5
5488   ac_status=$?
5489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490   (exit $ac_status); }; }; then
5491   ac_cv_type_short=yes
5492 else
5493   echo "$as_me: failed program was:" >&5
5494 sed 's/^/| /' conftest.$ac_ext >&5
5495
5496         ac_cv_type_short=no
5497 fi
5498
5499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5500 fi
5501 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5502 echo "${ECHO_T}$ac_cv_type_short" >&6; }
5503
5504 # The cast to long int works around a bug in the HP C Compiler
5505 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5506 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5507 # This bug is HP SR number 8606223364.
5508 { echo "$as_me:$LINENO: checking size of short" >&5
5509 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
5510 if test "${ac_cv_sizeof_short+set}" = set; then
5511   echo $ECHO_N "(cached) $ECHO_C" >&6
5512 else
5513   if test "$cross_compiling" = yes; then
5514   # Depending upon the size, compute the lo and hi bounds.
5515 cat >conftest.$ac_ext <<_ACEOF
5516 /* confdefs.h.  */
5517 _ACEOF
5518 cat confdefs.h >>conftest.$ac_ext
5519 cat >>conftest.$ac_ext <<_ACEOF
5520 /* end confdefs.h.  */
5521 $ac_includes_default
5522                 typedef short ac__type_sizeof_;
5523
5524 int
5525 main ()
5526 {
5527 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5528 test_array [0] = 0
5529
5530   ;
5531   return 0;
5532 }
5533 _ACEOF
5534 rm -f conftest.$ac_objext
5535 if { (ac_try="$ac_compile"
5536 case "(($ac_try" in
5537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5538   *) ac_try_echo=$ac_try;;
5539 esac
5540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5541   (eval "$ac_compile") 2>conftest.er1
5542   ac_status=$?
5543   grep -v '^ *+' conftest.er1 >conftest.err
5544   rm -f conftest.er1
5545   cat conftest.err >&5
5546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547   (exit $ac_status); } &&
5548          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5549   { (case "(($ac_try" in
5550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5551   *) ac_try_echo=$ac_try;;
5552 esac
5553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5554   (eval "$ac_try") 2>&5
5555   ac_status=$?
5556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557   (exit $ac_status); }; } &&
5558          { ac_try='test -s conftest.$ac_objext'
5559   { (case "(($ac_try" in
5560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5561   *) ac_try_echo=$ac_try;;
5562 esac
5563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5564   (eval "$ac_try") 2>&5
5565   ac_status=$?
5566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567   (exit $ac_status); }; }; then
5568   ac_lo=0 ac_mid=0
5569   while :; do
5570     cat >conftest.$ac_ext <<_ACEOF
5571 /* confdefs.h.  */
5572 _ACEOF
5573 cat confdefs.h >>conftest.$ac_ext
5574 cat >>conftest.$ac_ext <<_ACEOF
5575 /* end confdefs.h.  */
5576 $ac_includes_default
5577                 typedef short ac__type_sizeof_;
5578
5579 int
5580 main ()
5581 {
5582 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5583 test_array [0] = 0
5584
5585   ;
5586   return 0;
5587 }
5588 _ACEOF
5589 rm -f conftest.$ac_objext
5590 if { (ac_try="$ac_compile"
5591 case "(($ac_try" in
5592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5593   *) ac_try_echo=$ac_try;;
5594 esac
5595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5596   (eval "$ac_compile") 2>conftest.er1
5597   ac_status=$?
5598   grep -v '^ *+' conftest.er1 >conftest.err
5599   rm -f conftest.er1
5600   cat conftest.err >&5
5601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602   (exit $ac_status); } &&
5603          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5604   { (case "(($ac_try" in
5605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5606   *) ac_try_echo=$ac_try;;
5607 esac
5608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5609   (eval "$ac_try") 2>&5
5610   ac_status=$?
5611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612   (exit $ac_status); }; } &&
5613          { ac_try='test -s conftest.$ac_objext'
5614   { (case "(($ac_try" in
5615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5616   *) ac_try_echo=$ac_try;;
5617 esac
5618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5619   (eval "$ac_try") 2>&5
5620   ac_status=$?
5621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622   (exit $ac_status); }; }; then
5623   ac_hi=$ac_mid; break
5624 else
5625   echo "$as_me: failed program was:" >&5
5626 sed 's/^/| /' conftest.$ac_ext >&5
5627
5628         ac_lo=`expr $ac_mid + 1`
5629                         if test $ac_lo -le $ac_mid; then
5630                           ac_lo= ac_hi=
5631                           break
5632                         fi
5633                         ac_mid=`expr 2 '*' $ac_mid + 1`
5634 fi
5635
5636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5637   done
5638 else
5639   echo "$as_me: failed program was:" >&5
5640 sed 's/^/| /' conftest.$ac_ext >&5
5641
5642         cat >conftest.$ac_ext <<_ACEOF
5643 /* confdefs.h.  */
5644 _ACEOF
5645 cat confdefs.h >>conftest.$ac_ext
5646 cat >>conftest.$ac_ext <<_ACEOF
5647 /* end confdefs.h.  */
5648 $ac_includes_default
5649                 typedef short ac__type_sizeof_;
5650
5651 int
5652 main ()
5653 {
5654 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5655 test_array [0] = 0
5656
5657   ;
5658   return 0;
5659 }
5660 _ACEOF
5661 rm -f conftest.$ac_objext
5662 if { (ac_try="$ac_compile"
5663 case "(($ac_try" in
5664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5665   *) ac_try_echo=$ac_try;;
5666 esac
5667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5668   (eval "$ac_compile") 2>conftest.er1
5669   ac_status=$?
5670   grep -v '^ *+' conftest.er1 >conftest.err
5671   rm -f conftest.er1
5672   cat conftest.err >&5
5673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674   (exit $ac_status); } &&
5675          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5676   { (case "(($ac_try" in
5677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5678   *) ac_try_echo=$ac_try;;
5679 esac
5680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5681   (eval "$ac_try") 2>&5
5682   ac_status=$?
5683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684   (exit $ac_status); }; } &&
5685          { ac_try='test -s conftest.$ac_objext'
5686   { (case "(($ac_try" in
5687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5688   *) ac_try_echo=$ac_try;;
5689 esac
5690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5691   (eval "$ac_try") 2>&5
5692   ac_status=$?
5693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694   (exit $ac_status); }; }; then
5695   ac_hi=-1 ac_mid=-1
5696   while :; do
5697     cat >conftest.$ac_ext <<_ACEOF
5698 /* confdefs.h.  */
5699 _ACEOF
5700 cat confdefs.h >>conftest.$ac_ext
5701 cat >>conftest.$ac_ext <<_ACEOF
5702 /* end confdefs.h.  */
5703 $ac_includes_default
5704                 typedef short ac__type_sizeof_;
5705
5706 int
5707 main ()
5708 {
5709 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5710 test_array [0] = 0
5711
5712   ;
5713   return 0;
5714 }
5715 _ACEOF
5716 rm -f conftest.$ac_objext
5717 if { (ac_try="$ac_compile"
5718 case "(($ac_try" in
5719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5720   *) ac_try_echo=$ac_try;;
5721 esac
5722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5723   (eval "$ac_compile") 2>conftest.er1
5724   ac_status=$?
5725   grep -v '^ *+' conftest.er1 >conftest.err
5726   rm -f conftest.er1
5727   cat conftest.err >&5
5728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729   (exit $ac_status); } &&
5730          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5731   { (case "(($ac_try" in
5732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5733   *) ac_try_echo=$ac_try;;
5734 esac
5735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5736   (eval "$ac_try") 2>&5
5737   ac_status=$?
5738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739   (exit $ac_status); }; } &&
5740          { ac_try='test -s conftest.$ac_objext'
5741   { (case "(($ac_try" in
5742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5743   *) ac_try_echo=$ac_try;;
5744 esac
5745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5746   (eval "$ac_try") 2>&5
5747   ac_status=$?
5748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749   (exit $ac_status); }; }; then
5750   ac_lo=$ac_mid; break
5751 else
5752   echo "$as_me: failed program was:" >&5
5753 sed 's/^/| /' conftest.$ac_ext >&5
5754
5755         ac_hi=`expr '(' $ac_mid ')' - 1`
5756                         if test $ac_mid -le $ac_hi; then
5757                           ac_lo= ac_hi=
5758                           break
5759                         fi
5760                         ac_mid=`expr 2 '*' $ac_mid`
5761 fi
5762
5763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5764   done
5765 else
5766   echo "$as_me: failed program was:" >&5
5767 sed 's/^/| /' conftest.$ac_ext >&5
5768
5769         ac_lo= ac_hi=
5770 fi
5771
5772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5773 fi
5774
5775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5776 # Binary search between lo and hi bounds.
5777 while test "x$ac_lo" != "x$ac_hi"; do
5778   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5779   cat >conftest.$ac_ext <<_ACEOF
5780 /* confdefs.h.  */
5781 _ACEOF
5782 cat confdefs.h >>conftest.$ac_ext
5783 cat >>conftest.$ac_ext <<_ACEOF
5784 /* end confdefs.h.  */
5785 $ac_includes_default
5786                 typedef short ac__type_sizeof_;
5787
5788 int
5789 main ()
5790 {
5791 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5792 test_array [0] = 0
5793
5794   ;
5795   return 0;
5796 }
5797 _ACEOF
5798 rm -f conftest.$ac_objext
5799 if { (ac_try="$ac_compile"
5800 case "(($ac_try" in
5801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5802   *) ac_try_echo=$ac_try;;
5803 esac
5804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5805   (eval "$ac_compile") 2>conftest.er1
5806   ac_status=$?
5807   grep -v '^ *+' conftest.er1 >conftest.err
5808   rm -f conftest.er1
5809   cat conftest.err >&5
5810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811   (exit $ac_status); } &&
5812          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5813   { (case "(($ac_try" in
5814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5815   *) ac_try_echo=$ac_try;;
5816 esac
5817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5818   (eval "$ac_try") 2>&5
5819   ac_status=$?
5820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821   (exit $ac_status); }; } &&
5822          { ac_try='test -s conftest.$ac_objext'
5823   { (case "(($ac_try" in
5824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5825   *) ac_try_echo=$ac_try;;
5826 esac
5827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5828   (eval "$ac_try") 2>&5
5829   ac_status=$?
5830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831   (exit $ac_status); }; }; then
5832   ac_hi=$ac_mid
5833 else
5834   echo "$as_me: failed program was:" >&5
5835 sed 's/^/| /' conftest.$ac_ext >&5
5836
5837         ac_lo=`expr '(' $ac_mid ')' + 1`
5838 fi
5839
5840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5841 done
5842 case $ac_lo in
5843 ?*) ac_cv_sizeof_short=$ac_lo;;
5844 '') if test "$ac_cv_type_short" = yes; then
5845                  { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
5846 See \`config.log' for more details." >&5
5847 echo "$as_me: error: cannot compute sizeof (short)
5848 See \`config.log' for more details." >&2;}
5849    { (exit 77); exit 77; }; }
5850                else
5851                  ac_cv_sizeof_short=0
5852                fi ;;
5853 esac
5854 else
5855   cat >conftest.$ac_ext <<_ACEOF
5856 /* confdefs.h.  */
5857 _ACEOF
5858 cat confdefs.h >>conftest.$ac_ext
5859 cat >>conftest.$ac_ext <<_ACEOF
5860 /* end confdefs.h.  */
5861 $ac_includes_default
5862                 typedef short ac__type_sizeof_;
5863
5864 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5865 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5866 #include <stdio.h>
5867 #include <stdlib.h>
5868 int
5869 main ()
5870 {
5871
5872   FILE *f = fopen ("conftest.val", "w");
5873   if (! f)
5874     return 1;
5875   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5876     {
5877       long int i = longval ();
5878       if (i != ((long int) (sizeof (ac__type_sizeof_))))
5879         return 1;
5880       fprintf (f, "%ld\n", i);
5881     }
5882   else
5883     {
5884       unsigned long int i = ulongval ();
5885       if (i != ((long int) (sizeof (ac__type_sizeof_))))
5886         return 1;
5887       fprintf (f, "%lu\n", i);
5888     }
5889   return ferror (f) || fclose (f) != 0;
5890
5891   ;
5892   return 0;
5893 }
5894 _ACEOF
5895 rm -f conftest$ac_exeext
5896 if { (ac_try="$ac_link"
5897 case "(($ac_try" in
5898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5899   *) ac_try_echo=$ac_try;;
5900 esac
5901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5902   (eval "$ac_link") 2>&5
5903   ac_status=$?
5904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5906   { (case "(($ac_try" in
5907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5908   *) ac_try_echo=$ac_try;;
5909 esac
5910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5911   (eval "$ac_try") 2>&5
5912   ac_status=$?
5913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914   (exit $ac_status); }; }; then
5915   ac_cv_sizeof_short=`cat conftest.val`
5916 else
5917   echo "$as_me: program exited with status $ac_status" >&5
5918 echo "$as_me: failed program was:" >&5
5919 sed 's/^/| /' conftest.$ac_ext >&5
5920
5921 ( exit $ac_status )
5922 if test "$ac_cv_type_short" = yes; then
5923                  { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
5924 See \`config.log' for more details." >&5
5925 echo "$as_me: error: cannot compute sizeof (short)
5926 See \`config.log' for more details." >&2;}
5927    { (exit 77); exit 77; }; }
5928                else
5929                  ac_cv_sizeof_short=0
5930                fi
5931 fi
5932 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5933 fi
5934 rm -f conftest.val
5935 fi
5936 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5937 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
5938
5939
5940
5941 cat >>confdefs.h <<_ACEOF
5942 #define SIZEOF_SHORT $ac_cv_sizeof_short
5943 _ACEOF
5944
5945
5946 { echo "$as_me:$LINENO: checking for int" >&5
5947 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
5948 if test "${ac_cv_type_int+set}" = set; then
5949   echo $ECHO_N "(cached) $ECHO_C" >&6
5950 else
5951   cat >conftest.$ac_ext <<_ACEOF
5952 /* confdefs.h.  */
5953 _ACEOF
5954 cat confdefs.h >>conftest.$ac_ext
5955 cat >>conftest.$ac_ext <<_ACEOF
5956 /* end confdefs.h.  */
5957 $ac_includes_default
5958 typedef int ac__type_new_;
5959 int
5960 main ()
5961 {
5962 if ((ac__type_new_ *) 0)
5963   return 0;
5964 if (sizeof (ac__type_new_))
5965   return 0;
5966   ;
5967   return 0;
5968 }
5969 _ACEOF
5970 rm -f conftest.$ac_objext
5971 if { (ac_try="$ac_compile"
5972 case "(($ac_try" in
5973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5974   *) ac_try_echo=$ac_try;;
5975 esac
5976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5977   (eval "$ac_compile") 2>conftest.er1
5978   ac_status=$?
5979   grep -v '^ *+' conftest.er1 >conftest.err
5980   rm -f conftest.er1
5981   cat conftest.err >&5
5982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983   (exit $ac_status); } &&
5984          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5985   { (case "(($ac_try" in
5986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5987   *) ac_try_echo=$ac_try;;
5988 esac
5989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5990   (eval "$ac_try") 2>&5
5991   ac_status=$?
5992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993   (exit $ac_status); }; } &&
5994          { ac_try='test -s conftest.$ac_objext'
5995   { (case "(($ac_try" in
5996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5997   *) ac_try_echo=$ac_try;;
5998 esac
5999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6000   (eval "$ac_try") 2>&5
6001   ac_status=$?
6002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003   (exit $ac_status); }; }; then
6004   ac_cv_type_int=yes
6005 else
6006   echo "$as_me: failed program was:" >&5
6007 sed 's/^/| /' conftest.$ac_ext >&5
6008
6009         ac_cv_type_int=no
6010 fi
6011
6012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6013 fi
6014 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6015 echo "${ECHO_T}$ac_cv_type_int" >&6; }
6016
6017 # The cast to long int works around a bug in the HP C Compiler
6018 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6019 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6020 # This bug is HP SR number 8606223364.
6021 { echo "$as_me:$LINENO: checking size of int" >&5
6022 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
6023 if test "${ac_cv_sizeof_int+set}" = set; then
6024   echo $ECHO_N "(cached) $ECHO_C" >&6
6025 else
6026   if test "$cross_compiling" = yes; then
6027   # Depending upon the size, compute the lo and hi bounds.
6028 cat >conftest.$ac_ext <<_ACEOF
6029 /* confdefs.h.  */
6030 _ACEOF
6031 cat confdefs.h >>conftest.$ac_ext
6032 cat >>conftest.$ac_ext <<_ACEOF
6033 /* end confdefs.h.  */
6034 $ac_includes_default
6035                 typedef int ac__type_sizeof_;
6036
6037 int
6038 main ()
6039 {
6040 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6041 test_array [0] = 0
6042
6043   ;
6044   return 0;
6045 }
6046 _ACEOF
6047 rm -f conftest.$ac_objext
6048 if { (ac_try="$ac_compile"
6049 case "(($ac_try" in
6050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6051   *) ac_try_echo=$ac_try;;
6052 esac
6053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6054   (eval "$ac_compile") 2>conftest.er1
6055   ac_status=$?
6056   grep -v '^ *+' conftest.er1 >conftest.err
6057   rm -f conftest.er1
6058   cat conftest.err >&5
6059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060   (exit $ac_status); } &&
6061          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6062   { (case "(($ac_try" in
6063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6064   *) ac_try_echo=$ac_try;;
6065 esac
6066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6067   (eval "$ac_try") 2>&5
6068   ac_status=$?
6069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070   (exit $ac_status); }; } &&
6071          { ac_try='test -s conftest.$ac_objext'
6072   { (case "(($ac_try" in
6073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6074   *) ac_try_echo=$ac_try;;
6075 esac
6076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6077   (eval "$ac_try") 2>&5
6078   ac_status=$?
6079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080   (exit $ac_status); }; }; then
6081   ac_lo=0 ac_mid=0
6082   while :; do
6083     cat >conftest.$ac_ext <<_ACEOF
6084 /* confdefs.h.  */
6085 _ACEOF
6086 cat confdefs.h >>conftest.$ac_ext
6087 cat >>conftest.$ac_ext <<_ACEOF
6088 /* end confdefs.h.  */
6089 $ac_includes_default
6090                 typedef int ac__type_sizeof_;
6091
6092 int
6093 main ()
6094 {
6095 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6096 test_array [0] = 0
6097
6098   ;
6099   return 0;
6100 }
6101 _ACEOF
6102 rm -f conftest.$ac_objext
6103 if { (ac_try="$ac_compile"
6104 case "(($ac_try" in
6105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6106   *) ac_try_echo=$ac_try;;
6107 esac
6108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6109   (eval "$ac_compile") 2>conftest.er1
6110   ac_status=$?
6111   grep -v '^ *+' conftest.er1 >conftest.err
6112   rm -f conftest.er1
6113   cat conftest.err >&5
6114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115   (exit $ac_status); } &&
6116          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6117   { (case "(($ac_try" in
6118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6119   *) ac_try_echo=$ac_try;;
6120 esac
6121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6122   (eval "$ac_try") 2>&5
6123   ac_status=$?
6124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125   (exit $ac_status); }; } &&
6126          { ac_try='test -s conftest.$ac_objext'
6127   { (case "(($ac_try" in
6128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6129   *) ac_try_echo=$ac_try;;
6130 esac
6131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6132   (eval "$ac_try") 2>&5
6133   ac_status=$?
6134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135   (exit $ac_status); }; }; then
6136   ac_hi=$ac_mid; break
6137 else
6138   echo "$as_me: failed program was:" >&5
6139 sed 's/^/| /' conftest.$ac_ext >&5
6140
6141         ac_lo=`expr $ac_mid + 1`
6142                         if test $ac_lo -le $ac_mid; then
6143                           ac_lo= ac_hi=
6144                           break
6145                         fi
6146                         ac_mid=`expr 2 '*' $ac_mid + 1`
6147 fi
6148
6149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6150   done
6151 else
6152   echo "$as_me: failed program was:" >&5
6153 sed 's/^/| /' conftest.$ac_ext >&5
6154
6155         cat >conftest.$ac_ext <<_ACEOF
6156 /* confdefs.h.  */
6157 _ACEOF
6158 cat confdefs.h >>conftest.$ac_ext
6159 cat >>conftest.$ac_ext <<_ACEOF
6160 /* end confdefs.h.  */
6161 $ac_includes_default
6162                 typedef int ac__type_sizeof_;
6163
6164 int
6165 main ()
6166 {
6167 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6168 test_array [0] = 0
6169
6170   ;
6171   return 0;
6172 }
6173 _ACEOF
6174 rm -f conftest.$ac_objext
6175 if { (ac_try="$ac_compile"
6176 case "(($ac_try" in
6177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6178   *) ac_try_echo=$ac_try;;
6179 esac
6180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6181   (eval "$ac_compile") 2>conftest.er1
6182   ac_status=$?
6183   grep -v '^ *+' conftest.er1 >conftest.err
6184   rm -f conftest.er1
6185   cat conftest.err >&5
6186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187   (exit $ac_status); } &&
6188          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6189   { (case "(($ac_try" in
6190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6191   *) ac_try_echo=$ac_try;;
6192 esac
6193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6194   (eval "$ac_try") 2>&5
6195   ac_status=$?
6196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197   (exit $ac_status); }; } &&
6198          { ac_try='test -s conftest.$ac_objext'
6199   { (case "(($ac_try" in
6200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6201   *) ac_try_echo=$ac_try;;
6202 esac
6203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6204   (eval "$ac_try") 2>&5
6205   ac_status=$?
6206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207   (exit $ac_status); }; }; then
6208   ac_hi=-1 ac_mid=-1
6209   while :; do
6210     cat >conftest.$ac_ext <<_ACEOF
6211 /* confdefs.h.  */
6212 _ACEOF
6213 cat confdefs.h >>conftest.$ac_ext
6214 cat >>conftest.$ac_ext <<_ACEOF
6215 /* end confdefs.h.  */
6216 $ac_includes_default
6217                 typedef int ac__type_sizeof_;
6218
6219 int
6220 main ()
6221 {
6222 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6223 test_array [0] = 0
6224
6225   ;
6226   return 0;
6227 }
6228 _ACEOF
6229 rm -f conftest.$ac_objext
6230 if { (ac_try="$ac_compile"
6231 case "(($ac_try" in
6232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6233   *) ac_try_echo=$ac_try;;
6234 esac
6235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6236   (eval "$ac_compile") 2>conftest.er1
6237   ac_status=$?
6238   grep -v '^ *+' conftest.er1 >conftest.err
6239   rm -f conftest.er1
6240   cat conftest.err >&5
6241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242   (exit $ac_status); } &&
6243          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6244   { (case "(($ac_try" in
6245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6246   *) ac_try_echo=$ac_try;;
6247 esac
6248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6249   (eval "$ac_try") 2>&5
6250   ac_status=$?
6251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252   (exit $ac_status); }; } &&
6253          { ac_try='test -s conftest.$ac_objext'
6254   { (case "(($ac_try" in
6255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6256   *) ac_try_echo=$ac_try;;
6257 esac
6258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6259   (eval "$ac_try") 2>&5
6260   ac_status=$?
6261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262   (exit $ac_status); }; }; then
6263   ac_lo=$ac_mid; break
6264 else
6265   echo "$as_me: failed program was:" >&5
6266 sed 's/^/| /' conftest.$ac_ext >&5
6267
6268         ac_hi=`expr '(' $ac_mid ')' - 1`
6269                         if test $ac_mid -le $ac_hi; then
6270                           ac_lo= ac_hi=
6271                           break
6272                         fi
6273                         ac_mid=`expr 2 '*' $ac_mid`
6274 fi
6275
6276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6277   done
6278 else
6279   echo "$as_me: failed program was:" >&5
6280 sed 's/^/| /' conftest.$ac_ext >&5
6281
6282         ac_lo= ac_hi=
6283 fi
6284
6285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6286 fi
6287
6288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6289 # Binary search between lo and hi bounds.
6290 while test "x$ac_lo" != "x$ac_hi"; do
6291   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6292   cat >conftest.$ac_ext <<_ACEOF
6293 /* confdefs.h.  */
6294 _ACEOF
6295 cat confdefs.h >>conftest.$ac_ext
6296 cat >>conftest.$ac_ext <<_ACEOF
6297 /* end confdefs.h.  */
6298 $ac_includes_default
6299                 typedef int ac__type_sizeof_;
6300
6301 int
6302 main ()
6303 {
6304 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6305 test_array [0] = 0
6306
6307   ;
6308   return 0;
6309 }
6310 _ACEOF
6311 rm -f conftest.$ac_objext
6312 if { (ac_try="$ac_compile"
6313 case "(($ac_try" in
6314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6315   *) ac_try_echo=$ac_try;;
6316 esac
6317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6318   (eval "$ac_compile") 2>conftest.er1
6319   ac_status=$?
6320   grep -v '^ *+' conftest.er1 >conftest.err
6321   rm -f conftest.er1
6322   cat conftest.err >&5
6323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324   (exit $ac_status); } &&
6325          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6326   { (case "(($ac_try" in
6327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6328   *) ac_try_echo=$ac_try;;
6329 esac
6330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6331   (eval "$ac_try") 2>&5
6332   ac_status=$?
6333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334   (exit $ac_status); }; } &&
6335          { ac_try='test -s conftest.$ac_objext'
6336   { (case "(($ac_try" in
6337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6338   *) ac_try_echo=$ac_try;;
6339 esac
6340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6341   (eval "$ac_try") 2>&5
6342   ac_status=$?
6343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344   (exit $ac_status); }; }; then
6345   ac_hi=$ac_mid
6346 else
6347   echo "$as_me: failed program was:" >&5
6348 sed 's/^/| /' conftest.$ac_ext >&5
6349
6350         ac_lo=`expr '(' $ac_mid ')' + 1`
6351 fi
6352
6353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6354 done
6355 case $ac_lo in
6356 ?*) ac_cv_sizeof_int=$ac_lo;;
6357 '') if test "$ac_cv_type_int" = yes; then
6358                  { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
6359 See \`config.log' for more details." >&5
6360 echo "$as_me: error: cannot compute sizeof (int)
6361 See \`config.log' for more details." >&2;}
6362    { (exit 77); exit 77; }; }
6363                else
6364                  ac_cv_sizeof_int=0
6365                fi ;;
6366 esac
6367 else
6368   cat >conftest.$ac_ext <<_ACEOF
6369 /* confdefs.h.  */
6370 _ACEOF
6371 cat confdefs.h >>conftest.$ac_ext
6372 cat >>conftest.$ac_ext <<_ACEOF
6373 /* end confdefs.h.  */
6374 $ac_includes_default
6375                 typedef int ac__type_sizeof_;
6376
6377 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6378 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6379 #include <stdio.h>
6380 #include <stdlib.h>
6381 int
6382 main ()
6383 {
6384
6385   FILE *f = fopen ("conftest.val", "w");
6386   if (! f)
6387     return 1;
6388   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6389     {
6390       long int i = longval ();
6391       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6392         return 1;
6393       fprintf (f, "%ld\n", i);
6394     }
6395   else
6396     {
6397       unsigned long int i = ulongval ();
6398       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6399         return 1;
6400       fprintf (f, "%lu\n", i);
6401     }
6402   return ferror (f) || fclose (f) != 0;
6403
6404   ;
6405   return 0;
6406 }
6407 _ACEOF
6408 rm -f conftest$ac_exeext
6409 if { (ac_try="$ac_link"
6410 case "(($ac_try" in
6411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6412   *) ac_try_echo=$ac_try;;
6413 esac
6414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6415   (eval "$ac_link") 2>&5
6416   ac_status=$?
6417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6419   { (case "(($ac_try" in
6420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6421   *) ac_try_echo=$ac_try;;
6422 esac
6423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6424   (eval "$ac_try") 2>&5
6425   ac_status=$?
6426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427   (exit $ac_status); }; }; then
6428   ac_cv_sizeof_int=`cat conftest.val`
6429 else
6430   echo "$as_me: program exited with status $ac_status" >&5
6431 echo "$as_me: failed program was:" >&5
6432 sed 's/^/| /' conftest.$ac_ext >&5
6433
6434 ( exit $ac_status )
6435 if test "$ac_cv_type_int" = yes; then
6436                  { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
6437 See \`config.log' for more details." >&5
6438 echo "$as_me: error: cannot compute sizeof (int)
6439 See \`config.log' for more details." >&2;}
6440    { (exit 77); exit 77; }; }
6441                else
6442                  ac_cv_sizeof_int=0
6443                fi
6444 fi
6445 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6446 fi
6447 rm -f conftest.val
6448 fi
6449 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6450 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
6451
6452
6453
6454 cat >>confdefs.h <<_ACEOF
6455 #define SIZEOF_INT $ac_cv_sizeof_int
6456 _ACEOF
6457
6458
6459 { echo "$as_me:$LINENO: checking for long" >&5
6460 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
6461 if test "${ac_cv_type_long+set}" = set; then
6462   echo $ECHO_N "(cached) $ECHO_C" >&6
6463 else
6464   cat >conftest.$ac_ext <<_ACEOF
6465 /* confdefs.h.  */
6466 _ACEOF
6467 cat confdefs.h >>conftest.$ac_ext
6468 cat >>conftest.$ac_ext <<_ACEOF
6469 /* end confdefs.h.  */
6470 $ac_includes_default
6471 typedef long ac__type_new_;
6472 int
6473 main ()
6474 {
6475 if ((ac__type_new_ *) 0)
6476   return 0;
6477 if (sizeof (ac__type_new_))
6478   return 0;
6479   ;
6480   return 0;
6481 }
6482 _ACEOF
6483 rm -f conftest.$ac_objext
6484 if { (ac_try="$ac_compile"
6485 case "(($ac_try" in
6486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6487   *) ac_try_echo=$ac_try;;
6488 esac
6489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6490   (eval "$ac_compile") 2>conftest.er1
6491   ac_status=$?
6492   grep -v '^ *+' conftest.er1 >conftest.err
6493   rm -f conftest.er1
6494   cat conftest.err >&5
6495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496   (exit $ac_status); } &&
6497          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6498   { (case "(($ac_try" in
6499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6500   *) ac_try_echo=$ac_try;;
6501 esac
6502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6503   (eval "$ac_try") 2>&5
6504   ac_status=$?
6505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506   (exit $ac_status); }; } &&
6507          { ac_try='test -s conftest.$ac_objext'
6508   { (case "(($ac_try" in
6509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6510   *) ac_try_echo=$ac_try;;
6511 esac
6512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6513   (eval "$ac_try") 2>&5
6514   ac_status=$?
6515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516   (exit $ac_status); }; }; then
6517   ac_cv_type_long=yes
6518 else
6519   echo "$as_me: failed program was:" >&5
6520 sed 's/^/| /' conftest.$ac_ext >&5
6521
6522         ac_cv_type_long=no
6523 fi
6524
6525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6526 fi
6527 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6528 echo "${ECHO_T}$ac_cv_type_long" >&6; }
6529
6530 # The cast to long int works around a bug in the HP C Compiler
6531 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6532 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6533 # This bug is HP SR number 8606223364.
6534 { echo "$as_me:$LINENO: checking size of long" >&5
6535 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
6536 if test "${ac_cv_sizeof_long+set}" = set; then
6537   echo $ECHO_N "(cached) $ECHO_C" >&6
6538 else
6539   if test "$cross_compiling" = yes; then
6540   # Depending upon the size, compute the lo and hi bounds.
6541 cat >conftest.$ac_ext <<_ACEOF
6542 /* confdefs.h.  */
6543 _ACEOF
6544 cat confdefs.h >>conftest.$ac_ext
6545 cat >>conftest.$ac_ext <<_ACEOF
6546 /* end confdefs.h.  */
6547 $ac_includes_default
6548                 typedef long ac__type_sizeof_;
6549
6550 int
6551 main ()
6552 {
6553 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6554 test_array [0] = 0
6555
6556   ;
6557   return 0;
6558 }
6559 _ACEOF
6560 rm -f conftest.$ac_objext
6561 if { (ac_try="$ac_compile"
6562 case "(($ac_try" in
6563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6564   *) ac_try_echo=$ac_try;;
6565 esac
6566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6567   (eval "$ac_compile") 2>conftest.er1
6568   ac_status=$?
6569   grep -v '^ *+' conftest.er1 >conftest.err
6570   rm -f conftest.er1
6571   cat conftest.err >&5
6572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573   (exit $ac_status); } &&
6574          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6575   { (case "(($ac_try" in
6576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6577   *) ac_try_echo=$ac_try;;
6578 esac
6579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6580   (eval "$ac_try") 2>&5
6581   ac_status=$?
6582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583   (exit $ac_status); }; } &&
6584          { ac_try='test -s conftest.$ac_objext'
6585   { (case "(($ac_try" in
6586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6587   *) ac_try_echo=$ac_try;;
6588 esac
6589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6590   (eval "$ac_try") 2>&5
6591   ac_status=$?
6592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593   (exit $ac_status); }; }; then
6594   ac_lo=0 ac_mid=0
6595   while :; do
6596     cat >conftest.$ac_ext <<_ACEOF
6597 /* confdefs.h.  */
6598 _ACEOF
6599 cat confdefs.h >>conftest.$ac_ext
6600 cat >>conftest.$ac_ext <<_ACEOF
6601 /* end confdefs.h.  */
6602 $ac_includes_default
6603                 typedef long ac__type_sizeof_;
6604
6605 int
6606 main ()
6607 {
6608 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6609 test_array [0] = 0
6610
6611   ;
6612   return 0;
6613 }
6614 _ACEOF
6615 rm -f conftest.$ac_objext
6616 if { (ac_try="$ac_compile"
6617 case "(($ac_try" in
6618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6619   *) ac_try_echo=$ac_try;;
6620 esac
6621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6622   (eval "$ac_compile") 2>conftest.er1
6623   ac_status=$?
6624   grep -v '^ *+' conftest.er1 >conftest.err
6625   rm -f conftest.er1
6626   cat conftest.err >&5
6627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628   (exit $ac_status); } &&
6629          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6630   { (case "(($ac_try" in
6631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6632   *) ac_try_echo=$ac_try;;
6633 esac
6634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6635   (eval "$ac_try") 2>&5
6636   ac_status=$?
6637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638   (exit $ac_status); }; } &&
6639          { ac_try='test -s conftest.$ac_objext'
6640   { (case "(($ac_try" in
6641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6642   *) ac_try_echo=$ac_try;;
6643 esac
6644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6645   (eval "$ac_try") 2>&5
6646   ac_status=$?
6647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648   (exit $ac_status); }; }; then
6649   ac_hi=$ac_mid; break
6650 else
6651   echo "$as_me: failed program was:" >&5
6652 sed 's/^/| /' conftest.$ac_ext >&5
6653
6654         ac_lo=`expr $ac_mid + 1`
6655                         if test $ac_lo -le $ac_mid; then
6656                           ac_lo= ac_hi=
6657                           break
6658                         fi
6659                         ac_mid=`expr 2 '*' $ac_mid + 1`
6660 fi
6661
6662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6663   done
6664 else
6665   echo "$as_me: failed program was:" >&5
6666 sed 's/^/| /' conftest.$ac_ext >&5
6667
6668         cat >conftest.$ac_ext <<_ACEOF
6669 /* confdefs.h.  */
6670 _ACEOF
6671 cat confdefs.h >>conftest.$ac_ext
6672 cat >>conftest.$ac_ext <<_ACEOF
6673 /* end confdefs.h.  */
6674 $ac_includes_default
6675                 typedef long ac__type_sizeof_;
6676
6677 int
6678 main ()
6679 {
6680 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6681 test_array [0] = 0
6682
6683   ;
6684   return 0;
6685 }
6686 _ACEOF
6687 rm -f conftest.$ac_objext
6688 if { (ac_try="$ac_compile"
6689 case "(($ac_try" in
6690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6691   *) ac_try_echo=$ac_try;;
6692 esac
6693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6694   (eval "$ac_compile") 2>conftest.er1
6695   ac_status=$?
6696   grep -v '^ *+' conftest.er1 >conftest.err
6697   rm -f conftest.er1
6698   cat conftest.err >&5
6699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700   (exit $ac_status); } &&
6701          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6702   { (case "(($ac_try" in
6703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6704   *) ac_try_echo=$ac_try;;
6705 esac
6706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6707   (eval "$ac_try") 2>&5
6708   ac_status=$?
6709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710   (exit $ac_status); }; } &&
6711          { ac_try='test -s conftest.$ac_objext'
6712   { (case "(($ac_try" in
6713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6714   *) ac_try_echo=$ac_try;;
6715 esac
6716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6717   (eval "$ac_try") 2>&5
6718   ac_status=$?
6719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720   (exit $ac_status); }; }; then
6721   ac_hi=-1 ac_mid=-1
6722   while :; do
6723     cat >conftest.$ac_ext <<_ACEOF
6724 /* confdefs.h.  */
6725 _ACEOF
6726 cat confdefs.h >>conftest.$ac_ext
6727 cat >>conftest.$ac_ext <<_ACEOF
6728 /* end confdefs.h.  */
6729 $ac_includes_default
6730                 typedef long ac__type_sizeof_;
6731
6732 int
6733 main ()
6734 {
6735 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6736 test_array [0] = 0
6737
6738   ;
6739   return 0;
6740 }
6741 _ACEOF
6742 rm -f conftest.$ac_objext
6743 if { (ac_try="$ac_compile"
6744 case "(($ac_try" in
6745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6746   *) ac_try_echo=$ac_try;;
6747 esac
6748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6749   (eval "$ac_compile") 2>conftest.er1
6750   ac_status=$?
6751   grep -v '^ *+' conftest.er1 >conftest.err
6752   rm -f conftest.er1
6753   cat conftest.err >&5
6754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755   (exit $ac_status); } &&
6756          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6757   { (case "(($ac_try" in
6758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6759   *) ac_try_echo=$ac_try;;
6760 esac
6761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6762   (eval "$ac_try") 2>&5
6763   ac_status=$?
6764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765   (exit $ac_status); }; } &&
6766          { ac_try='test -s conftest.$ac_objext'
6767   { (case "(($ac_try" in
6768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6769   *) ac_try_echo=$ac_try;;
6770 esac
6771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6772   (eval "$ac_try") 2>&5
6773   ac_status=$?
6774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775   (exit $ac_status); }; }; then
6776   ac_lo=$ac_mid; break
6777 else
6778   echo "$as_me: failed program was:" >&5
6779 sed 's/^/| /' conftest.$ac_ext >&5
6780
6781         ac_hi=`expr '(' $ac_mid ')' - 1`
6782                         if test $ac_mid -le $ac_hi; then
6783                           ac_lo= ac_hi=
6784                           break
6785                         fi
6786                         ac_mid=`expr 2 '*' $ac_mid`
6787 fi
6788
6789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6790   done
6791 else
6792   echo "$as_me: failed program was:" >&5
6793 sed 's/^/| /' conftest.$ac_ext >&5
6794
6795         ac_lo= ac_hi=
6796 fi
6797
6798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6799 fi
6800
6801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6802 # Binary search between lo and hi bounds.
6803 while test "x$ac_lo" != "x$ac_hi"; do
6804   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6805   cat >conftest.$ac_ext <<_ACEOF
6806 /* confdefs.h.  */
6807 _ACEOF
6808 cat confdefs.h >>conftest.$ac_ext
6809 cat >>conftest.$ac_ext <<_ACEOF
6810 /* end confdefs.h.  */
6811 $ac_includes_default
6812                 typedef long ac__type_sizeof_;
6813
6814 int
6815 main ()
6816 {
6817 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6818 test_array [0] = 0
6819
6820   ;
6821   return 0;
6822 }
6823 _ACEOF
6824 rm -f conftest.$ac_objext
6825 if { (ac_try="$ac_compile"
6826 case "(($ac_try" in
6827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6828   *) ac_try_echo=$ac_try;;
6829 esac
6830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6831   (eval "$ac_compile") 2>conftest.er1
6832   ac_status=$?
6833   grep -v '^ *+' conftest.er1 >conftest.err
6834   rm -f conftest.er1
6835   cat conftest.err >&5
6836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837   (exit $ac_status); } &&
6838          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6839   { (case "(($ac_try" in
6840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6841   *) ac_try_echo=$ac_try;;
6842 esac
6843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6844   (eval "$ac_try") 2>&5
6845   ac_status=$?
6846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847   (exit $ac_status); }; } &&
6848          { ac_try='test -s conftest.$ac_objext'
6849   { (case "(($ac_try" in
6850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6851   *) ac_try_echo=$ac_try;;
6852 esac
6853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6854   (eval "$ac_try") 2>&5
6855   ac_status=$?
6856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857   (exit $ac_status); }; }; then
6858   ac_hi=$ac_mid
6859 else
6860   echo "$as_me: failed program was:" >&5
6861 sed 's/^/| /' conftest.$ac_ext >&5
6862
6863         ac_lo=`expr '(' $ac_mid ')' + 1`
6864 fi
6865
6866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6867 done
6868 case $ac_lo in
6869 ?*) ac_cv_sizeof_long=$ac_lo;;
6870 '') if test "$ac_cv_type_long" = yes; then
6871                  { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6872 See \`config.log' for more details." >&5
6873 echo "$as_me: error: cannot compute sizeof (long)
6874 See \`config.log' for more details." >&2;}
6875    { (exit 77); exit 77; }; }
6876                else
6877                  ac_cv_sizeof_long=0
6878                fi ;;
6879 esac
6880 else
6881   cat >conftest.$ac_ext <<_ACEOF
6882 /* confdefs.h.  */
6883 _ACEOF
6884 cat confdefs.h >>conftest.$ac_ext
6885 cat >>conftest.$ac_ext <<_ACEOF
6886 /* end confdefs.h.  */
6887 $ac_includes_default
6888                 typedef long ac__type_sizeof_;
6889
6890 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6891 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6892 #include <stdio.h>
6893 #include <stdlib.h>
6894 int
6895 main ()
6896 {
6897
6898   FILE *f = fopen ("conftest.val", "w");
6899   if (! f)
6900     return 1;
6901   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6902     {
6903       long int i = longval ();
6904       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6905         return 1;
6906       fprintf (f, "%ld\n", i);
6907     }
6908   else
6909     {
6910       unsigned long int i = ulongval ();
6911       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6912         return 1;
6913       fprintf (f, "%lu\n", i);
6914     }
6915   return ferror (f) || fclose (f) != 0;
6916
6917   ;
6918   return 0;
6919 }
6920 _ACEOF
6921 rm -f conftest$ac_exeext
6922 if { (ac_try="$ac_link"
6923 case "(($ac_try" in
6924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6925   *) ac_try_echo=$ac_try;;
6926 esac
6927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6928   (eval "$ac_link") 2>&5
6929   ac_status=$?
6930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6932   { (case "(($ac_try" in
6933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6934   *) ac_try_echo=$ac_try;;
6935 esac
6936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6937   (eval "$ac_try") 2>&5
6938   ac_status=$?
6939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940   (exit $ac_status); }; }; then
6941   ac_cv_sizeof_long=`cat conftest.val`
6942 else
6943   echo "$as_me: program exited with status $ac_status" >&5
6944 echo "$as_me: failed program was:" >&5
6945 sed 's/^/| /' conftest.$ac_ext >&5
6946
6947 ( exit $ac_status )
6948 if test "$ac_cv_type_long" = yes; then
6949                  { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6950 See \`config.log' for more details." >&5
6951 echo "$as_me: error: cannot compute sizeof (long)
6952 See \`config.log' for more details." >&2;}
6953    { (exit 77); exit 77; }; }
6954                else
6955                  ac_cv_sizeof_long=0
6956                fi
6957 fi
6958 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6959 fi
6960 rm -f conftest.val
6961 fi
6962 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6963 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
6964
6965
6966
6967 cat >>confdefs.h <<_ACEOF
6968 #define SIZEOF_LONG $ac_cv_sizeof_long
6969 _ACEOF
6970
6971
6972 { echo "$as_me:$LINENO: checking for float" >&5
6973 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
6974 if test "${ac_cv_type_float+set}" = set; then
6975   echo $ECHO_N "(cached) $ECHO_C" >&6
6976 else
6977   cat >conftest.$ac_ext <<_ACEOF
6978 /* confdefs.h.  */
6979 _ACEOF
6980 cat confdefs.h >>conftest.$ac_ext
6981 cat >>conftest.$ac_ext <<_ACEOF
6982 /* end confdefs.h.  */
6983 $ac_includes_default
6984 typedef float ac__type_new_;
6985 int
6986 main ()
6987 {
6988 if ((ac__type_new_ *) 0)
6989   return 0;
6990 if (sizeof (ac__type_new_))
6991   return 0;
6992   ;
6993   return 0;
6994 }
6995 _ACEOF
6996 rm -f conftest.$ac_objext
6997 if { (ac_try="$ac_compile"
6998 case "(($ac_try" in
6999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7000   *) ac_try_echo=$ac_try;;
7001 esac
7002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7003   (eval "$ac_compile") 2>conftest.er1
7004   ac_status=$?
7005   grep -v '^ *+' conftest.er1 >conftest.err
7006   rm -f conftest.er1
7007   cat conftest.err >&5
7008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009   (exit $ac_status); } &&
7010          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7011   { (case "(($ac_try" in
7012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7013   *) ac_try_echo=$ac_try;;
7014 esac
7015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7016   (eval "$ac_try") 2>&5
7017   ac_status=$?
7018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019   (exit $ac_status); }; } &&
7020          { ac_try='test -s conftest.$ac_objext'
7021   { (case "(($ac_try" in
7022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7023   *) ac_try_echo=$ac_try;;
7024 esac
7025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7026   (eval "$ac_try") 2>&5
7027   ac_status=$?
7028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029   (exit $ac_status); }; }; then
7030   ac_cv_type_float=yes
7031 else
7032   echo "$as_me: failed program was:" >&5
7033 sed 's/^/| /' conftest.$ac_ext >&5
7034
7035         ac_cv_type_float=no
7036 fi
7037
7038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7039 fi
7040 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
7041 echo "${ECHO_T}$ac_cv_type_float" >&6; }
7042
7043 # The cast to long int works around a bug in the HP C Compiler
7044 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7045 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7046 # This bug is HP SR number 8606223364.
7047 { echo "$as_me:$LINENO: checking size of float" >&5
7048 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
7049 if test "${ac_cv_sizeof_float+set}" = set; then
7050   echo $ECHO_N "(cached) $ECHO_C" >&6
7051 else
7052   if test "$cross_compiling" = yes; then
7053   # Depending upon the size, compute the lo and hi bounds.
7054 cat >conftest.$ac_ext <<_ACEOF
7055 /* confdefs.h.  */
7056 _ACEOF
7057 cat confdefs.h >>conftest.$ac_ext
7058 cat >>conftest.$ac_ext <<_ACEOF
7059 /* end confdefs.h.  */
7060 $ac_includes_default
7061                 typedef float ac__type_sizeof_;
7062
7063 int
7064 main ()
7065 {
7066 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7067 test_array [0] = 0
7068
7069   ;
7070   return 0;
7071 }
7072 _ACEOF
7073 rm -f conftest.$ac_objext
7074 if { (ac_try="$ac_compile"
7075 case "(($ac_try" in
7076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7077   *) ac_try_echo=$ac_try;;
7078 esac
7079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7080   (eval "$ac_compile") 2>conftest.er1
7081   ac_status=$?
7082   grep -v '^ *+' conftest.er1 >conftest.err
7083   rm -f conftest.er1
7084   cat conftest.err >&5
7085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086   (exit $ac_status); } &&
7087          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7088   { (case "(($ac_try" in
7089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7090   *) ac_try_echo=$ac_try;;
7091 esac
7092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7093   (eval "$ac_try") 2>&5
7094   ac_status=$?
7095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096   (exit $ac_status); }; } &&
7097          { ac_try='test -s conftest.$ac_objext'
7098   { (case "(($ac_try" in
7099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7100   *) ac_try_echo=$ac_try;;
7101 esac
7102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7103   (eval "$ac_try") 2>&5
7104   ac_status=$?
7105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106   (exit $ac_status); }; }; then
7107   ac_lo=0 ac_mid=0
7108   while :; do
7109     cat >conftest.$ac_ext <<_ACEOF
7110 /* confdefs.h.  */
7111 _ACEOF
7112 cat confdefs.h >>conftest.$ac_ext
7113 cat >>conftest.$ac_ext <<_ACEOF
7114 /* end confdefs.h.  */
7115 $ac_includes_default
7116                 typedef float ac__type_sizeof_;
7117
7118 int
7119 main ()
7120 {
7121 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7122 test_array [0] = 0
7123
7124   ;
7125   return 0;
7126 }
7127 _ACEOF
7128 rm -f conftest.$ac_objext
7129 if { (ac_try="$ac_compile"
7130 case "(($ac_try" in
7131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7132   *) ac_try_echo=$ac_try;;
7133 esac
7134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7135   (eval "$ac_compile") 2>conftest.er1
7136   ac_status=$?
7137   grep -v '^ *+' conftest.er1 >conftest.err
7138   rm -f conftest.er1
7139   cat conftest.err >&5
7140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141   (exit $ac_status); } &&
7142          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7143   { (case "(($ac_try" in
7144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7145   *) ac_try_echo=$ac_try;;
7146 esac
7147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7148   (eval "$ac_try") 2>&5
7149   ac_status=$?
7150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151   (exit $ac_status); }; } &&
7152          { ac_try='test -s conftest.$ac_objext'
7153   { (case "(($ac_try" in
7154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7155   *) ac_try_echo=$ac_try;;
7156 esac
7157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7158   (eval "$ac_try") 2>&5
7159   ac_status=$?
7160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7161   (exit $ac_status); }; }; then
7162   ac_hi=$ac_mid; break
7163 else
7164   echo "$as_me: failed program was:" >&5
7165 sed 's/^/| /' conftest.$ac_ext >&5
7166
7167         ac_lo=`expr $ac_mid + 1`
7168                         if test $ac_lo -le $ac_mid; then
7169                           ac_lo= ac_hi=
7170                           break
7171                         fi
7172                         ac_mid=`expr 2 '*' $ac_mid + 1`
7173 fi
7174
7175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7176   done
7177 else
7178   echo "$as_me: failed program was:" >&5
7179 sed 's/^/| /' conftest.$ac_ext >&5
7180
7181         cat >conftest.$ac_ext <<_ACEOF
7182 /* confdefs.h.  */
7183 _ACEOF
7184 cat confdefs.h >>conftest.$ac_ext
7185 cat >>conftest.$ac_ext <<_ACEOF
7186 /* end confdefs.h.  */
7187 $ac_includes_default
7188                 typedef float ac__type_sizeof_;
7189
7190 int
7191 main ()
7192 {
7193 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7194 test_array [0] = 0
7195
7196   ;
7197   return 0;
7198 }
7199 _ACEOF
7200 rm -f conftest.$ac_objext
7201 if { (ac_try="$ac_compile"
7202 case "(($ac_try" in
7203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7204   *) ac_try_echo=$ac_try;;
7205 esac
7206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7207   (eval "$ac_compile") 2>conftest.er1
7208   ac_status=$?
7209   grep -v '^ *+' conftest.er1 >conftest.err
7210   rm -f conftest.er1
7211   cat conftest.err >&5
7212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7213   (exit $ac_status); } &&
7214          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7215   { (case "(($ac_try" in
7216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7217   *) ac_try_echo=$ac_try;;
7218 esac
7219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7220   (eval "$ac_try") 2>&5
7221   ac_status=$?
7222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223   (exit $ac_status); }; } &&
7224          { ac_try='test -s conftest.$ac_objext'
7225   { (case "(($ac_try" in
7226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7227   *) ac_try_echo=$ac_try;;
7228 esac
7229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7230   (eval "$ac_try") 2>&5
7231   ac_status=$?
7232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233   (exit $ac_status); }; }; then
7234   ac_hi=-1 ac_mid=-1
7235   while :; do
7236     cat >conftest.$ac_ext <<_ACEOF
7237 /* confdefs.h.  */
7238 _ACEOF
7239 cat confdefs.h >>conftest.$ac_ext
7240 cat >>conftest.$ac_ext <<_ACEOF
7241 /* end confdefs.h.  */
7242 $ac_includes_default
7243                 typedef float ac__type_sizeof_;
7244
7245 int
7246 main ()
7247 {
7248 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7249 test_array [0] = 0
7250
7251   ;
7252   return 0;
7253 }
7254 _ACEOF
7255 rm -f conftest.$ac_objext
7256 if { (ac_try="$ac_compile"
7257 case "(($ac_try" in
7258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7259   *) ac_try_echo=$ac_try;;
7260 esac
7261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7262   (eval "$ac_compile") 2>conftest.er1
7263   ac_status=$?
7264   grep -v '^ *+' conftest.er1 >conftest.err
7265   rm -f conftest.er1
7266   cat conftest.err >&5
7267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268   (exit $ac_status); } &&
7269          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7270   { (case "(($ac_try" in
7271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7272   *) ac_try_echo=$ac_try;;
7273 esac
7274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7275   (eval "$ac_try") 2>&5
7276   ac_status=$?
7277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278   (exit $ac_status); }; } &&
7279          { ac_try='test -s conftest.$ac_objext'
7280   { (case "(($ac_try" in
7281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7282   *) ac_try_echo=$ac_try;;
7283 esac
7284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7285   (eval "$ac_try") 2>&5
7286   ac_status=$?
7287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288   (exit $ac_status); }; }; then
7289   ac_lo=$ac_mid; break
7290 else
7291   echo "$as_me: failed program was:" >&5
7292 sed 's/^/| /' conftest.$ac_ext >&5
7293
7294         ac_hi=`expr '(' $ac_mid ')' - 1`
7295                         if test $ac_mid -le $ac_hi; then
7296                           ac_lo= ac_hi=
7297                           break
7298                         fi
7299                         ac_mid=`expr 2 '*' $ac_mid`
7300 fi
7301
7302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7303   done
7304 else
7305   echo "$as_me: failed program was:" >&5
7306 sed 's/^/| /' conftest.$ac_ext >&5
7307
7308         ac_lo= ac_hi=
7309 fi
7310
7311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7312 fi
7313
7314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7315 # Binary search between lo and hi bounds.
7316 while test "x$ac_lo" != "x$ac_hi"; do
7317   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7318   cat >conftest.$ac_ext <<_ACEOF
7319 /* confdefs.h.  */
7320 _ACEOF
7321 cat confdefs.h >>conftest.$ac_ext
7322 cat >>conftest.$ac_ext <<_ACEOF
7323 /* end confdefs.h.  */
7324 $ac_includes_default
7325                 typedef float ac__type_sizeof_;
7326
7327 int
7328 main ()
7329 {
7330 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7331 test_array [0] = 0
7332
7333   ;
7334   return 0;
7335 }
7336 _ACEOF
7337 rm -f conftest.$ac_objext
7338 if { (ac_try="$ac_compile"
7339 case "(($ac_try" in
7340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7341   *) ac_try_echo=$ac_try;;
7342 esac
7343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7344   (eval "$ac_compile") 2>conftest.er1
7345   ac_status=$?
7346   grep -v '^ *+' conftest.er1 >conftest.err
7347   rm -f conftest.er1
7348   cat conftest.err >&5
7349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7350   (exit $ac_status); } &&
7351          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7352   { (case "(($ac_try" in
7353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7354   *) ac_try_echo=$ac_try;;
7355 esac
7356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7357   (eval "$ac_try") 2>&5
7358   ac_status=$?
7359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360   (exit $ac_status); }; } &&
7361          { ac_try='test -s conftest.$ac_objext'
7362   { (case "(($ac_try" in
7363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7364   *) ac_try_echo=$ac_try;;
7365 esac
7366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7367   (eval "$ac_try") 2>&5
7368   ac_status=$?
7369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370   (exit $ac_status); }; }; then
7371   ac_hi=$ac_mid
7372 else
7373   echo "$as_me: failed program was:" >&5
7374 sed 's/^/| /' conftest.$ac_ext >&5
7375
7376         ac_lo=`expr '(' $ac_mid ')' + 1`
7377 fi
7378
7379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7380 done
7381 case $ac_lo in
7382 ?*) ac_cv_sizeof_float=$ac_lo;;
7383 '') if test "$ac_cv_type_float" = yes; then
7384                  { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
7385 See \`config.log' for more details." >&5
7386 echo "$as_me: error: cannot compute sizeof (float)
7387 See \`config.log' for more details." >&2;}
7388    { (exit 77); exit 77; }; }
7389                else
7390                  ac_cv_sizeof_float=0
7391                fi ;;
7392 esac
7393 else
7394   cat >conftest.$ac_ext <<_ACEOF
7395 /* confdefs.h.  */
7396 _ACEOF
7397 cat confdefs.h >>conftest.$ac_ext
7398 cat >>conftest.$ac_ext <<_ACEOF
7399 /* end confdefs.h.  */
7400 $ac_includes_default
7401                 typedef float ac__type_sizeof_;
7402
7403 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7404 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7405 #include <stdio.h>
7406 #include <stdlib.h>
7407 int
7408 main ()
7409 {
7410
7411   FILE *f = fopen ("conftest.val", "w");
7412   if (! f)
7413     return 1;
7414   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7415     {
7416       long int i = longval ();
7417       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7418         return 1;
7419       fprintf (f, "%ld\n", i);
7420     }
7421   else
7422     {
7423       unsigned long int i = ulongval ();
7424       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7425         return 1;
7426       fprintf (f, "%lu\n", i);
7427     }
7428   return ferror (f) || fclose (f) != 0;
7429
7430   ;
7431   return 0;
7432 }
7433 _ACEOF
7434 rm -f conftest$ac_exeext
7435 if { (ac_try="$ac_link"
7436 case "(($ac_try" in
7437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7438   *) ac_try_echo=$ac_try;;
7439 esac
7440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7441   (eval "$ac_link") 2>&5
7442   ac_status=$?
7443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7445   { (case "(($ac_try" in
7446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7447   *) ac_try_echo=$ac_try;;
7448 esac
7449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7450   (eval "$ac_try") 2>&5
7451   ac_status=$?
7452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7453   (exit $ac_status); }; }; then
7454   ac_cv_sizeof_float=`cat conftest.val`
7455 else
7456   echo "$as_me: program exited with status $ac_status" >&5
7457 echo "$as_me: failed program was:" >&5
7458 sed 's/^/| /' conftest.$ac_ext >&5
7459
7460 ( exit $ac_status )
7461 if test "$ac_cv_type_float" = yes; then
7462                  { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
7463 See \`config.log' for more details." >&5
7464 echo "$as_me: error: cannot compute sizeof (float)
7465 See \`config.log' for more details." >&2;}
7466    { (exit 77); exit 77; }; }
7467                else
7468                  ac_cv_sizeof_float=0
7469                fi
7470 fi
7471 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7472 fi
7473 rm -f conftest.val
7474 fi
7475 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
7476 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
7477
7478
7479
7480 cat >>confdefs.h <<_ACEOF
7481 #define SIZEOF_FLOAT $ac_cv_sizeof_float
7482 _ACEOF
7483
7484
7485 { echo "$as_me:$LINENO: checking for double" >&5
7486 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
7487 if test "${ac_cv_type_double+set}" = set; then
7488   echo $ECHO_N "(cached) $ECHO_C" >&6
7489 else
7490   cat >conftest.$ac_ext <<_ACEOF
7491 /* confdefs.h.  */
7492 _ACEOF
7493 cat confdefs.h >>conftest.$ac_ext
7494 cat >>conftest.$ac_ext <<_ACEOF
7495 /* end confdefs.h.  */
7496 $ac_includes_default
7497 typedef double ac__type_new_;
7498 int
7499 main ()
7500 {
7501 if ((ac__type_new_ *) 0)
7502   return 0;
7503 if (sizeof (ac__type_new_))
7504   return 0;
7505   ;
7506   return 0;
7507 }
7508 _ACEOF
7509 rm -f conftest.$ac_objext
7510 if { (ac_try="$ac_compile"
7511 case "(($ac_try" in
7512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7513   *) ac_try_echo=$ac_try;;
7514 esac
7515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7516   (eval "$ac_compile") 2>conftest.er1
7517   ac_status=$?
7518   grep -v '^ *+' conftest.er1 >conftest.err
7519   rm -f conftest.er1
7520   cat conftest.err >&5
7521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522   (exit $ac_status); } &&
7523          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7524   { (case "(($ac_try" in
7525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7526   *) ac_try_echo=$ac_try;;
7527 esac
7528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7529   (eval "$ac_try") 2>&5
7530   ac_status=$?
7531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532   (exit $ac_status); }; } &&
7533          { ac_try='test -s conftest.$ac_objext'
7534   { (case "(($ac_try" in
7535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7536   *) ac_try_echo=$ac_try;;
7537 esac
7538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7539   (eval "$ac_try") 2>&5
7540   ac_status=$?
7541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542   (exit $ac_status); }; }; then
7543   ac_cv_type_double=yes
7544 else
7545   echo "$as_me: failed program was:" >&5
7546 sed 's/^/| /' conftest.$ac_ext >&5
7547
7548         ac_cv_type_double=no
7549 fi
7550
7551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7552 fi
7553 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
7554 echo "${ECHO_T}$ac_cv_type_double" >&6; }
7555
7556 # The cast to long int works around a bug in the HP C Compiler
7557 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7558 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7559 # This bug is HP SR number 8606223364.
7560 { echo "$as_me:$LINENO: checking size of double" >&5
7561 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
7562 if test "${ac_cv_sizeof_double+set}" = set; then
7563   echo $ECHO_N "(cached) $ECHO_C" >&6
7564 else
7565   if test "$cross_compiling" = yes; then
7566   # Depending upon the size, compute the lo and hi bounds.
7567 cat >conftest.$ac_ext <<_ACEOF
7568 /* confdefs.h.  */
7569 _ACEOF
7570 cat confdefs.h >>conftest.$ac_ext
7571 cat >>conftest.$ac_ext <<_ACEOF
7572 /* end confdefs.h.  */
7573 $ac_includes_default
7574                 typedef double ac__type_sizeof_;
7575
7576 int
7577 main ()
7578 {
7579 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7580 test_array [0] = 0
7581
7582   ;
7583   return 0;
7584 }
7585 _ACEOF
7586 rm -f conftest.$ac_objext
7587 if { (ac_try="$ac_compile"
7588 case "(($ac_try" in
7589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7590   *) ac_try_echo=$ac_try;;
7591 esac
7592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7593   (eval "$ac_compile") 2>conftest.er1
7594   ac_status=$?
7595   grep -v '^ *+' conftest.er1 >conftest.err
7596   rm -f conftest.er1
7597   cat conftest.err >&5
7598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599   (exit $ac_status); } &&
7600          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7601   { (case "(($ac_try" in
7602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7603   *) ac_try_echo=$ac_try;;
7604 esac
7605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7606   (eval "$ac_try") 2>&5
7607   ac_status=$?
7608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609   (exit $ac_status); }; } &&
7610          { ac_try='test -s conftest.$ac_objext'
7611   { (case "(($ac_try" in
7612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7613   *) ac_try_echo=$ac_try;;
7614 esac
7615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7616   (eval "$ac_try") 2>&5
7617   ac_status=$?
7618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619   (exit $ac_status); }; }; then
7620   ac_lo=0 ac_mid=0
7621   while :; do
7622     cat >conftest.$ac_ext <<_ACEOF
7623 /* confdefs.h.  */
7624 _ACEOF
7625 cat confdefs.h >>conftest.$ac_ext
7626 cat >>conftest.$ac_ext <<_ACEOF
7627 /* end confdefs.h.  */
7628 $ac_includes_default
7629                 typedef double ac__type_sizeof_;
7630
7631 int
7632 main ()
7633 {
7634 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7635 test_array [0] = 0
7636
7637   ;
7638   return 0;
7639 }
7640 _ACEOF
7641 rm -f conftest.$ac_objext
7642 if { (ac_try="$ac_compile"
7643 case "(($ac_try" in
7644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7645   *) ac_try_echo=$ac_try;;
7646 esac
7647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7648   (eval "$ac_compile") 2>conftest.er1
7649   ac_status=$?
7650   grep -v '^ *+' conftest.er1 >conftest.err
7651   rm -f conftest.er1
7652   cat conftest.err >&5
7653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654   (exit $ac_status); } &&
7655          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7656   { (case "(($ac_try" in
7657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7658   *) ac_try_echo=$ac_try;;
7659 esac
7660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7661   (eval "$ac_try") 2>&5
7662   ac_status=$?
7663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664   (exit $ac_status); }; } &&
7665          { ac_try='test -s conftest.$ac_objext'
7666   { (case "(($ac_try" in
7667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7668   *) ac_try_echo=$ac_try;;
7669 esac
7670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7671   (eval "$ac_try") 2>&5
7672   ac_status=$?
7673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674   (exit $ac_status); }; }; then
7675   ac_hi=$ac_mid; break
7676 else
7677   echo "$as_me: failed program was:" >&5
7678 sed 's/^/| /' conftest.$ac_ext >&5
7679
7680         ac_lo=`expr $ac_mid + 1`
7681                         if test $ac_lo -le $ac_mid; then
7682                           ac_lo= ac_hi=
7683                           break
7684                         fi
7685                         ac_mid=`expr 2 '*' $ac_mid + 1`
7686 fi
7687
7688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7689   done
7690 else
7691   echo "$as_me: failed program was:" >&5
7692 sed 's/^/| /' conftest.$ac_ext >&5
7693
7694         cat >conftest.$ac_ext <<_ACEOF
7695 /* confdefs.h.  */
7696 _ACEOF
7697 cat confdefs.h >>conftest.$ac_ext
7698 cat >>conftest.$ac_ext <<_ACEOF
7699 /* end confdefs.h.  */
7700 $ac_includes_default
7701                 typedef double ac__type_sizeof_;
7702
7703 int
7704 main ()
7705 {
7706 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7707 test_array [0] = 0
7708
7709   ;
7710   return 0;
7711 }
7712 _ACEOF
7713 rm -f conftest.$ac_objext
7714 if { (ac_try="$ac_compile"
7715 case "(($ac_try" in
7716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7717   *) ac_try_echo=$ac_try;;
7718 esac
7719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7720   (eval "$ac_compile") 2>conftest.er1
7721   ac_status=$?
7722   grep -v '^ *+' conftest.er1 >conftest.err
7723   rm -f conftest.er1
7724   cat conftest.err >&5
7725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726   (exit $ac_status); } &&
7727          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7728   { (case "(($ac_try" in
7729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7730   *) ac_try_echo=$ac_try;;
7731 esac
7732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7733   (eval "$ac_try") 2>&5
7734   ac_status=$?
7735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7736   (exit $ac_status); }; } &&
7737          { ac_try='test -s conftest.$ac_objext'
7738   { (case "(($ac_try" in
7739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7740   *) ac_try_echo=$ac_try;;
7741 esac
7742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7743   (eval "$ac_try") 2>&5
7744   ac_status=$?
7745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746   (exit $ac_status); }; }; then
7747   ac_hi=-1 ac_mid=-1
7748   while :; do
7749     cat >conftest.$ac_ext <<_ACEOF
7750 /* confdefs.h.  */
7751 _ACEOF
7752 cat confdefs.h >>conftest.$ac_ext
7753 cat >>conftest.$ac_ext <<_ACEOF
7754 /* end confdefs.h.  */
7755 $ac_includes_default
7756                 typedef double ac__type_sizeof_;
7757
7758 int
7759 main ()
7760 {
7761 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7762 test_array [0] = 0
7763
7764   ;
7765   return 0;
7766 }
7767 _ACEOF
7768 rm -f conftest.$ac_objext
7769 if { (ac_try="$ac_compile"
7770 case "(($ac_try" in
7771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7772   *) ac_try_echo=$ac_try;;
7773 esac
7774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7775   (eval "$ac_compile") 2>conftest.er1
7776   ac_status=$?
7777   grep -v '^ *+' conftest.er1 >conftest.err
7778   rm -f conftest.er1
7779   cat conftest.err >&5
7780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781   (exit $ac_status); } &&
7782          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7783   { (case "(($ac_try" in
7784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7785   *) ac_try_echo=$ac_try;;
7786 esac
7787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7788   (eval "$ac_try") 2>&5
7789   ac_status=$?
7790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791   (exit $ac_status); }; } &&
7792          { ac_try='test -s conftest.$ac_objext'
7793   { (case "(($ac_try" in
7794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7795   *) ac_try_echo=$ac_try;;
7796 esac
7797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7798   (eval "$ac_try") 2>&5
7799   ac_status=$?
7800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801   (exit $ac_status); }; }; then
7802   ac_lo=$ac_mid; break
7803 else
7804   echo "$as_me: failed program was:" >&5
7805 sed 's/^/| /' conftest.$ac_ext >&5
7806
7807         ac_hi=`expr '(' $ac_mid ')' - 1`
7808                         if test $ac_mid -le $ac_hi; then
7809                           ac_lo= ac_hi=
7810                           break
7811                         fi
7812                         ac_mid=`expr 2 '*' $ac_mid`
7813 fi
7814
7815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7816   done
7817 else
7818   echo "$as_me: failed program was:" >&5
7819 sed 's/^/| /' conftest.$ac_ext >&5
7820
7821         ac_lo= ac_hi=
7822 fi
7823
7824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7825 fi
7826
7827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7828 # Binary search between lo and hi bounds.
7829 while test "x$ac_lo" != "x$ac_hi"; do
7830   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7831   cat >conftest.$ac_ext <<_ACEOF
7832 /* confdefs.h.  */
7833 _ACEOF
7834 cat confdefs.h >>conftest.$ac_ext
7835 cat >>conftest.$ac_ext <<_ACEOF
7836 /* end confdefs.h.  */
7837 $ac_includes_default
7838                 typedef double ac__type_sizeof_;
7839
7840 int
7841 main ()
7842 {
7843 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7844 test_array [0] = 0
7845
7846   ;
7847   return 0;
7848 }
7849 _ACEOF
7850 rm -f conftest.$ac_objext
7851 if { (ac_try="$ac_compile"
7852 case "(($ac_try" in
7853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7854   *) ac_try_echo=$ac_try;;
7855 esac
7856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7857   (eval "$ac_compile") 2>conftest.er1
7858   ac_status=$?
7859   grep -v '^ *+' conftest.er1 >conftest.err
7860   rm -f conftest.er1
7861   cat conftest.err >&5
7862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863   (exit $ac_status); } &&
7864          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7865   { (case "(($ac_try" in
7866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7867   *) ac_try_echo=$ac_try;;
7868 esac
7869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7870   (eval "$ac_try") 2>&5
7871   ac_status=$?
7872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873   (exit $ac_status); }; } &&
7874          { ac_try='test -s conftest.$ac_objext'
7875   { (case "(($ac_try" in
7876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7877   *) ac_try_echo=$ac_try;;
7878 esac
7879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7880   (eval "$ac_try") 2>&5
7881   ac_status=$?
7882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883   (exit $ac_status); }; }; then
7884   ac_hi=$ac_mid
7885 else
7886   echo "$as_me: failed program was:" >&5
7887 sed 's/^/| /' conftest.$ac_ext >&5
7888
7889         ac_lo=`expr '(' $ac_mid ')' + 1`
7890 fi
7891
7892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7893 done
7894 case $ac_lo in
7895 ?*) ac_cv_sizeof_double=$ac_lo;;
7896 '') if test "$ac_cv_type_double" = yes; then
7897                  { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
7898 See \`config.log' for more details." >&5
7899 echo "$as_me: error: cannot compute sizeof (double)
7900 See \`config.log' for more details." >&2;}
7901    { (exit 77); exit 77; }; }
7902                else
7903                  ac_cv_sizeof_double=0
7904                fi ;;
7905 esac
7906 else
7907   cat >conftest.$ac_ext <<_ACEOF
7908 /* confdefs.h.  */
7909 _ACEOF
7910 cat confdefs.h >>conftest.$ac_ext
7911 cat >>conftest.$ac_ext <<_ACEOF
7912 /* end confdefs.h.  */
7913 $ac_includes_default
7914                 typedef double ac__type_sizeof_;
7915
7916 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7917 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7918 #include <stdio.h>
7919 #include <stdlib.h>
7920 int
7921 main ()
7922 {
7923
7924   FILE *f = fopen ("conftest.val", "w");
7925   if (! f)
7926     return 1;
7927   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7928     {
7929       long int i = longval ();
7930       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7931         return 1;
7932       fprintf (f, "%ld\n", i);
7933     }
7934   else
7935     {
7936       unsigned long int i = ulongval ();
7937       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7938         return 1;
7939       fprintf (f, "%lu\n", i);
7940     }
7941   return ferror (f) || fclose (f) != 0;
7942
7943   ;
7944   return 0;
7945 }
7946 _ACEOF
7947 rm -f conftest$ac_exeext
7948 if { (ac_try="$ac_link"
7949 case "(($ac_try" in
7950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7951   *) ac_try_echo=$ac_try;;
7952 esac
7953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7954   (eval "$ac_link") 2>&5
7955   ac_status=$?
7956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7958   { (case "(($ac_try" in
7959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7960   *) ac_try_echo=$ac_try;;
7961 esac
7962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7963   (eval "$ac_try") 2>&5
7964   ac_status=$?
7965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966   (exit $ac_status); }; }; then
7967   ac_cv_sizeof_double=`cat conftest.val`
7968 else
7969   echo "$as_me: program exited with status $ac_status" >&5
7970 echo "$as_me: failed program was:" >&5
7971 sed 's/^/| /' conftest.$ac_ext >&5
7972
7973 ( exit $ac_status )
7974 if test "$ac_cv_type_double" = yes; then
7975                  { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
7976 See \`config.log' for more details." >&5
7977 echo "$as_me: error: cannot compute sizeof (double)
7978 See \`config.log' for more details." >&2;}
7979    { (exit 77); exit 77; }; }
7980                else
7981                  ac_cv_sizeof_double=0
7982                fi
7983 fi
7984 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7985 fi
7986 rm -f conftest.val
7987 fi
7988 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
7989 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
7990
7991
7992
7993 cat >>confdefs.h <<_ACEOF
7994 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
7995 _ACEOF
7996
7997
7998
7999
8000 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
8001 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
8002 if test "${ac_cv_lib_z_deflate+set}" = set; then
8003   echo $ECHO_N "(cached) $ECHO_C" >&6
8004 else
8005   ac_check_lib_save_LIBS=$LIBS
8006 LIBS="-lz  $LIBS"
8007 cat >conftest.$ac_ext <<_ACEOF
8008 /* confdefs.h.  */
8009 _ACEOF
8010 cat confdefs.h >>conftest.$ac_ext
8011 cat >>conftest.$ac_ext <<_ACEOF
8012 /* end confdefs.h.  */
8013
8014 /* Override any GCC internal prototype to avoid an error.
8015    Use char because int might match the return type of a GCC
8016    builtin and then its argument prototype would still apply.  */
8017 #ifdef __cplusplus
8018 extern "C"
8019 #endif
8020 char deflate ();
8021 int
8022 main ()
8023 {
8024 return deflate ();
8025   ;
8026   return 0;
8027 }
8028 _ACEOF
8029 rm -f conftest.$ac_objext conftest$ac_exeext
8030 if { (ac_try="$ac_link"
8031 case "(($ac_try" in
8032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8033   *) ac_try_echo=$ac_try;;
8034 esac
8035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8036   (eval "$ac_link") 2>conftest.er1
8037   ac_status=$?
8038   grep -v '^ *+' conftest.er1 >conftest.err
8039   rm -f conftest.er1
8040   cat conftest.err >&5
8041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042   (exit $ac_status); } &&
8043          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8044   { (case "(($ac_try" in
8045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8046   *) ac_try_echo=$ac_try;;
8047 esac
8048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8049   (eval "$ac_try") 2>&5
8050   ac_status=$?
8051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052   (exit $ac_status); }; } &&
8053          { ac_try='test -s conftest$ac_exeext'
8054   { (case "(($ac_try" in
8055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8056   *) ac_try_echo=$ac_try;;
8057 esac
8058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8059   (eval "$ac_try") 2>&5
8060   ac_status=$?
8061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062   (exit $ac_status); }; }; then
8063   ac_cv_lib_z_deflate=yes
8064 else
8065   echo "$as_me: failed program was:" >&5
8066 sed 's/^/| /' conftest.$ac_ext >&5
8067
8068         ac_cv_lib_z_deflate=no
8069 fi
8070
8071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8072       conftest$ac_exeext conftest.$ac_ext
8073 LIBS=$ac_check_lib_save_LIBS
8074 fi
8075 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
8076 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
8077 if test $ac_cv_lib_z_deflate = yes; then
8078    zlib="true"
8079 else
8080    zlib="false" ;  { echo "$as_me:$LINENO: WARNING: zlib missing. Will need zlib for PNG support" >&5
8081 echo "$as_me: WARNING: zlib missing. Will need zlib for PNG support" >&2;}
8082 fi
8083
8084
8085 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
8086 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8087 if test "${ac_cv_lib_m_sin+set}" = set; then
8088   echo $ECHO_N "(cached) $ECHO_C" >&6
8089 else
8090   ac_check_lib_save_LIBS=$LIBS
8091 LIBS="-lm  $LIBS"
8092 cat >conftest.$ac_ext <<_ACEOF
8093 /* confdefs.h.  */
8094 _ACEOF
8095 cat confdefs.h >>conftest.$ac_ext
8096 cat >>conftest.$ac_ext <<_ACEOF
8097 /* end confdefs.h.  */
8098
8099 /* Override any GCC internal prototype to avoid an error.
8100    Use char because int might match the return type of a GCC
8101    builtin and then its argument prototype would still apply.  */
8102 #ifdef __cplusplus
8103 extern "C"
8104 #endif
8105 char sin ();
8106 int
8107 main ()
8108 {
8109 return sin ();
8110   ;
8111   return 0;
8112 }
8113 _ACEOF
8114 rm -f conftest.$ac_objext conftest$ac_exeext
8115 if { (ac_try="$ac_link"
8116 case "(($ac_try" in
8117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8118   *) ac_try_echo=$ac_try;;
8119 esac
8120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8121   (eval "$ac_link") 2>conftest.er1
8122   ac_status=$?
8123   grep -v '^ *+' conftest.er1 >conftest.err
8124   rm -f conftest.er1
8125   cat conftest.err >&5
8126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127   (exit $ac_status); } &&
8128          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8129   { (case "(($ac_try" in
8130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8131   *) ac_try_echo=$ac_try;;
8132 esac
8133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8134   (eval "$ac_try") 2>&5
8135   ac_status=$?
8136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137   (exit $ac_status); }; } &&
8138          { ac_try='test -s conftest$ac_exeext'
8139   { (case "(($ac_try" in
8140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8141   *) ac_try_echo=$ac_try;;
8142 esac
8143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8144   (eval "$ac_try") 2>&5
8145   ac_status=$?
8146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147   (exit $ac_status); }; }; then
8148   ac_cv_lib_m_sin=yes
8149 else
8150   echo "$as_me: failed program was:" >&5
8151 sed 's/^/| /' conftest.$ac_ext >&5
8152
8153         ac_cv_lib_m_sin=no
8154 fi
8155
8156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8157       conftest$ac_exeext conftest.$ac_ext
8158 LIBS=$ac_check_lib_save_LIBS
8159 fi
8160 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8161 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8162 if test $ac_cv_lib_m_sin = yes; then
8163   cat >>confdefs.h <<_ACEOF
8164 #define HAVE_LIBM 1
8165 _ACEOF
8166
8167   LIBS="-lm $LIBS"
8168
8169 fi
8170
8171 { echo "$as_me:$LINENO: checking for main in -lcurses" >&5
8172 echo $ECHO_N "checking for main in -lcurses... $ECHO_C" >&6; }
8173 if test "${ac_cv_lib_curses_main+set}" = set; then
8174   echo $ECHO_N "(cached) $ECHO_C" >&6
8175 else
8176   ac_check_lib_save_LIBS=$LIBS
8177 LIBS="-lcurses  $LIBS"
8178 cat >conftest.$ac_ext <<_ACEOF
8179 /* confdefs.h.  */
8180 _ACEOF
8181 cat confdefs.h >>conftest.$ac_ext
8182 cat >>conftest.$ac_ext <<_ACEOF
8183 /* end confdefs.h.  */
8184
8185
8186 int
8187 main ()
8188 {
8189 return main ();
8190   ;
8191   return 0;
8192 }
8193 _ACEOF
8194 rm -f conftest.$ac_objext conftest$ac_exeext
8195 if { (ac_try="$ac_link"
8196 case "(($ac_try" in
8197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8198   *) ac_try_echo=$ac_try;;
8199 esac
8200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8201   (eval "$ac_link") 2>conftest.er1
8202   ac_status=$?
8203   grep -v '^ *+' conftest.er1 >conftest.err
8204   rm -f conftest.er1
8205   cat conftest.err >&5
8206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207   (exit $ac_status); } &&
8208          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8209   { (case "(($ac_try" in
8210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8211   *) ac_try_echo=$ac_try;;
8212 esac
8213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8214   (eval "$ac_try") 2>&5
8215   ac_status=$?
8216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217   (exit $ac_status); }; } &&
8218          { ac_try='test -s conftest$ac_exeext'
8219   { (case "(($ac_try" in
8220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8221   *) ac_try_echo=$ac_try;;
8222 esac
8223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8224   (eval "$ac_try") 2>&5
8225   ac_status=$?
8226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227   (exit $ac_status); }; }; then
8228   ac_cv_lib_curses_main=yes
8229 else
8230   echo "$as_me: failed program was:" >&5
8231 sed 's/^/| /' conftest.$ac_ext >&5
8232
8233         ac_cv_lib_curses_main=no
8234 fi
8235
8236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8237       conftest$ac_exeext conftest.$ac_ext
8238 LIBS=$ac_check_lib_save_LIBS
8239 fi
8240 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_main" >&5
8241 echo "${ECHO_T}$ac_cv_lib_curses_main" >&6; }
8242 if test $ac_cv_lib_curses_main = yes; then
8243   curses=true
8244 else
8245   curses=false
8246 fi
8247
8248 { echo "$as_me:$LINENO: checking for main in -lncurses" >&5
8249 echo $ECHO_N "checking for main in -lncurses... $ECHO_C" >&6; }
8250 if test "${ac_cv_lib_ncurses_main+set}" = set; then
8251   echo $ECHO_N "(cached) $ECHO_C" >&6
8252 else
8253   ac_check_lib_save_LIBS=$LIBS
8254 LIBS="-lncurses  $LIBS"
8255 cat >conftest.$ac_ext <<_ACEOF
8256 /* confdefs.h.  */
8257 _ACEOF
8258 cat confdefs.h >>conftest.$ac_ext
8259 cat >>conftest.$ac_ext <<_ACEOF
8260 /* end confdefs.h.  */
8261
8262
8263 int
8264 main ()
8265 {
8266 return main ();
8267   ;
8268   return 0;
8269 }
8270 _ACEOF
8271 rm -f conftest.$ac_objext conftest$ac_exeext
8272 if { (ac_try="$ac_link"
8273 case "(($ac_try" in
8274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8275   *) ac_try_echo=$ac_try;;
8276 esac
8277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8278   (eval "$ac_link") 2>conftest.er1
8279   ac_status=$?
8280   grep -v '^ *+' conftest.er1 >conftest.err
8281   rm -f conftest.er1
8282   cat conftest.err >&5
8283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284   (exit $ac_status); } &&
8285          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8286   { (case "(($ac_try" in
8287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8288   *) ac_try_echo=$ac_try;;
8289 esac
8290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8291   (eval "$ac_try") 2>&5
8292   ac_status=$?
8293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294   (exit $ac_status); }; } &&
8295          { ac_try='test -s conftest$ac_exeext'
8296   { (case "(($ac_try" in
8297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8298   *) ac_try_echo=$ac_try;;
8299 esac
8300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8301   (eval "$ac_try") 2>&5
8302   ac_status=$?
8303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304   (exit $ac_status); }; }; then
8305   ac_cv_lib_ncurses_main=yes
8306 else
8307   echo "$as_me: failed program was:" >&5
8308 sed 's/^/| /' conftest.$ac_ext >&5
8309
8310         ac_cv_lib_ncurses_main=no
8311 fi
8312
8313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8314       conftest$ac_exeext conftest.$ac_ext
8315 LIBS=$ac_check_lib_save_LIBS
8316 fi
8317 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_main" >&5
8318 echo "${ECHO_T}$ac_cv_lib_ncurses_main" >&6; }
8319 if test $ac_cv_lib_ncurses_main = yes; then
8320   ncurses=true
8321 else
8322   ncurses=false
8323 fi
8324
8325 { echo "$as_me:$LINENO: checking for main in -lreadline" >&5
8326 echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6; }
8327 if test "${ac_cv_lib_readline_main+set}" = set; then
8328   echo $ECHO_N "(cached) $ECHO_C" >&6
8329 else
8330   ac_check_lib_save_LIBS=$LIBS
8331 LIBS="-lreadline -lcurses $LIBS"
8332 cat >conftest.$ac_ext <<_ACEOF
8333 /* confdefs.h.  */
8334 _ACEOF
8335 cat confdefs.h >>conftest.$ac_ext
8336 cat >>conftest.$ac_ext <<_ACEOF
8337 /* end confdefs.h.  */
8338
8339
8340 int
8341 main ()
8342 {
8343 return main ();
8344   ;
8345   return 0;
8346 }
8347 _ACEOF
8348 rm -f conftest.$ac_objext conftest$ac_exeext
8349 if { (ac_try="$ac_link"
8350 case "(($ac_try" in
8351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8352   *) ac_try_echo=$ac_try;;
8353 esac
8354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8355   (eval "$ac_link") 2>conftest.er1
8356   ac_status=$?
8357   grep -v '^ *+' conftest.er1 >conftest.err
8358   rm -f conftest.er1
8359   cat conftest.err >&5
8360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361   (exit $ac_status); } &&
8362          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8363   { (case "(($ac_try" in
8364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8365   *) ac_try_echo=$ac_try;;
8366 esac
8367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8368   (eval "$ac_try") 2>&5
8369   ac_status=$?
8370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371   (exit $ac_status); }; } &&
8372          { ac_try='test -s conftest$ac_exeext'
8373   { (case "(($ac_try" in
8374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8375   *) ac_try_echo=$ac_try;;
8376 esac
8377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8378   (eval "$ac_try") 2>&5
8379   ac_status=$?
8380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381   (exit $ac_status); }; }; then
8382   ac_cv_lib_readline_main=yes
8383 else
8384   echo "$as_me: failed program was:" >&5
8385 sed 's/^/| /' conftest.$ac_ext >&5
8386
8387         ac_cv_lib_readline_main=no
8388 fi
8389
8390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8391       conftest$ac_exeext conftest.$ac_ext
8392 LIBS=$ac_check_lib_save_LIBS
8393 fi
8394 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5
8395 echo "${ECHO_T}$ac_cv_lib_readline_main" >&6; }
8396 if test $ac_cv_lib_readline_main = yes; then
8397   readline=true;
8398
8399 cat >>confdefs.h <<\_ACEOF
8400 #define HAVE_READLINE 1
8401 _ACEOF
8402
8403 else
8404   readline=false
8405 fi
8406
8407 wxwin=false
8408 { echo "$as_me:$LINENO: checking for main in -lwx_gtk-2.4" >&5
8409 echo $ECHO_N "checking for main in -lwx_gtk-2.4... $ECHO_C" >&6; }
8410 if test "${ac_cv_lib_wx_gtk_2_4_main+set}" = set; then
8411   echo $ECHO_N "(cached) $ECHO_C" >&6
8412 else
8413   ac_check_lib_save_LIBS=$LIBS
8414 LIBS="-lwx_gtk-2.4 -L/usr/lib64 -L/usr/lib `gtk-config --libs` `glib-config --libs glib gmodule gthread`  $LIBS"
8415 cat >conftest.$ac_ext <<_ACEOF
8416 /* confdefs.h.  */
8417 _ACEOF
8418 cat confdefs.h >>conftest.$ac_ext
8419 cat >>conftest.$ac_ext <<_ACEOF
8420 /* end confdefs.h.  */
8421
8422
8423 int
8424 main ()
8425 {
8426 return main ();
8427   ;
8428   return 0;
8429 }
8430 _ACEOF
8431 rm -f conftest.$ac_objext conftest$ac_exeext
8432 if { (ac_try="$ac_link"
8433 case "(($ac_try" in
8434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8435   *) ac_try_echo=$ac_try;;
8436 esac
8437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8438   (eval "$ac_link") 2>conftest.er1
8439   ac_status=$?
8440   grep -v '^ *+' conftest.er1 >conftest.err
8441   rm -f conftest.er1
8442   cat conftest.err >&5
8443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444   (exit $ac_status); } &&
8445          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8446   { (case "(($ac_try" in
8447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8448   *) ac_try_echo=$ac_try;;
8449 esac
8450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8451   (eval "$ac_try") 2>&5
8452   ac_status=$?
8453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454   (exit $ac_status); }; } &&
8455          { ac_try='test -s conftest$ac_exeext'
8456   { (case "(($ac_try" in
8457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8458   *) ac_try_echo=$ac_try;;
8459 esac
8460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8461   (eval "$ac_try") 2>&5
8462   ac_status=$?
8463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464   (exit $ac_status); }; }; then
8465   ac_cv_lib_wx_gtk_2_4_main=yes
8466 else
8467   echo "$as_me: failed program was:" >&5
8468 sed 's/^/| /' conftest.$ac_ext >&5
8469
8470         ac_cv_lib_wx_gtk_2_4_main=no
8471 fi
8472
8473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8474       conftest$ac_exeext conftest.$ac_ext
8475 LIBS=$ac_check_lib_save_LIBS
8476 fi
8477 { echo "$as_me:$LINENO: result: $ac_cv_lib_wx_gtk_2_4_main" >&5
8478 echo "${ECHO_T}$ac_cv_lib_wx_gtk_2_4_main" >&6; }
8479 if test $ac_cv_lib_wx_gtk_2_4_main = yes; then
8480   wxwin=true; wx_gtk=true;
8481 cat >>confdefs.h <<\_ACEOF
8482 #define HAVE_WXWINDOWS 1
8483 _ACEOF
8484
8485 fi
8486
8487 { echo "$as_me:$LINENO: checking for main in -lwx_mac-2.4" >&5
8488 echo $ECHO_N "checking for main in -lwx_mac-2.4... $ECHO_C" >&6; }
8489 if test "${ac_cv_lib_wx_mac_2_4_main+set}" = set; then
8490   echo $ECHO_N "(cached) $ECHO_C" >&6
8491 else
8492   ac_check_lib_save_LIBS=$LIBS
8493 LIBS="-lwx_mac-2.4  $LIBS"
8494 cat >conftest.$ac_ext <<_ACEOF
8495 /* confdefs.h.  */
8496 _ACEOF
8497 cat confdefs.h >>conftest.$ac_ext
8498 cat >>conftest.$ac_ext <<_ACEOF
8499 /* end confdefs.h.  */
8500
8501
8502 int
8503 main ()
8504 {
8505 return main ();
8506   ;
8507   return 0;
8508 }
8509 _ACEOF
8510 rm -f conftest.$ac_objext conftest$ac_exeext
8511 if { (ac_try="$ac_link"
8512 case "(($ac_try" in
8513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8514   *) ac_try_echo=$ac_try;;
8515 esac
8516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8517   (eval "$ac_link") 2>conftest.er1
8518   ac_status=$?
8519   grep -v '^ *+' conftest.er1 >conftest.err
8520   rm -f conftest.er1
8521   cat conftest.err >&5
8522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523   (exit $ac_status); } &&
8524          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8525   { (case "(($ac_try" in
8526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8527   *) ac_try_echo=$ac_try;;
8528 esac
8529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8530   (eval "$ac_try") 2>&5
8531   ac_status=$?
8532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533   (exit $ac_status); }; } &&
8534          { ac_try='test -s conftest$ac_exeext'
8535   { (case "(($ac_try" in
8536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8537   *) ac_try_echo=$ac_try;;
8538 esac
8539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8540   (eval "$ac_try") 2>&5
8541   ac_status=$?
8542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543   (exit $ac_status); }; }; then
8544   ac_cv_lib_wx_mac_2_4_main=yes
8545 else
8546   echo "$as_me: failed program was:" >&5
8547 sed 's/^/| /' conftest.$ac_ext >&5
8548
8549         ac_cv_lib_wx_mac_2_4_main=no
8550 fi
8551
8552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8553       conftest$ac_exeext conftest.$ac_ext
8554 LIBS=$ac_check_lib_save_LIBS
8555 fi
8556 { echo "$as_me:$LINENO: result: $ac_cv_lib_wx_mac_2_4_main" >&5
8557 echo "${ECHO_T}$ac_cv_lib_wx_mac_2_4_main" >&6; }
8558 if test $ac_cv_lib_wx_mac_2_4_main = yes; then
8559   wxwin=true; wx_mac=true;
8560 cat >>confdefs.h <<\_ACEOF
8561 #define HAVE_WXWINDOWS 1
8562 _ACEOF
8563
8564 fi
8565
8566 { echo "$as_me:$LINENO: checking for fftw_malloc in -lfftw3" >&5
8567 echo $ECHO_N "checking for fftw_malloc in -lfftw3... $ECHO_C" >&6; }
8568 if test "${ac_cv_lib_fftw3_fftw_malloc+set}" = set; then
8569   echo $ECHO_N "(cached) $ECHO_C" >&6
8570 else
8571   ac_check_lib_save_LIBS=$LIBS
8572 LIBS="-lfftw3 -L/usr/lib64 -L/usr/lib $LIBS"
8573 cat >conftest.$ac_ext <<_ACEOF
8574 /* confdefs.h.  */
8575 _ACEOF
8576 cat confdefs.h >>conftest.$ac_ext
8577 cat >>conftest.$ac_ext <<_ACEOF
8578 /* end confdefs.h.  */
8579
8580 /* Override any GCC internal prototype to avoid an error.
8581    Use char because int might match the return type of a GCC
8582    builtin and then its argument prototype would still apply.  */
8583 #ifdef __cplusplus
8584 extern "C"
8585 #endif
8586 char fftw_malloc ();
8587 int
8588 main ()
8589 {
8590 return fftw_malloc ();
8591   ;
8592   return 0;
8593 }
8594 _ACEOF
8595 rm -f conftest.$ac_objext conftest$ac_exeext
8596 if { (ac_try="$ac_link"
8597 case "(($ac_try" in
8598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8599   *) ac_try_echo=$ac_try;;
8600 esac
8601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8602   (eval "$ac_link") 2>conftest.er1
8603   ac_status=$?
8604   grep -v '^ *+' conftest.er1 >conftest.err
8605   rm -f conftest.er1
8606   cat conftest.err >&5
8607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608   (exit $ac_status); } &&
8609          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8610   { (case "(($ac_try" in
8611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8612   *) ac_try_echo=$ac_try;;
8613 esac
8614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8615   (eval "$ac_try") 2>&5
8616   ac_status=$?
8617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618   (exit $ac_status); }; } &&
8619          { ac_try='test -s conftest$ac_exeext'
8620   { (case "(($ac_try" in
8621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8622   *) ac_try_echo=$ac_try;;
8623 esac
8624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8625   (eval "$ac_try") 2>&5
8626   ac_status=$?
8627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628   (exit $ac_status); }; }; then
8629   ac_cv_lib_fftw3_fftw_malloc=yes
8630 else
8631   echo "$as_me: failed program was:" >&5
8632 sed 's/^/| /' conftest.$ac_ext >&5
8633
8634         ac_cv_lib_fftw3_fftw_malloc=no
8635 fi
8636
8637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8638       conftest$ac_exeext conftest.$ac_ext
8639 LIBS=$ac_check_lib_save_LIBS
8640 fi
8641 { echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_fftw_malloc" >&5
8642 echo "${ECHO_T}$ac_cv_lib_fftw3_fftw_malloc" >&6; }
8643 if test $ac_cv_lib_fftw3_fftw_malloc = yes; then
8644   fftw=true;
8645 cat >>confdefs.h <<\_ACEOF
8646 #define HAVE_FFTW 1
8647 _ACEOF
8648
8649 else
8650   fftw=false
8651 fi
8652
8653 { echo "$as_me:$LINENO: checking for main in -lGL" >&5
8654 echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6; }
8655 if test "${ac_cv_lib_GL_main+set}" = set; then
8656   echo $ECHO_N "(cached) $ECHO_C" >&6
8657 else
8658   ac_check_lib_save_LIBS=$LIBS
8659 LIBS="-lGL -L/usr/X11R6/lib -L/usr/X11R6/lib64 $LIBS"
8660 cat >conftest.$ac_ext <<_ACEOF
8661 /* confdefs.h.  */
8662 _ACEOF
8663 cat confdefs.h >>conftest.$ac_ext
8664 cat >>conftest.$ac_ext <<_ACEOF
8665 /* end confdefs.h.  */
8666
8667
8668 int
8669 main ()
8670 {
8671 return main ();
8672   ;
8673   return 0;
8674 }
8675 _ACEOF
8676 rm -f conftest.$ac_objext conftest$ac_exeext
8677 if { (ac_try="$ac_link"
8678 case "(($ac_try" in
8679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8680   *) ac_try_echo=$ac_try;;
8681 esac
8682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8683   (eval "$ac_link") 2>conftest.er1
8684   ac_status=$?
8685   grep -v '^ *+' conftest.er1 >conftest.err
8686   rm -f conftest.er1
8687   cat conftest.err >&5
8688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689   (exit $ac_status); } &&
8690          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8691   { (case "(($ac_try" in
8692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8693   *) ac_try_echo=$ac_try;;
8694 esac
8695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8696   (eval "$ac_try") 2>&5
8697   ac_status=$?
8698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699   (exit $ac_status); }; } &&
8700          { ac_try='test -s conftest$ac_exeext'
8701   { (case "(($ac_try" in
8702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8703   *) ac_try_echo=$ac_try;;
8704 esac
8705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8706   (eval "$ac_try") 2>&5
8707   ac_status=$?
8708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709   (exit $ac_status); }; }; then
8710   ac_cv_lib_GL_main=yes
8711 else
8712   echo "$as_me: failed program was:" >&5
8713 sed 's/^/| /' conftest.$ac_ext >&5
8714
8715         ac_cv_lib_GL_main=no
8716 fi
8717
8718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8719       conftest$ac_exeext conftest.$ac_ext
8720 LIBS=$ac_check_lib_save_LIBS
8721 fi
8722 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5
8723 echo "${ECHO_T}$ac_cv_lib_GL_main" >&6; }
8724 if test $ac_cv_lib_GL_main = yes; then
8725   libgl=true
8726 else
8727   libgl=false
8728 fi
8729
8730 { echo "$as_me:$LINENO: checking for main in -lpthread" >&5
8731 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6; }
8732 if test "${ac_cv_lib_pthread_main+set}" = set; then
8733   echo $ECHO_N "(cached) $ECHO_C" >&6
8734 else
8735   ac_check_lib_save_LIBS=$LIBS
8736 LIBS="-lpthread  $LIBS"
8737 cat >conftest.$ac_ext <<_ACEOF
8738 /* confdefs.h.  */
8739 _ACEOF
8740 cat confdefs.h >>conftest.$ac_ext
8741 cat >>conftest.$ac_ext <<_ACEOF
8742 /* end confdefs.h.  */
8743
8744
8745 int
8746 main ()
8747 {
8748 return main ();
8749   ;
8750   return 0;
8751 }
8752 _ACEOF
8753 rm -f conftest.$ac_objext conftest$ac_exeext
8754 if { (ac_try="$ac_link"
8755 case "(($ac_try" in
8756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8757   *) ac_try_echo=$ac_try;;
8758 esac
8759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8760   (eval "$ac_link") 2>conftest.er1
8761   ac_status=$?
8762   grep -v '^ *+' conftest.er1 >conftest.err
8763   rm -f conftest.er1
8764   cat conftest.err >&5
8765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766   (exit $ac_status); } &&
8767          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8768   { (case "(($ac_try" in
8769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8770   *) ac_try_echo=$ac_try;;
8771 esac
8772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8773   (eval "$ac_try") 2>&5
8774   ac_status=$?
8775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776   (exit $ac_status); }; } &&
8777          { ac_try='test -s conftest$ac_exeext'
8778   { (case "(($ac_try" in
8779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8780   *) ac_try_echo=$ac_try;;
8781 esac
8782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8783   (eval "$ac_try") 2>&5
8784   ac_status=$?
8785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8786   (exit $ac_status); }; }; then
8787   ac_cv_lib_pthread_main=yes
8788 else
8789   echo "$as_me: failed program was:" >&5
8790 sed 's/^/| /' conftest.$ac_ext >&5
8791
8792         ac_cv_lib_pthread_main=no
8793 fi
8794
8795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8796       conftest$ac_exeext conftest.$ac_ext
8797 LIBS=$ac_check_lib_save_LIBS
8798 fi
8799 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
8800 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6; }
8801 if test $ac_cv_lib_pthread_main = yes; then
8802   pthread=true
8803 else
8804   pthread=false
8805 fi
8806
8807
8808 if test "$zlib" = "true" ; then
8809   { echo "$as_me:$LINENO: checking for main in -lpng" >&5
8810 echo $ECHO_N "checking for main in -lpng... $ECHO_C" >&6; }
8811 if test "${ac_cv_lib_png_main+set}" = set; then
8812   echo $ECHO_N "(cached) $ECHO_C" >&6
8813 else
8814   ac_check_lib_save_LIBS=$LIBS
8815 LIBS="-lpng -lz -lm $LIBS"
8816 cat >conftest.$ac_ext <<_ACEOF
8817 /* confdefs.h.  */
8818 _ACEOF
8819 cat confdefs.h >>conftest.$ac_ext
8820 cat >>conftest.$ac_ext <<_ACEOF
8821 /* end confdefs.h.  */
8822
8823
8824 int
8825 main ()
8826 {
8827 return main ();
8828   ;
8829   return 0;
8830 }
8831 _ACEOF
8832 rm -f conftest.$ac_objext conftest$ac_exeext
8833 if { (ac_try="$ac_link"
8834 case "(($ac_try" in
8835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8836   *) ac_try_echo=$ac_try;;
8837 esac
8838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8839   (eval "$ac_link") 2>conftest.er1
8840   ac_status=$?
8841   grep -v '^ *+' conftest.er1 >conftest.err
8842   rm -f conftest.er1
8843   cat conftest.err >&5
8844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845   (exit $ac_status); } &&
8846          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8847   { (case "(($ac_try" in
8848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8849   *) ac_try_echo=$ac_try;;
8850 esac
8851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8852   (eval "$ac_try") 2>&5
8853   ac_status=$?
8854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855   (exit $ac_status); }; } &&
8856          { ac_try='test -s conftest$ac_exeext'
8857   { (case "(($ac_try" in
8858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8859   *) ac_try_echo=$ac_try;;
8860 esac
8861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8862   (eval "$ac_try") 2>&5
8863   ac_status=$?
8864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865   (exit $ac_status); }; }; then
8866   ac_cv_lib_png_main=yes
8867 else
8868   echo "$as_me: failed program was:" >&5
8869 sed 's/^/| /' conftest.$ac_ext >&5
8870
8871         ac_cv_lib_png_main=no
8872 fi
8873
8874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8875       conftest$ac_exeext conftest.$ac_ext
8876 LIBS=$ac_check_lib_save_LIBS
8877 fi
8878 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_main" >&5
8879 echo "${ECHO_T}$ac_cv_lib_png_main" >&6; }
8880 if test $ac_cv_lib_png_main = yes; then
8881   png=true ;
8882 cat >>confdefs.h <<\_ACEOF
8883 #define HAVE_PNG 1
8884 _ACEOF
8885
8886 else
8887   png=false
8888 fi
8889
8890 fi
8891
8892 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8893 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8894 if test "${ac_cv_header_stdc+set}" = set; then
8895   echo $ECHO_N "(cached) $ECHO_C" >&6
8896 else
8897   cat >conftest.$ac_ext <<_ACEOF
8898 /* confdefs.h.  */
8899 _ACEOF
8900 cat confdefs.h >>conftest.$ac_ext
8901 cat >>conftest.$ac_ext <<_ACEOF
8902 /* end confdefs.h.  */
8903 #include <stdlib.h>
8904 #include <stdarg.h>
8905 #include <string.h>
8906 #include <float.h>
8907
8908 int
8909 main ()
8910 {
8911
8912   ;
8913   return 0;
8914 }
8915 _ACEOF
8916 rm -f conftest.$ac_objext
8917 if { (ac_try="$ac_compile"
8918 case "(($ac_try" in
8919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8920   *) ac_try_echo=$ac_try;;
8921 esac
8922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8923   (eval "$ac_compile") 2>conftest.er1
8924   ac_status=$?
8925   grep -v '^ *+' conftest.er1 >conftest.err
8926   rm -f conftest.er1
8927   cat conftest.err >&5
8928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929   (exit $ac_status); } &&
8930          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8931   { (case "(($ac_try" in
8932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8933   *) ac_try_echo=$ac_try;;
8934 esac
8935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8936   (eval "$ac_try") 2>&5
8937   ac_status=$?
8938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939   (exit $ac_status); }; } &&
8940          { ac_try='test -s conftest.$ac_objext'
8941   { (case "(($ac_try" in
8942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8943   *) ac_try_echo=$ac_try;;
8944 esac
8945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8946   (eval "$ac_try") 2>&5
8947   ac_status=$?
8948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949   (exit $ac_status); }; }; then
8950   ac_cv_header_stdc=yes
8951 else
8952   echo "$as_me: failed program was:" >&5
8953 sed 's/^/| /' conftest.$ac_ext >&5
8954
8955         ac_cv_header_stdc=no
8956 fi
8957
8958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8959
8960 if test $ac_cv_header_stdc = yes; then
8961   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8962   cat >conftest.$ac_ext <<_ACEOF
8963 /* confdefs.h.  */
8964 _ACEOF
8965 cat confdefs.h >>conftest.$ac_ext
8966 cat >>conftest.$ac_ext <<_ACEOF
8967 /* end confdefs.h.  */
8968 #include <string.h>
8969
8970 _ACEOF
8971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8972   $EGREP "memchr" >/dev/null 2>&1; then
8973   :
8974 else
8975   ac_cv_header_stdc=no
8976 fi
8977 rm -f conftest*
8978
8979 fi
8980
8981 if test $ac_cv_header_stdc = yes; then
8982   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8983   cat >conftest.$ac_ext <<_ACEOF
8984 /* confdefs.h.  */
8985 _ACEOF
8986 cat confdefs.h >>conftest.$ac_ext
8987 cat >>conftest.$ac_ext <<_ACEOF
8988 /* end confdefs.h.  */
8989 #include <stdlib.h>
8990
8991 _ACEOF
8992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8993   $EGREP "free" >/dev/null 2>&1; then
8994   :
8995 else
8996   ac_cv_header_stdc=no
8997 fi
8998 rm -f conftest*
8999
9000 fi
9001
9002 if test $ac_cv_header_stdc = yes; then
9003   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9004   if test "$cross_compiling" = yes; then
9005   :
9006 else
9007   cat >conftest.$ac_ext <<_ACEOF
9008 /* confdefs.h.  */
9009 _ACEOF
9010 cat confdefs.h >>conftest.$ac_ext
9011 cat >>conftest.$ac_ext <<_ACEOF
9012 /* end confdefs.h.  */
9013 #include <ctype.h>
9014 #include <stdlib.h>
9015 #if ((' ' & 0x0FF) == 0x020)
9016 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9017 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9018 #else
9019 # define ISLOWER(c) \
9020                    (('a' <= (c) && (c) <= 'i') \
9021                      || ('j' <= (c) && (c) <= 'r') \
9022                      || ('s' <= (c) && (c) <= 'z'))
9023 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9024 #endif
9025
9026 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9027 int
9028 main ()
9029 {
9030   int i;
9031   for (i = 0; i < 256; i++)
9032     if (XOR (islower (i), ISLOWER (i))
9033         || toupper (i) != TOUPPER (i))
9034       return 2;
9035   return 0;
9036 }
9037 _ACEOF
9038 rm -f conftest$ac_exeext
9039 if { (ac_try="$ac_link"
9040 case "(($ac_try" in
9041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9042   *) ac_try_echo=$ac_try;;
9043 esac
9044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9045   (eval "$ac_link") 2>&5
9046   ac_status=$?
9047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9049   { (case "(($ac_try" in
9050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9051   *) ac_try_echo=$ac_try;;
9052 esac
9053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9054   (eval "$ac_try") 2>&5
9055   ac_status=$?
9056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057   (exit $ac_status); }; }; then
9058   :
9059 else
9060   echo "$as_me: program exited with status $ac_status" >&5
9061 echo "$as_me: failed program was:" >&5
9062 sed 's/^/| /' conftest.$ac_ext >&5
9063
9064 ( exit $ac_status )
9065 ac_cv_header_stdc=no
9066 fi
9067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9068 fi
9069
9070
9071 fi
9072 fi
9073 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9074 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
9075 if test $ac_cv_header_stdc = yes; then
9076
9077 cat >>confdefs.h <<\_ACEOF
9078 #define STDC_HEADERS 1
9079 _ACEOF
9080
9081 fi
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107 for ac_header in fcntl.h unistd.h getopt.h sys/fcntl.h setjmp.h stdarg.h stddef.h sys/types.h sys/stat.h string.h ctype.h math.h stdio.h netinet/in.h inttypes.h sys/param.h stdint.h stdlib.h assert.h sys/time.h sys/resource.h sys/time.h readline.h readline/readline.h
9108 do
9109 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9111   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9114   echo $ECHO_N "(cached) $ECHO_C" >&6
9115 fi
9116 ac_res=`eval echo '${'$as_ac_Header'}'`
9117                { echo "$as_me:$LINENO: result: $ac_res" >&5
9118 echo "${ECHO_T}$ac_res" >&6; }
9119 else
9120   # Is the header compilable?
9121 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9122 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9123 cat >conftest.$ac_ext <<_ACEOF
9124 /* confdefs.h.  */
9125 _ACEOF
9126 cat confdefs.h >>conftest.$ac_ext
9127 cat >>conftest.$ac_ext <<_ACEOF
9128 /* end confdefs.h.  */
9129 $ac_includes_default
9130 #include <$ac_header>
9131 _ACEOF
9132 rm -f conftest.$ac_objext
9133 if { (ac_try="$ac_compile"
9134 case "(($ac_try" in
9135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9136   *) ac_try_echo=$ac_try;;
9137 esac
9138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9139   (eval "$ac_compile") 2>conftest.er1
9140   ac_status=$?
9141   grep -v '^ *+' conftest.er1 >conftest.err
9142   rm -f conftest.er1
9143   cat conftest.err >&5
9144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145   (exit $ac_status); } &&
9146          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9147   { (case "(($ac_try" in
9148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9149   *) ac_try_echo=$ac_try;;
9150 esac
9151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9152   (eval "$ac_try") 2>&5
9153   ac_status=$?
9154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155   (exit $ac_status); }; } &&
9156          { ac_try='test -s conftest.$ac_objext'
9157   { (case "(($ac_try" in
9158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9159   *) ac_try_echo=$ac_try;;
9160 esac
9161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9162   (eval "$ac_try") 2>&5
9163   ac_status=$?
9164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165   (exit $ac_status); }; }; then
9166   ac_header_compiler=yes
9167 else
9168   echo "$as_me: failed program was:" >&5
9169 sed 's/^/| /' conftest.$ac_ext >&5
9170
9171         ac_header_compiler=no
9172 fi
9173
9174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9175 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9176 echo "${ECHO_T}$ac_header_compiler" >&6; }
9177
9178 # Is the header present?
9179 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9180 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9181 cat >conftest.$ac_ext <<_ACEOF
9182 /* confdefs.h.  */
9183 _ACEOF
9184 cat confdefs.h >>conftest.$ac_ext
9185 cat >>conftest.$ac_ext <<_ACEOF
9186 /* end confdefs.h.  */
9187 #include <$ac_header>
9188 _ACEOF
9189 if { (ac_try="$ac_cpp conftest.$ac_ext"
9190 case "(($ac_try" in
9191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9192   *) ac_try_echo=$ac_try;;
9193 esac
9194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9195   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9196   ac_status=$?
9197   grep -v '^ *+' conftest.er1 >conftest.err
9198   rm -f conftest.er1
9199   cat conftest.err >&5
9200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201   (exit $ac_status); } >/dev/null; then
9202   if test -s conftest.err; then
9203     ac_cpp_err=$ac_c_preproc_warn_flag
9204     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9205   else
9206     ac_cpp_err=
9207   fi
9208 else
9209   ac_cpp_err=yes
9210 fi
9211 if test -z "$ac_cpp_err"; then
9212   ac_header_preproc=yes
9213 else
9214   echo "$as_me: failed program was:" >&5
9215 sed 's/^/| /' conftest.$ac_ext >&5
9216
9217   ac_header_preproc=no
9218 fi
9219
9220 rm -f conftest.err conftest.$ac_ext
9221 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9222 echo "${ECHO_T}$ac_header_preproc" >&6; }
9223
9224 # So?  What about this header?
9225 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9226   yes:no: )
9227     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9228 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9229     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9230 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9231     ac_header_preproc=yes
9232     ;;
9233   no:yes:* )
9234     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9235 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9236     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9237 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9238     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9239 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9240     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9241 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9242     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9243 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9244     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9245 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9246
9247     ;;
9248 esac
9249 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9251 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9252   echo $ECHO_N "(cached) $ECHO_C" >&6
9253 else
9254   eval "$as_ac_Header=\$ac_header_preproc"
9255 fi
9256 ac_res=`eval echo '${'$as_ac_Header'}'`
9257                { echo "$as_me:$LINENO: result: $ac_res" >&5
9258 echo "${ECHO_T}$ac_res" >&6; }
9259
9260 fi
9261 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9262   cat >>confdefs.h <<_ACEOF
9263 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9264 _ACEOF
9265
9266 fi
9267
9268 done
9269
9270
9271 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9272 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9273 if test "${ac_cv_c_const+set}" = set; then
9274   echo $ECHO_N "(cached) $ECHO_C" >&6
9275 else
9276   cat >conftest.$ac_ext <<_ACEOF
9277 /* confdefs.h.  */
9278 _ACEOF
9279 cat confdefs.h >>conftest.$ac_ext
9280 cat >>conftest.$ac_ext <<_ACEOF
9281 /* end confdefs.h.  */
9282
9283 int
9284 main ()
9285 {
9286 /* FIXME: Include the comments suggested by Paul. */
9287 #ifndef __cplusplus
9288   /* Ultrix mips cc rejects this.  */
9289   typedef int charset[2];
9290   const charset cs;
9291   /* SunOS 4.1.1 cc rejects this.  */
9292   char const *const *pcpcc;
9293   char **ppc;
9294   /* NEC SVR4.0.2 mips cc rejects this.  */
9295   struct point {int x, y;};
9296   static struct point const zero = {0,0};
9297   /* AIX XL C 1.02.0.0 rejects this.
9298      It does not let you subtract one const X* pointer from another in
9299      an arm of an if-expression whose if-part is not a constant
9300      expression */
9301   const char *g = "string";
9302   pcpcc = &g + (g ? g-g : 0);
9303   /* HPUX 7.0 cc rejects these. */
9304   ++pcpcc;
9305   ppc = (char**) pcpcc;
9306   pcpcc = (char const *const *) ppc;
9307   { /* SCO 3.2v4 cc rejects this.  */
9308     char *t;
9309     char const *s = 0 ? (char *) 0 : (char const *) 0;
9310
9311     *t++ = 0;
9312     if (s) return 0;
9313   }
9314   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9315     int x[] = {25, 17};
9316     const int *foo = &x[0];
9317     ++foo;
9318   }
9319   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9320     typedef const int *iptr;
9321     iptr p = 0;
9322     ++p;
9323   }
9324   { /* AIX XL C 1.02.0.0 rejects this saying
9325        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9326     struct s { int j; const int *ap[3]; };
9327     struct s *b; b->j = 5;
9328   }
9329   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9330     const int foo = 10;
9331     if (!foo) return 0;
9332   }
9333   return !cs[0] && !zero.x;
9334 #endif
9335
9336   ;
9337   return 0;
9338 }
9339 _ACEOF
9340 rm -f conftest.$ac_objext
9341 if { (ac_try="$ac_compile"
9342 case "(($ac_try" in
9343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9344   *) ac_try_echo=$ac_try;;
9345 esac
9346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9347   (eval "$ac_compile") 2>conftest.er1
9348   ac_status=$?
9349   grep -v '^ *+' conftest.er1 >conftest.err
9350   rm -f conftest.er1
9351   cat conftest.err >&5
9352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353   (exit $ac_status); } &&
9354          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9355   { (case "(($ac_try" in
9356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9357   *) ac_try_echo=$ac_try;;
9358 esac
9359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9360   (eval "$ac_try") 2>&5
9361   ac_status=$?
9362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363   (exit $ac_status); }; } &&
9364          { ac_try='test -s conftest.$ac_objext'
9365   { (case "(($ac_try" in
9366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9367   *) ac_try_echo=$ac_try;;
9368 esac
9369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9370   (eval "$ac_try") 2>&5
9371   ac_status=$?
9372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373   (exit $ac_status); }; }; then
9374   ac_cv_c_const=yes
9375 else
9376   echo "$as_me: failed program was:" >&5
9377 sed 's/^/| /' conftest.$ac_ext >&5
9378
9379         ac_cv_c_const=no
9380 fi
9381
9382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9383 fi
9384 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9385 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9386 if test $ac_cv_c_const = no; then
9387
9388 cat >>confdefs.h <<\_ACEOF
9389 #define const
9390 _ACEOF
9391
9392 fi
9393
9394 { echo "$as_me:$LINENO: checking for off_t" >&5
9395 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
9396 if test "${ac_cv_type_off_t+set}" = set; then
9397   echo $ECHO_N "(cached) $ECHO_C" >&6
9398 else
9399   cat >conftest.$ac_ext <<_ACEOF
9400 /* confdefs.h.  */
9401 _ACEOF
9402 cat confdefs.h >>conftest.$ac_ext
9403 cat >>conftest.$ac_ext <<_ACEOF
9404 /* end confdefs.h.  */
9405 $ac_includes_default
9406 typedef off_t ac__type_new_;
9407 int
9408 main ()
9409 {
9410 if ((ac__type_new_ *) 0)
9411   return 0;
9412 if (sizeof (ac__type_new_))
9413   return 0;
9414   ;
9415   return 0;
9416 }
9417 _ACEOF
9418 rm -f conftest.$ac_objext
9419 if { (ac_try="$ac_compile"
9420 case "(($ac_try" in
9421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9422   *) ac_try_echo=$ac_try;;
9423 esac
9424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9425   (eval "$ac_compile") 2>conftest.er1
9426   ac_status=$?
9427   grep -v '^ *+' conftest.er1 >conftest.err
9428   rm -f conftest.er1
9429   cat conftest.err >&5
9430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431   (exit $ac_status); } &&
9432          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9433   { (case "(($ac_try" in
9434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9435   *) ac_try_echo=$ac_try;;
9436 esac
9437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9438   (eval "$ac_try") 2>&5
9439   ac_status=$?
9440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441   (exit $ac_status); }; } &&
9442          { ac_try='test -s conftest.$ac_objext'
9443   { (case "(($ac_try" in
9444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9445   *) ac_try_echo=$ac_try;;
9446 esac
9447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9448   (eval "$ac_try") 2>&5
9449   ac_status=$?
9450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451   (exit $ac_status); }; }; then
9452   ac_cv_type_off_t=yes
9453 else
9454   echo "$as_me: failed program was:" >&5
9455 sed 's/^/| /' conftest.$ac_ext >&5
9456
9457         ac_cv_type_off_t=no
9458 fi
9459
9460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9461 fi
9462 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
9463 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
9464 if test $ac_cv_type_off_t = yes; then
9465   :
9466 else
9467
9468 cat >>confdefs.h <<_ACEOF
9469 #define off_t long int
9470 _ACEOF
9471
9472 fi
9473
9474 { echo "$as_me:$LINENO: checking for size_t" >&5
9475 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
9476 if test "${ac_cv_type_size_t+set}" = set; then
9477   echo $ECHO_N "(cached) $ECHO_C" >&6
9478 else
9479   cat >conftest.$ac_ext <<_ACEOF
9480 /* confdefs.h.  */
9481 _ACEOF
9482 cat confdefs.h >>conftest.$ac_ext
9483 cat >>conftest.$ac_ext <<_ACEOF
9484 /* end confdefs.h.  */
9485 $ac_includes_default
9486 typedef size_t ac__type_new_;
9487 int
9488 main ()
9489 {
9490 if ((ac__type_new_ *) 0)
9491   return 0;
9492 if (sizeof (ac__type_new_))
9493   return 0;
9494   ;
9495   return 0;
9496 }
9497 _ACEOF
9498 rm -f conftest.$ac_objext
9499 if { (ac_try="$ac_compile"
9500 case "(($ac_try" in
9501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9502   *) ac_try_echo=$ac_try;;
9503 esac
9504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9505   (eval "$ac_compile") 2>conftest.er1
9506   ac_status=$?
9507   grep -v '^ *+' conftest.er1 >conftest.err
9508   rm -f conftest.er1
9509   cat conftest.err >&5
9510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511   (exit $ac_status); } &&
9512          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9513   { (case "(($ac_try" in
9514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9515   *) ac_try_echo=$ac_try;;
9516 esac
9517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9518   (eval "$ac_try") 2>&5
9519   ac_status=$?
9520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521   (exit $ac_status); }; } &&
9522          { ac_try='test -s conftest.$ac_objext'
9523   { (case "(($ac_try" in
9524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9525   *) ac_try_echo=$ac_try;;
9526 esac
9527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9528   (eval "$ac_try") 2>&5
9529   ac_status=$?
9530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531   (exit $ac_status); }; }; then
9532   ac_cv_type_size_t=yes
9533 else
9534   echo "$as_me: failed program was:" >&5
9535 sed 's/^/| /' conftest.$ac_ext >&5
9536
9537         ac_cv_type_size_t=no
9538 fi
9539
9540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9541 fi
9542 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9543 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
9544 if test $ac_cv_type_size_t = yes; then
9545   :
9546 else
9547
9548 cat >>confdefs.h <<_ACEOF
9549 #define size_t unsigned int
9550 _ACEOF
9551
9552 fi
9553
9554 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9555 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
9556 if test "${ac_cv_struct_tm+set}" = set; then
9557   echo $ECHO_N "(cached) $ECHO_C" >&6
9558 else
9559   cat >conftest.$ac_ext <<_ACEOF
9560 /* confdefs.h.  */
9561 _ACEOF
9562 cat confdefs.h >>conftest.$ac_ext
9563 cat >>conftest.$ac_ext <<_ACEOF
9564 /* end confdefs.h.  */
9565 #include <sys/types.h>
9566 #include <time.h>
9567
9568 int
9569 main ()
9570 {
9571 struct tm *tp; tp->tm_sec;
9572   ;
9573   return 0;
9574 }
9575 _ACEOF
9576 rm -f conftest.$ac_objext
9577 if { (ac_try="$ac_compile"
9578 case "(($ac_try" in
9579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9580   *) ac_try_echo=$ac_try;;
9581 esac
9582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9583   (eval "$ac_compile") 2>conftest.er1
9584   ac_status=$?
9585   grep -v '^ *+' conftest.er1 >conftest.err
9586   rm -f conftest.er1
9587   cat conftest.err >&5
9588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9589   (exit $ac_status); } &&
9590          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9591   { (case "(($ac_try" in
9592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9593   *) ac_try_echo=$ac_try;;
9594 esac
9595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9596   (eval "$ac_try") 2>&5
9597   ac_status=$?
9598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599   (exit $ac_status); }; } &&
9600          { ac_try='test -s conftest.$ac_objext'
9601   { (case "(($ac_try" in
9602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9603   *) ac_try_echo=$ac_try;;
9604 esac
9605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9606   (eval "$ac_try") 2>&5
9607   ac_status=$?
9608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609   (exit $ac_status); }; }; then
9610   ac_cv_struct_tm=time.h
9611 else
9612   echo "$as_me: failed program was:" >&5
9613 sed 's/^/| /' conftest.$ac_ext >&5
9614
9615         ac_cv_struct_tm=sys/time.h
9616 fi
9617
9618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9619 fi
9620 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9621 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
9622 if test $ac_cv_struct_tm = sys/time.h; then
9623
9624 cat >>confdefs.h <<\_ACEOF
9625 #define TM_IN_SYS_TIME 1
9626 _ACEOF
9627
9628 fi
9629
9630
9631
9632 for ac_func in vprintf
9633 do
9634 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9635 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9636 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9637 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9638   echo $ECHO_N "(cached) $ECHO_C" >&6
9639 else
9640   cat >conftest.$ac_ext <<_ACEOF
9641 /* confdefs.h.  */
9642 _ACEOF
9643 cat confdefs.h >>conftest.$ac_ext
9644 cat >>conftest.$ac_ext <<_ACEOF
9645 /* end confdefs.h.  */
9646 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9647    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9648 #define $ac_func innocuous_$ac_func
9649
9650 /* System header to define __stub macros and hopefully few prototypes,
9651     which can conflict with char $ac_func (); below.
9652     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9653     <limits.h> exists even on freestanding compilers.  */
9654
9655 #ifdef __STDC__
9656 # include <limits.h>
9657 #else
9658 # include <assert.h>
9659 #endif
9660
9661 #undef $ac_func
9662
9663 /* Override any GCC internal prototype to avoid an error.
9664    Use char because int might match the return type of a GCC
9665    builtin and then its argument prototype would still apply.  */
9666 #ifdef __cplusplus
9667 extern "C"
9668 #endif
9669 char $ac_func ();
9670 /* The GNU C library defines this for functions which it implements
9671     to always fail with ENOSYS.  Some functions are actually named
9672     something starting with __ and the normal name is an alias.  */
9673 #if defined __stub_$ac_func || defined __stub___$ac_func
9674 choke me
9675 #endif
9676
9677 int
9678 main ()
9679 {
9680 return $ac_func ();
9681   ;
9682   return 0;
9683 }
9684 _ACEOF
9685 rm -f conftest.$ac_objext conftest$ac_exeext
9686 if { (ac_try="$ac_link"
9687 case "(($ac_try" in
9688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9689   *) ac_try_echo=$ac_try;;
9690 esac
9691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9692   (eval "$ac_link") 2>conftest.er1
9693   ac_status=$?
9694   grep -v '^ *+' conftest.er1 >conftest.err
9695   rm -f conftest.er1
9696   cat conftest.err >&5
9697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698   (exit $ac_status); } &&
9699          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9700   { (case "(($ac_try" in
9701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9702   *) ac_try_echo=$ac_try;;
9703 esac
9704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9705   (eval "$ac_try") 2>&5
9706   ac_status=$?
9707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708   (exit $ac_status); }; } &&
9709          { ac_try='test -s conftest$ac_exeext'
9710   { (case "(($ac_try" in
9711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9712   *) ac_try_echo=$ac_try;;
9713 esac
9714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9715   (eval "$ac_try") 2>&5
9716   ac_status=$?
9717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718   (exit $ac_status); }; }; then
9719   eval "$as_ac_var=yes"
9720 else
9721   echo "$as_me: failed program was:" >&5
9722 sed 's/^/| /' conftest.$ac_ext >&5
9723
9724         eval "$as_ac_var=no"
9725 fi
9726
9727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9728       conftest$ac_exeext conftest.$ac_ext
9729 fi
9730 ac_res=`eval echo '${'$as_ac_var'}'`
9731                { echo "$as_me:$LINENO: result: $ac_res" >&5
9732 echo "${ECHO_T}$ac_res" >&6; }
9733 if test `eval echo '${'$as_ac_var'}'` = yes; then
9734   cat >>confdefs.h <<_ACEOF
9735 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9736 _ACEOF
9737
9738 { echo "$as_me:$LINENO: checking for _doprnt" >&5
9739 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
9740 if test "${ac_cv_func__doprnt+set}" = set; then
9741   echo $ECHO_N "(cached) $ECHO_C" >&6
9742 else
9743   cat >conftest.$ac_ext <<_ACEOF
9744 /* confdefs.h.  */
9745 _ACEOF
9746 cat confdefs.h >>conftest.$ac_ext
9747 cat >>conftest.$ac_ext <<_ACEOF
9748 /* end confdefs.h.  */
9749 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
9750    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9751 #define _doprnt innocuous__doprnt
9752
9753 /* System header to define __stub macros and hopefully few prototypes,
9754     which can conflict with char _doprnt (); below.
9755     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9756     <limits.h> exists even on freestanding compilers.  */
9757
9758 #ifdef __STDC__
9759 # include <limits.h>
9760 #else
9761 # include <assert.h>
9762 #endif
9763
9764 #undef _doprnt
9765
9766 /* Override any GCC internal prototype to avoid an error.
9767    Use char because int might match the return type of a GCC
9768    builtin and then its argument prototype would still apply.  */
9769 #ifdef __cplusplus
9770 extern "C"
9771 #endif
9772 char _doprnt ();
9773 /* The GNU C library defines this for functions which it implements
9774     to always fail with ENOSYS.  Some functions are actually named
9775     something starting with __ and the normal name is an alias.  */
9776 #if defined __stub__doprnt || defined __stub____doprnt
9777 choke me
9778 #endif
9779
9780 int
9781 main ()
9782 {
9783 return _doprnt ();
9784   ;
9785   return 0;
9786 }
9787 _ACEOF
9788 rm -f conftest.$ac_objext conftest$ac_exeext
9789 if { (ac_try="$ac_link"
9790 case "(($ac_try" in
9791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9792   *) ac_try_echo=$ac_try;;
9793 esac
9794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9795   (eval "$ac_link") 2>conftest.er1
9796   ac_status=$?
9797   grep -v '^ *+' conftest.er1 >conftest.err
9798   rm -f conftest.er1
9799   cat conftest.err >&5
9800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801   (exit $ac_status); } &&
9802          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9803   { (case "(($ac_try" in
9804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9805   *) ac_try_echo=$ac_try;;
9806 esac
9807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9808   (eval "$ac_try") 2>&5
9809   ac_status=$?
9810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811   (exit $ac_status); }; } &&
9812          { ac_try='test -s conftest$ac_exeext'
9813   { (case "(($ac_try" in
9814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9815   *) ac_try_echo=$ac_try;;
9816 esac
9817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9818   (eval "$ac_try") 2>&5
9819   ac_status=$?
9820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821   (exit $ac_status); }; }; then
9822   ac_cv_func__doprnt=yes
9823 else
9824   echo "$as_me: failed program was:" >&5
9825 sed 's/^/| /' conftest.$ac_ext >&5
9826
9827         ac_cv_func__doprnt=no
9828 fi
9829
9830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9831       conftest$ac_exeext conftest.$ac_ext
9832 fi
9833 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
9834 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
9835 if test $ac_cv_func__doprnt = yes; then
9836
9837 cat >>confdefs.h <<\_ACEOF
9838 #define HAVE_DOPRNT 1
9839 _ACEOF
9840
9841 fi
9842
9843 fi
9844 done
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860 for ac_func in strtod strtol snprintf htonl usleep vsprintf vsnprintf basename setjmp setpriority time gettimeofday getenv
9861 do
9862 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9863 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9864 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9865 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9866   echo $ECHO_N "(cached) $ECHO_C" >&6
9867 else
9868   cat >conftest.$ac_ext <<_ACEOF
9869 /* confdefs.h.  */
9870 _ACEOF
9871 cat confdefs.h >>conftest.$ac_ext
9872 cat >>conftest.$ac_ext <<_ACEOF
9873 /* end confdefs.h.  */
9874 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9875    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9876 #define $ac_func innocuous_$ac_func
9877
9878 /* System header to define __stub macros and hopefully few prototypes,
9879     which can conflict with char $ac_func (); below.
9880     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9881     <limits.h> exists even on freestanding compilers.  */
9882
9883 #ifdef __STDC__
9884 # include <limits.h>
9885 #else
9886 # include <assert.h>
9887 #endif
9888
9889 #undef $ac_func
9890
9891 /* Override any GCC internal prototype to avoid an error.
9892    Use char because int might match the return type of a GCC
9893    builtin and then its argument prototype would still apply.  */
9894 #ifdef __cplusplus
9895 extern "C"
9896 #endif
9897 char $ac_func ();
9898 /* The GNU C library defines this for functions which it implements
9899     to always fail with ENOSYS.  Some functions are actually named
9900     something starting with __ and the normal name is an alias.  */
9901 #if defined __stub_$ac_func || defined __stub___$ac_func
9902 choke me
9903 #endif
9904
9905 int
9906 main ()
9907 {
9908 return $ac_func ();
9909   ;
9910   return 0;
9911 }
9912 _ACEOF
9913 rm -f conftest.$ac_objext conftest$ac_exeext
9914 if { (ac_try="$ac_link"
9915 case "(($ac_try" in
9916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9917   *) ac_try_echo=$ac_try;;
9918 esac
9919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9920   (eval "$ac_link") 2>conftest.er1
9921   ac_status=$?
9922   grep -v '^ *+' conftest.er1 >conftest.err
9923   rm -f conftest.er1
9924   cat conftest.err >&5
9925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926   (exit $ac_status); } &&
9927          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9928   { (case "(($ac_try" in
9929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9930   *) ac_try_echo=$ac_try;;
9931 esac
9932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9933   (eval "$ac_try") 2>&5
9934   ac_status=$?
9935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936   (exit $ac_status); }; } &&
9937          { ac_try='test -s conftest$ac_exeext'
9938   { (case "(($ac_try" in
9939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9940   *) ac_try_echo=$ac_try;;
9941 esac
9942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9943   (eval "$ac_try") 2>&5
9944   ac_status=$?
9945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946   (exit $ac_status); }; }; then
9947   eval "$as_ac_var=yes"
9948 else
9949   echo "$as_me: failed program was:" >&5
9950 sed 's/^/| /' conftest.$ac_ext >&5
9951
9952         eval "$as_ac_var=no"
9953 fi
9954
9955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9956       conftest$ac_exeext conftest.$ac_ext
9957 fi
9958 ac_res=`eval echo '${'$as_ac_var'}'`
9959                { echo "$as_me:$LINENO: result: $ac_res" >&5
9960 echo "${ECHO_T}$ac_res" >&6; }
9961 if test `eval echo '${'$as_ac_var'}'` = yes; then
9962   cat >>confdefs.h <<_ACEOF
9963 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9964 _ACEOF
9965
9966 fi
9967 done
9968
9969 { echo "$as_me:$LINENO: checking for basename" >&5
9970 echo $ECHO_N "checking for basename... $ECHO_C" >&6; }
9971 if test "${ac_cv_func_basename+set}" = set; then
9972   echo $ECHO_N "(cached) $ECHO_C" >&6
9973 else
9974   cat >conftest.$ac_ext <<_ACEOF
9975 /* confdefs.h.  */
9976 _ACEOF
9977 cat confdefs.h >>conftest.$ac_ext
9978 cat >>conftest.$ac_ext <<_ACEOF
9979 /* end confdefs.h.  */
9980 /* Define basename to an innocuous variant, in case <limits.h> declares basename.
9981    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9982 #define basename innocuous_basename
9983
9984 /* System header to define __stub macros and hopefully few prototypes,
9985     which can conflict with char basename (); below.
9986     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9987     <limits.h> exists even on freestanding compilers.  */
9988
9989 #ifdef __STDC__
9990 # include <limits.h>
9991 #else
9992 # include <assert.h>
9993 #endif
9994
9995 #undef basename
9996
9997 /* Override any GCC internal prototype to avoid an error.
9998    Use char because int might match the return type of a GCC
9999    builtin and then its argument prototype would still apply.  */
10000 #ifdef __cplusplus
10001 extern "C"
10002 #endif
10003 char basename ();
10004 /* The GNU C library defines this for functions which it implements
10005     to always fail with ENOSYS.  Some functions are actually named
10006     something starting with __ and the normal name is an alias.  */
10007 #if defined __stub_basename || defined __stub___basename
10008 choke me
10009 #endif
10010
10011 int
10012 main ()
10013 {
10014 return basename ();
10015   ;
10016   return 0;
10017 }
10018 _ACEOF
10019 rm -f conftest.$ac_objext conftest$ac_exeext
10020 if { (ac_try="$ac_link"
10021 case "(($ac_try" in
10022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10023   *) ac_try_echo=$ac_try;;
10024 esac
10025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10026   (eval "$ac_link") 2>conftest.er1
10027   ac_status=$?
10028   grep -v '^ *+' conftest.er1 >conftest.err
10029   rm -f conftest.er1
10030   cat conftest.err >&5
10031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032   (exit $ac_status); } &&
10033          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10034   { (case "(($ac_try" in
10035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10036   *) ac_try_echo=$ac_try;;
10037 esac
10038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10039   (eval "$ac_try") 2>&5
10040   ac_status=$?
10041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042   (exit $ac_status); }; } &&
10043          { ac_try='test -s conftest$ac_exeext'
10044   { (case "(($ac_try" in
10045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10046   *) ac_try_echo=$ac_try;;
10047 esac
10048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10049   (eval "$ac_try") 2>&5
10050   ac_status=$?
10051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052   (exit $ac_status); }; }; then
10053   ac_cv_func_basename=yes
10054 else
10055   echo "$as_me: failed program was:" >&5
10056 sed 's/^/| /' conftest.$ac_ext >&5
10057
10058         ac_cv_func_basename=no
10059 fi
10060
10061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10062       conftest$ac_exeext conftest.$ac_ext
10063 fi
10064 { echo "$as_me:$LINENO: result: $ac_cv_func_basename" >&5
10065 echo "${ECHO_T}$ac_cv_func_basename" >&6; }
10066
10067 { echo "$as_me:$LINENO: checking for setjmp" >&5
10068 echo $ECHO_N "checking for setjmp... $ECHO_C" >&6; }
10069 if test "${ac_cv_func_setjmp+set}" = set; then
10070   echo $ECHO_N "(cached) $ECHO_C" >&6
10071 else
10072   cat >conftest.$ac_ext <<_ACEOF
10073 /* confdefs.h.  */
10074 _ACEOF
10075 cat confdefs.h >>conftest.$ac_ext
10076 cat >>conftest.$ac_ext <<_ACEOF
10077 /* end confdefs.h.  */
10078 /* Define setjmp to an innocuous variant, in case <limits.h> declares setjmp.
10079    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10080 #define setjmp innocuous_setjmp
10081
10082 /* System header to define __stub macros and hopefully few prototypes,
10083     which can conflict with char setjmp (); below.
10084     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10085     <limits.h> exists even on freestanding compilers.  */
10086
10087 #ifdef __STDC__
10088 # include <limits.h>
10089 #else
10090 # include <assert.h>
10091 #endif
10092
10093 #undef setjmp
10094
10095 /* Override any GCC internal prototype to avoid an error.
10096    Use char because int might match the return type of a GCC
10097    builtin and then its argument prototype would still apply.  */
10098 #ifdef __cplusplus
10099 extern "C"
10100 #endif
10101 char setjmp ();
10102 /* The GNU C library defines this for functions which it implements
10103     to always fail with ENOSYS.  Some functions are actually named
10104     something starting with __ and the normal name is an alias.  */
10105 #if defined __stub_setjmp || defined __stub___setjmp
10106 choke me
10107 #endif
10108
10109 int
10110 main ()
10111 {
10112 return setjmp ();
10113   ;
10114   return 0;
10115 }
10116 _ACEOF
10117 rm -f conftest.$ac_objext conftest$ac_exeext
10118 if { (ac_try="$ac_link"
10119 case "(($ac_try" in
10120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10121   *) ac_try_echo=$ac_try;;
10122 esac
10123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10124   (eval "$ac_link") 2>conftest.er1
10125   ac_status=$?
10126   grep -v '^ *+' conftest.er1 >conftest.err
10127   rm -f conftest.er1
10128   cat conftest.err >&5
10129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130   (exit $ac_status); } &&
10131          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10132   { (case "(($ac_try" in
10133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10134   *) ac_try_echo=$ac_try;;
10135 esac
10136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10137   (eval "$ac_try") 2>&5
10138   ac_status=$?
10139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140   (exit $ac_status); }; } &&
10141          { ac_try='test -s conftest$ac_exeext'
10142   { (case "(($ac_try" in
10143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10144   *) ac_try_echo=$ac_try;;
10145 esac
10146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10147   (eval "$ac_try") 2>&5
10148   ac_status=$?
10149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150   (exit $ac_status); }; }; then
10151   ac_cv_func_setjmp=yes
10152 else
10153   echo "$as_me: failed program was:" >&5
10154 sed 's/^/| /' conftest.$ac_ext >&5
10155
10156         ac_cv_func_setjmp=no
10157 fi
10158
10159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10160       conftest$ac_exeext conftest.$ac_ext
10161 fi
10162 { echo "$as_me:$LINENO: result: $ac_cv_func_setjmp" >&5
10163 echo "${ECHO_T}$ac_cv_func_setjmp" >&6; }
10164
10165 { echo "$as_me:$LINENO: checking for setpriority" >&5
10166 echo $ECHO_N "checking for setpriority... $ECHO_C" >&6; }
10167 if test "${ac_cv_func_setpriority+set}" = set; then
10168   echo $ECHO_N "(cached) $ECHO_C" >&6
10169 else
10170   cat >conftest.$ac_ext <<_ACEOF
10171 /* confdefs.h.  */
10172 _ACEOF
10173 cat confdefs.h >>conftest.$ac_ext
10174 cat >>conftest.$ac_ext <<_ACEOF
10175 /* end confdefs.h.  */
10176 /* Define setpriority to an innocuous variant, in case <limits.h> declares setpriority.
10177    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10178 #define setpriority innocuous_setpriority
10179
10180 /* System header to define __stub macros and hopefully few prototypes,
10181     which can conflict with char setpriority (); below.
10182     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10183     <limits.h> exists even on freestanding compilers.  */
10184
10185 #ifdef __STDC__
10186 # include <limits.h>
10187 #else
10188 # include <assert.h>
10189 #endif
10190
10191 #undef setpriority
10192
10193 /* Override any GCC internal prototype to avoid an error.
10194    Use char because int might match the return type of a GCC
10195    builtin and then its argument prototype would still apply.  */
10196 #ifdef __cplusplus
10197 extern "C"
10198 #endif
10199 char setpriority ();
10200 /* The GNU C library defines this for functions which it implements
10201     to always fail with ENOSYS.  Some functions are actually named
10202     something starting with __ and the normal name is an alias.  */
10203 #if defined __stub_setpriority || defined __stub___setpriority
10204 choke me
10205 #endif
10206
10207 int
10208 main ()
10209 {
10210 return setpriority ();
10211   ;
10212   return 0;
10213 }
10214 _ACEOF
10215 rm -f conftest.$ac_objext conftest$ac_exeext
10216 if { (ac_try="$ac_link"
10217 case "(($ac_try" in
10218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10219   *) ac_try_echo=$ac_try;;
10220 esac
10221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10222   (eval "$ac_link") 2>conftest.er1
10223   ac_status=$?
10224   grep -v '^ *+' conftest.er1 >conftest.err
10225   rm -f conftest.er1
10226   cat conftest.err >&5
10227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228   (exit $ac_status); } &&
10229          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10230   { (case "(($ac_try" in
10231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10232   *) ac_try_echo=$ac_try;;
10233 esac
10234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10235   (eval "$ac_try") 2>&5
10236   ac_status=$?
10237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10238   (exit $ac_status); }; } &&
10239          { ac_try='test -s conftest$ac_exeext'
10240   { (case "(($ac_try" in
10241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10242   *) ac_try_echo=$ac_try;;
10243 esac
10244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10245   (eval "$ac_try") 2>&5
10246   ac_status=$?
10247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248   (exit $ac_status); }; }; then
10249   ac_cv_func_setpriority=yes
10250 else
10251   echo "$as_me: failed program was:" >&5
10252 sed 's/^/| /' conftest.$ac_ext >&5
10253
10254         ac_cv_func_setpriority=no
10255 fi
10256
10257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10258       conftest$ac_exeext conftest.$ac_ext
10259 fi
10260 { echo "$as_me:$LINENO: result: $ac_cv_func_setpriority" >&5
10261 echo "${ECHO_T}$ac_cv_func_setpriority" >&6; }
10262
10263 { echo "$as_me:$LINENO: checking for time" >&5
10264 echo $ECHO_N "checking for time... $ECHO_C" >&6; }
10265 if test "${ac_cv_func_time+set}" = set; then
10266   echo $ECHO_N "(cached) $ECHO_C" >&6
10267 else
10268   cat >conftest.$ac_ext <<_ACEOF
10269 /* confdefs.h.  */
10270 _ACEOF
10271 cat confdefs.h >>conftest.$ac_ext
10272 cat >>conftest.$ac_ext <<_ACEOF
10273 /* end confdefs.h.  */
10274 /* Define time to an innocuous variant, in case <limits.h> declares time.
10275    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10276 #define time innocuous_time
10277
10278 /* System header to define __stub macros and hopefully few prototypes,
10279     which can conflict with char time (); below.
10280     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10281     <limits.h> exists even on freestanding compilers.  */
10282
10283 #ifdef __STDC__
10284 # include <limits.h>
10285 #else
10286 # include <assert.h>
10287 #endif
10288
10289 #undef time
10290
10291 /* Override any GCC internal prototype to avoid an error.
10292    Use char because int might match the return type of a GCC
10293    builtin and then its argument prototype would still apply.  */
10294 #ifdef __cplusplus
10295 extern "C"
10296 #endif
10297 char time ();
10298 /* The GNU C library defines this for functions which it implements
10299     to always fail with ENOSYS.  Some functions are actually named
10300     something starting with __ and the normal name is an alias.  */
10301 #if defined __stub_time || defined __stub___time
10302 choke me
10303 #endif
10304
10305 int
10306 main ()
10307 {
10308 return time ();
10309   ;
10310   return 0;
10311 }
10312 _ACEOF
10313 rm -f conftest.$ac_objext conftest$ac_exeext
10314 if { (ac_try="$ac_link"
10315 case "(($ac_try" in
10316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10317   *) ac_try_echo=$ac_try;;
10318 esac
10319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10320   (eval "$ac_link") 2>conftest.er1
10321   ac_status=$?
10322   grep -v '^ *+' conftest.er1 >conftest.err
10323   rm -f conftest.er1
10324   cat conftest.err >&5
10325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326   (exit $ac_status); } &&
10327          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10328   { (case "(($ac_try" in
10329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10330   *) ac_try_echo=$ac_try;;
10331 esac
10332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10333   (eval "$ac_try") 2>&5
10334   ac_status=$?
10335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336   (exit $ac_status); }; } &&
10337          { ac_try='test -s conftest$ac_exeext'
10338   { (case "(($ac_try" in
10339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10340   *) ac_try_echo=$ac_try;;
10341 esac
10342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10343   (eval "$ac_try") 2>&5
10344   ac_status=$?
10345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346   (exit $ac_status); }; }; then
10347   ac_cv_func_time=yes
10348 else
10349   echo "$as_me: failed program was:" >&5
10350 sed 's/^/| /' conftest.$ac_ext >&5
10351
10352         ac_cv_func_time=no
10353 fi
10354
10355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10356       conftest$ac_exeext conftest.$ac_ext
10357 fi
10358 { echo "$as_me:$LINENO: result: $ac_cv_func_time" >&5
10359 echo "${ECHO_T}$ac_cv_func_time" >&6; }
10360
10361 { echo "$as_me:$LINENO: checking for gettimeofday" >&5
10362 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6; }
10363 if test "${ac_cv_func_gettimeofday+set}" = set; then
10364   echo $ECHO_N "(cached) $ECHO_C" >&6
10365 else
10366   cat >conftest.$ac_ext <<_ACEOF
10367 /* confdefs.h.  */
10368 _ACEOF
10369 cat confdefs.h >>conftest.$ac_ext
10370 cat >>conftest.$ac_ext <<_ACEOF
10371 /* end confdefs.h.  */
10372 /* Define gettimeofday to an innocuous variant, in case <limits.h> declares gettimeofday.
10373    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10374 #define gettimeofday innocuous_gettimeofday
10375
10376 /* System header to define __stub macros and hopefully few prototypes,
10377     which can conflict with char gettimeofday (); below.
10378     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10379     <limits.h> exists even on freestanding compilers.  */
10380
10381 #ifdef __STDC__
10382 # include <limits.h>
10383 #else
10384 # include <assert.h>
10385 #endif
10386
10387 #undef gettimeofday
10388
10389 /* Override any GCC internal prototype to avoid an error.
10390    Use char because int might match the return type of a GCC
10391    builtin and then its argument prototype would still apply.  */
10392 #ifdef __cplusplus
10393 extern "C"
10394 #endif
10395 char gettimeofday ();
10396 /* The GNU C library defines this for functions which it implements
10397     to always fail with ENOSYS.  Some functions are actually named
10398     something starting with __ and the normal name is an alias.  */
10399 #if defined __stub_gettimeofday || defined __stub___gettimeofday
10400 choke me
10401 #endif
10402
10403 int
10404 main ()
10405 {
10406 return gettimeofday ();
10407   ;
10408   return 0;
10409 }
10410 _ACEOF
10411 rm -f conftest.$ac_objext conftest$ac_exeext
10412 if { (ac_try="$ac_link"
10413 case "(($ac_try" in
10414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10415   *) ac_try_echo=$ac_try;;
10416 esac
10417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10418   (eval "$ac_link") 2>conftest.er1
10419   ac_status=$?
10420   grep -v '^ *+' conftest.er1 >conftest.err
10421   rm -f conftest.er1
10422   cat conftest.err >&5
10423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424   (exit $ac_status); } &&
10425          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10426   { (case "(($ac_try" in
10427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10428   *) ac_try_echo=$ac_try;;
10429 esac
10430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10431   (eval "$ac_try") 2>&5
10432   ac_status=$?
10433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434   (exit $ac_status); }; } &&
10435          { ac_try='test -s conftest$ac_exeext'
10436   { (case "(($ac_try" in
10437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10438   *) ac_try_echo=$ac_try;;
10439 esac
10440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10441   (eval "$ac_try") 2>&5
10442   ac_status=$?
10443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444   (exit $ac_status); }; }; then
10445   ac_cv_func_gettimeofday=yes
10446 else
10447   echo "$as_me: failed program was:" >&5
10448 sed 's/^/| /' conftest.$ac_ext >&5
10449
10450         ac_cv_func_gettimeofday=no
10451 fi
10452
10453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10454       conftest$ac_exeext conftest.$ac_ext
10455 fi
10456 { echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
10457 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6; }
10458
10459 { echo "$as_me:$LINENO: checking for getopt" >&5
10460 echo $ECHO_N "checking for getopt... $ECHO_C" >&6; }
10461 if test "${ac_cv_func_getopt+set}" = set; then
10462   echo $ECHO_N "(cached) $ECHO_C" >&6
10463 else
10464   cat >conftest.$ac_ext <<_ACEOF
10465 /* confdefs.h.  */
10466 _ACEOF
10467 cat confdefs.h >>conftest.$ac_ext
10468 cat >>conftest.$ac_ext <<_ACEOF
10469 /* end confdefs.h.  */
10470 /* Define getopt to an innocuous variant, in case <limits.h> declares getopt.
10471    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10472 #define getopt innocuous_getopt
10473
10474 /* System header to define __stub macros and hopefully few prototypes,
10475     which can conflict with char getopt (); below.
10476     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10477     <limits.h> exists even on freestanding compilers.  */
10478
10479 #ifdef __STDC__
10480 # include <limits.h>
10481 #else
10482 # include <assert.h>
10483 #endif
10484
10485 #undef getopt
10486
10487 /* Override any GCC internal prototype to avoid an error.
10488    Use char because int might match the return type of a GCC
10489    builtin and then its argument prototype would still apply.  */
10490 #ifdef __cplusplus
10491 extern "C"
10492 #endif
10493 char getopt ();
10494 /* The GNU C library defines this for functions which it implements
10495     to always fail with ENOSYS.  Some functions are actually named
10496     something starting with __ and the normal name is an alias.  */
10497 #if defined __stub_getopt || defined __stub___getopt
10498 choke me
10499 #endif
10500
10501 int
10502 main ()
10503 {
10504 return getopt ();
10505   ;
10506   return 0;
10507 }
10508 _ACEOF
10509 rm -f conftest.$ac_objext conftest$ac_exeext
10510 if { (ac_try="$ac_link"
10511 case "(($ac_try" in
10512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10513   *) ac_try_echo=$ac_try;;
10514 esac
10515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10516   (eval "$ac_link") 2>conftest.er1
10517   ac_status=$?
10518   grep -v '^ *+' conftest.er1 >conftest.err
10519   rm -f conftest.er1
10520   cat conftest.err >&5
10521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10522   (exit $ac_status); } &&
10523          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10524   { (case "(($ac_try" in
10525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10526   *) ac_try_echo=$ac_try;;
10527 esac
10528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10529   (eval "$ac_try") 2>&5
10530   ac_status=$?
10531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532   (exit $ac_status); }; } &&
10533          { ac_try='test -s conftest$ac_exeext'
10534   { (case "(($ac_try" in
10535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10536   *) ac_try_echo=$ac_try;;
10537 esac
10538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10539   (eval "$ac_try") 2>&5
10540   ac_status=$?
10541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542   (exit $ac_status); }; }; then
10543   ac_cv_func_getopt=yes
10544 else
10545   echo "$as_me: failed program was:" >&5
10546 sed 's/^/| /' conftest.$ac_ext >&5
10547
10548         ac_cv_func_getopt=no
10549 fi
10550
10551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10552       conftest$ac_exeext conftest.$ac_ext
10553 fi
10554 { echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5
10555 echo "${ECHO_T}$ac_cv_func_getopt" >&6; }
10556 if test $ac_cv_func_getopt = yes; then
10557    getopt=true
10558 else
10559    getopt=false
10560 fi
10561
10562
10563 if test "${OSTYPE}" = "cygwin" ; then
10564   getopt_long=false
10565 else
10566   { echo "$as_me:$LINENO: checking for getopt_long" >&5
10567 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6; }
10568 if test "${ac_cv_func_getopt_long+set}" = set; then
10569   echo $ECHO_N "(cached) $ECHO_C" >&6
10570 else
10571   cat >conftest.$ac_ext <<_ACEOF
10572 /* confdefs.h.  */
10573 _ACEOF
10574 cat confdefs.h >>conftest.$ac_ext
10575 cat >>conftest.$ac_ext <<_ACEOF
10576 /* end confdefs.h.  */
10577 /* Define getopt_long to an innocuous variant, in case <limits.h> declares getopt_long.
10578    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10579 #define getopt_long innocuous_getopt_long
10580
10581 /* System header to define __stub macros and hopefully few prototypes,
10582     which can conflict with char getopt_long (); below.
10583     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10584     <limits.h> exists even on freestanding compilers.  */
10585
10586 #ifdef __STDC__
10587 # include <limits.h>
10588 #else
10589 # include <assert.h>
10590 #endif
10591
10592 #undef getopt_long
10593
10594 /* Override any GCC internal prototype to avoid an error.
10595    Use char because int might match the return type of a GCC
10596    builtin and then its argument prototype would still apply.  */
10597 #ifdef __cplusplus
10598 extern "C"
10599 #endif
10600 char getopt_long ();
10601 /* The GNU C library defines this for functions which it implements
10602     to always fail with ENOSYS.  Some functions are actually named
10603     something starting with __ and the normal name is an alias.  */
10604 #if defined __stub_getopt_long || defined __stub___getopt_long
10605 choke me
10606 #endif
10607
10608 int
10609 main ()
10610 {
10611 return getopt_long ();
10612   ;
10613   return 0;
10614 }
10615 _ACEOF
10616 rm -f conftest.$ac_objext conftest$ac_exeext
10617 if { (ac_try="$ac_link"
10618 case "(($ac_try" in
10619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10620   *) ac_try_echo=$ac_try;;
10621 esac
10622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10623   (eval "$ac_link") 2>conftest.er1
10624   ac_status=$?
10625   grep -v '^ *+' conftest.er1 >conftest.err
10626   rm -f conftest.er1
10627   cat conftest.err >&5
10628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629   (exit $ac_status); } &&
10630          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10631   { (case "(($ac_try" in
10632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10633   *) ac_try_echo=$ac_try;;
10634 esac
10635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10636   (eval "$ac_try") 2>&5
10637   ac_status=$?
10638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639   (exit $ac_status); }; } &&
10640          { ac_try='test -s conftest$ac_exeext'
10641   { (case "(($ac_try" in
10642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10643   *) ac_try_echo=$ac_try;;
10644 esac
10645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10646   (eval "$ac_try") 2>&5
10647   ac_status=$?
10648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649   (exit $ac_status); }; }; then
10650   ac_cv_func_getopt_long=yes
10651 else
10652   echo "$as_me: failed program was:" >&5
10653 sed 's/^/| /' conftest.$ac_ext >&5
10654
10655         ac_cv_func_getopt_long=no
10656 fi
10657
10658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10659       conftest$ac_exeext conftest.$ac_ext
10660 fi
10661 { echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
10662 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6; }
10663 if test $ac_cv_func_getopt_long = yes; then
10664    getopt_long=true
10665 else
10666    getopt_long=false
10667 fi
10668
10669 fi
10670
10671 if test "${getopt_long}" = "false" ; then
10672   my_includes="$my_includes -I../getopt"
10673
10674 cat >>confdefs.h <<\_ACEOF
10675 #define HAVE_GETOPT_LONG 1
10676 _ACEOF
10677
10678   ctlibs_base="$ctlibs_base -lgetopt"
10679   LDFLAGS="$LDFLAGS -L../getopt"
10680   GETOPTLONG=1
10681 fi
10682
10683
10684 if test "$GETOPTLONG"="1"; then
10685   INCLUDED_GETOPT_LONG_TRUE=
10686   INCLUDED_GETOPT_LONG_FALSE='#'
10687 else
10688   INCLUDED_GETOPT_LONG_TRUE='#'
10689   INCLUDED_GETOPT_LONG_FALSE=
10690 fi
10691
10692
10693 if test "${readline}" = "true" ; then
10694   ctlibs_base="$ctlibs_base -lreadline"
10695   if test "${ncurses}" = "true"; then
10696     ctlibs_base="$ctlibs_base -lncurses"
10697   elif test "${curses}" = "true"; then
10698     ctlibs_base="$ctlibs_base -lcurses"
10699   fi
10700 fi
10701
10702 { echo "$as_me:$LINENO: checking debug" >&5
10703 echo $ECHO_N "checking debug... $ECHO_C" >&6; }
10704 # Check whether --enable-debug was given.
10705 if test "${enable_debug+set}" = set; then
10706   enableval=$enable_debug; case "${enableval}" in
10707   yes) debug=true
10708        { echo "$as_me:$LINENO: result: yes" >&5
10709 echo "${ECHO_T}yes" >&6; }
10710        ;;
10711   no)  debug=false
10712        { echo "$as_me:$LINENO: result: no" >&5
10713 echo "${ECHO_T}no" >&6; }
10714        ;;
10715   *) { echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-debug" >&5
10716 echo "${ECHO_T}bad value ${enableval} for --enable-debug" >&6; }
10717        ;;
10718 esac
10719 else
10720   debug=false; { echo "$as_me:$LINENO: result: no" >&5
10721 echo "${ECHO_T}no" >&6; }
10722 fi
10723
10724
10725
10726 if test "$debug" = "true"; then
10727   DEBUG_TRUE=
10728   DEBUG_FALSE='#'
10729 else
10730   DEBUG_TRUE='#'
10731   DEBUG_FALSE=
10732 fi
10733
10734
10735 if test "$datadir" != "" ; then
10736   CPPFLAGS="$CPPFLAGS -DDATADIR=\"\\\"$datadir\\\"\""
10737 fi
10738
10739 if test "$debug" = "true" ; then
10740   CFLAGS="$CFLAGS -g -DDEBUG"
10741
10742 cat >>confdefs.h <<\_ACEOF
10743 #define DEBUG 1
10744 _ACEOF
10745
10746 else
10747   CFLAGS="$CFLAGS -O2 -DNDEBUG -fomit-frame-pointer"
10748
10749 cat >>confdefs.h <<\_ACEOF
10750 #define NDEBUG 1
10751 _ACEOF
10752
10753 fi
10754
10755 if test "${pthread}" = "true" ; then
10756
10757 cat >>confdefs.h <<\_ACEOF
10758 #define HAVE_WXTHREADS 1
10759 _ACEOF
10760
10761 fi
10762
10763 { echo "$as_me:$LINENO: checking sstream" >&5
10764 echo $ECHO_N "checking sstream... $ECHO_C" >&6; }
10765  if  test -f /usr/include/sstream || test -f /usr/include/g++/sstream ||
10766      test -f /usr/include/g++-2/sstream || test -f /usr/include/g++-3/sstream ||
10767      test -f /usr/include/gcc/darwin/3.1/g++-v3/sstream ; then
10768
10769 cat >>confdefs.h <<\_ACEOF
10770 #define HAVE_SSTREAM 1
10771 _ACEOF
10772
10773    { echo "$as_me:$LINENO: result: yes" >&5
10774 echo "${ECHO_T}yes" >&6; }
10775   else
10776    { echo "$as_me:$LINENO: result: no" >&5
10777 echo "${ECHO_T}no" >&6; }
10778  fi
10779
10780
10781 CFLAGS="$CFLAGS -Wall"
10782 { echo "$as_me:$LINENO: checking whether to enable verbose warnings" >&5
10783 echo $ECHO_N "checking whether to enable verbose warnings... $ECHO_C" >&6; }
10784 # Check whether --enable-verbose-warnings was given.
10785 if test "${enable_verbose_warnings+set}" = set; then
10786   enableval=$enable_verbose_warnings;  case "$enableval" in
10787   yes)
10788     { echo "$as_me:$LINENO: result: yes" >&5
10789 echo "${ECHO_T}yes" >&6; }
10790     CFLAGS="$CFLAGS -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Waggregate-return -Wmissing-prototypes -Wstrict-prototypes -pedantic -Wredundant-decls"
10791     ;;
10792   *)
10793     { echo "$as_me:$LINENO: result: no" >&5
10794 echo "${ECHO_T}no" >&6; }
10795     ;;
10796   esac
10797 else
10798   { echo "$as_me:$LINENO: result: no" >&5
10799 echo "${ECHO_T}no" >&6; }
10800
10801 fi
10802
10803
10804 { echo "$as_me:$LINENO: checking static executables" >&5
10805 echo $ECHO_N "checking static executables... $ECHO_C" >&6; }
10806 # Check whether --enable-static was given.
10807 if test "${enable_static+set}" = set; then
10808   enableval=$enable_static;  case "$enableval" in
10809   yes)
10810     { echo "$as_me:$LINENO: result: yes" >&5
10811 echo "${ECHO_T}yes" >&6; }
10812     CFLAGS="$CFLAGS --static"
10813     ;;
10814   *)
10815     { echo "$as_me:$LINENO: result: no" >&5
10816 echo "${ECHO_T}no" >&6; }
10817     ;;
10818   esac
10819 else
10820   { echo "$as_me:$LINENO: result: no" >&5
10821 echo "${ECHO_T}no" >&6; }
10822
10823 fi
10824
10825
10826
10827 # Check whether --with-lam was given.
10828 if test "${with_lam+set}" = set; then
10829   withval=$with_lam;     if test "$withval" != "no" ; then
10830          trylamdir=$withval
10831      fi
10832
10833 fi
10834
10835
10836 if test "$withval" != "no" ; then
10837   if test "$prefix" != "NONE" ; then
10838      trylamdir="$trylamdir $prefix"
10839   fi
10840
10841   { echo "$as_me:$LINENO: checking for LAM MPI installation" >&5
10842 echo $ECHO_N "checking for LAM MPI installation... $ECHO_C" >&6; }
10843   for testlamdir in "." $trylamdir /usr/local /usr/local/lam /usr /usr/lam /opt /opt/lam ; do
10844     if test -x "$testlamdir/bin/hcp" ; then
10845       if test "$testlamdir" != "/usr"; then
10846         LDFLAGS="$LDFLAGS -L$testlamdir/lib"
10847         CFLAGS="$CFLAGS -I$testlamdir/include"
10848       fi
10849       CFLAGS="$CFLAGS -I$testlamdir/include/mpi2c++"
10850       lamdir="$testlamdir"
10851
10852       mpienable="true"
10853
10854       break
10855     fi
10856   done
10857   { echo "$as_me:$LINENO: result: $lamdir" >&5
10858 echo "${ECHO_T}$lamdir" >&6; }
10859 else
10860   { echo "$as_me:$LINENO: result: no" >&5
10861 echo "${ECHO_T}no" >&6; }
10862 fi
10863
10864
10865
10866 # Check whether --with-ctn was given.
10867 if test "${with_ctn+set}" = set; then
10868   withval=$with_ctn;     if test "$withval" != "no" ; then
10869          tryctndir=$withval
10870      fi
10871
10872 fi
10873
10874
10875 if test "$withval" == "no" -o "$withval" == "NONE" ; then
10876   { echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
10877 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6; }
10878   { echo "$as_me:$LINENO: result: disabled" >&5
10879 echo "${ECHO_T}disabled" >&6; }
10880 else
10881   { echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
10882 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6; }
10883   for testctndir in $tryctndir/lib /usr/local/lib /usr/local/ctn/lib /usr/lib /usr/ctn/lib /usr/lib/ctn /opt/ctn/lib ; do
10884     if test -f "$testctndir/libctn.a" ; then
10885       LDFLAGS="$LDFLAGS -L$testctndir"
10886       ctnlib="true"
10887       break
10888     fi
10889   done
10890   for testctndir in $tryctndir/include /usr/local/include /usr/local/ctn/include /usr/include /usr/include/ctn /usr/ctn/include /opt/ctn/include ; do
10891     if test -f "$testctndir/ctn_os.h" ; then
10892       CFLAGS="$CFLAGS -I$testctndir"
10893       ctninclude="true"
10894       break
10895     fi
10896   done
10897   if test "$ctnlib" == "true" -a "$ctninclude" == "true" ; then
10898       ctn="true"
10899
10900 cat >>confdefs.h <<\_ACEOF
10901 #define HAVE_CTN_DICOM 1
10902 _ACEOF
10903
10904       { echo "$as_me:$LINENO: result: yes" >&5
10905 echo "${ECHO_T}yes" >&6; }
10906   else
10907     { echo "$as_me:$LINENO: result: no" >&5
10908 echo "${ECHO_T}no" >&6; }
10909   fi
10910 fi
10911
10912 { echo "$as_me:$LINENO: checking for CPU specification" >&5
10913 echo $ECHO_N "checking for CPU specification... $ECHO_C" >&6; }
10914
10915 # Check whether --with-mcpu was given.
10916 if test "${with_mcpu+set}" = set; then
10917   withval=$with_mcpu;
10918 fi
10919
10920
10921 if test "$withval" == "no" -o "$withval" == "yes" -o "$withval" == ""; then
10922   { echo "$as_me:$LINENO: result: no" >&5
10923 echo "${ECHO_T}no" >&6; }
10924 else
10925   { echo "$as_me:$LINENO: result: $withval" >&5
10926 echo "${ECHO_T}$withval" >&6; }
10927   CFLAGS="$CFLAGS -mcpu=$withval"
10928 fi
10929
10930 { echo "$as_me:$LINENO: checking for web access" >&5
10931 echo $ECHO_N "checking for web access... $ECHO_C" >&6; }
10932
10933 # Check whether --with-cgibin-dir was given.
10934 if test "${with_cgibin_dir+set}" = set; then
10935   withval=$with_cgibin_dir;  cgibindir=$withval ;
10936 fi
10937
10938
10939
10940 # Check whether --with-cgibin-url was given.
10941 if test "${with_cgibin_url+set}" = set; then
10942   withval=$with_cgibin_url;  cgibinurl=$withval ;
10943 fi
10944
10945
10946
10947 # Check whether --with-webdata-dir was given.
10948 if test "${with_webdata_dir+set}" = set; then
10949   withval=$with_webdata_dir;  webdatadir=$withval ;
10950 fi
10951
10952
10953
10954 # Check whether --with-webdata-url was given.
10955 if test "${with_webdata_url+set}" = set; then
10956   withval=$with_webdata_url;  webdataurl=$withval ;
10957 fi
10958
10959
10960
10961 # Check whether --with-html-dir was given.
10962 if test "${with_html_dir+set}" = set; then
10963   withval=$with_html_dir;  html_%dir=$withval ;
10964 fi
10965
10966
10967 if test -n "$cgibindir" -o -n "$cgibinurl" ; then
10968   cgiprograms="ctsim.cgi ctsim.conf"
10969
10970 fi
10971
10972 if test -n "$html_dir" ; then
10973   htmldata=simulate.html
10974
10975 fi
10976
10977
10978 if test -n "$html_dir"; then
10979   USE_HTML_TRUE=
10980   USE_HTML_FALSE='#'
10981 else
10982   USE_HTML_TRUE='#'
10983   USE_HTML_FALSE=
10984 fi
10985
10986
10987 if test -n "$cgibindir" -o -n "$cgibinurl" -o -n "$webdatadir" -o -n "$webdataurl" -o -n "$html_dir" ; then
10988   webenabled=true
10989
10990   { echo "$as_me:$LINENO: result: yes" >&5
10991 echo "${ECHO_T}yes" >&6; }
10992   if test -z "$cgibindir" ; then
10993     { { echo "$as_me:$LINENO: error: --with-cgibin-dir not set for web access" >&5
10994 echo "$as_me: error: --with-cgibin-dir not set for web access" >&2;}
10995    { (exit 1); exit 1; }; }
10996   elif test -z "$cgibinurl" ; then
10997     { { echo "$as_me:$LINENO: error: --with-cgibin-url not set for web access" >&5
10998 echo "$as_me: error: --with-cgibin-url not set for web access" >&2;}
10999    { (exit 1); exit 1; }; }
11000   elif test -z "$webdatadir" ; then
11001     { { echo "$as_me:$LINENO: error: --with-webdata-dir not set for web access" >&5
11002 echo "$as_me: error: --with-webdata-dir not set for web access" >&2;}
11003    { (exit 1); exit 1; }; }
11004   elif test -z "$webdataurl" ; then
11005     { { echo "$as_me:$LINENO: error: --with-webdata-url not set for web access" >&5
11006 echo "$as_me: error: --with-webdata-url not set for web access" >&2;}
11007    { (exit 1); exit 1; }; }
11008   elif test -z "$html_dir" ; then
11009     { { echo "$as_me:$LINENO: error: --with-html-dir not set for web access" >&5
11010 echo "$as_me: error: --with-html-dir not set for web access" >&2;}
11011    { (exit 1); exit 1; }; }
11012   fi
11013 else
11014   { echo "$as_me:$LINENO: result: no" >&5
11015 echo "${ECHO_T}no" >&6; }
11016 fi
11017
11018
11019
11020 if test -n "$lamdir"; then
11021   USE_LAM_TRUE=
11022   USE_LAM_FALSE='#'
11023 else
11024   USE_LAM_TRUE='#'
11025   USE_LAM_FALSE=
11026 fi
11027
11028
11029 { echo "$as_me:$LINENO: checking for X" >&5
11030 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
11031
11032
11033 # Check whether --with-x was given.
11034 if test "${with_x+set}" = set; then
11035   withval=$with_x;
11036 fi
11037
11038 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11039 if test "x$with_x" = xno; then
11040   # The user explicitly disabled X.
11041   have_x=disabled
11042 else
11043   case $x_includes,$x_libraries in #(
11044     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
11045 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
11046    { (exit 1); exit 1; }; };; #(
11047     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
11048   echo $ECHO_N "(cached) $ECHO_C" >&6
11049 else
11050   # One or both of the vars are not set, and there is no cached value.
11051 ac_x_includes=no ac_x_libraries=no
11052 rm -f -r conftest.dir
11053 if mkdir conftest.dir; then
11054   cd conftest.dir
11055   cat >Imakefile <<'_ACEOF'
11056 incroot:
11057         @echo incroot='${INCROOT}'
11058 usrlibdir:
11059         @echo usrlibdir='${USRLIBDIR}'
11060 libdir:
11061         @echo libdir='${LIBDIR}'
11062 _ACEOF
11063   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
11064     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11065     for ac_var in incroot usrlibdir libdir; do
11066       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
11067     done
11068     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11069     for ac_extension in a so sl; do
11070       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
11071          test -f "$ac_im_libdir/libX11.$ac_extension"; then
11072         ac_im_usrlibdir=$ac_im_libdir; break
11073       fi
11074     done
11075     # Screen out bogus values from the imake configuration.  They are
11076     # bogus both because they are the default anyway, and because
11077     # using them would break gcc on systems where it needs fixed includes.
11078     case $ac_im_incroot in
11079         /usr/include) ac_x_includes= ;;
11080         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
11081     esac
11082     case $ac_im_usrlibdir in
11083         /usr/lib | /lib) ;;
11084         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
11085     esac
11086   fi
11087   cd ..
11088   rm -f -r conftest.dir
11089 fi
11090
11091 # Standard set of common directories for X headers.
11092 # Check X11 before X11Rn because it is often a symlink to the current release.
11093 ac_x_header_dirs='
11094 /usr/X11/include
11095 /usr/X11R6/include
11096 /usr/X11R5/include
11097 /usr/X11R4/include
11098
11099 /usr/include/X11
11100 /usr/include/X11R6
11101 /usr/include/X11R5
11102 /usr/include/X11R4
11103
11104 /usr/local/X11/include
11105 /usr/local/X11R6/include
11106 /usr/local/X11R5/include
11107 /usr/local/X11R4/include
11108
11109 /usr/local/include/X11
11110 /usr/local/include/X11R6
11111 /usr/local/include/X11R5
11112 /usr/local/include/X11R4
11113
11114 /usr/X386/include
11115 /usr/x386/include
11116 /usr/XFree86/include/X11
11117
11118 /usr/include
11119 /usr/local/include
11120 /usr/unsupported/include
11121 /usr/athena/include
11122 /usr/local/x11r5/include
11123 /usr/lpp/Xamples/include
11124
11125 /usr/openwin/include
11126 /usr/openwin/share/include'
11127
11128 if test "$ac_x_includes" = no; then
11129   # Guess where to find include files, by looking for Xlib.h.
11130   # First, try using that file with no special directory specified.
11131   cat >conftest.$ac_ext <<_ACEOF
11132 /* confdefs.h.  */
11133 _ACEOF
11134 cat confdefs.h >>conftest.$ac_ext
11135 cat >>conftest.$ac_ext <<_ACEOF
11136 /* end confdefs.h.  */
11137 #include <X11/Xlib.h>
11138 _ACEOF
11139 if { (ac_try="$ac_cpp conftest.$ac_ext"
11140 case "(($ac_try" in
11141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11142   *) ac_try_echo=$ac_try;;
11143 esac
11144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11145   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11146   ac_status=$?
11147   grep -v '^ *+' conftest.er1 >conftest.err
11148   rm -f conftest.er1
11149   cat conftest.err >&5
11150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151   (exit $ac_status); } >/dev/null; then
11152   if test -s conftest.err; then
11153     ac_cpp_err=$ac_c_preproc_warn_flag
11154     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11155   else
11156     ac_cpp_err=
11157   fi
11158 else
11159   ac_cpp_err=yes
11160 fi
11161 if test -z "$ac_cpp_err"; then
11162   # We can compile using X headers with no special include directory.
11163 ac_x_includes=
11164 else
11165   echo "$as_me: failed program was:" >&5
11166 sed 's/^/| /' conftest.$ac_ext >&5
11167
11168   for ac_dir in $ac_x_header_dirs; do
11169   if test -r "$ac_dir/X11/Xlib.h"; then
11170     ac_x_includes=$ac_dir
11171     break
11172   fi
11173 done
11174 fi
11175
11176 rm -f conftest.err conftest.$ac_ext
11177 fi # $ac_x_includes = no
11178
11179 if test "$ac_x_libraries" = no; then
11180   # Check for the libraries.
11181   # See if we find them without any special options.
11182   # Don't add to $LIBS permanently.
11183   ac_save_LIBS=$LIBS
11184   LIBS="-lX11 $LIBS"
11185   cat >conftest.$ac_ext <<_ACEOF
11186 /* confdefs.h.  */
11187 _ACEOF
11188 cat confdefs.h >>conftest.$ac_ext
11189 cat >>conftest.$ac_ext <<_ACEOF
11190 /* end confdefs.h.  */
11191 #include <X11/Xlib.h>
11192 int
11193 main ()
11194 {
11195 XrmInitialize ()
11196   ;
11197   return 0;
11198 }
11199 _ACEOF
11200 rm -f conftest.$ac_objext conftest$ac_exeext
11201 if { (ac_try="$ac_link"
11202 case "(($ac_try" in
11203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11204   *) ac_try_echo=$ac_try;;
11205 esac
11206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11207   (eval "$ac_link") 2>conftest.er1
11208   ac_status=$?
11209   grep -v '^ *+' conftest.er1 >conftest.err
11210   rm -f conftest.er1
11211   cat conftest.err >&5
11212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213   (exit $ac_status); } &&
11214          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11215   { (case "(($ac_try" in
11216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11217   *) ac_try_echo=$ac_try;;
11218 esac
11219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11220   (eval "$ac_try") 2>&5
11221   ac_status=$?
11222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223   (exit $ac_status); }; } &&
11224          { ac_try='test -s conftest$ac_exeext'
11225   { (case "(($ac_try" in
11226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11227   *) ac_try_echo=$ac_try;;
11228 esac
11229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11230   (eval "$ac_try") 2>&5
11231   ac_status=$?
11232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233   (exit $ac_status); }; }; then
11234   LIBS=$ac_save_LIBS
11235 # We can link X programs with no special library path.
11236 ac_x_libraries=
11237 else
11238   echo "$as_me: failed program was:" >&5
11239 sed 's/^/| /' conftest.$ac_ext >&5
11240
11241         LIBS=$ac_save_LIBS
11242 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
11243 do
11244   # Don't even attempt the hair of trying to link an X program!
11245   for ac_extension in a so sl; do
11246     if test -r "$ac_dir/libX11.$ac_extension"; then
11247       ac_x_libraries=$ac_dir
11248       break 2
11249     fi
11250   done
11251 done
11252 fi
11253
11254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11255       conftest$ac_exeext conftest.$ac_ext
11256 fi # $ac_x_libraries = no
11257
11258 case $ac_x_includes,$ac_x_libraries in #(
11259   no,* | *,no | *\'*)
11260     # Didn't find X, or a directory has "'" in its name.
11261     ac_cv_have_x="have_x=no";; #(
11262   *)
11263     # Record where we found X for the cache.
11264     ac_cv_have_x="have_x=yes\
11265         ac_x_includes='$ac_x_includes'\
11266         ac_x_libraries='$ac_x_libraries'"
11267 esac
11268 fi
11269 ;; #(
11270     *) have_x=yes;;
11271   esac
11272   eval "$ac_cv_have_x"
11273 fi # $with_x != no
11274
11275 if test "$have_x" != yes; then
11276   { echo "$as_me:$LINENO: result: $have_x" >&5
11277 echo "${ECHO_T}$have_x" >&6; }
11278   no_x=yes
11279 else
11280   # If each of the values was on the command line, it overrides each guess.
11281   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11282   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11283   # Update the cache value to reflect the command line values.
11284   ac_cv_have_x="have_x=yes\
11285         ac_x_includes='$x_includes'\
11286         ac_x_libraries='$x_libraries'"
11287   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
11288 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
11289 fi
11290
11291 if test "$no_x" = yes; then
11292   # Not all programs may use this symbol, but it does not hurt to define it.
11293
11294 cat >>confdefs.h <<\_ACEOF
11295 #define X_DISPLAY_MISSING 1
11296 _ACEOF
11297
11298   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
11299 else
11300   if test -n "$x_includes"; then
11301     X_CFLAGS="$X_CFLAGS -I$x_includes"
11302   fi
11303
11304   # It would also be nice to do this for all -L options, not just this one.
11305   if test -n "$x_libraries"; then
11306     X_LIBS="$X_LIBS -L$x_libraries"
11307     # For Solaris; some versions of Sun CC require a space after -R and
11308     # others require no space.  Words are not sufficient . . . .
11309     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
11310 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
11311     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
11312     ac_xsave_c_werror_flag=$ac_c_werror_flag
11313     ac_c_werror_flag=yes
11314     cat >conftest.$ac_ext <<_ACEOF
11315 /* confdefs.h.  */
11316 _ACEOF
11317 cat confdefs.h >>conftest.$ac_ext
11318 cat >>conftest.$ac_ext <<_ACEOF
11319 /* end confdefs.h.  */
11320
11321 int
11322 main ()
11323 {
11324
11325   ;
11326   return 0;
11327 }
11328 _ACEOF
11329 rm -f conftest.$ac_objext conftest$ac_exeext
11330 if { (ac_try="$ac_link"
11331 case "(($ac_try" in
11332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11333   *) ac_try_echo=$ac_try;;
11334 esac
11335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11336   (eval "$ac_link") 2>conftest.er1
11337   ac_status=$?
11338   grep -v '^ *+' conftest.er1 >conftest.err
11339   rm -f conftest.er1
11340   cat conftest.err >&5
11341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342   (exit $ac_status); } &&
11343          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11344   { (case "(($ac_try" in
11345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11346   *) ac_try_echo=$ac_try;;
11347 esac
11348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11349   (eval "$ac_try") 2>&5
11350   ac_status=$?
11351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352   (exit $ac_status); }; } &&
11353          { ac_try='test -s conftest$ac_exeext'
11354   { (case "(($ac_try" in
11355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11356   *) ac_try_echo=$ac_try;;
11357 esac
11358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11359   (eval "$ac_try") 2>&5
11360   ac_status=$?
11361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362   (exit $ac_status); }; }; then
11363   { echo "$as_me:$LINENO: result: no" >&5
11364 echo "${ECHO_T}no" >&6; }
11365        X_LIBS="$X_LIBS -R$x_libraries"
11366 else
11367   echo "$as_me: failed program was:" >&5
11368 sed 's/^/| /' conftest.$ac_ext >&5
11369
11370         LIBS="$ac_xsave_LIBS -R $x_libraries"
11371        cat >conftest.$ac_ext <<_ACEOF
11372 /* confdefs.h.  */
11373 _ACEOF
11374 cat confdefs.h >>conftest.$ac_ext
11375 cat >>conftest.$ac_ext <<_ACEOF
11376 /* end confdefs.h.  */
11377
11378 int
11379 main ()
11380 {
11381
11382   ;
11383   return 0;
11384 }
11385 _ACEOF
11386 rm -f conftest.$ac_objext conftest$ac_exeext
11387 if { (ac_try="$ac_link"
11388 case "(($ac_try" in
11389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11390   *) ac_try_echo=$ac_try;;
11391 esac
11392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11393   (eval "$ac_link") 2>conftest.er1
11394   ac_status=$?
11395   grep -v '^ *+' conftest.er1 >conftest.err
11396   rm -f conftest.er1
11397   cat conftest.err >&5
11398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399   (exit $ac_status); } &&
11400          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11401   { (case "(($ac_try" in
11402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11403   *) ac_try_echo=$ac_try;;
11404 esac
11405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11406   (eval "$ac_try") 2>&5
11407   ac_status=$?
11408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409   (exit $ac_status); }; } &&
11410          { ac_try='test -s conftest$ac_exeext'
11411   { (case "(($ac_try" in
11412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11413   *) ac_try_echo=$ac_try;;
11414 esac
11415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11416   (eval "$ac_try") 2>&5
11417   ac_status=$?
11418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419   (exit $ac_status); }; }; then
11420   { echo "$as_me:$LINENO: result: yes" >&5
11421 echo "${ECHO_T}yes" >&6; }
11422           X_LIBS="$X_LIBS -R $x_libraries"
11423 else
11424   echo "$as_me: failed program was:" >&5
11425 sed 's/^/| /' conftest.$ac_ext >&5
11426
11427         { echo "$as_me:$LINENO: result: neither works" >&5
11428 echo "${ECHO_T}neither works" >&6; }
11429 fi
11430
11431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11432       conftest$ac_exeext conftest.$ac_ext
11433 fi
11434
11435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11436       conftest$ac_exeext conftest.$ac_ext
11437     ac_c_werror_flag=$ac_xsave_c_werror_flag
11438     LIBS=$ac_xsave_LIBS
11439   fi
11440
11441   # Check for system-dependent libraries X programs must link with.
11442   # Do this before checking for the system-independent R6 libraries
11443   # (-lICE), since we may need -lsocket or whatever for X linking.
11444
11445   if test "$ISC" = yes; then
11446     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
11447   else
11448     # Martyn Johnson says this is needed for Ultrix, if the X
11449     # libraries were built with DECnet support.  And Karl Berry says
11450     # the Alpha needs dnet_stub (dnet does not exist).
11451     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
11452     cat >conftest.$ac_ext <<_ACEOF
11453 /* confdefs.h.  */
11454 _ACEOF
11455 cat confdefs.h >>conftest.$ac_ext
11456 cat >>conftest.$ac_ext <<_ACEOF
11457 /* end confdefs.h.  */
11458
11459 /* Override any GCC internal prototype to avoid an error.
11460    Use char because int might match the return type of a GCC
11461    builtin and then its argument prototype would still apply.  */
11462 #ifdef __cplusplus
11463 extern "C"
11464 #endif
11465 char XOpenDisplay ();
11466 int
11467 main ()
11468 {
11469 return XOpenDisplay ();
11470   ;
11471   return 0;
11472 }
11473 _ACEOF
11474 rm -f conftest.$ac_objext conftest$ac_exeext
11475 if { (ac_try="$ac_link"
11476 case "(($ac_try" in
11477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11478   *) ac_try_echo=$ac_try;;
11479 esac
11480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11481   (eval "$ac_link") 2>conftest.er1
11482   ac_status=$?
11483   grep -v '^ *+' conftest.er1 >conftest.err
11484   rm -f conftest.er1
11485   cat conftest.err >&5
11486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487   (exit $ac_status); } &&
11488          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11489   { (case "(($ac_try" in
11490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11491   *) ac_try_echo=$ac_try;;
11492 esac
11493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11494   (eval "$ac_try") 2>&5
11495   ac_status=$?
11496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497   (exit $ac_status); }; } &&
11498          { ac_try='test -s conftest$ac_exeext'
11499   { (case "(($ac_try" in
11500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11501   *) ac_try_echo=$ac_try;;
11502 esac
11503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11504   (eval "$ac_try") 2>&5
11505   ac_status=$?
11506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507   (exit $ac_status); }; }; then
11508   :
11509 else
11510   echo "$as_me: failed program was:" >&5
11511 sed 's/^/| /' conftest.$ac_ext >&5
11512
11513         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
11514 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
11515 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
11516   echo $ECHO_N "(cached) $ECHO_C" >&6
11517 else
11518   ac_check_lib_save_LIBS=$LIBS
11519 LIBS="-ldnet  $LIBS"
11520 cat >conftest.$ac_ext <<_ACEOF
11521 /* confdefs.h.  */
11522 _ACEOF
11523 cat confdefs.h >>conftest.$ac_ext
11524 cat >>conftest.$ac_ext <<_ACEOF
11525 /* end confdefs.h.  */
11526
11527 /* Override any GCC internal prototype to avoid an error.
11528    Use char because int might match the return type of a GCC
11529    builtin and then its argument prototype would still apply.  */
11530 #ifdef __cplusplus
11531 extern "C"
11532 #endif
11533 char dnet_ntoa ();
11534 int
11535 main ()
11536 {
11537 return dnet_ntoa ();
11538   ;
11539   return 0;
11540 }
11541 _ACEOF
11542 rm -f conftest.$ac_objext conftest$ac_exeext
11543 if { (ac_try="$ac_link"
11544 case "(($ac_try" in
11545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11546   *) ac_try_echo=$ac_try;;
11547 esac
11548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11549   (eval "$ac_link") 2>conftest.er1
11550   ac_status=$?
11551   grep -v '^ *+' conftest.er1 >conftest.err
11552   rm -f conftest.er1
11553   cat conftest.err >&5
11554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555   (exit $ac_status); } &&
11556          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11557   { (case "(($ac_try" in
11558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11559   *) ac_try_echo=$ac_try;;
11560 esac
11561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11562   (eval "$ac_try") 2>&5
11563   ac_status=$?
11564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565   (exit $ac_status); }; } &&
11566          { ac_try='test -s conftest$ac_exeext'
11567   { (case "(($ac_try" in
11568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11569   *) ac_try_echo=$ac_try;;
11570 esac
11571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11572   (eval "$ac_try") 2>&5
11573   ac_status=$?
11574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575   (exit $ac_status); }; }; then
11576   ac_cv_lib_dnet_dnet_ntoa=yes
11577 else
11578   echo "$as_me: failed program was:" >&5
11579 sed 's/^/| /' conftest.$ac_ext >&5
11580
11581         ac_cv_lib_dnet_dnet_ntoa=no
11582 fi
11583
11584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11585       conftest$ac_exeext conftest.$ac_ext
11586 LIBS=$ac_check_lib_save_LIBS
11587 fi
11588 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
11589 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
11590 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
11591   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
11592 fi
11593
11594     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
11595       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
11596 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
11597 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
11598   echo $ECHO_N "(cached) $ECHO_C" >&6
11599 else
11600   ac_check_lib_save_LIBS=$LIBS
11601 LIBS="-ldnet_stub  $LIBS"
11602 cat >conftest.$ac_ext <<_ACEOF
11603 /* confdefs.h.  */
11604 _ACEOF
11605 cat confdefs.h >>conftest.$ac_ext
11606 cat >>conftest.$ac_ext <<_ACEOF
11607 /* end confdefs.h.  */
11608
11609 /* Override any GCC internal prototype to avoid an error.
11610    Use char because int might match the return type of a GCC
11611    builtin and then its argument prototype would still apply.  */
11612 #ifdef __cplusplus
11613 extern "C"
11614 #endif
11615 char dnet_ntoa ();
11616 int
11617 main ()
11618 {
11619 return dnet_ntoa ();
11620   ;
11621   return 0;
11622 }
11623 _ACEOF
11624 rm -f conftest.$ac_objext conftest$ac_exeext
11625 if { (ac_try="$ac_link"
11626 case "(($ac_try" in
11627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11628   *) ac_try_echo=$ac_try;;
11629 esac
11630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11631   (eval "$ac_link") 2>conftest.er1
11632   ac_status=$?
11633   grep -v '^ *+' conftest.er1 >conftest.err
11634   rm -f conftest.er1
11635   cat conftest.err >&5
11636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637   (exit $ac_status); } &&
11638          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11639   { (case "(($ac_try" in
11640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11641   *) ac_try_echo=$ac_try;;
11642 esac
11643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11644   (eval "$ac_try") 2>&5
11645   ac_status=$?
11646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647   (exit $ac_status); }; } &&
11648          { ac_try='test -s conftest$ac_exeext'
11649   { (case "(($ac_try" in
11650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11651   *) ac_try_echo=$ac_try;;
11652 esac
11653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11654   (eval "$ac_try") 2>&5
11655   ac_status=$?
11656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657   (exit $ac_status); }; }; then
11658   ac_cv_lib_dnet_stub_dnet_ntoa=yes
11659 else
11660   echo "$as_me: failed program was:" >&5
11661 sed 's/^/| /' conftest.$ac_ext >&5
11662
11663         ac_cv_lib_dnet_stub_dnet_ntoa=no
11664 fi
11665
11666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11667       conftest$ac_exeext conftest.$ac_ext
11668 LIBS=$ac_check_lib_save_LIBS
11669 fi
11670 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
11671 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
11672 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
11673   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
11674 fi
11675
11676     fi
11677 fi
11678
11679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11680       conftest$ac_exeext conftest.$ac_ext
11681     LIBS="$ac_xsave_LIBS"
11682
11683     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
11684     # to get the SysV transport functions.
11685     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
11686     # needs -lnsl.
11687     # The nsl library prevents programs from opening the X display
11688     # on Irix 5.2, according to T.E. Dickey.
11689     # The functions gethostbyname, getservbyname, and inet_addr are
11690     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
11691     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
11692 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
11693 if test "${ac_cv_func_gethostbyname+set}" = set; then
11694   echo $ECHO_N "(cached) $ECHO_C" >&6
11695 else
11696   cat >conftest.$ac_ext <<_ACEOF
11697 /* confdefs.h.  */
11698 _ACEOF
11699 cat confdefs.h >>conftest.$ac_ext
11700 cat >>conftest.$ac_ext <<_ACEOF
11701 /* end confdefs.h.  */
11702 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
11703    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11704 #define gethostbyname innocuous_gethostbyname
11705
11706 /* System header to define __stub macros and hopefully few prototypes,
11707     which can conflict with char gethostbyname (); below.
11708     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11709     <limits.h> exists even on freestanding compilers.  */
11710
11711 #ifdef __STDC__
11712 # include <limits.h>
11713 #else
11714 # include <assert.h>
11715 #endif
11716
11717 #undef gethostbyname
11718
11719 /* Override any GCC internal prototype to avoid an error.
11720    Use char because int might match the return type of a GCC
11721    builtin and then its argument prototype would still apply.  */
11722 #ifdef __cplusplus
11723 extern "C"
11724 #endif
11725 char gethostbyname ();
11726 /* The GNU C library defines this for functions which it implements
11727     to always fail with ENOSYS.  Some functions are actually named
11728     something starting with __ and the normal name is an alias.  */
11729 #if defined __stub_gethostbyname || defined __stub___gethostbyname
11730 choke me
11731 #endif
11732
11733 int
11734 main ()
11735 {
11736 return gethostbyname ();
11737   ;
11738   return 0;
11739 }
11740 _ACEOF
11741 rm -f conftest.$ac_objext conftest$ac_exeext
11742 if { (ac_try="$ac_link"
11743 case "(($ac_try" in
11744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11745   *) ac_try_echo=$ac_try;;
11746 esac
11747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11748   (eval "$ac_link") 2>conftest.er1
11749   ac_status=$?
11750   grep -v '^ *+' conftest.er1 >conftest.err
11751   rm -f conftest.er1
11752   cat conftest.err >&5
11753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754   (exit $ac_status); } &&
11755          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11756   { (case "(($ac_try" in
11757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11758   *) ac_try_echo=$ac_try;;
11759 esac
11760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11761   (eval "$ac_try") 2>&5
11762   ac_status=$?
11763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764   (exit $ac_status); }; } &&
11765          { ac_try='test -s conftest$ac_exeext'
11766   { (case "(($ac_try" in
11767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11768   *) ac_try_echo=$ac_try;;
11769 esac
11770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11771   (eval "$ac_try") 2>&5
11772   ac_status=$?
11773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774   (exit $ac_status); }; }; then
11775   ac_cv_func_gethostbyname=yes
11776 else
11777   echo "$as_me: failed program was:" >&5
11778 sed 's/^/| /' conftest.$ac_ext >&5
11779
11780         ac_cv_func_gethostbyname=no
11781 fi
11782
11783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11784       conftest$ac_exeext conftest.$ac_ext
11785 fi
11786 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
11787 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
11788
11789     if test $ac_cv_func_gethostbyname = no; then
11790       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
11791 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
11792 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
11793   echo $ECHO_N "(cached) $ECHO_C" >&6
11794 else
11795   ac_check_lib_save_LIBS=$LIBS
11796 LIBS="-lnsl  $LIBS"
11797 cat >conftest.$ac_ext <<_ACEOF
11798 /* confdefs.h.  */
11799 _ACEOF
11800 cat confdefs.h >>conftest.$ac_ext
11801 cat >>conftest.$ac_ext <<_ACEOF
11802 /* end confdefs.h.  */
11803
11804 /* Override any GCC internal prototype to avoid an error.
11805    Use char because int might match the return type of a GCC
11806    builtin and then its argument prototype would still apply.  */
11807 #ifdef __cplusplus
11808 extern "C"
11809 #endif
11810 char gethostbyname ();
11811 int
11812 main ()
11813 {
11814 return gethostbyname ();
11815   ;
11816   return 0;
11817 }
11818 _ACEOF
11819 rm -f conftest.$ac_objext conftest$ac_exeext
11820 if { (ac_try="$ac_link"
11821 case "(($ac_try" in
11822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11823   *) ac_try_echo=$ac_try;;
11824 esac
11825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11826   (eval "$ac_link") 2>conftest.er1
11827   ac_status=$?
11828   grep -v '^ *+' conftest.er1 >conftest.err
11829   rm -f conftest.er1
11830   cat conftest.err >&5
11831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832   (exit $ac_status); } &&
11833          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11834   { (case "(($ac_try" in
11835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11836   *) ac_try_echo=$ac_try;;
11837 esac
11838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11839   (eval "$ac_try") 2>&5
11840   ac_status=$?
11841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842   (exit $ac_status); }; } &&
11843          { ac_try='test -s conftest$ac_exeext'
11844   { (case "(($ac_try" in
11845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11846   *) ac_try_echo=$ac_try;;
11847 esac
11848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11849   (eval "$ac_try") 2>&5
11850   ac_status=$?
11851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852   (exit $ac_status); }; }; then
11853   ac_cv_lib_nsl_gethostbyname=yes
11854 else
11855   echo "$as_me: failed program was:" >&5
11856 sed 's/^/| /' conftest.$ac_ext >&5
11857
11858         ac_cv_lib_nsl_gethostbyname=no
11859 fi
11860
11861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11862       conftest$ac_exeext conftest.$ac_ext
11863 LIBS=$ac_check_lib_save_LIBS
11864 fi
11865 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
11866 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
11867 if test $ac_cv_lib_nsl_gethostbyname = yes; then
11868   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
11869 fi
11870
11871       if test $ac_cv_lib_nsl_gethostbyname = no; then
11872         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
11873 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
11874 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
11875   echo $ECHO_N "(cached) $ECHO_C" >&6
11876 else
11877   ac_check_lib_save_LIBS=$LIBS
11878 LIBS="-lbsd  $LIBS"
11879 cat >conftest.$ac_ext <<_ACEOF
11880 /* confdefs.h.  */
11881 _ACEOF
11882 cat confdefs.h >>conftest.$ac_ext
11883 cat >>conftest.$ac_ext <<_ACEOF
11884 /* end confdefs.h.  */
11885
11886 /* Override any GCC internal prototype to avoid an error.
11887    Use char because int might match the return type of a GCC
11888    builtin and then its argument prototype would still apply.  */
11889 #ifdef __cplusplus
11890 extern "C"
11891 #endif
11892 char gethostbyname ();
11893 int
11894 main ()
11895 {
11896 return gethostbyname ();
11897   ;
11898   return 0;
11899 }
11900 _ACEOF
11901 rm -f conftest.$ac_objext conftest$ac_exeext
11902 if { (ac_try="$ac_link"
11903 case "(($ac_try" in
11904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11905   *) ac_try_echo=$ac_try;;
11906 esac
11907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11908   (eval "$ac_link") 2>conftest.er1
11909   ac_status=$?
11910   grep -v '^ *+' conftest.er1 >conftest.err
11911   rm -f conftest.er1
11912   cat conftest.err >&5
11913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914   (exit $ac_status); } &&
11915          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11916   { (case "(($ac_try" in
11917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11918   *) ac_try_echo=$ac_try;;
11919 esac
11920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11921   (eval "$ac_try") 2>&5
11922   ac_status=$?
11923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924   (exit $ac_status); }; } &&
11925          { ac_try='test -s conftest$ac_exeext'
11926   { (case "(($ac_try" in
11927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11928   *) ac_try_echo=$ac_try;;
11929 esac
11930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11931   (eval "$ac_try") 2>&5
11932   ac_status=$?
11933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934   (exit $ac_status); }; }; then
11935   ac_cv_lib_bsd_gethostbyname=yes
11936 else
11937   echo "$as_me: failed program was:" >&5
11938 sed 's/^/| /' conftest.$ac_ext >&5
11939
11940         ac_cv_lib_bsd_gethostbyname=no
11941 fi
11942
11943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11944       conftest$ac_exeext conftest.$ac_ext
11945 LIBS=$ac_check_lib_save_LIBS
11946 fi
11947 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
11948 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
11949 if test $ac_cv_lib_bsd_gethostbyname = yes; then
11950   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
11951 fi
11952
11953       fi
11954     fi
11955
11956     # lieder@skyler.mavd.honeywell.com says without -lsocket,
11957     # socket/setsockopt and other routines are undefined under SCO ODT
11958     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
11959     # on later versions), says Simon Leinen: it contains gethostby*
11960     # variants that don't use the name server (or something).  -lsocket
11961     # must be given before -lnsl if both are needed.  We assume that
11962     # if connect needs -lnsl, so does gethostbyname.
11963     { echo "$as_me:$LINENO: checking for connect" >&5
11964 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
11965 if test "${ac_cv_func_connect+set}" = set; then
11966   echo $ECHO_N "(cached) $ECHO_C" >&6
11967 else
11968   cat >conftest.$ac_ext <<_ACEOF
11969 /* confdefs.h.  */
11970 _ACEOF
11971 cat confdefs.h >>conftest.$ac_ext
11972 cat >>conftest.$ac_ext <<_ACEOF
11973 /* end confdefs.h.  */
11974 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
11975    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11976 #define connect innocuous_connect
11977
11978 /* System header to define __stub macros and hopefully few prototypes,
11979     which can conflict with char connect (); below.
11980     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11981     <limits.h> exists even on freestanding compilers.  */
11982
11983 #ifdef __STDC__
11984 # include <limits.h>
11985 #else
11986 # include <assert.h>
11987 #endif
11988
11989 #undef connect
11990
11991 /* Override any GCC internal prototype to avoid an error.
11992    Use char because int might match the return type of a GCC
11993    builtin and then its argument prototype would still apply.  */
11994 #ifdef __cplusplus
11995 extern "C"
11996 #endif
11997 char connect ();
11998 /* The GNU C library defines this for functions which it implements
11999     to always fail with ENOSYS.  Some functions are actually named
12000     something starting with __ and the normal name is an alias.  */
12001 #if defined __stub_connect || defined __stub___connect
12002 choke me
12003 #endif
12004
12005 int
12006 main ()
12007 {
12008 return connect ();
12009   ;
12010   return 0;
12011 }
12012 _ACEOF
12013 rm -f conftest.$ac_objext conftest$ac_exeext
12014 if { (ac_try="$ac_link"
12015 case "(($ac_try" in
12016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12017   *) ac_try_echo=$ac_try;;
12018 esac
12019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12020   (eval "$ac_link") 2>conftest.er1
12021   ac_status=$?
12022   grep -v '^ *+' conftest.er1 >conftest.err
12023   rm -f conftest.er1
12024   cat conftest.err >&5
12025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026   (exit $ac_status); } &&
12027          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12028   { (case "(($ac_try" in
12029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12030   *) ac_try_echo=$ac_try;;
12031 esac
12032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12033   (eval "$ac_try") 2>&5
12034   ac_status=$?
12035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036   (exit $ac_status); }; } &&
12037          { ac_try='test -s conftest$ac_exeext'
12038   { (case "(($ac_try" in
12039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12040   *) ac_try_echo=$ac_try;;
12041 esac
12042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12043   (eval "$ac_try") 2>&5
12044   ac_status=$?
12045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046   (exit $ac_status); }; }; then
12047   ac_cv_func_connect=yes
12048 else
12049   echo "$as_me: failed program was:" >&5
12050 sed 's/^/| /' conftest.$ac_ext >&5
12051
12052         ac_cv_func_connect=no
12053 fi
12054
12055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12056       conftest$ac_exeext conftest.$ac_ext
12057 fi
12058 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
12059 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
12060
12061     if test $ac_cv_func_connect = no; then
12062       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
12063 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
12064 if test "${ac_cv_lib_socket_connect+set}" = set; then
12065   echo $ECHO_N "(cached) $ECHO_C" >&6
12066 else
12067   ac_check_lib_save_LIBS=$LIBS
12068 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
12069 cat >conftest.$ac_ext <<_ACEOF
12070 /* confdefs.h.  */
12071 _ACEOF
12072 cat confdefs.h >>conftest.$ac_ext
12073 cat >>conftest.$ac_ext <<_ACEOF
12074 /* end confdefs.h.  */
12075
12076 /* Override any GCC internal prototype to avoid an error.
12077    Use char because int might match the return type of a GCC
12078    builtin and then its argument prototype would still apply.  */
12079 #ifdef __cplusplus
12080 extern "C"
12081 #endif
12082 char connect ();
12083 int
12084 main ()
12085 {
12086 return connect ();
12087   ;
12088   return 0;
12089 }
12090 _ACEOF
12091 rm -f conftest.$ac_objext conftest$ac_exeext
12092 if { (ac_try="$ac_link"
12093 case "(($ac_try" in
12094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12095   *) ac_try_echo=$ac_try;;
12096 esac
12097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12098   (eval "$ac_link") 2>conftest.er1
12099   ac_status=$?
12100   grep -v '^ *+' conftest.er1 >conftest.err
12101   rm -f conftest.er1
12102   cat conftest.err >&5
12103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104   (exit $ac_status); } &&
12105          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12106   { (case "(($ac_try" in
12107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12108   *) ac_try_echo=$ac_try;;
12109 esac
12110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12111   (eval "$ac_try") 2>&5
12112   ac_status=$?
12113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114   (exit $ac_status); }; } &&
12115          { ac_try='test -s conftest$ac_exeext'
12116   { (case "(($ac_try" in
12117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12118   *) ac_try_echo=$ac_try;;
12119 esac
12120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12121   (eval "$ac_try") 2>&5
12122   ac_status=$?
12123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124   (exit $ac_status); }; }; then
12125   ac_cv_lib_socket_connect=yes
12126 else
12127   echo "$as_me: failed program was:" >&5
12128 sed 's/^/| /' conftest.$ac_ext >&5
12129
12130         ac_cv_lib_socket_connect=no
12131 fi
12132
12133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12134       conftest$ac_exeext conftest.$ac_ext
12135 LIBS=$ac_check_lib_save_LIBS
12136 fi
12137 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
12138 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
12139 if test $ac_cv_lib_socket_connect = yes; then
12140   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
12141 fi
12142
12143     fi
12144
12145     # Guillermo Gomez says -lposix is necessary on A/UX.
12146     { echo "$as_me:$LINENO: checking for remove" >&5
12147 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
12148 if test "${ac_cv_func_remove+set}" = set; then
12149   echo $ECHO_N "(cached) $ECHO_C" >&6
12150 else
12151   cat >conftest.$ac_ext <<_ACEOF
12152 /* confdefs.h.  */
12153 _ACEOF
12154 cat confdefs.h >>conftest.$ac_ext
12155 cat >>conftest.$ac_ext <<_ACEOF
12156 /* end confdefs.h.  */
12157 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
12158    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12159 #define remove innocuous_remove
12160
12161 /* System header to define __stub macros and hopefully few prototypes,
12162     which can conflict with char remove (); below.
12163     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12164     <limits.h> exists even on freestanding compilers.  */
12165
12166 #ifdef __STDC__
12167 # include <limits.h>
12168 #else
12169 # include <assert.h>
12170 #endif
12171
12172 #undef remove
12173
12174 /* Override any GCC internal prototype to avoid an error.
12175    Use char because int might match the return type of a GCC
12176    builtin and then its argument prototype would still apply.  */
12177 #ifdef __cplusplus
12178 extern "C"
12179 #endif
12180 char remove ();
12181 /* The GNU C library defines this for functions which it implements
12182     to always fail with ENOSYS.  Some functions are actually named
12183     something starting with __ and the normal name is an alias.  */
12184 #if defined __stub_remove || defined __stub___remove
12185 choke me
12186 #endif
12187
12188 int
12189 main ()
12190 {
12191 return remove ();
12192   ;
12193   return 0;
12194 }
12195 _ACEOF
12196 rm -f conftest.$ac_objext conftest$ac_exeext
12197 if { (ac_try="$ac_link"
12198 case "(($ac_try" in
12199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12200   *) ac_try_echo=$ac_try;;
12201 esac
12202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12203   (eval "$ac_link") 2>conftest.er1
12204   ac_status=$?
12205   grep -v '^ *+' conftest.er1 >conftest.err
12206   rm -f conftest.er1
12207   cat conftest.err >&5
12208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209   (exit $ac_status); } &&
12210          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12211   { (case "(($ac_try" in
12212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12213   *) ac_try_echo=$ac_try;;
12214 esac
12215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12216   (eval "$ac_try") 2>&5
12217   ac_status=$?
12218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219   (exit $ac_status); }; } &&
12220          { ac_try='test -s conftest$ac_exeext'
12221   { (case "(($ac_try" in
12222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12223   *) ac_try_echo=$ac_try;;
12224 esac
12225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12226   (eval "$ac_try") 2>&5
12227   ac_status=$?
12228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229   (exit $ac_status); }; }; then
12230   ac_cv_func_remove=yes
12231 else
12232   echo "$as_me: failed program was:" >&5
12233 sed 's/^/| /' conftest.$ac_ext >&5
12234
12235         ac_cv_func_remove=no
12236 fi
12237
12238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12239       conftest$ac_exeext conftest.$ac_ext
12240 fi
12241 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
12242 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
12243
12244     if test $ac_cv_func_remove = no; then
12245       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
12246 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
12247 if test "${ac_cv_lib_posix_remove+set}" = set; then
12248   echo $ECHO_N "(cached) $ECHO_C" >&6
12249 else
12250   ac_check_lib_save_LIBS=$LIBS
12251 LIBS="-lposix  $LIBS"
12252 cat >conftest.$ac_ext <<_ACEOF
12253 /* confdefs.h.  */
12254 _ACEOF
12255 cat confdefs.h >>conftest.$ac_ext
12256 cat >>conftest.$ac_ext <<_ACEOF
12257 /* end confdefs.h.  */
12258
12259 /* Override any GCC internal prototype to avoid an error.
12260    Use char because int might match the return type of a GCC
12261    builtin and then its argument prototype would still apply.  */
12262 #ifdef __cplusplus
12263 extern "C"
12264 #endif
12265 char remove ();
12266 int
12267 main ()
12268 {
12269 return remove ();
12270   ;
12271   return 0;
12272 }
12273 _ACEOF
12274 rm -f conftest.$ac_objext conftest$ac_exeext
12275 if { (ac_try="$ac_link"
12276 case "(($ac_try" in
12277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12278   *) ac_try_echo=$ac_try;;
12279 esac
12280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12281   (eval "$ac_link") 2>conftest.er1
12282   ac_status=$?
12283   grep -v '^ *+' conftest.er1 >conftest.err
12284   rm -f conftest.er1
12285   cat conftest.err >&5
12286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287   (exit $ac_status); } &&
12288          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12289   { (case "(($ac_try" in
12290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12291   *) ac_try_echo=$ac_try;;
12292 esac
12293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12294   (eval "$ac_try") 2>&5
12295   ac_status=$?
12296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297   (exit $ac_status); }; } &&
12298          { ac_try='test -s conftest$ac_exeext'
12299   { (case "(($ac_try" in
12300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12301   *) ac_try_echo=$ac_try;;
12302 esac
12303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12304   (eval "$ac_try") 2>&5
12305   ac_status=$?
12306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307   (exit $ac_status); }; }; then
12308   ac_cv_lib_posix_remove=yes
12309 else
12310   echo "$as_me: failed program was:" >&5
12311 sed 's/^/| /' conftest.$ac_ext >&5
12312
12313         ac_cv_lib_posix_remove=no
12314 fi
12315
12316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12317       conftest$ac_exeext conftest.$ac_ext
12318 LIBS=$ac_check_lib_save_LIBS
12319 fi
12320 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
12321 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
12322 if test $ac_cv_lib_posix_remove = yes; then
12323   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
12324 fi
12325
12326     fi
12327
12328     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
12329     { echo "$as_me:$LINENO: checking for shmat" >&5
12330 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
12331 if test "${ac_cv_func_shmat+set}" = set; then
12332   echo $ECHO_N "(cached) $ECHO_C" >&6
12333 else
12334   cat >conftest.$ac_ext <<_ACEOF
12335 /* confdefs.h.  */
12336 _ACEOF
12337 cat confdefs.h >>conftest.$ac_ext
12338 cat >>conftest.$ac_ext <<_ACEOF
12339 /* end confdefs.h.  */
12340 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
12341    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12342 #define shmat innocuous_shmat
12343
12344 /* System header to define __stub macros and hopefully few prototypes,
12345     which can conflict with char shmat (); below.
12346     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12347     <limits.h> exists even on freestanding compilers.  */
12348
12349 #ifdef __STDC__
12350 # include <limits.h>
12351 #else
12352 # include <assert.h>
12353 #endif
12354
12355 #undef shmat
12356
12357 /* Override any GCC internal prototype to avoid an error.
12358    Use char because int might match the return type of a GCC
12359    builtin and then its argument prototype would still apply.  */
12360 #ifdef __cplusplus
12361 extern "C"
12362 #endif
12363 char shmat ();
12364 /* The GNU C library defines this for functions which it implements
12365     to always fail with ENOSYS.  Some functions are actually named
12366     something starting with __ and the normal name is an alias.  */
12367 #if defined __stub_shmat || defined __stub___shmat
12368 choke me
12369 #endif
12370
12371 int
12372 main ()
12373 {
12374 return shmat ();
12375   ;
12376   return 0;
12377 }
12378 _ACEOF
12379 rm -f conftest.$ac_objext conftest$ac_exeext
12380 if { (ac_try="$ac_link"
12381 case "(($ac_try" in
12382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12383   *) ac_try_echo=$ac_try;;
12384 esac
12385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12386   (eval "$ac_link") 2>conftest.er1
12387   ac_status=$?
12388   grep -v '^ *+' conftest.er1 >conftest.err
12389   rm -f conftest.er1
12390   cat conftest.err >&5
12391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392   (exit $ac_status); } &&
12393          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12394   { (case "(($ac_try" in
12395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12396   *) ac_try_echo=$ac_try;;
12397 esac
12398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12399   (eval "$ac_try") 2>&5
12400   ac_status=$?
12401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402   (exit $ac_status); }; } &&
12403          { ac_try='test -s conftest$ac_exeext'
12404   { (case "(($ac_try" in
12405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12406   *) ac_try_echo=$ac_try;;
12407 esac
12408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12409   (eval "$ac_try") 2>&5
12410   ac_status=$?
12411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412   (exit $ac_status); }; }; then
12413   ac_cv_func_shmat=yes
12414 else
12415   echo "$as_me: failed program was:" >&5
12416 sed 's/^/| /' conftest.$ac_ext >&5
12417
12418         ac_cv_func_shmat=no
12419 fi
12420
12421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12422       conftest$ac_exeext conftest.$ac_ext
12423 fi
12424 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
12425 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
12426
12427     if test $ac_cv_func_shmat = no; then
12428       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
12429 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
12430 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
12431   echo $ECHO_N "(cached) $ECHO_C" >&6
12432 else
12433   ac_check_lib_save_LIBS=$LIBS
12434 LIBS="-lipc  $LIBS"
12435 cat >conftest.$ac_ext <<_ACEOF
12436 /* confdefs.h.  */
12437 _ACEOF
12438 cat confdefs.h >>conftest.$ac_ext
12439 cat >>conftest.$ac_ext <<_ACEOF
12440 /* end confdefs.h.  */
12441
12442 /* Override any GCC internal prototype to avoid an error.
12443    Use char because int might match the return type of a GCC
12444    builtin and then its argument prototype would still apply.  */
12445 #ifdef __cplusplus
12446 extern "C"
12447 #endif
12448 char shmat ();
12449 int
12450 main ()
12451 {
12452 return shmat ();
12453   ;
12454   return 0;
12455 }
12456 _ACEOF
12457 rm -f conftest.$ac_objext conftest$ac_exeext
12458 if { (ac_try="$ac_link"
12459 case "(($ac_try" in
12460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12461   *) ac_try_echo=$ac_try;;
12462 esac
12463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12464   (eval "$ac_link") 2>conftest.er1
12465   ac_status=$?
12466   grep -v '^ *+' conftest.er1 >conftest.err
12467   rm -f conftest.er1
12468   cat conftest.err >&5
12469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470   (exit $ac_status); } &&
12471          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12472   { (case "(($ac_try" in
12473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12474   *) ac_try_echo=$ac_try;;
12475 esac
12476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12477   (eval "$ac_try") 2>&5
12478   ac_status=$?
12479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480   (exit $ac_status); }; } &&
12481          { ac_try='test -s conftest$ac_exeext'
12482   { (case "(($ac_try" in
12483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12484   *) ac_try_echo=$ac_try;;
12485 esac
12486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12487   (eval "$ac_try") 2>&5
12488   ac_status=$?
12489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490   (exit $ac_status); }; }; then
12491   ac_cv_lib_ipc_shmat=yes
12492 else
12493   echo "$as_me: failed program was:" >&5
12494 sed 's/^/| /' conftest.$ac_ext >&5
12495
12496         ac_cv_lib_ipc_shmat=no
12497 fi
12498
12499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12500       conftest$ac_exeext conftest.$ac_ext
12501 LIBS=$ac_check_lib_save_LIBS
12502 fi
12503 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
12504 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
12505 if test $ac_cv_lib_ipc_shmat = yes; then
12506   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
12507 fi
12508
12509     fi
12510   fi
12511
12512   # Check for libraries that X11R6 Xt/Xaw programs need.
12513   ac_save_LDFLAGS=$LDFLAGS
12514   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
12515   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
12516   # check for ICE first), but we must link in the order -lSM -lICE or
12517   # we get undefined symbols.  So assume we have SM if we have ICE.
12518   # These have to be linked with before -lX11, unlike the other
12519   # libraries we check for below, so use a different variable.
12520   # John Interrante, Karl Berry
12521   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
12522 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
12523 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
12524   echo $ECHO_N "(cached) $ECHO_C" >&6
12525 else
12526   ac_check_lib_save_LIBS=$LIBS
12527 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
12528 cat >conftest.$ac_ext <<_ACEOF
12529 /* confdefs.h.  */
12530 _ACEOF
12531 cat confdefs.h >>conftest.$ac_ext
12532 cat >>conftest.$ac_ext <<_ACEOF
12533 /* end confdefs.h.  */
12534
12535 /* Override any GCC internal prototype to avoid an error.
12536    Use char because int might match the return type of a GCC
12537    builtin and then its argument prototype would still apply.  */
12538 #ifdef __cplusplus
12539 extern "C"
12540 #endif
12541 char IceConnectionNumber ();
12542 int
12543 main ()
12544 {
12545 return IceConnectionNumber ();
12546   ;
12547   return 0;
12548 }
12549 _ACEOF
12550 rm -f conftest.$ac_objext conftest$ac_exeext
12551 if { (ac_try="$ac_link"
12552 case "(($ac_try" in
12553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12554   *) ac_try_echo=$ac_try;;
12555 esac
12556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12557   (eval "$ac_link") 2>conftest.er1
12558   ac_status=$?
12559   grep -v '^ *+' conftest.er1 >conftest.err
12560   rm -f conftest.er1
12561   cat conftest.err >&5
12562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563   (exit $ac_status); } &&
12564          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12565   { (case "(($ac_try" in
12566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12567   *) ac_try_echo=$ac_try;;
12568 esac
12569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12570   (eval "$ac_try") 2>&5
12571   ac_status=$?
12572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573   (exit $ac_status); }; } &&
12574          { ac_try='test -s conftest$ac_exeext'
12575   { (case "(($ac_try" in
12576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12577   *) ac_try_echo=$ac_try;;
12578 esac
12579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12580   (eval "$ac_try") 2>&5
12581   ac_status=$?
12582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583   (exit $ac_status); }; }; then
12584   ac_cv_lib_ICE_IceConnectionNumber=yes
12585 else
12586   echo "$as_me: failed program was:" >&5
12587 sed 's/^/| /' conftest.$ac_ext >&5
12588
12589         ac_cv_lib_ICE_IceConnectionNumber=no
12590 fi
12591
12592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12593       conftest$ac_exeext conftest.$ac_ext
12594 LIBS=$ac_check_lib_save_LIBS
12595 fi
12596 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
12597 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
12598 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
12599   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
12600 fi
12601
12602   LDFLAGS=$ac_save_LDFLAGS
12603
12604 fi
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615 if test "x$with_x" = "xno"; then
12616   NO_X_TRUE=
12617   NO_X_FALSE='#'
12618 else
12619   NO_X_TRUE='#'
12620   NO_X_FALSE=
12621 fi
12622
12623
12624 my_includes="$my_includes -I../include -I.. -I/usr/local/include"
12625
12626
12627 LDFLAGS="$LDFLAGS -L/usr/local/lib"
12628
12629 { echo "$as_me:$LINENO: checking for X" >&5
12630 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
12631 if test "$with_x" != "no" && test "$wxwin" = "true"; then
12632
12633 cat >>confdefs.h <<\_ACEOF
12634 #define HAVE_X11 1
12635 _ACEOF
12636
12637   LDFLAGS="$LDFLAGS -L../libctgraphics -L/usr/X11R6/lib -L/usr/X11R6/lib64"
12638   my_includes="$my_includes -I/usr/X11R6/include"
12639   ctlib_graphics="$ctlibs_base -lctgraphics"
12640   { echo "$as_me:$LINENO: result: yes" >&5
12641 echo "${ECHO_T}yes" >&6; }
12642   ctlib_graphics="$ctlib_graphics $X_BASIC_LIBS $X_TOOLKIT_LIBS"
12643   if test "$libgl" = "true" ; then
12644     # Removed "-lglut" for Mac OS X compilation
12645     ctlib_graphics="$ctlib_graphics -lGL -lGLU"
12646     if test "$wxwin" = "true" ; then
12647       if  "$wx_gtk" ; then
12648         ctlib_graphics="$ctlib_graphics `wx-config --libs` -lwx_gtk_gl-2.4 `gtk-config --libs` `glib-config --libs glib gmodule gthread`"
12649       elif  "$wx_mac" ; then
12650         ctlib_graphics="$ctlib_graphics -lwx_mac_gl-2.4"
12651       fi
12652     fi
12653   fi
12654   if test "$wxwin" = "true" ; then
12655
12656 cat >>confdefs.h <<\_ACEOF
12657 #define HAVE_SGP 1
12658 _ACEOF
12659
12660   fi
12661 else
12662   { echo "$as_me:$LINENO: result: no" >&5
12663 echo "${ECHO_T}no" >&6; }
12664 fi
12665
12666
12667
12668 if test "$wxwin" = "true"; then
12669   HAVE_SGP_TRUE=
12670   HAVE_SGP_FALSE='#'
12671 else
12672   HAVE_SGP_TRUE='#'
12673   HAVE_SGP_FALSE=
12674 fi
12675
12676
12677 if test "$png" = "true" ; then
12678   ctlibs_tools="$ctlibs_tools -lpng"
12679 fi
12680 if test "$zlib" = "true" ; then
12681   ctlibs_tools="$ctlibs_tools -lz"
12682 fi
12683 if test "$fftw" = "true" ; then
12684   ctlibs_tools="$ctlibs_tools -lfftw3"
12685 fi
12686 if test "$ctn" = "true"; then
12687   ctlibs_tools="$ctlibs_tools -lctn"
12688 fi
12689
12690 { echo "$as_me:$LINENO: checking for main in -ldmallocxx" >&5
12691 echo $ECHO_N "checking for main in -ldmallocxx... $ECHO_C" >&6; }
12692 if test "${ac_cv_lib_dmallocxx_main+set}" = set; then
12693   echo $ECHO_N "(cached) $ECHO_C" >&6
12694 else
12695   ac_check_lib_save_LIBS=$LIBS
12696 LIBS="-ldmallocxx  $LIBS"
12697 cat >conftest.$ac_ext <<_ACEOF
12698 /* confdefs.h.  */
12699 _ACEOF
12700 cat confdefs.h >>conftest.$ac_ext
12701 cat >>conftest.$ac_ext <<_ACEOF
12702 /* end confdefs.h.  */
12703
12704
12705 int
12706 main ()
12707 {
12708 return main ();
12709   ;
12710   return 0;
12711 }
12712 _ACEOF
12713 rm -f conftest.$ac_objext conftest$ac_exeext
12714 if { (ac_try="$ac_link"
12715 case "(($ac_try" in
12716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12717   *) ac_try_echo=$ac_try;;
12718 esac
12719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12720   (eval "$ac_link") 2>conftest.er1
12721   ac_status=$?
12722   grep -v '^ *+' conftest.er1 >conftest.err
12723   rm -f conftest.er1
12724   cat conftest.err >&5
12725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726   (exit $ac_status); } &&
12727          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12728   { (case "(($ac_try" in
12729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12730   *) ac_try_echo=$ac_try;;
12731 esac
12732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12733   (eval "$ac_try") 2>&5
12734   ac_status=$?
12735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736   (exit $ac_status); }; } &&
12737          { ac_try='test -s conftest$ac_exeext'
12738   { (case "(($ac_try" in
12739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12740   *) ac_try_echo=$ac_try;;
12741 esac
12742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12743   (eval "$ac_try") 2>&5
12744   ac_status=$?
12745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12746   (exit $ac_status); }; }; then
12747   ac_cv_lib_dmallocxx_main=yes
12748 else
12749   echo "$as_me: failed program was:" >&5
12750 sed 's/^/| /' conftest.$ac_ext >&5
12751
12752         ac_cv_lib_dmallocxx_main=no
12753 fi
12754
12755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12756       conftest$ac_exeext conftest.$ac_ext
12757 LIBS=$ac_check_lib_save_LIBS
12758 fi
12759 { echo "$as_me:$LINENO: result: $ac_cv_lib_dmallocxx_main" >&5
12760 echo "${ECHO_T}$ac_cv_lib_dmallocxx_main" >&6; }
12761 if test $ac_cv_lib_dmallocxx_main = yes; then
12762   dmallocxx=true
12763 else
12764   dmallocxx=false
12765 fi
12766
12767 { echo "$as_me:$LINENO: checking for enable-dmalloc" >&5
12768 echo $ECHO_N "checking for enable-dmalloc... $ECHO_C" >&6; }
12769 # Check whether --enable-dmalloc was given.
12770 if test "${enable_dmalloc+set}" = set; then
12771   enableval=$enable_dmalloc; case "${enableval}" in
12772   yes) usedmalloc=true
12773        { echo "$as_me:$LINENO: result: yes" >&5
12774 echo "${ECHO_T}yes" >&6; }
12775        ;;
12776   no)  usedmalloc=false
12777        { echo "$as_me:$LINENO: result: no" >&5
12778 echo "${ECHO_T}no" >&6; }
12779        ;;
12780   *) { echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-dmalloc" >&5
12781 echo "${ECHO_T}bad value ${enableval} for --enable-dmalloc" >&6; }
12782        ;;
12783 esac
12784 else
12785   usedmalloc=false; { echo "$as_me:$LINENO: result: no" >&5
12786 echo "${ECHO_T}no" >&6; }
12787 fi
12788
12789
12790 if test "$dmallocxx" = "true" -a "$usedmalloc" = "true" ; then
12791   ctlibs_tools="$ctlibs_tools -ldmallocxx"
12792
12793 cat >>confdefs.h <<\_ACEOF
12794 #define HAVE_DMALLOC 1
12795 _ACEOF
12796
12797   { echo "$as_me:$LINENO: result: Using dmalloc" >&5
12798 echo "${ECHO_T}Using dmalloc" >&6; }
12799 fi
12800
12801 { echo "$as_me:$LINENO: checking for main in -lefence" >&5
12802 echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6; }
12803 if test "${ac_cv_lib_efence_main+set}" = set; then
12804   echo $ECHO_N "(cached) $ECHO_C" >&6
12805 else
12806   ac_check_lib_save_LIBS=$LIBS
12807 LIBS="-lefence  $LIBS"
12808 cat >conftest.$ac_ext <<_ACEOF
12809 /* confdefs.h.  */
12810 _ACEOF
12811 cat confdefs.h >>conftest.$ac_ext
12812 cat >>conftest.$ac_ext <<_ACEOF
12813 /* end confdefs.h.  */
12814
12815
12816 int
12817 main ()
12818 {
12819 return main ();
12820   ;
12821   return 0;
12822 }
12823 _ACEOF
12824 rm -f conftest.$ac_objext conftest$ac_exeext
12825 if { (ac_try="$ac_link"
12826 case "(($ac_try" in
12827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12828   *) ac_try_echo=$ac_try;;
12829 esac
12830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12831   (eval "$ac_link") 2>conftest.er1
12832   ac_status=$?
12833   grep -v '^ *+' conftest.er1 >conftest.err
12834   rm -f conftest.er1
12835   cat conftest.err >&5
12836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837   (exit $ac_status); } &&
12838          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12839   { (case "(($ac_try" in
12840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12841   *) ac_try_echo=$ac_try;;
12842 esac
12843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12844   (eval "$ac_try") 2>&5
12845   ac_status=$?
12846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847   (exit $ac_status); }; } &&
12848          { ac_try='test -s conftest$ac_exeext'
12849   { (case "(($ac_try" in
12850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12851   *) ac_try_echo=$ac_try;;
12852 esac
12853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12854   (eval "$ac_try") 2>&5
12855   ac_status=$?
12856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857   (exit $ac_status); }; }; then
12858   ac_cv_lib_efence_main=yes
12859 else
12860   echo "$as_me: failed program was:" >&5
12861 sed 's/^/| /' conftest.$ac_ext >&5
12862
12863         ac_cv_lib_efence_main=no
12864 fi
12865
12866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12867       conftest$ac_exeext conftest.$ac_ext
12868 LIBS=$ac_check_lib_save_LIBS
12869 fi
12870 { echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5
12871 echo "${ECHO_T}$ac_cv_lib_efence_main" >&6; }
12872 if test $ac_cv_lib_efence_main = yes; then
12873   efence=true
12874 else
12875   efence=false
12876 fi
12877
12878 { echo "$as_me:$LINENO: checking for enable-efence" >&5
12879 echo $ECHO_N "checking for enable-efence... $ECHO_C" >&6; }
12880 # Check whether --enable-efence was given.
12881 if test "${enable_efence+set}" = set; then
12882   enableval=$enable_efence; case "${enableval}" in
12883   yes) useefence=true
12884        { echo "$as_me:$LINENO: result: yes" >&5
12885 echo "${ECHO_T}yes" >&6; }
12886        ;;
12887   no)  useefence=false
12888        { echo "$as_me:$LINENO: result: no" >&5
12889 echo "${ECHO_T}no" >&6; }
12890        ;;
12891   *) { echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-efence" >&5
12892 echo "${ECHO_T}bad value ${enableval} for --enable-efence" >&6; }
12893        ;;
12894 esac
12895 else
12896   useefence=false; { echo "$as_me:$LINENO: result: no" >&5
12897 echo "${ECHO_T}no" >&6; }
12898 fi
12899
12900
12901 if test "$efence" = "true" -a "$useefence" = "true" ; then
12902   ctlibs_tools="$ctlibs_tools -lefence"
12903
12904 cat >>confdefs.h <<\_ACEOF
12905 #define HAVE_EFENCE 1
12906 _ACEOF
12907
12908   { echo "$as_me:$LINENO: result: Using efence" >&5
12909 echo "${ECHO_T}Using efence" >&6; }
12910 fi
12911
12912 if test "$wxwin" = "true" ; then
12913   if  "$wx_gtk" = "true"  ||  "$wx_mac" == "true"  ; then
12914     wxcflags=`$wxconfig --cflags`
12915     wxlibs=`$wxconfig --libs`
12916   else
12917         wxcflags="-D__WXMSW__ -D__WIN32__ -D__GNUWIN32__"
12918         wxlibs="-lwx -lglui -ljpeg -lxpm -lzlib -ltiff"
12919   fi
12920   CFLAGS="$CFLAGS -I../include $wxcflags"
12921   ctlib_graphics="$ctlib_graphics $wxlibs"
12922 fi
12923
12924
12925
12926
12927 if test "$wxwin"="true"; then
12928   HAVE_WXWINDOWS_TRUE=
12929   HAVE_WXWINDOWS_FALSE='#'
12930 else
12931   HAVE_WXWINDOWS_TRUE='#'
12932   HAVE_WXWINDOWS_FALSE=
12933 fi
12934
12935
12936 LDFLAGS="$LDFLAGS -L../libctsupport -L../libctsim"
12937 ctlibs="$ctlibs_base -lctsim $ctlib_graphics -lctsupport $ctlibs_tools"
12938
12939
12940 if test -n "$lamdir" ; then
12941   lamprograms="ctsimtext-lam"
12942
12943   lamdefs="$CFLAGS"
12944
12945 fi
12946
12947 CXXFLAGS="$CFLAGS"
12948
12949 ac_config_files="$ac_config_files Makefile libctgraphics/Makefile libctsupport/Makefile libctsim/Makefile man/Makefile cgi-bin/ctsim.cgi cgi-bin/Makefile html/simulate.html html/Makefile include/Makefile getopt/Makefile tools/sample-ctsim.sh cgi-bin/ctsim.conf tools/Makefile src/Makefile helical/Makefile helical/sample-helical.sh"
12950
12951
12952 cat >confcache <<\_ACEOF
12953 # This file is a shell script that caches the results of configure
12954 # tests run on this system so they can be shared between configure
12955 # scripts and configure runs, see configure's option --config-cache.
12956 # It is not useful on other systems.  If it contains results you don't
12957 # want to keep, you may remove or edit it.
12958 #
12959 # config.status only pays attention to the cache file if you give it
12960 # the --recheck option to rerun configure.
12961 #
12962 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12963 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12964 # following values.
12965
12966 _ACEOF
12967
12968 # The following way of writing the cache mishandles newlines in values,
12969 # but we know of no workaround that is simple, portable, and efficient.
12970 # So, we kill variables containing newlines.
12971 # Ultrix sh set writes to stderr and can't be redirected directly,
12972 # and sets the high bit in the cache file unless we assign to the vars.
12973 (
12974   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12975     eval ac_val=\$$ac_var
12976     case $ac_val in #(
12977     *${as_nl}*)
12978       case $ac_var in #(
12979       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12980 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
12981       esac
12982       case $ac_var in #(
12983       _ | IFS | as_nl) ;; #(
12984       *) $as_unset $ac_var ;;
12985       esac ;;
12986     esac
12987   done
12988
12989   (set) 2>&1 |
12990     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12991     *${as_nl}ac_space=\ *)
12992       # `set' does not quote correctly, so add quotes (double-quote
12993       # substitution turns \\\\ into \\, and sed turns \\ into \).
12994       sed -n \
12995         "s/'/'\\\\''/g;
12996           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12997       ;; #(
12998     *)
12999       # `set' quotes correctly as required by POSIX, so do not add quotes.
13000       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13001       ;;
13002     esac |
13003     sort
13004 ) |
13005   sed '
13006      /^ac_cv_env_/b end
13007      t clear
13008      :clear
13009      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13010      t end
13011      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13012      :end' >>confcache
13013 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13014   if test -w "$cache_file"; then
13015     test "x$cache_file" != "x/dev/null" &&
13016       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
13017 echo "$as_me: updating cache $cache_file" >&6;}
13018     cat confcache >$cache_file
13019   else
13020     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13021 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13022   fi
13023 fi
13024 rm -f confcache
13025
13026 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13027 # Let make expand exec_prefix.
13028 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13029
13030 DEFS=-DHAVE_CONFIG_H
13031
13032 ac_libobjs=
13033 ac_ltlibobjs=
13034 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13035   # 1. Remove the extension, and $U if already installed.
13036   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13037   ac_i=`echo "$ac_i" | sed "$ac_script"`
13038   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13039   #    will be set to the directory where LIBOBJS objects are built.
13040   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13041   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13042 done
13043 LIBOBJS=$ac_libobjs
13044
13045 LTLIBOBJS=$ac_ltlibobjs
13046
13047
13048 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13049   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13050 Usually this means the macro was only invoked conditionally." >&5
13051 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13052 Usually this means the macro was only invoked conditionally." >&2;}
13053    { (exit 1); exit 1; }; }
13054 fi
13055 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13056   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13057 Usually this means the macro was only invoked conditionally." >&5
13058 echo "$as_me: error: conditional \"AMDEP\" was never defined.
13059 Usually this means the macro was only invoked conditionally." >&2;}
13060    { (exit 1); exit 1; }; }
13061 fi
13062 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13063   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13064 Usually this means the macro was only invoked conditionally." >&5
13065 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13066 Usually this means the macro was only invoked conditionally." >&2;}
13067    { (exit 1); exit 1; }; }
13068 fi
13069 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
13070   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
13071 Usually this means the macro was only invoked conditionally." >&5
13072 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
13073 Usually this means the macro was only invoked conditionally." >&2;}
13074    { (exit 1); exit 1; }; }
13075 fi
13076 if test -z "${INCLUDED_GETOPT_LONG_TRUE}" && test -z "${INCLUDED_GETOPT_LONG_FALSE}"; then
13077   { { echo "$as_me:$LINENO: error: conditional \"INCLUDED_GETOPT_LONG\" was never defined.
13078 Usually this means the macro was only invoked conditionally." >&5
13079 echo "$as_me: error: conditional \"INCLUDED_GETOPT_LONG\" was never defined.
13080 Usually this means the macro was only invoked conditionally." >&2;}
13081    { (exit 1); exit 1; }; }
13082 fi
13083 if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
13084   { { echo "$as_me:$LINENO: error: conditional \"DEBUG\" was never defined.
13085 Usually this means the macro was only invoked conditionally." >&5
13086 echo "$as_me: error: conditional \"DEBUG\" was never defined.
13087 Usually this means the macro was only invoked conditionally." >&2;}
13088    { (exit 1); exit 1; }; }
13089 fi
13090 if test -z "${USE_HTML_TRUE}" && test -z "${USE_HTML_FALSE}"; then
13091   { { echo "$as_me:$LINENO: error: conditional \"USE_HTML\" was never defined.
13092 Usually this means the macro was only invoked conditionally." >&5
13093 echo "$as_me: error: conditional \"USE_HTML\" was never defined.
13094 Usually this means the macro was only invoked conditionally." >&2;}
13095    { (exit 1); exit 1; }; }
13096 fi
13097 if test -z "${USE_LAM_TRUE}" && test -z "${USE_LAM_FALSE}"; then
13098   { { echo "$as_me:$LINENO: error: conditional \"USE_LAM\" was never defined.
13099 Usually this means the macro was only invoked conditionally." >&5
13100 echo "$as_me: error: conditional \"USE_LAM\" was never defined.
13101 Usually this means the macro was only invoked conditionally." >&2;}
13102    { (exit 1); exit 1; }; }
13103 fi
13104 if test -z "${NO_X_TRUE}" && test -z "${NO_X_FALSE}"; then
13105   { { echo "$as_me:$LINENO: error: conditional \"NO_X\" was never defined.
13106 Usually this means the macro was only invoked conditionally." >&5
13107 echo "$as_me: error: conditional \"NO_X\" was never defined.
13108 Usually this means the macro was only invoked conditionally." >&2;}
13109    { (exit 1); exit 1; }; }
13110 fi
13111 if test -z "${HAVE_SGP_TRUE}" && test -z "${HAVE_SGP_FALSE}"; then
13112   { { echo "$as_me:$LINENO: error: conditional \"HAVE_SGP\" was never defined.
13113 Usually this means the macro was only invoked conditionally." >&5
13114 echo "$as_me: error: conditional \"HAVE_SGP\" was never defined.
13115 Usually this means the macro was only invoked conditionally." >&2;}
13116    { (exit 1); exit 1; }; }
13117 fi
13118 if test -z "${HAVE_WXWINDOWS_TRUE}" && test -z "${HAVE_WXWINDOWS_FALSE}"; then
13119   { { echo "$as_me:$LINENO: error: conditional \"HAVE_WXWINDOWS\" was never defined.
13120 Usually this means the macro was only invoked conditionally." >&5
13121 echo "$as_me: error: conditional \"HAVE_WXWINDOWS\" was never defined.
13122 Usually this means the macro was only invoked conditionally." >&2;}
13123    { (exit 1); exit 1; }; }
13124 fi
13125
13126 : ${CONFIG_STATUS=./config.status}
13127 ac_clean_files_save=$ac_clean_files
13128 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13129 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13130 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13131 cat >$CONFIG_STATUS <<_ACEOF
13132 #! $SHELL
13133 # Generated by $as_me.
13134 # Run this file to recreate the current configuration.
13135 # Compiler output produced by configure, useful for debugging
13136 # configure, is in config.log if it exists.
13137
13138 debug=false
13139 ac_cs_recheck=false
13140 ac_cs_silent=false
13141 SHELL=\${CONFIG_SHELL-$SHELL}
13142 _ACEOF
13143
13144 cat >>$CONFIG_STATUS <<\_ACEOF
13145 ## --------------------- ##
13146 ## M4sh Initialization.  ##
13147 ## --------------------- ##
13148
13149 # Be Bourne compatible
13150 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13151   emulate sh
13152   NULLCMD=:
13153   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13154   # is contrary to our usage.  Disable this feature.
13155   alias -g '${1+"$@"}'='"$@"'
13156   setopt NO_GLOB_SUBST
13157 else
13158   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
13159 fi
13160 BIN_SH=xpg4; export BIN_SH # for Tru64
13161 DUALCASE=1; export DUALCASE # for MKS sh
13162
13163
13164 # PATH needs CR
13165 # Avoid depending upon Character Ranges.
13166 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13167 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13168 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13169 as_cr_digits='0123456789'
13170 as_cr_alnum=$as_cr_Letters$as_cr_digits
13171
13172 # The user is always right.
13173 if test "${PATH_SEPARATOR+set}" != set; then
13174   echo "#! /bin/sh" >conf$$.sh
13175   echo  "exit 0"   >>conf$$.sh
13176   chmod +x conf$$.sh
13177   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13178     PATH_SEPARATOR=';'
13179   else
13180     PATH_SEPARATOR=:
13181   fi
13182   rm -f conf$$.sh
13183 fi
13184
13185 # Support unset when possible.
13186 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13187   as_unset=unset
13188 else
13189   as_unset=false
13190 fi
13191
13192
13193 # IFS
13194 # We need space, tab and new line, in precisely that order.  Quoting is
13195 # there to prevent editors from complaining about space-tab.
13196 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13197 # splitting by setting IFS to empty value.)
13198 as_nl='
13199 '
13200 IFS=" ""        $as_nl"
13201
13202 # Find who we are.  Look in the path if we contain no directory separator.
13203 case $0 in
13204   *[\\/]* ) as_myself=$0 ;;
13205   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13206 for as_dir in $PATH
13207 do
13208   IFS=$as_save_IFS
13209   test -z "$as_dir" && as_dir=.
13210   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13211 done
13212 IFS=$as_save_IFS
13213
13214      ;;
13215 esac
13216 # We did not find ourselves, most probably we were run as `sh COMMAND'
13217 # in which case we are not to be found in the path.
13218 if test "x$as_myself" = x; then
13219   as_myself=$0
13220 fi
13221 if test ! -f "$as_myself"; then
13222   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13223   { (exit 1); exit 1; }
13224 fi
13225
13226 # Work around bugs in pre-3.0 UWIN ksh.
13227 for as_var in ENV MAIL MAILPATH
13228 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13229 done
13230 PS1='$ '
13231 PS2='> '
13232 PS4='+ '
13233
13234 # NLS nuisances.
13235 for as_var in \
13236   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13237   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13238   LC_TELEPHONE LC_TIME
13239 do
13240   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13241     eval $as_var=C; export $as_var
13242   else
13243     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13244   fi
13245 done
13246
13247 # Required to use basename.
13248 if expr a : '\(a\)' >/dev/null 2>&1 &&
13249    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13250   as_expr=expr
13251 else
13252   as_expr=false
13253 fi
13254
13255 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13256   as_basename=basename
13257 else
13258   as_basename=false
13259 fi
13260
13261
13262 # Name of the executable.
13263 as_me=`$as_basename -- "$0" ||
13264 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13265          X"$0" : 'X\(//\)$' \| \
13266          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13267 echo X/"$0" |
13268     sed '/^.*\/\([^/][^/]*\)\/*$/{
13269             s//\1/
13270             q
13271           }
13272           /^X\/\(\/\/\)$/{
13273             s//\1/
13274             q
13275           }
13276           /^X\/\(\/\).*/{
13277             s//\1/
13278             q
13279           }
13280           s/.*/./; q'`
13281
13282 # CDPATH.
13283 $as_unset CDPATH
13284
13285
13286
13287   as_lineno_1=$LINENO
13288   as_lineno_2=$LINENO
13289   test "x$as_lineno_1" != "x$as_lineno_2" &&
13290   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13291
13292   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13293   # uniformly replaced by the line number.  The first 'sed' inserts a
13294   # line-number line after each line using $LINENO; the second 'sed'
13295   # does the real work.  The second script uses 'N' to pair each
13296   # line-number line with the line containing $LINENO, and appends
13297   # trailing '-' during substitution so that $LINENO is not a special
13298   # case at line end.
13299   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13300   # scripts with optimization help from Paolo Bonzini.  Blame Lee
13301   # E. McMahon (1931-1989) for sed's syntax.  :-)
13302   sed -n '
13303     p
13304     /[$]LINENO/=
13305   ' <$as_myself |
13306     sed '
13307       s/[$]LINENO.*/&-/
13308       t lineno
13309       b
13310       :lineno
13311       N
13312       :loop
13313       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13314       t loop
13315       s/-\n.*//
13316     ' >$as_me.lineno &&
13317   chmod +x "$as_me.lineno" ||
13318     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13319    { (exit 1); exit 1; }; }
13320
13321   # Don't try to exec as it changes $[0], causing all sort of problems
13322   # (the dirname of $[0] is not the place where we might find the
13323   # original and so on.  Autoconf is especially sensitive to this).
13324   . "./$as_me.lineno"
13325   # Exit status is that of the last command.
13326   exit
13327 }
13328
13329
13330 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13331   as_dirname=dirname
13332 else
13333   as_dirname=false
13334 fi
13335
13336 ECHO_C= ECHO_N= ECHO_T=
13337 case `echo -n x` in
13338 -n*)
13339   case `echo 'x\c'` in
13340   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13341   *)   ECHO_C='\c';;
13342   esac;;
13343 *)
13344   ECHO_N='-n';;
13345 esac
13346
13347 if expr a : '\(a\)' >/dev/null 2>&1 &&
13348    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13349   as_expr=expr
13350 else
13351   as_expr=false
13352 fi
13353
13354 rm -f conf$$ conf$$.exe conf$$.file
13355 if test -d conf$$.dir; then
13356   rm -f conf$$.dir/conf$$.file
13357 else
13358   rm -f conf$$.dir
13359   mkdir conf$$.dir
13360 fi
13361 echo >conf$$.file
13362 if ln -s conf$$.file conf$$ 2>/dev/null; then
13363   as_ln_s='ln -s'
13364   # ... but there are two gotchas:
13365   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13366   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13367   # In both cases, we have to default to `cp -p'.
13368   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13369     as_ln_s='cp -p'
13370 elif ln conf$$.file conf$$ 2>/dev/null; then
13371   as_ln_s=ln
13372 else
13373   as_ln_s='cp -p'
13374 fi
13375 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13376 rmdir conf$$.dir 2>/dev/null
13377
13378 if mkdir -p . 2>/dev/null; then
13379   as_mkdir_p=:
13380 else
13381   test -d ./-p && rmdir ./-p
13382   as_mkdir_p=false
13383 fi
13384
13385 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
13386 # systems may use methods other than mode bits to determine executability.
13387 cat >conf$$.file <<_ASEOF
13388 #! /bin/sh
13389 exit 0
13390 _ASEOF
13391 chmod +x conf$$.file
13392 if test -x conf$$.file >/dev/null 2>&1; then
13393   as_executable_p="test -x"
13394 else
13395   as_executable_p=:
13396 fi
13397 rm -f conf$$.file
13398
13399 # Sed expression to map a string onto a valid CPP name.
13400 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13401
13402 # Sed expression to map a string onto a valid variable name.
13403 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13404
13405
13406 exec 6>&1
13407
13408 # Save the log message, to keep $[0] and so on meaningful, and to
13409 # report actual input values of CONFIG_FILES etc. instead of their
13410 # values after options handling.
13411 ac_log="
13412 This file was extended by $as_me, which was
13413 generated by GNU Autoconf 2.60a.  Invocation command line was
13414
13415   CONFIG_FILES    = $CONFIG_FILES
13416   CONFIG_HEADERS  = $CONFIG_HEADERS
13417   CONFIG_LINKS    = $CONFIG_LINKS
13418   CONFIG_COMMANDS = $CONFIG_COMMANDS
13419   $ $0 $@
13420
13421 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13422 "
13423
13424 _ACEOF
13425
13426 cat >>$CONFIG_STATUS <<_ACEOF
13427 # Files that config.status was made for.
13428 config_files="$ac_config_files"
13429 config_headers="$ac_config_headers"
13430 config_commands="$ac_config_commands"
13431
13432 _ACEOF
13433
13434 cat >>$CONFIG_STATUS <<\_ACEOF
13435 ac_cs_usage="\
13436 \`$as_me' instantiates files from templates according to the
13437 current configuration.
13438
13439 Usage: $0 [OPTIONS] [FILE]...
13440
13441   -h, --help       print this help, then exit
13442   -V, --version    print version number and configuration settings, then exit
13443   -q, --quiet      do not print progress messages
13444   -d, --debug      don't remove temporary files
13445       --recheck    update $as_me by reconfiguring in the same conditions
13446   --file=FILE[:TEMPLATE]
13447                    instantiate the configuration file FILE
13448   --header=FILE[:TEMPLATE]
13449                    instantiate the configuration header FILE
13450
13451 Configuration files:
13452 $config_files
13453
13454 Configuration headers:
13455 $config_headers
13456
13457 Configuration commands:
13458 $config_commands
13459
13460 Report bugs to <bug-autoconf@gnu.org>."
13461
13462 _ACEOF
13463 cat >>$CONFIG_STATUS <<_ACEOF
13464 ac_cs_version="\\
13465 config.status
13466 configured by $0, generated by GNU Autoconf 2.60a,
13467   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13468
13469 Copyright (C) 2006 Free Software Foundation, Inc.
13470 This config.status script is free software; the Free Software Foundation
13471 gives unlimited permission to copy, distribute and modify it."
13472
13473 ac_pwd='$ac_pwd'
13474 srcdir='$srcdir'
13475 INSTALL='$INSTALL'
13476 _ACEOF
13477
13478 cat >>$CONFIG_STATUS <<\_ACEOF
13479 # If no file are specified by the user, then we need to provide default
13480 # value.  By we need to know if files were specified by the user.
13481 ac_need_defaults=:
13482 while test $# != 0
13483 do
13484   case $1 in
13485   --*=*)
13486     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13487     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13488     ac_shift=:
13489     ;;
13490   *)
13491     ac_option=$1
13492     ac_optarg=$2
13493     ac_shift=shift
13494     ;;
13495   esac
13496
13497   case $ac_option in
13498   # Handling of the options.
13499   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13500     ac_cs_recheck=: ;;
13501   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13502     echo "$ac_cs_version"; exit ;;
13503   --debug | --debu | --deb | --de | --d | -d )
13504     debug=: ;;
13505   --file | --fil | --fi | --f )
13506     $ac_shift
13507     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13508     ac_need_defaults=false;;
13509   --header | --heade | --head | --hea )
13510     $ac_shift
13511     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13512     ac_need_defaults=false;;
13513   --he | --h)
13514     # Conflict between --help and --header
13515     { echo "$as_me: error: ambiguous option: $1
13516 Try \`$0 --help' for more information." >&2
13517    { (exit 1); exit 1; }; };;
13518   --help | --hel | -h )
13519     echo "$ac_cs_usage"; exit ;;
13520   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13521   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13522     ac_cs_silent=: ;;
13523
13524   # This is an error.
13525   -*) { echo "$as_me: error: unrecognized option: $1
13526 Try \`$0 --help' for more information." >&2
13527    { (exit 1); exit 1; }; } ;;
13528
13529   *) ac_config_targets="$ac_config_targets $1"
13530      ac_need_defaults=false ;;
13531
13532   esac
13533   shift
13534 done
13535
13536 ac_configure_extra_args=
13537
13538 if $ac_cs_silent; then
13539   exec 6>/dev/null
13540   ac_configure_extra_args="$ac_configure_extra_args --silent"
13541 fi
13542
13543 _ACEOF
13544 cat >>$CONFIG_STATUS <<_ACEOF
13545 if \$ac_cs_recheck; then
13546   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13547   CONFIG_SHELL=$SHELL
13548   export CONFIG_SHELL
13549   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13550 fi
13551
13552 _ACEOF
13553 cat >>$CONFIG_STATUS <<\_ACEOF
13554 exec 5>>config.log
13555 {
13556   echo
13557   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13558 ## Running $as_me. ##
13559 _ASBOX
13560   echo "$ac_log"
13561 } >&5
13562
13563 _ACEOF
13564 cat >>$CONFIG_STATUS <<_ACEOF
13565 #
13566 # INIT-COMMANDS
13567 #
13568 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13569
13570 _ACEOF
13571
13572 cat >>$CONFIG_STATUS <<\_ACEOF
13573
13574 # Handling of arguments.
13575 for ac_config_target in $ac_config_targets
13576 do
13577   case $ac_config_target in
13578     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13579     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13580     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13581     "libctgraphics/Makefile") CONFIG_FILES="$CONFIG_FILES libctgraphics/Makefile" ;;
13582     "libctsupport/Makefile") CONFIG_FILES="$CONFIG_FILES libctsupport/Makefile" ;;
13583     "libctsim/Makefile") CONFIG_FILES="$CONFIG_FILES libctsim/Makefile" ;;
13584     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13585     "cgi-bin/ctsim.cgi") CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.cgi" ;;
13586     "cgi-bin/Makefile") CONFIG_FILES="$CONFIG_FILES cgi-bin/Makefile" ;;
13587     "html/simulate.html") CONFIG_FILES="$CONFIG_FILES html/simulate.html" ;;
13588     "html/Makefile") CONFIG_FILES="$CONFIG_FILES html/Makefile" ;;
13589     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13590     "getopt/Makefile") CONFIG_FILES="$CONFIG_FILES getopt/Makefile" ;;
13591     "tools/sample-ctsim.sh") CONFIG_FILES="$CONFIG_FILES tools/sample-ctsim.sh" ;;
13592     "cgi-bin/ctsim.conf") CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.conf" ;;
13593     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
13594     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13595     "helical/Makefile") CONFIG_FILES="$CONFIG_FILES helical/Makefile" ;;
13596     "helical/sample-helical.sh") CONFIG_FILES="$CONFIG_FILES helical/sample-helical.sh" ;;
13597
13598   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13599 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13600    { (exit 1); exit 1; }; };;
13601   esac
13602 done
13603
13604
13605 # If the user did not use the arguments to specify the items to instantiate,
13606 # then the envvar interface is used.  Set only those that are not.
13607 # We use the long form for the default assignment because of an extremely
13608 # bizarre bug on SunOS 4.1.3.
13609 if $ac_need_defaults; then
13610   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13611   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13612   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13613 fi
13614
13615 # Have a temporary directory for convenience.  Make it in the build tree
13616 # simply because there is no reason against having it here, and in addition,
13617 # creating and moving files from /tmp can sometimes cause problems.
13618 # Hook for its removal unless debugging.
13619 # Note that there is a small window in which the directory will not be cleaned:
13620 # after its creation but before its name has been assigned to `$tmp'.
13621 $debug ||
13622 {
13623   tmp=
13624   trap 'exit_status=$?
13625   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13626 ' 0
13627   trap '{ (exit 1); exit 1; }' 1 2 13 15
13628 }
13629 # Create a (secure) tmp directory for tmp files.
13630
13631 {
13632   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13633   test -n "$tmp" && test -d "$tmp"
13634 }  ||
13635 {
13636   tmp=./conf$$-$RANDOM
13637   (umask 077 && mkdir "$tmp")
13638 } ||
13639 {
13640    echo "$me: cannot create a temporary directory in ." >&2
13641    { (exit 1); exit 1; }
13642 }
13643
13644 #
13645 # Set up the sed scripts for CONFIG_FILES section.
13646 #
13647
13648 # No need to generate the scripts if there are no CONFIG_FILES.
13649 # This happens for instance when ./config.status config.h
13650 if test -n "$CONFIG_FILES"; then
13651
13652 _ACEOF
13653
13654
13655
13656 ac_delim='%!_!# '
13657 for ac_last_try in false false false false false :; do
13658   cat >conf$$subs.sed <<_ACEOF
13659 SHELL!$SHELL$ac_delim
13660 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
13661 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
13662 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
13663 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
13664 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
13665 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
13666 exec_prefix!$exec_prefix$ac_delim
13667 prefix!$prefix$ac_delim
13668 program_transform_name!$program_transform_name$ac_delim
13669 bindir!$bindir$ac_delim
13670 sbindir!$sbindir$ac_delim
13671 libexecdir!$libexecdir$ac_delim
13672 datarootdir!$datarootdir$ac_delim
13673 datadir!$datadir$ac_delim
13674 sysconfdir!$sysconfdir$ac_delim
13675 sharedstatedir!$sharedstatedir$ac_delim
13676 localstatedir!$localstatedir$ac_delim
13677 includedir!$includedir$ac_delim
13678 oldincludedir!$oldincludedir$ac_delim
13679 docdir!$docdir$ac_delim
13680 infodir!$infodir$ac_delim
13681 htmldir!$htmldir$ac_delim
13682 dvidir!$dvidir$ac_delim
13683 pdfdir!$pdfdir$ac_delim
13684 psdir!$psdir$ac_delim
13685 libdir!$libdir$ac_delim
13686 localedir!$localedir$ac_delim
13687 mandir!$mandir$ac_delim
13688 DEFS!$DEFS$ac_delim
13689 ECHO_C!$ECHO_C$ac_delim
13690 ECHO_N!$ECHO_N$ac_delim
13691 ECHO_T!$ECHO_T$ac_delim
13692 LIBS!$LIBS$ac_delim
13693 build_alias!$build_alias$ac_delim
13694 host_alias!$host_alias$ac_delim
13695 target_alias!$target_alias$ac_delim
13696 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
13697 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
13698 MAINT!$MAINT$ac_delim
13699 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
13700 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
13701 INSTALL_DATA!$INSTALL_DATA$ac_delim
13702 CYGPATH_W!$CYGPATH_W$ac_delim
13703 PACKAGE!$PACKAGE$ac_delim
13704 VERSION!$VERSION$ac_delim
13705 ACLOCAL!$ACLOCAL$ac_delim
13706 AUTOCONF!$AUTOCONF$ac_delim
13707 AUTOMAKE!$AUTOMAKE$ac_delim
13708 AUTOHEADER!$AUTOHEADER$ac_delim
13709 MAKEINFO!$MAKEINFO$ac_delim
13710 AMTAR!$AMTAR$ac_delim
13711 install_sh!$install_sh$ac_delim
13712 STRIP!$STRIP$ac_delim
13713 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
13714 AWK!$AWK$ac_delim
13715 SET_MAKE!$SET_MAKE$ac_delim
13716 am__leading_dot!$am__leading_dot$ac_delim
13717 RANLIB!$RANLIB$ac_delim
13718 CC!$CC$ac_delim
13719 CFLAGS!$CFLAGS$ac_delim
13720 LDFLAGS!$LDFLAGS$ac_delim
13721 CPPFLAGS!$CPPFLAGS$ac_delim
13722 ac_ct_CC!$ac_ct_CC$ac_delim
13723 EXEEXT!$EXEEXT$ac_delim
13724 OBJEXT!$OBJEXT$ac_delim
13725 DEPDIR!$DEPDIR$ac_delim
13726 am__include!$am__include$ac_delim
13727 am__quote!$am__quote$ac_delim
13728 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
13729 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
13730 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
13731 CCDEPMODE!$CCDEPMODE$ac_delim
13732 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
13733 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
13734 CXX!$CXX$ac_delim
13735 CXXFLAGS!$CXXFLAGS$ac_delim
13736 ac_ct_CXX!$ac_ct_CXX$ac_delim
13737 CXXDEPMODE!$CXXDEPMODE$ac_delim
13738 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
13739 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
13740 CPP!$CPP$ac_delim
13741 GREP!$GREP$ac_delim
13742 EGREP!$EGREP$ac_delim
13743 wxconfig!$wxconfig$ac_delim
13744 build!$build$ac_delim
13745 build_cpu!$build_cpu$ac_delim
13746 build_vendor!$build_vendor$ac_delim
13747 build_os!$build_os$ac_delim
13748 host!$host$ac_delim
13749 host_cpu!$host_cpu$ac_delim
13750 host_vendor!$host_vendor$ac_delim
13751 host_os!$host_os$ac_delim
13752 INCLUDED_GETOPT_LONG_TRUE!$INCLUDED_GETOPT_LONG_TRUE$ac_delim
13753 INCLUDED_GETOPT_LONG_FALSE!$INCLUDED_GETOPT_LONG_FALSE$ac_delim
13754 DEBUG_TRUE!$DEBUG_TRUE$ac_delim
13755 DEBUG_FALSE!$DEBUG_FALSE$ac_delim
13756 _ACEOF
13757
13758   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
13759     break
13760   elif $ac_last_try; then
13761     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13762 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13763    { (exit 1); exit 1; }; }
13764   else
13765     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13766   fi
13767 done
13768
13769 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13770 if test -n "$ac_eof"; then
13771   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13772   ac_eof=`expr $ac_eof + 1`
13773 fi
13774
13775 cat >>$CONFIG_STATUS <<_ACEOF
13776 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
13777 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13778 _ACEOF
13779 sed '
13780 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13781 s/^/s,@/; s/!/@,|#_!!_#|/
13782 :n
13783 t n
13784 s/'"$ac_delim"'$/,g/; t
13785 s/$/\\/; p
13786 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13787 ' >>$CONFIG_STATUS <conf$$subs.sed
13788 rm -f conf$$subs.sed
13789 cat >>$CONFIG_STATUS <<_ACEOF
13790 CEOF$ac_eof
13791 _ACEOF
13792
13793
13794 ac_delim='%!_!# '
13795 for ac_last_try in false false false false false :; do
13796   cat >conf$$subs.sed <<_ACEOF
13797 lamdir!$lamdir$ac_delim
13798 mpienable!$mpienable$ac_delim
13799 cgibindir!$cgibindir$ac_delim
13800 cgibinurl!$cgibinurl$ac_delim
13801 webdatadir!$webdatadir$ac_delim
13802 webdataurl!$webdataurl$ac_delim
13803 cgiprograms!$cgiprograms$ac_delim
13804 htmldata!$htmldata$ac_delim
13805 USE_HTML_TRUE!$USE_HTML_TRUE$ac_delim
13806 USE_HTML_FALSE!$USE_HTML_FALSE$ac_delim
13807 webenabled!$webenabled$ac_delim
13808 USE_LAM_TRUE!$USE_LAM_TRUE$ac_delim
13809 USE_LAM_FALSE!$USE_LAM_FALSE$ac_delim
13810 XMKMF!$XMKMF$ac_delim
13811 X_CFLAGS!$X_CFLAGS$ac_delim
13812 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
13813 X_LIBS!$X_LIBS$ac_delim
13814 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
13815 X_TOOLKIT_LIBS!$X_TOOLKIT_LIBS$ac_delim
13816 X_BASIC_LIBS!$X_BASIC_LIBS$ac_delim
13817 NO_X_TRUE!$NO_X_TRUE$ac_delim
13818 NO_X_FALSE!$NO_X_FALSE$ac_delim
13819 my_includes!$my_includes$ac_delim
13820 HAVE_SGP_TRUE!$HAVE_SGP_TRUE$ac_delim
13821 HAVE_SGP_FALSE!$HAVE_SGP_FALSE$ac_delim
13822 wxcflags!$wxcflags$ac_delim
13823 wxlibs!$wxlibs$ac_delim
13824 HAVE_WXWINDOWS_TRUE!$HAVE_WXWINDOWS_TRUE$ac_delim
13825 HAVE_WXWINDOWS_FALSE!$HAVE_WXWINDOWS_FALSE$ac_delim
13826 ctlibs!$ctlibs$ac_delim
13827 lamprograms!$lamprograms$ac_delim
13828 lamdefs!$lamdefs$ac_delim
13829 LIBOBJS!$LIBOBJS$ac_delim
13830 LTLIBOBJS!$LTLIBOBJS$ac_delim
13831 _ACEOF
13832
13833   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 34; then
13834     break
13835   elif $ac_last_try; then
13836     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13837 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13838    { (exit 1); exit 1; }; }
13839   else
13840     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13841   fi
13842 done
13843
13844 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13845 if test -n "$ac_eof"; then
13846   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13847   ac_eof=`expr $ac_eof + 1`
13848 fi
13849
13850 cat >>$CONFIG_STATUS <<_ACEOF
13851 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
13852 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
13853 _ACEOF
13854 sed '
13855 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13856 s/^/s,@/; s/!/@,|#_!!_#|/
13857 :n
13858 t n
13859 s/'"$ac_delim"'$/,g/; t
13860 s/$/\\/; p
13861 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13862 ' >>$CONFIG_STATUS <conf$$subs.sed
13863 rm -f conf$$subs.sed
13864 cat >>$CONFIG_STATUS <<_ACEOF
13865 :end
13866 s/|#_!!_#|//g
13867 CEOF$ac_eof
13868 _ACEOF
13869
13870
13871 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13872 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13873 # trailing colons and then remove the whole line if VPATH becomes empty
13874 # (actually we leave an empty line to preserve line numbers).
13875 if test "x$srcdir" = x.; then
13876   ac_vpsub='/^[  ]*VPATH[        ]*=/{
13877 s/:*\$(srcdir):*/:/
13878 s/:*\${srcdir}:*/:/
13879 s/:*@srcdir@:*/:/
13880 s/^\([^=]*=[     ]*\):*/\1/
13881 s/:*$//
13882 s/^[^=]*=[       ]*$//
13883 }'
13884 fi
13885
13886 cat >>$CONFIG_STATUS <<\_ACEOF
13887 fi # test -n "$CONFIG_FILES"
13888
13889
13890 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
13891 do
13892   case $ac_tag in
13893   :[FHLC]) ac_mode=$ac_tag; continue;;
13894   esac
13895   case $ac_mode$ac_tag in
13896   :[FHL]*:*);;
13897   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
13898 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
13899    { (exit 1); exit 1; }; };;
13900   :[FH]-) ac_tag=-:-;;
13901   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13902   esac
13903   ac_save_IFS=$IFS
13904   IFS=:
13905   set x $ac_tag
13906   IFS=$ac_save_IFS
13907   shift
13908   ac_file=$1
13909   shift
13910
13911   case $ac_mode in
13912   :L) ac_source=$1;;
13913   :[FH])
13914     ac_file_inputs=
13915     for ac_f
13916     do
13917       case $ac_f in
13918       -) ac_f="$tmp/stdin";;
13919       *) # Look for the file first in the build tree, then in the source tree
13920          # (if the path is not absolute).  The absolute path cannot be DOS-style,
13921          # because $ac_f cannot contain `:'.
13922          test -f "$ac_f" ||
13923            case $ac_f in
13924            [\\/$]*) false;;
13925            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13926            esac ||
13927            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13928 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13929    { (exit 1); exit 1; }; };;
13930       esac
13931       ac_file_inputs="$ac_file_inputs $ac_f"
13932     done
13933
13934     # Let's still pretend it is `configure' which instantiates (i.e., don't
13935     # use $as_me), people would be surprised to read:
13936     #    /* config.h.  Generated by config.status.  */
13937     configure_input="Generated from "`IFS=:
13938           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
13939     if test x"$ac_file" != x-; then
13940       configure_input="$ac_file.  $configure_input"
13941       { echo "$as_me:$LINENO: creating $ac_file" >&5
13942 echo "$as_me: creating $ac_file" >&6;}
13943     fi
13944
13945     case $ac_tag in
13946     *:-:* | *:-) cat >"$tmp/stdin";;
13947     esac
13948     ;;
13949   esac
13950
13951   ac_dir=`$as_dirname -- "$ac_file" ||
13952 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13953          X"$ac_file" : 'X\(//\)[^/]' \| \
13954          X"$ac_file" : 'X\(//\)$' \| \
13955          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13956 echo X"$ac_file" |
13957     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13958             s//\1/
13959             q
13960           }
13961           /^X\(\/\/\)[^/].*/{
13962             s//\1/
13963             q
13964           }
13965           /^X\(\/\/\)$/{
13966             s//\1/
13967             q
13968           }
13969           /^X\(\/\).*/{
13970             s//\1/
13971             q
13972           }
13973           s/.*/./; q'`
13974   { as_dir="$ac_dir"
13975   case $as_dir in #(
13976   -*) as_dir=./$as_dir;;
13977   esac
13978   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13979     as_dirs=
13980     while :; do
13981       case $as_dir in #(
13982       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
13983       *) as_qdir=$as_dir;;
13984       esac
13985       as_dirs="'$as_qdir' $as_dirs"
13986       as_dir=`$as_dirname -- "$as_dir" ||
13987 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13988          X"$as_dir" : 'X\(//\)[^/]' \| \
13989          X"$as_dir" : 'X\(//\)$' \| \
13990          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13991 echo X"$as_dir" |
13992     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13993             s//\1/
13994             q
13995           }
13996           /^X\(\/\/\)[^/].*/{
13997             s//\1/
13998             q
13999           }
14000           /^X\(\/\/\)$/{
14001             s//\1/
14002             q
14003           }
14004           /^X\(\/\).*/{
14005             s//\1/
14006             q
14007           }
14008           s/.*/./; q'`
14009       test -d "$as_dir" && break
14010     done
14011     test -z "$as_dirs" || eval "mkdir $as_dirs"
14012   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14013 echo "$as_me: error: cannot create directory $as_dir" >&2;}
14014    { (exit 1); exit 1; }; }; }
14015   ac_builddir=.
14016
14017 case "$ac_dir" in
14018 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14019 *)
14020   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14021   # A ".." for each directory in $ac_dir_suffix.
14022   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
14023   case $ac_top_builddir_sub in
14024   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14025   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14026   esac ;;
14027 esac
14028 ac_abs_top_builddir=$ac_pwd
14029 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14030 # for backward compatibility:
14031 ac_top_builddir=$ac_top_build_prefix
14032
14033 case $srcdir in
14034   .)  # We are building in place.
14035     ac_srcdir=.
14036     ac_top_srcdir=$ac_top_builddir_sub
14037     ac_abs_top_srcdir=$ac_pwd ;;
14038   [\\/]* | ?:[\\/]* )  # Absolute name.
14039     ac_srcdir=$srcdir$ac_dir_suffix;
14040     ac_top_srcdir=$srcdir
14041     ac_abs_top_srcdir=$srcdir ;;
14042   *) # Relative name.
14043     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14044     ac_top_srcdir=$ac_top_build_prefix$srcdir
14045     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14046 esac
14047 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14048
14049
14050   case $ac_mode in
14051   :F)
14052   #
14053   # CONFIG_FILE
14054   #
14055
14056   case $INSTALL in
14057   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14058   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14059   esac
14060 _ACEOF
14061
14062 cat >>$CONFIG_STATUS <<\_ACEOF
14063 # If the template does not know about datarootdir, expand it.
14064 # FIXME: This hack should be removed a few years after 2.60.
14065 ac_datarootdir_hack=; ac_datarootdir_seen=
14066
14067 case `sed -n '/datarootdir/ {
14068   p
14069   q
14070 }
14071 /@datadir@/p
14072 /@docdir@/p
14073 /@infodir@/p
14074 /@localedir@/p
14075 /@mandir@/p
14076 ' $ac_file_inputs` in
14077 *datarootdir*) ac_datarootdir_seen=yes;;
14078 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14079   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14080 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14081 _ACEOF
14082 cat >>$CONFIG_STATUS <<_ACEOF
14083   ac_datarootdir_hack='
14084   s&@datadir@&$datadir&g
14085   s&@docdir@&$docdir&g
14086   s&@infodir@&$infodir&g
14087   s&@localedir@&$localedir&g
14088   s&@mandir@&$mandir&g
14089     s&\\\${datarootdir}&$datarootdir&g' ;;
14090 esac
14091 _ACEOF
14092
14093 # Neutralize VPATH when `$srcdir' = `.'.
14094 # Shell code in configure.ac might set extrasub.
14095 # FIXME: do we really want to maintain this feature?
14096 cat >>$CONFIG_STATUS <<_ACEOF
14097   sed "$ac_vpsub
14098 $extrasub
14099 _ACEOF
14100 cat >>$CONFIG_STATUS <<\_ACEOF
14101 :t
14102 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14103 s&@configure_input@&$configure_input&;t t
14104 s&@top_builddir@&$ac_top_builddir_sub&;t t
14105 s&@srcdir@&$ac_srcdir&;t t
14106 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14107 s&@top_srcdir@&$ac_top_srcdir&;t t
14108 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14109 s&@builddir@&$ac_builddir&;t t
14110 s&@abs_builddir@&$ac_abs_builddir&;t t
14111 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14112 s&@INSTALL@&$ac_INSTALL&;t t
14113 $ac_datarootdir_hack
14114 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
14115
14116 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14117   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14118   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14119   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14120 which seems to be undefined.  Please make sure it is defined." >&5
14121 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14122 which seems to be undefined.  Please make sure it is defined." >&2;}
14123
14124   rm -f "$tmp/stdin"
14125   case $ac_file in
14126   -) cat "$tmp/out"; rm -f "$tmp/out";;
14127   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
14128   esac
14129  ;;
14130   :H)
14131   #
14132   # CONFIG_HEADER
14133   #
14134 _ACEOF
14135
14136 # Transform confdefs.h into a sed script `conftest.defines', that
14137 # substitutes the proper values into config.h.in to produce config.h.
14138 rm -f conftest.defines conftest.tail
14139 # First, append a space to every undef/define line, to ease matching.
14140 echo 's/$/ /' >conftest.defines
14141 # Then, protect against being on the right side of a sed subst, or in
14142 # an unquoted here document, in config.status.  If some macros were
14143 # called several times there might be several #defines for the same
14144 # symbol, which is useless.  But do not sort them, since the last
14145 # AC_DEFINE must be honored.
14146 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14147 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
14148 # NAME is the cpp macro being defined, VALUE is the value it is being given.
14149 # PARAMS is the parameter list in the macro definition--in most cases, it's
14150 # just an empty string.
14151 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
14152 ac_dB='\\)[      (].*,\\1define\\2'
14153 ac_dC=' '
14154 ac_dD=' ,'
14155
14156 uniq confdefs.h |
14157   sed -n '
14158         t rset
14159         :rset
14160         s/^[     ]*#[    ]*define[       ][      ]*//
14161         t ok
14162         d
14163         :ok
14164         s/[\\&,]/\\&/g
14165         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
14166         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
14167   ' >>conftest.defines
14168
14169 # Remove the space that was appended to ease matching.
14170 # Then replace #undef with comments.  This is necessary, for
14171 # example, in the case of _POSIX_SOURCE, which is predefined and required
14172 # on some systems where configure will not decide to define it.
14173 # (The regexp can be short, since the line contains either #define or #undef.)
14174 echo 's/ $//
14175 s,^[     #]*u.*,/* & */,' >>conftest.defines
14176
14177 # Break up conftest.defines:
14178 ac_max_sed_lines=50
14179
14180 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
14181 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
14182 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
14183 # et cetera.
14184 ac_in='$ac_file_inputs'
14185 ac_out='"$tmp/out1"'
14186 ac_nxt='"$tmp/out2"'
14187
14188 while :
14189 do
14190   # Write a here document:
14191     cat >>$CONFIG_STATUS <<_ACEOF
14192     # First, check the format of the line:
14193     cat >"\$tmp/defines.sed" <<\\CEOF
14194 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
14195 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
14196 b
14197 :def
14198 _ACEOF
14199   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
14200   echo 'CEOF
14201     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
14202   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
14203   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
14204   grep . conftest.tail >/dev/null || break
14205   rm -f conftest.defines
14206   mv conftest.tail conftest.defines
14207 done
14208 rm -f conftest.defines conftest.tail
14209
14210 echo "ac_result=$ac_in" >>$CONFIG_STATUS
14211 cat >>$CONFIG_STATUS <<\_ACEOF
14212   if test x"$ac_file" != x-; then
14213     echo "/* $configure_input  */" >"$tmp/config.h"
14214     cat "$ac_result" >>"$tmp/config.h"
14215     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
14216       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14217 echo "$as_me: $ac_file is unchanged" >&6;}
14218     else
14219       rm -f $ac_file
14220       mv "$tmp/config.h" $ac_file
14221     fi
14222   else
14223     echo "/* $configure_input  */"
14224     cat "$ac_result"
14225   fi
14226   rm -f "$tmp/out12"
14227 # Compute $ac_file's index in $config_headers.
14228 _am_stamp_count=1
14229 for _am_header in $config_headers :; do
14230   case $_am_header in
14231     $ac_file | $ac_file:* )
14232       break ;;
14233     * )
14234       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14235   esac
14236 done
14237 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
14238 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14239          X$ac_file : 'X\(//\)[^/]' \| \
14240          X$ac_file : 'X\(//\)$' \| \
14241          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
14242 echo X$ac_file |
14243     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14244             s//\1/
14245             q
14246           }
14247           /^X\(\/\/\)[^/].*/{
14248             s//\1/
14249             q
14250           }
14251           /^X\(\/\/\)$/{
14252             s//\1/
14253             q
14254           }
14255           /^X\(\/\).*/{
14256             s//\1/
14257             q
14258           }
14259           s/.*/./; q'`/stamp-h$_am_stamp_count
14260  ;;
14261
14262   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
14263 echo "$as_me: executing $ac_file commands" >&6;}
14264  ;;
14265   esac
14266
14267
14268   case $ac_file$ac_mode in
14269     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14270   # Strip MF so we end up with the name of the file.
14271   mf=`echo "$mf" | sed -e 's/:.*$//'`
14272   # Check whether this is an Automake generated Makefile or not.
14273   # We used to match only the files named `Makefile.in', but
14274   # some people rename them; so instead we look at the file content.
14275   # Grep'ing the first line is not enough: some people post-process
14276   # each Makefile.in and add a new line on top of each file to say so.
14277   # So let's grep whole file.
14278   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
14279     dirpart=`$as_dirname -- "$mf" ||
14280 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14281          X"$mf" : 'X\(//\)[^/]' \| \
14282          X"$mf" : 'X\(//\)$' \| \
14283          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14284 echo X"$mf" |
14285     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14286             s//\1/
14287             q
14288           }
14289           /^X\(\/\/\)[^/].*/{
14290             s//\1/
14291             q
14292           }
14293           /^X\(\/\/\)$/{
14294             s//\1/
14295             q
14296           }
14297           /^X\(\/\).*/{
14298             s//\1/
14299             q
14300           }
14301           s/.*/./; q'`
14302   else
14303     continue
14304   fi
14305   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
14306   # Extract the definition of DEP_FILES from the Makefile without
14307   # running `make'.
14308   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
14309   test -z "$DEPDIR" && continue
14310   # When using ansi2knr, U may be empty or an underscore; expand it
14311   U=`sed -n -e '/^U = / s///p' < "$mf"`
14312   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
14313   # We invoke sed twice because it is the simplest approach to
14314   # changing $(DEPDIR) to its actual value in the expansion.
14315   for file in `sed -n -e '
14316     /^DEP_FILES = .*\\\\$/ {
14317       s/^DEP_FILES = //
14318       :loop
14319         s/\\\\$//
14320         p
14321         n
14322         /\\\\$/ b loop
14323       p
14324     }
14325     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
14326        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14327     # Make sure the directory exists.
14328     test -f "$dirpart/$file" && continue
14329     fdir=`$as_dirname -- "$file" ||
14330 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14331          X"$file" : 'X\(//\)[^/]' \| \
14332          X"$file" : 'X\(//\)$' \| \
14333          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14334 echo X"$file" |
14335     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14336             s//\1/
14337             q
14338           }
14339           /^X\(\/\/\)[^/].*/{
14340             s//\1/
14341             q
14342           }
14343           /^X\(\/\/\)$/{
14344             s//\1/
14345             q
14346           }
14347           /^X\(\/\).*/{
14348             s//\1/
14349             q
14350           }
14351           s/.*/./; q'`
14352     { as_dir=$dirpart/$fdir
14353   case $as_dir in #(
14354   -*) as_dir=./$as_dir;;
14355   esac
14356   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14357     as_dirs=
14358     while :; do
14359       case $as_dir in #(
14360       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14361       *) as_qdir=$as_dir;;
14362       esac
14363       as_dirs="'$as_qdir' $as_dirs"
14364       as_dir=`$as_dirname -- "$as_dir" ||
14365 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14366          X"$as_dir" : 'X\(//\)[^/]' \| \
14367          X"$as_dir" : 'X\(//\)$' \| \
14368          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14369 echo X"$as_dir" |
14370     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14371             s//\1/
14372             q
14373           }
14374           /^X\(\/\/\)[^/].*/{
14375             s//\1/
14376             q
14377           }
14378           /^X\(\/\/\)$/{
14379             s//\1/
14380             q
14381           }
14382           /^X\(\/\).*/{
14383             s//\1/
14384             q
14385           }
14386           s/.*/./; q'`
14387       test -d "$as_dir" && break
14388     done
14389     test -z "$as_dirs" || eval "mkdir $as_dirs"
14390   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14391 echo "$as_me: error: cannot create directory $as_dir" >&2;}
14392    { (exit 1); exit 1; }; }; }
14393     # echo "creating $dirpart/$file"
14394     echo '# dummy' > "$dirpart/$file"
14395   done
14396 done
14397  ;;
14398
14399   esac
14400 done # for ac_tag
14401
14402
14403 { (exit 0); exit 0; }
14404 _ACEOF
14405 chmod +x $CONFIG_STATUS
14406 ac_clean_files=$ac_clean_files_save
14407
14408
14409 # configure is writing to config.log, and then calls config.status.
14410 # config.status does its own redirection, appending to config.log.
14411 # Unfortunately, on DOS this fails, as config.log is still kept open
14412 # by configure, so config.status won't be able to write to it; its
14413 # output is simply discarded.  So we exec the FD to /dev/null,
14414 # effectively closing config.log, so it can be properly (re)opened and
14415 # appended to by config.status.  When coming back to configure, we
14416 # need to make the FD available again.
14417 if test "$no_create" != yes; then
14418   ac_cs_success=:
14419   ac_config_status_args=
14420   test "$silent" = yes &&
14421     ac_config_status_args="$ac_config_status_args --quiet"
14422   exec 5>/dev/null
14423   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14424   exec 5>>config.log
14425   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14426   # would make configure fail if this is the last instruction.
14427   $ac_cs_success || { (exit 1); exit 1; }
14428 fi
14429