d9520231da58dfa022f5fb367cb904a2eeb6dec8
[ctsim.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60.
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 #if HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #if HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #if STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # if HAVE_STDLIB_H
579 #  include <stdlib.h>
580 # endif
581 #endif
582 #if HAVE_STRING_H
583 # if !STDC_HEADERS && HAVE_MEMORY_H
584 #  include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #if HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #if HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #if HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #if 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.60
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.60.  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.1
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   echo "$as_me: failed program was:" >&5
2921 sed 's/^/| /' conftest.$ac_ext >&5
2922
2923 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2924 See \`config.log' for more details." >&5
2925 echo "$as_me: error: C compiler cannot create executables
2926 See \`config.log' for more details." >&2;}
2927    { (exit 77); exit 77; }; }
2928 fi
2929
2930 ac_exeext=$ac_cv_exeext
2931 { echo "$as_me:$LINENO: result: $ac_file" >&5
2932 echo "${ECHO_T}$ac_file" >&6; }
2933
2934 # Check that the compiler produces executables we can run.  If not, either
2935 # the compiler is broken, or we cross compile.
2936 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2937 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2938 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2939 # If not cross compiling, check that we can run a simple program.
2940 if test "$cross_compiling" != yes; then
2941   if { ac_try='./$ac_file'
2942   { (case "(($ac_try" in
2943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2944   *) ac_try_echo=$ac_try;;
2945 esac
2946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2947   (eval "$ac_try") 2>&5
2948   ac_status=$?
2949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950   (exit $ac_status); }; }; then
2951     cross_compiling=no
2952   else
2953     if test "$cross_compiling" = maybe; then
2954         cross_compiling=yes
2955     else
2956         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2957 If you meant to cross compile, use \`--host'.
2958 See \`config.log' for more details." >&5
2959 echo "$as_me: error: cannot run C compiled programs.
2960 If you meant to cross compile, use \`--host'.
2961 See \`config.log' for more details." >&2;}
2962    { (exit 1); exit 1; }; }
2963     fi
2964   fi
2965 fi
2966 { echo "$as_me:$LINENO: result: yes" >&5
2967 echo "${ECHO_T}yes" >&6; }
2968
2969 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2970 ac_clean_files=$ac_clean_files_save
2971 # Check that the compiler produces executables we can run.  If not, either
2972 # the compiler is broken, or we cross compile.
2973 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2974 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2975 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2976 echo "${ECHO_T}$cross_compiling" >&6; }
2977
2978 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2979 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2980 if { (ac_try="$ac_link"
2981 case "(($ac_try" in
2982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983   *) ac_try_echo=$ac_try;;
2984 esac
2985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2986   (eval "$ac_link") 2>&5
2987   ac_status=$?
2988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989   (exit $ac_status); }; then
2990   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2991 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2992 # work properly (i.e., refer to `conftest.exe'), while it won't with
2993 # `rm'.
2994 for ac_file in conftest.exe conftest conftest.*; do
2995   test -f "$ac_file" || continue
2996   case $ac_file in
2997     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2998     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2999           break;;
3000     * ) break;;
3001   esac
3002 done
3003 else
3004   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3005 See \`config.log' for more details." >&5
3006 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3007 See \`config.log' for more details." >&2;}
3008    { (exit 1); exit 1; }; }
3009 fi
3010
3011 rm -f conftest$ac_cv_exeext
3012 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3013 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3014
3015 rm -f conftest.$ac_ext
3016 EXEEXT=$ac_cv_exeext
3017 ac_exeext=$EXEEXT
3018 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3019 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3020 if test "${ac_cv_objext+set}" = set; then
3021   echo $ECHO_N "(cached) $ECHO_C" >&6
3022 else
3023   cat >conftest.$ac_ext <<_ACEOF
3024 /* confdefs.h.  */
3025 _ACEOF
3026 cat confdefs.h >>conftest.$ac_ext
3027 cat >>conftest.$ac_ext <<_ACEOF
3028 /* end confdefs.h.  */
3029
3030 int
3031 main ()
3032 {
3033
3034   ;
3035   return 0;
3036 }
3037 _ACEOF
3038 rm -f conftest.o conftest.obj
3039 if { (ac_try="$ac_compile"
3040 case "(($ac_try" in
3041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042   *) ac_try_echo=$ac_try;;
3043 esac
3044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3045   (eval "$ac_compile") 2>&5
3046   ac_status=$?
3047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048   (exit $ac_status); }; then
3049   for ac_file in conftest.o conftest.obj conftest.*; do
3050   test -f "$ac_file" || continue;
3051   case $ac_file in
3052     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3053     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3054        break;;
3055   esac
3056 done
3057 else
3058   echo "$as_me: failed program was:" >&5
3059 sed 's/^/| /' conftest.$ac_ext >&5
3060
3061 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3062 See \`config.log' for more details." >&5
3063 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3064 See \`config.log' for more details." >&2;}
3065    { (exit 1); exit 1; }; }
3066 fi
3067
3068 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3069 fi
3070 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3071 echo "${ECHO_T}$ac_cv_objext" >&6; }
3072 OBJEXT=$ac_cv_objext
3073 ac_objext=$OBJEXT
3074 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3075 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3076 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3077   echo $ECHO_N "(cached) $ECHO_C" >&6
3078 else
3079   cat >conftest.$ac_ext <<_ACEOF
3080 /* confdefs.h.  */
3081 _ACEOF
3082 cat confdefs.h >>conftest.$ac_ext
3083 cat >>conftest.$ac_ext <<_ACEOF
3084 /* end confdefs.h.  */
3085
3086 int
3087 main ()
3088 {
3089 #ifndef __GNUC__
3090        choke me
3091 #endif
3092
3093   ;
3094   return 0;
3095 }
3096 _ACEOF
3097 rm -f conftest.$ac_objext
3098 if { (ac_try="$ac_compile"
3099 case "(($ac_try" in
3100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101   *) ac_try_echo=$ac_try;;
3102 esac
3103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3104   (eval "$ac_compile") 2>conftest.er1
3105   ac_status=$?
3106   grep -v '^ *+' conftest.er1 >conftest.err
3107   rm -f conftest.er1
3108   cat conftest.err >&5
3109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110   (exit $ac_status); } &&
3111          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3112   { (case "(($ac_try" in
3113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114   *) ac_try_echo=$ac_try;;
3115 esac
3116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3117   (eval "$ac_try") 2>&5
3118   ac_status=$?
3119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120   (exit $ac_status); }; } &&
3121          { ac_try='test -s conftest.$ac_objext'
3122   { (case "(($ac_try" in
3123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124   *) ac_try_echo=$ac_try;;
3125 esac
3126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3127   (eval "$ac_try") 2>&5
3128   ac_status=$?
3129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130   (exit $ac_status); }; }; then
3131   ac_compiler_gnu=yes
3132 else
3133   echo "$as_me: failed program was:" >&5
3134 sed 's/^/| /' conftest.$ac_ext >&5
3135
3136         ac_compiler_gnu=no
3137 fi
3138
3139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3140 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3141
3142 fi
3143 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3144 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3145 GCC=`test $ac_compiler_gnu = yes && echo yes`
3146 ac_test_CFLAGS=${CFLAGS+set}
3147 ac_save_CFLAGS=$CFLAGS
3148 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3149 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3150 if test "${ac_cv_prog_cc_g+set}" = set; then
3151   echo $ECHO_N "(cached) $ECHO_C" >&6
3152 else
3153   ac_save_c_werror_flag=$ac_c_werror_flag
3154    ac_c_werror_flag=yes
3155    ac_cv_prog_cc_g=no
3156    CFLAGS="-g"
3157    cat >conftest.$ac_ext <<_ACEOF
3158 /* confdefs.h.  */
3159 _ACEOF
3160 cat confdefs.h >>conftest.$ac_ext
3161 cat >>conftest.$ac_ext <<_ACEOF
3162 /* end confdefs.h.  */
3163
3164 int
3165 main ()
3166 {
3167
3168   ;
3169   return 0;
3170 }
3171 _ACEOF
3172 rm -f conftest.$ac_objext
3173 if { (ac_try="$ac_compile"
3174 case "(($ac_try" in
3175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176   *) ac_try_echo=$ac_try;;
3177 esac
3178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3179   (eval "$ac_compile") 2>conftest.er1
3180   ac_status=$?
3181   grep -v '^ *+' conftest.er1 >conftest.err
3182   rm -f conftest.er1
3183   cat conftest.err >&5
3184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185   (exit $ac_status); } &&
3186          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3187   { (case "(($ac_try" in
3188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189   *) ac_try_echo=$ac_try;;
3190 esac
3191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3192   (eval "$ac_try") 2>&5
3193   ac_status=$?
3194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195   (exit $ac_status); }; } &&
3196          { ac_try='test -s conftest.$ac_objext'
3197   { (case "(($ac_try" in
3198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199   *) ac_try_echo=$ac_try;;
3200 esac
3201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3202   (eval "$ac_try") 2>&5
3203   ac_status=$?
3204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205   (exit $ac_status); }; }; then
3206   ac_cv_prog_cc_g=yes
3207 else
3208   echo "$as_me: failed program was:" >&5
3209 sed 's/^/| /' conftest.$ac_ext >&5
3210
3211         CFLAGS=""
3212       cat >conftest.$ac_ext <<_ACEOF
3213 /* confdefs.h.  */
3214 _ACEOF
3215 cat confdefs.h >>conftest.$ac_ext
3216 cat >>conftest.$ac_ext <<_ACEOF
3217 /* end confdefs.h.  */
3218
3219 int
3220 main ()
3221 {
3222
3223   ;
3224   return 0;
3225 }
3226 _ACEOF
3227 rm -f conftest.$ac_objext
3228 if { (ac_try="$ac_compile"
3229 case "(($ac_try" in
3230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3231   *) ac_try_echo=$ac_try;;
3232 esac
3233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3234   (eval "$ac_compile") 2>conftest.er1
3235   ac_status=$?
3236   grep -v '^ *+' conftest.er1 >conftest.err
3237   rm -f conftest.er1
3238   cat conftest.err >&5
3239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240   (exit $ac_status); } &&
3241          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3242   { (case "(($ac_try" in
3243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3244   *) ac_try_echo=$ac_try;;
3245 esac
3246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3247   (eval "$ac_try") 2>&5
3248   ac_status=$?
3249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250   (exit $ac_status); }; } &&
3251          { ac_try='test -s conftest.$ac_objext'
3252   { (case "(($ac_try" in
3253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3254   *) ac_try_echo=$ac_try;;
3255 esac
3256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3257   (eval "$ac_try") 2>&5
3258   ac_status=$?
3259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260   (exit $ac_status); }; }; then
3261   :
3262 else
3263   echo "$as_me: failed program was:" >&5
3264 sed 's/^/| /' conftest.$ac_ext >&5
3265
3266         ac_c_werror_flag=$ac_save_c_werror_flag
3267          CFLAGS="-g"
3268          cat >conftest.$ac_ext <<_ACEOF
3269 /* confdefs.h.  */
3270 _ACEOF
3271 cat confdefs.h >>conftest.$ac_ext
3272 cat >>conftest.$ac_ext <<_ACEOF
3273 /* end confdefs.h.  */
3274
3275 int
3276 main ()
3277 {
3278
3279   ;
3280   return 0;
3281 }
3282 _ACEOF
3283 rm -f conftest.$ac_objext
3284 if { (ac_try="$ac_compile"
3285 case "(($ac_try" in
3286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287   *) ac_try_echo=$ac_try;;
3288 esac
3289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3290   (eval "$ac_compile") 2>conftest.er1
3291   ac_status=$?
3292   grep -v '^ *+' conftest.er1 >conftest.err
3293   rm -f conftest.er1
3294   cat conftest.err >&5
3295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296   (exit $ac_status); } &&
3297          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3298   { (case "(($ac_try" in
3299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3300   *) ac_try_echo=$ac_try;;
3301 esac
3302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3303   (eval "$ac_try") 2>&5
3304   ac_status=$?
3305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306   (exit $ac_status); }; } &&
3307          { ac_try='test -s conftest.$ac_objext'
3308   { (case "(($ac_try" in
3309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3310   *) ac_try_echo=$ac_try;;
3311 esac
3312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3313   (eval "$ac_try") 2>&5
3314   ac_status=$?
3315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316   (exit $ac_status); }; }; then
3317   ac_cv_prog_cc_g=yes
3318 else
3319   echo "$as_me: failed program was:" >&5
3320 sed 's/^/| /' conftest.$ac_ext >&5
3321
3322
3323 fi
3324
3325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3326 fi
3327
3328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3329 fi
3330
3331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3332    ac_c_werror_flag=$ac_save_c_werror_flag
3333 fi
3334 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3335 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3336 if test "$ac_test_CFLAGS" = set; then
3337   CFLAGS=$ac_save_CFLAGS
3338 elif test $ac_cv_prog_cc_g = yes; then
3339   if test "$GCC" = yes; then
3340     CFLAGS="-g -O2"
3341   else
3342     CFLAGS="-g"
3343   fi
3344 else
3345   if test "$GCC" = yes; then
3346     CFLAGS="-O2"
3347   else
3348     CFLAGS=
3349   fi
3350 fi
3351 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3352 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3353 if test "${ac_cv_prog_cc_c89+set}" = set; then
3354   echo $ECHO_N "(cached) $ECHO_C" >&6
3355 else
3356   ac_cv_prog_cc_c89=no
3357 ac_save_CC=$CC
3358 cat >conftest.$ac_ext <<_ACEOF
3359 /* confdefs.h.  */
3360 _ACEOF
3361 cat confdefs.h >>conftest.$ac_ext
3362 cat >>conftest.$ac_ext <<_ACEOF
3363 /* end confdefs.h.  */
3364 #include <stdarg.h>
3365 #include <stdio.h>
3366 #include <sys/types.h>
3367 #include <sys/stat.h>
3368 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3369 struct buf { int x; };
3370 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3371 static char *e (p, i)
3372      char **p;
3373      int i;
3374 {
3375   return p[i];
3376 }
3377 static char *f (char * (*g) (char **, int), char **p, ...)
3378 {
3379   char *s;
3380   va_list v;
3381   va_start (v,p);
3382   s = g (p, va_arg (v,int));
3383   va_end (v);
3384   return s;
3385 }
3386
3387 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3388    function prototypes and stuff, but not '\xHH' hex character constants.
3389    These don't provoke an error unfortunately, instead are silently treated
3390    as 'x'.  The following induces an error, until -std is added to get
3391    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3392    array size at least.  It's necessary to write '\x00'==0 to get something
3393    that's true only with -std.  */
3394 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3395
3396 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3397    inside strings and character constants.  */
3398 #define FOO(x) 'x'
3399 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3400
3401 int test (int i, double x);
3402 struct s1 {int (*f) (int a);};
3403 struct s2 {int (*f) (double a);};
3404 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3405 int argc;
3406 char **argv;
3407 int
3408 main ()
3409 {
3410 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3411   ;
3412   return 0;
3413 }
3414 _ACEOF
3415 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3416         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3417 do
3418   CC="$ac_save_CC $ac_arg"
3419   rm -f conftest.$ac_objext
3420 if { (ac_try="$ac_compile"
3421 case "(($ac_try" in
3422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3423   *) ac_try_echo=$ac_try;;
3424 esac
3425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3426   (eval "$ac_compile") 2>conftest.er1
3427   ac_status=$?
3428   grep -v '^ *+' conftest.er1 >conftest.err
3429   rm -f conftest.er1
3430   cat conftest.err >&5
3431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432   (exit $ac_status); } &&
3433          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3434   { (case "(($ac_try" in
3435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436   *) ac_try_echo=$ac_try;;
3437 esac
3438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3439   (eval "$ac_try") 2>&5
3440   ac_status=$?
3441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442   (exit $ac_status); }; } &&
3443          { ac_try='test -s conftest.$ac_objext'
3444   { (case "(($ac_try" in
3445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3446   *) ac_try_echo=$ac_try;;
3447 esac
3448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3449   (eval "$ac_try") 2>&5
3450   ac_status=$?
3451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452   (exit $ac_status); }; }; then
3453   ac_cv_prog_cc_c89=$ac_arg
3454 else
3455   echo "$as_me: failed program was:" >&5
3456 sed 's/^/| /' conftest.$ac_ext >&5
3457
3458
3459 fi
3460
3461 rm -f core conftest.err conftest.$ac_objext
3462   test "x$ac_cv_prog_cc_c89" != "xno" && break
3463 done
3464 rm -f conftest.$ac_ext
3465 CC=$ac_save_CC
3466
3467 fi
3468 # AC_CACHE_VAL
3469 case "x$ac_cv_prog_cc_c89" in
3470   x)
3471     { echo "$as_me:$LINENO: result: none needed" >&5
3472 echo "${ECHO_T}none needed" >&6; } ;;
3473   xno)
3474     { echo "$as_me:$LINENO: result: unsupported" >&5
3475 echo "${ECHO_T}unsupported" >&6; } ;;
3476   *)
3477     CC="$CC $ac_cv_prog_cc_c89"
3478     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3479 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3480 esac
3481
3482
3483 ac_ext=c
3484 ac_cpp='$CPP $CPPFLAGS'
3485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3488 DEPDIR="${am__leading_dot}deps"
3489
3490 ac_config_commands="$ac_config_commands depfiles"
3491
3492
3493 am_make=${MAKE-make}
3494 cat > confinc << 'END'
3495 am__doit:
3496         @echo done
3497 .PHONY: am__doit
3498 END
3499 # If we don't find an include directive, just comment out the code.
3500 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3501 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3502 am__include="#"
3503 am__quote=
3504 _am_result=none
3505 # First try GNU make style include.
3506 echo "include confinc" > confmf
3507 # We grep out `Entering directory' and `Leaving directory'
3508 # messages which can occur if `w' ends up in MAKEFLAGS.
3509 # In particular we don't look at `^make:' because GNU make might
3510 # be invoked under some other name (usually "gmake"), in which
3511 # case it prints its new name instead of `make'.
3512 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3513    am__include=include
3514    am__quote=
3515    _am_result=GNU
3516 fi
3517 # Now try BSD make style include.
3518 if test "$am__include" = "#"; then
3519    echo '.include "confinc"' > confmf
3520    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3521       am__include=.include
3522       am__quote="\""
3523       _am_result=BSD
3524    fi
3525 fi
3526
3527
3528 { echo "$as_me:$LINENO: result: $_am_result" >&5
3529 echo "${ECHO_T}$_am_result" >&6; }
3530 rm -f confinc confmf
3531
3532 # Check whether --enable-dependency-tracking was given.
3533 if test "${enable_dependency_tracking+set}" = set; then
3534   enableval=$enable_dependency_tracking;
3535 fi
3536
3537 if test "x$enable_dependency_tracking" != xno; then
3538   am_depcomp="$ac_aux_dir/depcomp"
3539   AMDEPBACKSLASH='\'
3540 fi
3541
3542
3543 if test "x$enable_dependency_tracking" != xno; then
3544   AMDEP_TRUE=
3545   AMDEP_FALSE='#'
3546 else
3547   AMDEP_TRUE='#'
3548   AMDEP_FALSE=
3549 fi
3550
3551
3552
3553
3554 depcc="$CC"   am_compiler_list=
3555
3556 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3557 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3558 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3559   echo $ECHO_N "(cached) $ECHO_C" >&6
3560 else
3561   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3562   # We make a subdir and do the tests there.  Otherwise we can end up
3563   # making bogus files that we don't know about and never remove.  For
3564   # instance it was reported that on HP-UX the gcc test will end up
3565   # making a dummy file named `D' -- because `-MD' means `put the output
3566   # in D'.
3567   mkdir conftest.dir
3568   # Copy depcomp to subdir because otherwise we won't find it if we're
3569   # using a relative directory.
3570   cp "$am_depcomp" conftest.dir
3571   cd conftest.dir
3572   # We will build objects and dependencies in a subdirectory because
3573   # it helps to detect inapplicable dependency modes.  For instance
3574   # both Tru64's cc and ICC support -MD to output dependencies as a
3575   # side effect of compilation, but ICC will put the dependencies in
3576   # the current directory while Tru64 will put them in the object
3577   # directory.
3578   mkdir sub
3579
3580   am_cv_CC_dependencies_compiler_type=none
3581   if test "$am_compiler_list" = ""; then
3582      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3583   fi
3584   for depmode in $am_compiler_list; do
3585     # Setup a source with many dependencies, because some compilers
3586     # like to wrap large dependency lists on column 80 (with \), and
3587     # we should not choose a depcomp mode which is confused by this.
3588     #
3589     # We need to recreate these files for each test, as the compiler may
3590     # overwrite some of them when testing with obscure command lines.
3591     # This happens at least with the AIX C compiler.
3592     : > sub/conftest.c
3593     for i in 1 2 3 4 5 6; do
3594       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3595       : > sub/conftst$i.h
3596     done
3597     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3598
3599     case $depmode in
3600     nosideeffect)
3601       # after this tag, mechanisms are not by side-effect, so they'll
3602       # only be used when explicitly requested
3603       if test "x$enable_dependency_tracking" = xyes; then
3604         continue
3605       else
3606         break
3607       fi
3608       ;;
3609     none) break ;;
3610     esac
3611     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3612     # mode.  It turns out that the SunPro C++ compiler does not properly
3613     # handle `-M -o', and we need to detect this.
3614     if depmode=$depmode \
3615        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3616        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3617        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3618          >/dev/null 2>conftest.err &&
3619        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3620        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3621        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3622       # icc doesn't choke on unknown options, it will just issue warnings
3623       # (even with -Werror).  So we grep stderr for any message
3624       # that says an option was ignored.
3625       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3626         am_cv_CC_dependencies_compiler_type=$depmode
3627         break
3628       fi
3629     fi
3630   done
3631
3632   cd ..
3633   rm -rf conftest.dir
3634 else
3635   am_cv_CC_dependencies_compiler_type=none
3636 fi
3637
3638 fi
3639 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3640 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3641 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3642
3643
3644
3645 if
3646   test "x$enable_dependency_tracking" != xno \
3647   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3648   am__fastdepCC_TRUE=
3649   am__fastdepCC_FALSE='#'
3650 else
3651   am__fastdepCC_TRUE='#'
3652   am__fastdepCC_FALSE=
3653 fi
3654
3655
3656 ac_ext=cpp
3657 ac_cpp='$CXXCPP $CPPFLAGS'
3658 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3659 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3660 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3661 if test -z "$CXX"; then
3662   if test -n "$CCC"; then
3663     CXX=$CCC
3664   else
3665     if test -n "$ac_tool_prefix"; then
3666   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3667   do
3668     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3669 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3672 if test "${ac_cv_prog_CXX+set}" = set; then
3673   echo $ECHO_N "(cached) $ECHO_C" >&6
3674 else
3675   if test -n "$CXX"; then
3676   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3677 else
3678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3679 for as_dir in $PATH
3680 do
3681   IFS=$as_save_IFS
3682   test -z "$as_dir" && as_dir=.
3683   for ac_exec_ext in '' $ac_executable_extensions; do
3684   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3685     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3686     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3687     break 2
3688   fi
3689 done
3690 done
3691 IFS=$as_save_IFS
3692
3693 fi
3694 fi
3695 CXX=$ac_cv_prog_CXX
3696 if test -n "$CXX"; then
3697   { echo "$as_me:$LINENO: result: $CXX" >&5
3698 echo "${ECHO_T}$CXX" >&6; }
3699 else
3700   { echo "$as_me:$LINENO: result: no" >&5
3701 echo "${ECHO_T}no" >&6; }
3702 fi
3703
3704
3705     test -n "$CXX" && break
3706   done
3707 fi
3708 if test -z "$CXX"; then
3709   ac_ct_CXX=$CXX
3710   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3711 do
3712   # Extract the first word of "$ac_prog", so it can be a program name with args.
3713 set dummy $ac_prog; ac_word=$2
3714 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3716 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3717   echo $ECHO_N "(cached) $ECHO_C" >&6
3718 else
3719   if test -n "$ac_ct_CXX"; then
3720   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3721 else
3722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3723 for as_dir in $PATH
3724 do
3725   IFS=$as_save_IFS
3726   test -z "$as_dir" && as_dir=.
3727   for ac_exec_ext in '' $ac_executable_extensions; do
3728   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3729     ac_cv_prog_ac_ct_CXX="$ac_prog"
3730     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3731     break 2
3732   fi
3733 done
3734 done
3735 IFS=$as_save_IFS
3736
3737 fi
3738 fi
3739 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3740 if test -n "$ac_ct_CXX"; then
3741   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3742 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3743 else
3744   { echo "$as_me:$LINENO: result: no" >&5
3745 echo "${ECHO_T}no" >&6; }
3746 fi
3747
3748
3749   test -n "$ac_ct_CXX" && break
3750 done
3751
3752   if test "x$ac_ct_CXX" = x; then
3753     CXX="g++"
3754   else
3755     case $cross_compiling:$ac_tool_warned in
3756 yes:)
3757 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3758 whose name does not start with the host triplet.  If you think this
3759 configuration is useful to you, please write to autoconf@gnu.org." >&5
3760 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3761 whose name does not start with the host triplet.  If you think this
3762 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3763 ac_tool_warned=yes ;;
3764 esac
3765     CXX=$ac_ct_CXX
3766   fi
3767 fi
3768
3769   fi
3770 fi
3771 # Provide some information about the compiler.
3772 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3773 ac_compiler=`set X $ac_compile; echo $2`
3774 { (ac_try="$ac_compiler --version >&5"
3775 case "(($ac_try" in
3776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3777   *) ac_try_echo=$ac_try;;
3778 esac
3779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3780   (eval "$ac_compiler --version >&5") 2>&5
3781   ac_status=$?
3782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783   (exit $ac_status); }
3784 { (ac_try="$ac_compiler -v >&5"
3785 case "(($ac_try" in
3786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3787   *) ac_try_echo=$ac_try;;
3788 esac
3789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3790   (eval "$ac_compiler -v >&5") 2>&5
3791   ac_status=$?
3792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793   (exit $ac_status); }
3794 { (ac_try="$ac_compiler -V >&5"
3795 case "(($ac_try" in
3796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3797   *) ac_try_echo=$ac_try;;
3798 esac
3799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3800   (eval "$ac_compiler -V >&5") 2>&5
3801   ac_status=$?
3802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803   (exit $ac_status); }
3804
3805 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3806 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3807 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3808   echo $ECHO_N "(cached) $ECHO_C" >&6
3809 else
3810   cat >conftest.$ac_ext <<_ACEOF
3811 /* confdefs.h.  */
3812 _ACEOF
3813 cat confdefs.h >>conftest.$ac_ext
3814 cat >>conftest.$ac_ext <<_ACEOF
3815 /* end confdefs.h.  */
3816
3817 int
3818 main ()
3819 {
3820 #ifndef __GNUC__
3821        choke me
3822 #endif
3823
3824   ;
3825   return 0;
3826 }
3827 _ACEOF
3828 rm -f conftest.$ac_objext
3829 if { (ac_try="$ac_compile"
3830 case "(($ac_try" in
3831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3832   *) ac_try_echo=$ac_try;;
3833 esac
3834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3835   (eval "$ac_compile") 2>conftest.er1
3836   ac_status=$?
3837   grep -v '^ *+' conftest.er1 >conftest.err
3838   rm -f conftest.er1
3839   cat conftest.err >&5
3840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841   (exit $ac_status); } &&
3842          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3843   { (case "(($ac_try" in
3844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3845   *) ac_try_echo=$ac_try;;
3846 esac
3847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3848   (eval "$ac_try") 2>&5
3849   ac_status=$?
3850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851   (exit $ac_status); }; } &&
3852          { ac_try='test -s conftest.$ac_objext'
3853   { (case "(($ac_try" in
3854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3855   *) ac_try_echo=$ac_try;;
3856 esac
3857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3858   (eval "$ac_try") 2>&5
3859   ac_status=$?
3860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861   (exit $ac_status); }; }; then
3862   ac_compiler_gnu=yes
3863 else
3864   echo "$as_me: failed program was:" >&5
3865 sed 's/^/| /' conftest.$ac_ext >&5
3866
3867         ac_compiler_gnu=no
3868 fi
3869
3870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3871 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3872
3873 fi
3874 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3875 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3876 GXX=`test $ac_compiler_gnu = yes && echo yes`
3877 ac_test_CXXFLAGS=${CXXFLAGS+set}
3878 ac_save_CXXFLAGS=$CXXFLAGS
3879 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3880 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3881 if test "${ac_cv_prog_cxx_g+set}" = set; then
3882   echo $ECHO_N "(cached) $ECHO_C" >&6
3883 else
3884   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3885    ac_cxx_werror_flag=yes
3886    ac_cv_prog_cxx_g=no
3887    CXXFLAGS="-g"
3888    cat >conftest.$ac_ext <<_ACEOF
3889 /* confdefs.h.  */
3890 _ACEOF
3891 cat confdefs.h >>conftest.$ac_ext
3892 cat >>conftest.$ac_ext <<_ACEOF
3893 /* end confdefs.h.  */
3894
3895 int
3896 main ()
3897 {
3898
3899   ;
3900   return 0;
3901 }
3902 _ACEOF
3903 rm -f conftest.$ac_objext
3904 if { (ac_try="$ac_compile"
3905 case "(($ac_try" in
3906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3907   *) ac_try_echo=$ac_try;;
3908 esac
3909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3910   (eval "$ac_compile") 2>conftest.er1
3911   ac_status=$?
3912   grep -v '^ *+' conftest.er1 >conftest.err
3913   rm -f conftest.er1
3914   cat conftest.err >&5
3915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916   (exit $ac_status); } &&
3917          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3918   { (case "(($ac_try" in
3919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3920   *) ac_try_echo=$ac_try;;
3921 esac
3922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3923   (eval "$ac_try") 2>&5
3924   ac_status=$?
3925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926   (exit $ac_status); }; } &&
3927          { ac_try='test -s conftest.$ac_objext'
3928   { (case "(($ac_try" in
3929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3930   *) ac_try_echo=$ac_try;;
3931 esac
3932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3933   (eval "$ac_try") 2>&5
3934   ac_status=$?
3935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936   (exit $ac_status); }; }; then
3937   ac_cv_prog_cxx_g=yes
3938 else
3939   echo "$as_me: failed program was:" >&5
3940 sed 's/^/| /' conftest.$ac_ext >&5
3941
3942         CXXFLAGS=""
3943       cat >conftest.$ac_ext <<_ACEOF
3944 /* confdefs.h.  */
3945 _ACEOF
3946 cat confdefs.h >>conftest.$ac_ext
3947 cat >>conftest.$ac_ext <<_ACEOF
3948 /* end confdefs.h.  */
3949
3950 int
3951 main ()
3952 {
3953
3954   ;
3955   return 0;
3956 }
3957 _ACEOF
3958 rm -f conftest.$ac_objext
3959 if { (ac_try="$ac_compile"
3960 case "(($ac_try" in
3961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3962   *) ac_try_echo=$ac_try;;
3963 esac
3964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3965   (eval "$ac_compile") 2>conftest.er1
3966   ac_status=$?
3967   grep -v '^ *+' conftest.er1 >conftest.err
3968   rm -f conftest.er1
3969   cat conftest.err >&5
3970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971   (exit $ac_status); } &&
3972          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3973   { (case "(($ac_try" in
3974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3975   *) ac_try_echo=$ac_try;;
3976 esac
3977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3978   (eval "$ac_try") 2>&5
3979   ac_status=$?
3980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981   (exit $ac_status); }; } &&
3982          { ac_try='test -s conftest.$ac_objext'
3983   { (case "(($ac_try" in
3984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3985   *) ac_try_echo=$ac_try;;
3986 esac
3987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3988   (eval "$ac_try") 2>&5
3989   ac_status=$?
3990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991   (exit $ac_status); }; }; then
3992   :
3993 else
3994   echo "$as_me: failed program was:" >&5
3995 sed 's/^/| /' conftest.$ac_ext >&5
3996
3997         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3998          CXXFLAGS="-g"
3999          cat >conftest.$ac_ext <<_ACEOF
4000 /* confdefs.h.  */
4001 _ACEOF
4002 cat confdefs.h >>conftest.$ac_ext
4003 cat >>conftest.$ac_ext <<_ACEOF
4004 /* end confdefs.h.  */
4005
4006 int
4007 main ()
4008 {
4009
4010   ;
4011   return 0;
4012 }
4013 _ACEOF
4014 rm -f conftest.$ac_objext
4015 if { (ac_try="$ac_compile"
4016 case "(($ac_try" in
4017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4018   *) ac_try_echo=$ac_try;;
4019 esac
4020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4021   (eval "$ac_compile") 2>conftest.er1
4022   ac_status=$?
4023   grep -v '^ *+' conftest.er1 >conftest.err
4024   rm -f conftest.er1
4025   cat conftest.err >&5
4026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027   (exit $ac_status); } &&
4028          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4029   { (case "(($ac_try" in
4030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4031   *) ac_try_echo=$ac_try;;
4032 esac
4033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4034   (eval "$ac_try") 2>&5
4035   ac_status=$?
4036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037   (exit $ac_status); }; } &&
4038          { ac_try='test -s conftest.$ac_objext'
4039   { (case "(($ac_try" in
4040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4041   *) ac_try_echo=$ac_try;;
4042 esac
4043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4044   (eval "$ac_try") 2>&5
4045   ac_status=$?
4046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047   (exit $ac_status); }; }; then
4048   ac_cv_prog_cxx_g=yes
4049 else
4050   echo "$as_me: failed program was:" >&5
4051 sed 's/^/| /' conftest.$ac_ext >&5
4052
4053
4054 fi
4055
4056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4057 fi
4058
4059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4060 fi
4061
4062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4063    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4064 fi
4065 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4066 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4067 if test "$ac_test_CXXFLAGS" = set; then
4068   CXXFLAGS=$ac_save_CXXFLAGS
4069 elif test $ac_cv_prog_cxx_g = yes; then
4070   if test "$GXX" = yes; then
4071     CXXFLAGS="-g -O2"
4072   else
4073     CXXFLAGS="-g"
4074   fi
4075 else
4076   if test "$GXX" = yes; then
4077     CXXFLAGS="-O2"
4078   else
4079     CXXFLAGS=
4080   fi
4081 fi
4082 ac_ext=c
4083 ac_cpp='$CPP $CPPFLAGS'
4084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4087
4088 depcc="$CXX"  am_compiler_list=
4089
4090 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4091 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4092 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4093   echo $ECHO_N "(cached) $ECHO_C" >&6
4094 else
4095   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4096   # We make a subdir and do the tests there.  Otherwise we can end up
4097   # making bogus files that we don't know about and never remove.  For
4098   # instance it was reported that on HP-UX the gcc test will end up
4099   # making a dummy file named `D' -- because `-MD' means `put the output
4100   # in D'.
4101   mkdir conftest.dir
4102   # Copy depcomp to subdir because otherwise we won't find it if we're
4103   # using a relative directory.
4104   cp "$am_depcomp" conftest.dir
4105   cd conftest.dir
4106   # We will build objects and dependencies in a subdirectory because
4107   # it helps to detect inapplicable dependency modes.  For instance
4108   # both Tru64's cc and ICC support -MD to output dependencies as a
4109   # side effect of compilation, but ICC will put the dependencies in
4110   # the current directory while Tru64 will put them in the object
4111   # directory.
4112   mkdir sub
4113
4114   am_cv_CXX_dependencies_compiler_type=none
4115   if test "$am_compiler_list" = ""; then
4116      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4117   fi
4118   for depmode in $am_compiler_list; do
4119     # Setup a source with many dependencies, because some compilers
4120     # like to wrap large dependency lists on column 80 (with \), and
4121     # we should not choose a depcomp mode which is confused by this.
4122     #
4123     # We need to recreate these files for each test, as the compiler may
4124     # overwrite some of them when testing with obscure command lines.
4125     # This happens at least with the AIX C compiler.
4126     : > sub/conftest.c
4127     for i in 1 2 3 4 5 6; do
4128       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4129       : > sub/conftst$i.h
4130     done
4131     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4132
4133     case $depmode in
4134     nosideeffect)
4135       # after this tag, mechanisms are not by side-effect, so they'll
4136       # only be used when explicitly requested
4137       if test "x$enable_dependency_tracking" = xyes; then
4138         continue
4139       else
4140         break
4141       fi
4142       ;;
4143     none) break ;;
4144     esac
4145     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4146     # mode.  It turns out that the SunPro C++ compiler does not properly
4147     # handle `-M -o', and we need to detect this.
4148     if depmode=$depmode \
4149        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4150        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4151        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4152          >/dev/null 2>conftest.err &&
4153        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4154        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4155        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4156       # icc doesn't choke on unknown options, it will just issue warnings
4157       # (even with -Werror).  So we grep stderr for any message
4158       # that says an option was ignored.
4159       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
4160         am_cv_CXX_dependencies_compiler_type=$depmode
4161         break
4162       fi
4163     fi
4164   done
4165
4166   cd ..
4167   rm -rf conftest.dir
4168 else
4169   am_cv_CXX_dependencies_compiler_type=none
4170 fi
4171
4172 fi
4173 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4174 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4175 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4176
4177
4178
4179 if
4180   test "x$enable_dependency_tracking" != xno \
4181   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4182   am__fastdepCXX_TRUE=
4183   am__fastdepCXX_FALSE='#'
4184 else
4185   am__fastdepCXX_TRUE='#'
4186   am__fastdepCXX_FALSE=
4187 fi
4188
4189
4190
4191 ac_ext=c
4192 ac_cpp='$CPP $CPPFLAGS'
4193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4196 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4197 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4198 # On Suns, sometimes $CPP names a directory.
4199 if test -n "$CPP" && test -d "$CPP"; then
4200   CPP=
4201 fi
4202 if test -z "$CPP"; then
4203   if test "${ac_cv_prog_CPP+set}" = set; then
4204   echo $ECHO_N "(cached) $ECHO_C" >&6
4205 else
4206       # Double quotes because CPP needs to be expanded
4207     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4208     do
4209       ac_preproc_ok=false
4210 for ac_c_preproc_warn_flag in '' yes
4211 do
4212   # Use a header file that comes with gcc, so configuring glibc
4213   # with a fresh cross-compiler works.
4214   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4215   # <limits.h> exists even on freestanding compilers.
4216   # On the NeXT, cc -E runs the code through the compiler's parser,
4217   # not just through cpp. "Syntax error" is here to catch this case.
4218   cat >conftest.$ac_ext <<_ACEOF
4219 /* confdefs.h.  */
4220 _ACEOF
4221 cat confdefs.h >>conftest.$ac_ext
4222 cat >>conftest.$ac_ext <<_ACEOF
4223 /* end confdefs.h.  */
4224 #ifdef __STDC__
4225 # include <limits.h>
4226 #else
4227 # include <assert.h>
4228 #endif
4229                      Syntax error
4230 _ACEOF
4231 if { (ac_try="$ac_cpp conftest.$ac_ext"
4232 case "(($ac_try" in
4233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4234   *) ac_try_echo=$ac_try;;
4235 esac
4236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4237   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4238   ac_status=$?
4239   grep -v '^ *+' conftest.er1 >conftest.err
4240   rm -f conftest.er1
4241   cat conftest.err >&5
4242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243   (exit $ac_status); } >/dev/null; then
4244   if test -s conftest.err; then
4245     ac_cpp_err=$ac_c_preproc_warn_flag
4246     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4247   else
4248     ac_cpp_err=
4249   fi
4250 else
4251   ac_cpp_err=yes
4252 fi
4253 if test -z "$ac_cpp_err"; then
4254   :
4255 else
4256   echo "$as_me: failed program was:" >&5
4257 sed 's/^/| /' conftest.$ac_ext >&5
4258
4259   # Broken: fails on valid input.
4260 continue
4261 fi
4262
4263 rm -f conftest.err conftest.$ac_ext
4264
4265   # OK, works on sane cases.  Now check whether nonexistent headers
4266   # can be detected and how.
4267   cat >conftest.$ac_ext <<_ACEOF
4268 /* confdefs.h.  */
4269 _ACEOF
4270 cat confdefs.h >>conftest.$ac_ext
4271 cat >>conftest.$ac_ext <<_ACEOF
4272 /* end confdefs.h.  */
4273 #include <ac_nonexistent.h>
4274 _ACEOF
4275 if { (ac_try="$ac_cpp conftest.$ac_ext"
4276 case "(($ac_try" in
4277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4278   *) ac_try_echo=$ac_try;;
4279 esac
4280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4281   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4282   ac_status=$?
4283   grep -v '^ *+' conftest.er1 >conftest.err
4284   rm -f conftest.er1
4285   cat conftest.err >&5
4286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287   (exit $ac_status); } >/dev/null; then
4288   if test -s conftest.err; then
4289     ac_cpp_err=$ac_c_preproc_warn_flag
4290     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4291   else
4292     ac_cpp_err=
4293   fi
4294 else
4295   ac_cpp_err=yes
4296 fi
4297 if test -z "$ac_cpp_err"; then
4298   # Broken: success on invalid input.
4299 continue
4300 else
4301   echo "$as_me: failed program was:" >&5
4302 sed 's/^/| /' conftest.$ac_ext >&5
4303
4304   # Passes both tests.
4305 ac_preproc_ok=:
4306 break
4307 fi
4308
4309 rm -f conftest.err conftest.$ac_ext
4310
4311 done
4312 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4313 rm -f conftest.err conftest.$ac_ext
4314 if $ac_preproc_ok; then
4315   break
4316 fi
4317
4318     done
4319     ac_cv_prog_CPP=$CPP
4320
4321 fi
4322   CPP=$ac_cv_prog_CPP
4323 else
4324   ac_cv_prog_CPP=$CPP
4325 fi
4326 { echo "$as_me:$LINENO: result: $CPP" >&5
4327 echo "${ECHO_T}$CPP" >&6; }
4328 ac_preproc_ok=false
4329 for ac_c_preproc_warn_flag in '' yes
4330 do
4331   # Use a header file that comes with gcc, so configuring glibc
4332   # with a fresh cross-compiler works.
4333   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4334   # <limits.h> exists even on freestanding compilers.
4335   # On the NeXT, cc -E runs the code through the compiler's parser,
4336   # not just through cpp. "Syntax error" is here to catch this case.
4337   cat >conftest.$ac_ext <<_ACEOF
4338 /* confdefs.h.  */
4339 _ACEOF
4340 cat confdefs.h >>conftest.$ac_ext
4341 cat >>conftest.$ac_ext <<_ACEOF
4342 /* end confdefs.h.  */
4343 #ifdef __STDC__
4344 # include <limits.h>
4345 #else
4346 # include <assert.h>
4347 #endif
4348                      Syntax error
4349 _ACEOF
4350 if { (ac_try="$ac_cpp conftest.$ac_ext"
4351 case "(($ac_try" in
4352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4353   *) ac_try_echo=$ac_try;;
4354 esac
4355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4356   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4357   ac_status=$?
4358   grep -v '^ *+' conftest.er1 >conftest.err
4359   rm -f conftest.er1
4360   cat conftest.err >&5
4361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362   (exit $ac_status); } >/dev/null; then
4363   if test -s conftest.err; then
4364     ac_cpp_err=$ac_c_preproc_warn_flag
4365     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4366   else
4367     ac_cpp_err=
4368   fi
4369 else
4370   ac_cpp_err=yes
4371 fi
4372 if test -z "$ac_cpp_err"; then
4373   :
4374 else
4375   echo "$as_me: failed program was:" >&5
4376 sed 's/^/| /' conftest.$ac_ext >&5
4377
4378   # Broken: fails on valid input.
4379 continue
4380 fi
4381
4382 rm -f conftest.err conftest.$ac_ext
4383
4384   # OK, works on sane cases.  Now check whether nonexistent headers
4385   # can be detected and how.
4386   cat >conftest.$ac_ext <<_ACEOF
4387 /* confdefs.h.  */
4388 _ACEOF
4389 cat confdefs.h >>conftest.$ac_ext
4390 cat >>conftest.$ac_ext <<_ACEOF
4391 /* end confdefs.h.  */
4392 #include <ac_nonexistent.h>
4393 _ACEOF
4394 if { (ac_try="$ac_cpp conftest.$ac_ext"
4395 case "(($ac_try" in
4396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4397   *) ac_try_echo=$ac_try;;
4398 esac
4399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4400   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4401   ac_status=$?
4402   grep -v '^ *+' conftest.er1 >conftest.err
4403   rm -f conftest.er1
4404   cat conftest.err >&5
4405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406   (exit $ac_status); } >/dev/null; then
4407   if test -s conftest.err; then
4408     ac_cpp_err=$ac_c_preproc_warn_flag
4409     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4410   else
4411     ac_cpp_err=
4412   fi
4413 else
4414   ac_cpp_err=yes
4415 fi
4416 if test -z "$ac_cpp_err"; then
4417   # Broken: success on invalid input.
4418 continue
4419 else
4420   echo "$as_me: failed program was:" >&5
4421 sed 's/^/| /' conftest.$ac_ext >&5
4422
4423   # Passes both tests.
4424 ac_preproc_ok=:
4425 break
4426 fi
4427
4428 rm -f conftest.err conftest.$ac_ext
4429
4430 done
4431 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4432 rm -f conftest.err conftest.$ac_ext
4433 if $ac_preproc_ok; then
4434   :
4435 else
4436   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4437 See \`config.log' for more details." >&5
4438 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4439 See \`config.log' for more details." >&2;}
4440    { (exit 1); exit 1; }; }
4441 fi
4442
4443 ac_ext=c
4444 ac_cpp='$CPP $CPPFLAGS'
4445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4448
4449
4450 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4451 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4452 if test "${ac_cv_path_GREP+set}" = set; then
4453   echo $ECHO_N "(cached) $ECHO_C" >&6
4454 else
4455   # Extract the first word of "grep ggrep" to use in msg output
4456 if test -z "$GREP"; then
4457 set dummy grep ggrep; ac_prog_name=$2
4458 if test "${ac_cv_path_GREP+set}" = set; then
4459   echo $ECHO_N "(cached) $ECHO_C" >&6
4460 else
4461   ac_path_GREP_found=false
4462 # Loop through the user's path and test for each of PROGNAME-LIST
4463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4464 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4465 do
4466   IFS=$as_save_IFS
4467   test -z "$as_dir" && as_dir=.
4468   for ac_prog in grep ggrep; do
4469   for ac_exec_ext in '' $ac_executable_extensions; do
4470     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4471     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4472     # Check for GNU ac_path_GREP and select it if it is found.
4473   # Check for GNU $ac_path_GREP
4474 case `"$ac_path_GREP" --version 2>&1` in
4475 *GNU*)
4476   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4477 *)
4478   ac_count=0
4479   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4480   while :
4481   do
4482     cat "conftest.in" "conftest.in" >"conftest.tmp"
4483     mv "conftest.tmp" "conftest.in"
4484     cp "conftest.in" "conftest.nl"
4485     echo 'GREP' >> "conftest.nl"
4486     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4487     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4488     ac_count=`expr $ac_count + 1`
4489     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4490       # Best one so far, save it but keep looking for a better one
4491       ac_cv_path_GREP="$ac_path_GREP"
4492       ac_path_GREP_max=$ac_count
4493     fi
4494     # 10*(2^10) chars as input seems more than enough
4495     test $ac_count -gt 10 && break
4496   done
4497   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4498 esac
4499
4500
4501     $ac_path_GREP_found && break 3
4502   done
4503 done
4504
4505 done
4506 IFS=$as_save_IFS
4507
4508
4509 fi
4510
4511 GREP="$ac_cv_path_GREP"
4512 if test -z "$GREP"; then
4513   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4514 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4515    { (exit 1); exit 1; }; }
4516 fi
4517
4518 else
4519   ac_cv_path_GREP=$GREP
4520 fi
4521
4522
4523 fi
4524 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4525 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4526  GREP="$ac_cv_path_GREP"
4527
4528
4529 { echo "$as_me:$LINENO: checking for egrep" >&5
4530 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4531 if test "${ac_cv_path_EGREP+set}" = set; then
4532   echo $ECHO_N "(cached) $ECHO_C" >&6
4533 else
4534   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4535    then ac_cv_path_EGREP="$GREP -E"
4536    else
4537      # Extract the first word of "egrep" to use in msg output
4538 if test -z "$EGREP"; then
4539 set dummy egrep; ac_prog_name=$2
4540 if test "${ac_cv_path_EGREP+set}" = set; then
4541   echo $ECHO_N "(cached) $ECHO_C" >&6
4542 else
4543   ac_path_EGREP_found=false
4544 # Loop through the user's path and test for each of PROGNAME-LIST
4545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4546 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4547 do
4548   IFS=$as_save_IFS
4549   test -z "$as_dir" && as_dir=.
4550   for ac_prog in egrep; do
4551   for ac_exec_ext in '' $ac_executable_extensions; do
4552     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4553     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4554     # Check for GNU ac_path_EGREP and select it if it is found.
4555   # Check for GNU $ac_path_EGREP
4556 case `"$ac_path_EGREP" --version 2>&1` in
4557 *GNU*)
4558   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4559 *)
4560   ac_count=0
4561   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4562   while :
4563   do
4564     cat "conftest.in" "conftest.in" >"conftest.tmp"
4565     mv "conftest.tmp" "conftest.in"
4566     cp "conftest.in" "conftest.nl"
4567     echo 'EGREP' >> "conftest.nl"
4568     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4569     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4570     ac_count=`expr $ac_count + 1`
4571     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4572       # Best one so far, save it but keep looking for a better one
4573       ac_cv_path_EGREP="$ac_path_EGREP"
4574       ac_path_EGREP_max=$ac_count
4575     fi
4576     # 10*(2^10) chars as input seems more than enough
4577     test $ac_count -gt 10 && break
4578   done
4579   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4580 esac
4581
4582
4583     $ac_path_EGREP_found && break 3
4584   done
4585 done
4586
4587 done
4588 IFS=$as_save_IFS
4589
4590
4591 fi
4592
4593 EGREP="$ac_cv_path_EGREP"
4594 if test -z "$EGREP"; then
4595   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4596 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4597    { (exit 1); exit 1; }; }
4598 fi
4599
4600 else
4601   ac_cv_path_EGREP=$EGREP
4602 fi
4603
4604
4605    fi
4606 fi
4607 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4608 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4609  EGREP="$ac_cv_path_EGREP"
4610
4611
4612 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4613 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4614 if test "${ac_cv_header_stdc+set}" = set; then
4615   echo $ECHO_N "(cached) $ECHO_C" >&6
4616 else
4617   cat >conftest.$ac_ext <<_ACEOF
4618 /* confdefs.h.  */
4619 _ACEOF
4620 cat confdefs.h >>conftest.$ac_ext
4621 cat >>conftest.$ac_ext <<_ACEOF
4622 /* end confdefs.h.  */
4623 #include <stdlib.h>
4624 #include <stdarg.h>
4625 #include <string.h>
4626 #include <float.h>
4627
4628 int
4629 main ()
4630 {
4631
4632   ;
4633   return 0;
4634 }
4635 _ACEOF
4636 rm -f conftest.$ac_objext
4637 if { (ac_try="$ac_compile"
4638 case "(($ac_try" in
4639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4640   *) ac_try_echo=$ac_try;;
4641 esac
4642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4643   (eval "$ac_compile") 2>conftest.er1
4644   ac_status=$?
4645   grep -v '^ *+' conftest.er1 >conftest.err
4646   rm -f conftest.er1
4647   cat conftest.err >&5
4648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649   (exit $ac_status); } &&
4650          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4651   { (case "(($ac_try" in
4652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4653   *) ac_try_echo=$ac_try;;
4654 esac
4655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4656   (eval "$ac_try") 2>&5
4657   ac_status=$?
4658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659   (exit $ac_status); }; } &&
4660          { ac_try='test -s conftest.$ac_objext'
4661   { (case "(($ac_try" in
4662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4663   *) ac_try_echo=$ac_try;;
4664 esac
4665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4666   (eval "$ac_try") 2>&5
4667   ac_status=$?
4668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669   (exit $ac_status); }; }; then
4670   ac_cv_header_stdc=yes
4671 else
4672   echo "$as_me: failed program was:" >&5
4673 sed 's/^/| /' conftest.$ac_ext >&5
4674
4675         ac_cv_header_stdc=no
4676 fi
4677
4678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4679
4680 if test $ac_cv_header_stdc = yes; then
4681   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4682   cat >conftest.$ac_ext <<_ACEOF
4683 /* confdefs.h.  */
4684 _ACEOF
4685 cat confdefs.h >>conftest.$ac_ext
4686 cat >>conftest.$ac_ext <<_ACEOF
4687 /* end confdefs.h.  */
4688 #include <string.h>
4689
4690 _ACEOF
4691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4692   $EGREP "memchr" >/dev/null 2>&1; then
4693   :
4694 else
4695   ac_cv_header_stdc=no
4696 fi
4697 rm -f conftest*
4698
4699 fi
4700
4701 if test $ac_cv_header_stdc = yes; then
4702   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4703   cat >conftest.$ac_ext <<_ACEOF
4704 /* confdefs.h.  */
4705 _ACEOF
4706 cat confdefs.h >>conftest.$ac_ext
4707 cat >>conftest.$ac_ext <<_ACEOF
4708 /* end confdefs.h.  */
4709 #include <stdlib.h>
4710
4711 _ACEOF
4712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4713   $EGREP "free" >/dev/null 2>&1; then
4714   :
4715 else
4716   ac_cv_header_stdc=no
4717 fi
4718 rm -f conftest*
4719
4720 fi
4721
4722 if test $ac_cv_header_stdc = yes; then
4723   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4724   if test "$cross_compiling" = yes; then
4725   :
4726 else
4727   cat >conftest.$ac_ext <<_ACEOF
4728 /* confdefs.h.  */
4729 _ACEOF
4730 cat confdefs.h >>conftest.$ac_ext
4731 cat >>conftest.$ac_ext <<_ACEOF
4732 /* end confdefs.h.  */
4733 #include <ctype.h>
4734 #include <stdlib.h>
4735 #if ((' ' & 0x0FF) == 0x020)
4736 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4737 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4738 #else
4739 # define ISLOWER(c) \
4740                    (('a' <= (c) && (c) <= 'i') \
4741                      || ('j' <= (c) && (c) <= 'r') \
4742                      || ('s' <= (c) && (c) <= 'z'))
4743 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4744 #endif
4745
4746 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4747 int
4748 main ()
4749 {
4750   int i;
4751   for (i = 0; i < 256; i++)
4752     if (XOR (islower (i), ISLOWER (i))
4753         || toupper (i) != TOUPPER (i))
4754       return 2;
4755   return 0;
4756 }
4757 _ACEOF
4758 rm -f conftest$ac_exeext
4759 if { (ac_try="$ac_link"
4760 case "(($ac_try" in
4761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4762   *) ac_try_echo=$ac_try;;
4763 esac
4764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4765   (eval "$ac_link") 2>&5
4766   ac_status=$?
4767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4769   { (case "(($ac_try" in
4770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4771   *) ac_try_echo=$ac_try;;
4772 esac
4773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4774   (eval "$ac_try") 2>&5
4775   ac_status=$?
4776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777   (exit $ac_status); }; }; then
4778   :
4779 else
4780   echo "$as_me: program exited with status $ac_status" >&5
4781 echo "$as_me: failed program was:" >&5
4782 sed 's/^/| /' conftest.$ac_ext >&5
4783
4784 ( exit $ac_status )
4785 ac_cv_header_stdc=no
4786 fi
4787 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4788 fi
4789
4790
4791 fi
4792 fi
4793 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4794 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4795 if test $ac_cv_header_stdc = yes; then
4796
4797 cat >>confdefs.h <<\_ACEOF
4798 #define STDC_HEADERS 1
4799 _ACEOF
4800
4801 fi
4802
4803 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4814                   inttypes.h stdint.h unistd.h
4815 do
4816 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4817 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4820   echo $ECHO_N "(cached) $ECHO_C" >&6
4821 else
4822   cat >conftest.$ac_ext <<_ACEOF
4823 /* confdefs.h.  */
4824 _ACEOF
4825 cat confdefs.h >>conftest.$ac_ext
4826 cat >>conftest.$ac_ext <<_ACEOF
4827 /* end confdefs.h.  */
4828 $ac_includes_default
4829
4830 #include <$ac_header>
4831 _ACEOF
4832 rm -f conftest.$ac_objext
4833 if { (ac_try="$ac_compile"
4834 case "(($ac_try" in
4835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4836   *) ac_try_echo=$ac_try;;
4837 esac
4838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4839   (eval "$ac_compile") 2>conftest.er1
4840   ac_status=$?
4841   grep -v '^ *+' conftest.er1 >conftest.err
4842   rm -f conftest.er1
4843   cat conftest.err >&5
4844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845   (exit $ac_status); } &&
4846          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4847   { (case "(($ac_try" in
4848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4849   *) ac_try_echo=$ac_try;;
4850 esac
4851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4852   (eval "$ac_try") 2>&5
4853   ac_status=$?
4854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855   (exit $ac_status); }; } &&
4856          { ac_try='test -s conftest.$ac_objext'
4857   { (case "(($ac_try" in
4858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4859   *) ac_try_echo=$ac_try;;
4860 esac
4861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4862   (eval "$ac_try") 2>&5
4863   ac_status=$?
4864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865   (exit $ac_status); }; }; then
4866   eval "$as_ac_Header=yes"
4867 else
4868   echo "$as_me: failed program was:" >&5
4869 sed 's/^/| /' conftest.$ac_ext >&5
4870
4871         eval "$as_ac_Header=no"
4872 fi
4873
4874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4875 fi
4876 ac_res=`eval echo '${'$as_ac_Header'}'`
4877                { echo "$as_me:$LINENO: result: $ac_res" >&5
4878 echo "${ECHO_T}$ac_res" >&6; }
4879 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4880   cat >>confdefs.h <<_ACEOF
4881 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4882 _ACEOF
4883
4884 fi
4885
4886 done
4887
4888
4889 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4890 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4891 if test "${ac_cv_c_bigendian+set}" = set; then
4892   echo $ECHO_N "(cached) $ECHO_C" >&6
4893 else
4894   # See if sys/param.h defines the BYTE_ORDER macro.
4895 cat >conftest.$ac_ext <<_ACEOF
4896 /* confdefs.h.  */
4897 _ACEOF
4898 cat confdefs.h >>conftest.$ac_ext
4899 cat >>conftest.$ac_ext <<_ACEOF
4900 /* end confdefs.h.  */
4901 #include <sys/types.h>
4902 #include <sys/param.h>
4903
4904 int
4905 main ()
4906 {
4907 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4908  bogus endian macros
4909 #endif
4910
4911   ;
4912   return 0;
4913 }
4914 _ACEOF
4915 rm -f conftest.$ac_objext
4916 if { (ac_try="$ac_compile"
4917 case "(($ac_try" in
4918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4919   *) ac_try_echo=$ac_try;;
4920 esac
4921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4922   (eval "$ac_compile") 2>conftest.er1
4923   ac_status=$?
4924   grep -v '^ *+' conftest.er1 >conftest.err
4925   rm -f conftest.er1
4926   cat conftest.err >&5
4927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928   (exit $ac_status); } &&
4929          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4930   { (case "(($ac_try" in
4931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4932   *) ac_try_echo=$ac_try;;
4933 esac
4934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4935   (eval "$ac_try") 2>&5
4936   ac_status=$?
4937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938   (exit $ac_status); }; } &&
4939          { ac_try='test -s conftest.$ac_objext'
4940   { (case "(($ac_try" in
4941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4942   *) ac_try_echo=$ac_try;;
4943 esac
4944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4945   (eval "$ac_try") 2>&5
4946   ac_status=$?
4947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948   (exit $ac_status); }; }; then
4949   # It does; now see whether it defined to BIG_ENDIAN or not.
4950 cat >conftest.$ac_ext <<_ACEOF
4951 /* confdefs.h.  */
4952 _ACEOF
4953 cat confdefs.h >>conftest.$ac_ext
4954 cat >>conftest.$ac_ext <<_ACEOF
4955 /* end confdefs.h.  */
4956 #include <sys/types.h>
4957 #include <sys/param.h>
4958
4959 int
4960 main ()
4961 {
4962 #if BYTE_ORDER != BIG_ENDIAN
4963  not big endian
4964 #endif
4965
4966   ;
4967   return 0;
4968 }
4969 _ACEOF
4970 rm -f conftest.$ac_objext
4971 if { (ac_try="$ac_compile"
4972 case "(($ac_try" in
4973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4974   *) ac_try_echo=$ac_try;;
4975 esac
4976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4977   (eval "$ac_compile") 2>conftest.er1
4978   ac_status=$?
4979   grep -v '^ *+' conftest.er1 >conftest.err
4980   rm -f conftest.er1
4981   cat conftest.err >&5
4982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983   (exit $ac_status); } &&
4984          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4985   { (case "(($ac_try" in
4986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4987   *) ac_try_echo=$ac_try;;
4988 esac
4989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4990   (eval "$ac_try") 2>&5
4991   ac_status=$?
4992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993   (exit $ac_status); }; } &&
4994          { ac_try='test -s conftest.$ac_objext'
4995   { (case "(($ac_try" in
4996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4997   *) ac_try_echo=$ac_try;;
4998 esac
4999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5000   (eval "$ac_try") 2>&5
5001   ac_status=$?
5002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003   (exit $ac_status); }; }; then
5004   ac_cv_c_bigendian=yes
5005 else
5006   echo "$as_me: failed program was:" >&5
5007 sed 's/^/| /' conftest.$ac_ext >&5
5008
5009         ac_cv_c_bigendian=no
5010 fi
5011
5012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5013 else
5014   echo "$as_me: failed program was:" >&5
5015 sed 's/^/| /' conftest.$ac_ext >&5
5016
5017         # It does not; compile a test program.
5018 if test "$cross_compiling" = yes; then
5019   # try to guess the endianness by grepping values into an object file
5020   ac_cv_c_bigendian=unknown
5021   cat >conftest.$ac_ext <<_ACEOF
5022 /* confdefs.h.  */
5023 _ACEOF
5024 cat confdefs.h >>conftest.$ac_ext
5025 cat >>conftest.$ac_ext <<_ACEOF
5026 /* end confdefs.h.  */
5027 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5028 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5029 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
5030 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5031 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5032 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
5033 int
5034 main ()
5035 {
5036  _ascii (); _ebcdic ();
5037   ;
5038   return 0;
5039 }
5040 _ACEOF
5041 rm -f conftest.$ac_objext
5042 if { (ac_try="$ac_compile"
5043 case "(($ac_try" in
5044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5045   *) ac_try_echo=$ac_try;;
5046 esac
5047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5048   (eval "$ac_compile") 2>conftest.er1
5049   ac_status=$?
5050   grep -v '^ *+' conftest.er1 >conftest.err
5051   rm -f conftest.er1
5052   cat conftest.err >&5
5053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054   (exit $ac_status); } &&
5055          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5056   { (case "(($ac_try" in
5057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5058   *) ac_try_echo=$ac_try;;
5059 esac
5060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5061   (eval "$ac_try") 2>&5
5062   ac_status=$?
5063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064   (exit $ac_status); }; } &&
5065          { ac_try='test -s conftest.$ac_objext'
5066   { (case "(($ac_try" in
5067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5068   *) ac_try_echo=$ac_try;;
5069 esac
5070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5071   (eval "$ac_try") 2>&5
5072   ac_status=$?
5073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074   (exit $ac_status); }; }; then
5075   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
5076   ac_cv_c_bigendian=yes
5077 fi
5078 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5079   if test "$ac_cv_c_bigendian" = unknown; then
5080     ac_cv_c_bigendian=no
5081   else
5082     # finding both strings is unlikely to happen, but who knows?
5083     ac_cv_c_bigendian=unknown
5084   fi
5085 fi
5086 else
5087   echo "$as_me: failed program was:" >&5
5088 sed 's/^/| /' conftest.$ac_ext >&5
5089
5090
5091 fi
5092
5093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5094 else
5095   cat >conftest.$ac_ext <<_ACEOF
5096 /* confdefs.h.  */
5097 _ACEOF
5098 cat confdefs.h >>conftest.$ac_ext
5099 cat >>conftest.$ac_ext <<_ACEOF
5100 /* end confdefs.h.  */
5101 $ac_includes_default
5102 int
5103 main ()
5104 {
5105
5106   /* Are we little or big endian?  From Harbison&Steele.  */
5107   union
5108   {
5109     long int l;
5110     char c[sizeof (long int)];
5111   } u;
5112   u.l = 1;
5113   return u.c[sizeof (long int) - 1] == 1;
5114
5115   ;
5116   return 0;
5117 }
5118 _ACEOF
5119 rm -f conftest$ac_exeext
5120 if { (ac_try="$ac_link"
5121 case "(($ac_try" in
5122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5123   *) ac_try_echo=$ac_try;;
5124 esac
5125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5126   (eval "$ac_link") 2>&5
5127   ac_status=$?
5128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5130   { (case "(($ac_try" in
5131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5132   *) ac_try_echo=$ac_try;;
5133 esac
5134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5135   (eval "$ac_try") 2>&5
5136   ac_status=$?
5137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138   (exit $ac_status); }; }; then
5139   ac_cv_c_bigendian=no
5140 else
5141   echo "$as_me: program exited with status $ac_status" >&5
5142 echo "$as_me: failed program was:" >&5
5143 sed 's/^/| /' conftest.$ac_ext >&5
5144
5145 ( exit $ac_status )
5146 ac_cv_c_bigendian=yes
5147 fi
5148 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5149 fi
5150
5151
5152 fi
5153
5154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5155 fi
5156 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5157 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
5158 case $ac_cv_c_bigendian in
5159   yes)
5160
5161 cat >>confdefs.h <<\_ACEOF
5162 #define WORDS_BIGENDIAN 1
5163 _ACEOF
5164  ;;
5165   no)
5166      ;;
5167   *)
5168     { { echo "$as_me:$LINENO: error: unknown endianness
5169 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
5170 echo "$as_me: error: unknown endianness
5171 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
5172    { (exit 1); exit 1; }; } ;;
5173 esac
5174
5175
5176 # Extract the first word of "wxgtk-2.4-config", so it can be a program name with args.
5177 set dummy wxgtk-2.4-config; ac_word=$2
5178 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5180 if test "${ac_cv_path_wxconfig+set}" = set; then
5181   echo $ECHO_N "(cached) $ECHO_C" >&6
5182 else
5183   case $wxconfig in
5184   [\\/]* | ?:[\\/]*)
5185   ac_cv_path_wxconfig="$wxconfig" # Let the user override the test with a path.
5186   ;;
5187   *)
5188   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189 for as_dir in $PATH
5190 do
5191   IFS=$as_save_IFS
5192   test -z "$as_dir" && as_dir=.
5193   for ac_exec_ext in '' $ac_executable_extensions; do
5194   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5195     ac_cv_path_wxconfig="$as_dir/$ac_word$ac_exec_ext"
5196     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5197     break 2
5198   fi
5199 done
5200 done
5201 IFS=$as_save_IFS
5202
5203   ;;
5204 esac
5205 fi
5206 wxconfig=$ac_cv_path_wxconfig
5207 if test -n "$wxconfig"; then
5208   { echo "$as_me:$LINENO: result: $wxconfig" >&5
5209 echo "${ECHO_T}$wxconfig" >&6; }
5210 else
5211   { echo "$as_me:$LINENO: result: no" >&5
5212 echo "${ECHO_T}no" >&6; }
5213 fi
5214
5215
5216 if  ! "$wxconfig" ; then
5217   # Extract the first word of "wx-config", so it can be a program name with args.
5218 set dummy wx-config; ac_word=$2
5219 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5221 if test "${ac_cv_path_wxconfig+set}" = set; then
5222   echo $ECHO_N "(cached) $ECHO_C" >&6
5223 else
5224   case $wxconfig in
5225   [\\/]* | ?:[\\/]*)
5226   ac_cv_path_wxconfig="$wxconfig" # Let the user override the test with a path.
5227   ;;
5228   *)
5229   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5230 for as_dir in $PATH
5231 do
5232   IFS=$as_save_IFS
5233   test -z "$as_dir" && as_dir=.
5234   for ac_exec_ext in '' $ac_executable_extensions; do
5235   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5236     ac_cv_path_wxconfig="$as_dir/$ac_word$ac_exec_ext"
5237     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5238     break 2
5239   fi
5240 done
5241 done
5242 IFS=$as_save_IFS
5243
5244   ;;
5245 esac
5246 fi
5247 wxconfig=$ac_cv_path_wxconfig
5248 if test -n "$wxconfig"; then
5249   { echo "$as_me:$LINENO: result: $wxconfig" >&5
5250 echo "${ECHO_T}$wxconfig" >&6; }
5251 else
5252   { echo "$as_me:$LINENO: result: no" >&5
5253 echo "${ECHO_T}no" >&6; }
5254 fi
5255
5256
5257 fi
5258
5259 # Make sure we can run config.sub.
5260 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5261   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5262 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5263    { (exit 1); exit 1; }; }
5264
5265 { echo "$as_me:$LINENO: checking build system type" >&5
5266 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5267 if test "${ac_cv_build+set}" = set; then
5268   echo $ECHO_N "(cached) $ECHO_C" >&6
5269 else
5270   ac_build_alias=$build_alias
5271 test "x$ac_build_alias" = x &&
5272   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5273 test "x$ac_build_alias" = x &&
5274   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5275 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5276    { (exit 1); exit 1; }; }
5277 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5278   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5279 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5280    { (exit 1); exit 1; }; }
5281
5282 fi
5283 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5284 echo "${ECHO_T}$ac_cv_build" >&6; }
5285 case $ac_cv_build in
5286 *-*-*) ;;
5287 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5288 echo "$as_me: error: invalid value of canonical build" >&2;}
5289    { (exit 1); exit 1; }; };;
5290 esac
5291 build=$ac_cv_build
5292 ac_save_IFS=$IFS; IFS='-'
5293 set x $ac_cv_build
5294 shift
5295 build_cpu=$1
5296 build_vendor=$2
5297 shift; shift
5298 # Remember, the first character of IFS is used to create $*,
5299 # except with old shells:
5300 build_os=$*
5301 IFS=$ac_save_IFS
5302 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5303
5304
5305 { echo "$as_me:$LINENO: checking host system type" >&5
5306 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5307 if test "${ac_cv_host+set}" = set; then
5308   echo $ECHO_N "(cached) $ECHO_C" >&6
5309 else
5310   if test "x$host_alias" = x; then
5311   ac_cv_host=$ac_cv_build
5312 else
5313   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5314     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5315 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5316    { (exit 1); exit 1; }; }
5317 fi
5318
5319 fi
5320 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5321 echo "${ECHO_T}$ac_cv_host" >&6; }
5322 case $ac_cv_host in
5323 *-*-*) ;;
5324 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5325 echo "$as_me: error: invalid value of canonical host" >&2;}
5326    { (exit 1); exit 1; }; };;
5327 esac
5328 host=$ac_cv_host
5329 ac_save_IFS=$IFS; IFS='-'
5330 set x $ac_cv_host
5331 shift
5332 host_cpu=$1
5333 host_vendor=$2
5334 shift; shift
5335 # Remember, the first character of IFS is used to create $*,
5336 # except with old shells:
5337 host_os=$*
5338 IFS=$ac_save_IFS
5339 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5340
5341
5342 { echo "$as_me:$LINENO: checking for inline" >&5
5343 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5344 if test "${ac_cv_c_inline+set}" = set; then
5345   echo $ECHO_N "(cached) $ECHO_C" >&6
5346 else
5347   ac_cv_c_inline=no
5348 for ac_kw in inline __inline__ __inline; do
5349   cat >conftest.$ac_ext <<_ACEOF
5350 /* confdefs.h.  */
5351 _ACEOF
5352 cat confdefs.h >>conftest.$ac_ext
5353 cat >>conftest.$ac_ext <<_ACEOF
5354 /* end confdefs.h.  */
5355 #ifndef __cplusplus
5356 typedef int foo_t;
5357 static $ac_kw foo_t static_foo () {return 0; }
5358 $ac_kw foo_t foo () {return 0; }
5359 #endif
5360
5361 _ACEOF
5362 rm -f conftest.$ac_objext
5363 if { (ac_try="$ac_compile"
5364 case "(($ac_try" in
5365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5366   *) ac_try_echo=$ac_try;;
5367 esac
5368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5369   (eval "$ac_compile") 2>conftest.er1
5370   ac_status=$?
5371   grep -v '^ *+' conftest.er1 >conftest.err
5372   rm -f conftest.er1
5373   cat conftest.err >&5
5374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375   (exit $ac_status); } &&
5376          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5377   { (case "(($ac_try" in
5378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5379   *) ac_try_echo=$ac_try;;
5380 esac
5381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5382   (eval "$ac_try") 2>&5
5383   ac_status=$?
5384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385   (exit $ac_status); }; } &&
5386          { ac_try='test -s conftest.$ac_objext'
5387   { (case "(($ac_try" in
5388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5389   *) ac_try_echo=$ac_try;;
5390 esac
5391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5392   (eval "$ac_try") 2>&5
5393   ac_status=$?
5394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395   (exit $ac_status); }; }; then
5396   ac_cv_c_inline=$ac_kw
5397 else
5398   echo "$as_me: failed program was:" >&5
5399 sed 's/^/| /' conftest.$ac_ext >&5
5400
5401
5402 fi
5403
5404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5405   test "$ac_cv_c_inline" != no && break
5406 done
5407
5408 fi
5409 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5410 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5411
5412
5413 case $ac_cv_c_inline in
5414   inline | yes) ;;
5415   *)
5416     case $ac_cv_c_inline in
5417       no) ac_val=;;
5418       *) ac_val=$ac_cv_c_inline;;
5419     esac
5420     cat >>confdefs.h <<_ACEOF
5421 #ifndef __cplusplus
5422 #define inline $ac_val
5423 #endif
5424 _ACEOF
5425     ;;
5426 esac
5427
5428 { echo "$as_me:$LINENO: checking for short" >&5
5429 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
5430 if test "${ac_cv_type_short+set}" = set; then
5431   echo $ECHO_N "(cached) $ECHO_C" >&6
5432 else
5433   cat >conftest.$ac_ext <<_ACEOF
5434 /* confdefs.h.  */
5435 _ACEOF
5436 cat confdefs.h >>conftest.$ac_ext
5437 cat >>conftest.$ac_ext <<_ACEOF
5438 /* end confdefs.h.  */
5439 $ac_includes_default
5440 typedef short ac__type_new_;
5441 int
5442 main ()
5443 {
5444 if ((ac__type_new_ *) 0)
5445   return 0;
5446 if (sizeof (ac__type_new_))
5447   return 0;
5448   ;
5449   return 0;
5450 }
5451 _ACEOF
5452 rm -f conftest.$ac_objext
5453 if { (ac_try="$ac_compile"
5454 case "(($ac_try" in
5455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5456   *) ac_try_echo=$ac_try;;
5457 esac
5458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5459   (eval "$ac_compile") 2>conftest.er1
5460   ac_status=$?
5461   grep -v '^ *+' conftest.er1 >conftest.err
5462   rm -f conftest.er1
5463   cat conftest.err >&5
5464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465   (exit $ac_status); } &&
5466          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5467   { (case "(($ac_try" in
5468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5469   *) ac_try_echo=$ac_try;;
5470 esac
5471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5472   (eval "$ac_try") 2>&5
5473   ac_status=$?
5474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475   (exit $ac_status); }; } &&
5476          { ac_try='test -s conftest.$ac_objext'
5477   { (case "(($ac_try" in
5478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5479   *) ac_try_echo=$ac_try;;
5480 esac
5481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5482   (eval "$ac_try") 2>&5
5483   ac_status=$?
5484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485   (exit $ac_status); }; }; then
5486   ac_cv_type_short=yes
5487 else
5488   echo "$as_me: failed program was:" >&5
5489 sed 's/^/| /' conftest.$ac_ext >&5
5490
5491         ac_cv_type_short=no
5492 fi
5493
5494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5495 fi
5496 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5497 echo "${ECHO_T}$ac_cv_type_short" >&6; }
5498
5499 { echo "$as_me:$LINENO: checking size of short" >&5
5500 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
5501 if test "${ac_cv_sizeof_short+set}" = set; then
5502   echo $ECHO_N "(cached) $ECHO_C" >&6
5503 else
5504   if test "$ac_cv_type_short" = yes; then
5505   # The cast to long int works around a bug in the HP C Compiler
5506   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5507   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5508   # This bug is HP SR number 8606223364.
5509   if test "$cross_compiling" = yes; then
5510   # Depending upon the size, compute the lo and hi bounds.
5511 cat >conftest.$ac_ext <<_ACEOF
5512 /* confdefs.h.  */
5513 _ACEOF
5514 cat confdefs.h >>conftest.$ac_ext
5515 cat >>conftest.$ac_ext <<_ACEOF
5516 /* end confdefs.h.  */
5517 $ac_includes_default
5518                    typedef short ac__type_sizeof_;
5519 int
5520 main ()
5521 {
5522 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5523 test_array [0] = 0
5524
5525   ;
5526   return 0;
5527 }
5528 _ACEOF
5529 rm -f conftest.$ac_objext
5530 if { (ac_try="$ac_compile"
5531 case "(($ac_try" in
5532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5533   *) ac_try_echo=$ac_try;;
5534 esac
5535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5536   (eval "$ac_compile") 2>conftest.er1
5537   ac_status=$?
5538   grep -v '^ *+' conftest.er1 >conftest.err
5539   rm -f conftest.er1
5540   cat conftest.err >&5
5541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542   (exit $ac_status); } &&
5543          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5544   { (case "(($ac_try" in
5545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5546   *) ac_try_echo=$ac_try;;
5547 esac
5548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5549   (eval "$ac_try") 2>&5
5550   ac_status=$?
5551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552   (exit $ac_status); }; } &&
5553          { ac_try='test -s conftest.$ac_objext'
5554   { (case "(($ac_try" in
5555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5556   *) ac_try_echo=$ac_try;;
5557 esac
5558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5559   (eval "$ac_try") 2>&5
5560   ac_status=$?
5561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5562   (exit $ac_status); }; }; then
5563   ac_lo=0 ac_mid=0
5564   while :; do
5565     cat >conftest.$ac_ext <<_ACEOF
5566 /* confdefs.h.  */
5567 _ACEOF
5568 cat confdefs.h >>conftest.$ac_ext
5569 cat >>conftest.$ac_ext <<_ACEOF
5570 /* end confdefs.h.  */
5571 $ac_includes_default
5572                    typedef short ac__type_sizeof_;
5573 int
5574 main ()
5575 {
5576 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5577 test_array [0] = 0
5578
5579   ;
5580   return 0;
5581 }
5582 _ACEOF
5583 rm -f conftest.$ac_objext
5584 if { (ac_try="$ac_compile"
5585 case "(($ac_try" in
5586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5587   *) ac_try_echo=$ac_try;;
5588 esac
5589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5590   (eval "$ac_compile") 2>conftest.er1
5591   ac_status=$?
5592   grep -v '^ *+' conftest.er1 >conftest.err
5593   rm -f conftest.er1
5594   cat conftest.err >&5
5595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596   (exit $ac_status); } &&
5597          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5598   { (case "(($ac_try" in
5599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5600   *) ac_try_echo=$ac_try;;
5601 esac
5602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5603   (eval "$ac_try") 2>&5
5604   ac_status=$?
5605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606   (exit $ac_status); }; } &&
5607          { ac_try='test -s conftest.$ac_objext'
5608   { (case "(($ac_try" in
5609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5610   *) ac_try_echo=$ac_try;;
5611 esac
5612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5613   (eval "$ac_try") 2>&5
5614   ac_status=$?
5615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616   (exit $ac_status); }; }; then
5617   ac_hi=$ac_mid; break
5618 else
5619   echo "$as_me: failed program was:" >&5
5620 sed 's/^/| /' conftest.$ac_ext >&5
5621
5622         ac_lo=`expr $ac_mid + 1`
5623                         if test $ac_lo -le $ac_mid; then
5624                           ac_lo= ac_hi=
5625                           break
5626                         fi
5627                         ac_mid=`expr 2 '*' $ac_mid + 1`
5628 fi
5629
5630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5631   done
5632 else
5633   echo "$as_me: failed program was:" >&5
5634 sed 's/^/| /' conftest.$ac_ext >&5
5635
5636         cat >conftest.$ac_ext <<_ACEOF
5637 /* confdefs.h.  */
5638 _ACEOF
5639 cat confdefs.h >>conftest.$ac_ext
5640 cat >>conftest.$ac_ext <<_ACEOF
5641 /* end confdefs.h.  */
5642 $ac_includes_default
5643                    typedef short ac__type_sizeof_;
5644 int
5645 main ()
5646 {
5647 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5648 test_array [0] = 0
5649
5650   ;
5651   return 0;
5652 }
5653 _ACEOF
5654 rm -f conftest.$ac_objext
5655 if { (ac_try="$ac_compile"
5656 case "(($ac_try" in
5657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5658   *) ac_try_echo=$ac_try;;
5659 esac
5660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5661   (eval "$ac_compile") 2>conftest.er1
5662   ac_status=$?
5663   grep -v '^ *+' conftest.er1 >conftest.err
5664   rm -f conftest.er1
5665   cat conftest.err >&5
5666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667   (exit $ac_status); } &&
5668          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5669   { (case "(($ac_try" in
5670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5671   *) ac_try_echo=$ac_try;;
5672 esac
5673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5674   (eval "$ac_try") 2>&5
5675   ac_status=$?
5676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677   (exit $ac_status); }; } &&
5678          { ac_try='test -s conftest.$ac_objext'
5679   { (case "(($ac_try" in
5680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5681   *) ac_try_echo=$ac_try;;
5682 esac
5683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5684   (eval "$ac_try") 2>&5
5685   ac_status=$?
5686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687   (exit $ac_status); }; }; then
5688   ac_hi=-1 ac_mid=-1
5689   while :; do
5690     cat >conftest.$ac_ext <<_ACEOF
5691 /* confdefs.h.  */
5692 _ACEOF
5693 cat confdefs.h >>conftest.$ac_ext
5694 cat >>conftest.$ac_ext <<_ACEOF
5695 /* end confdefs.h.  */
5696 $ac_includes_default
5697                    typedef short ac__type_sizeof_;
5698 int
5699 main ()
5700 {
5701 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5702 test_array [0] = 0
5703
5704   ;
5705   return 0;
5706 }
5707 _ACEOF
5708 rm -f conftest.$ac_objext
5709 if { (ac_try="$ac_compile"
5710 case "(($ac_try" in
5711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5712   *) ac_try_echo=$ac_try;;
5713 esac
5714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5715   (eval "$ac_compile") 2>conftest.er1
5716   ac_status=$?
5717   grep -v '^ *+' conftest.er1 >conftest.err
5718   rm -f conftest.er1
5719   cat conftest.err >&5
5720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721   (exit $ac_status); } &&
5722          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5723   { (case "(($ac_try" in
5724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5725   *) ac_try_echo=$ac_try;;
5726 esac
5727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5728   (eval "$ac_try") 2>&5
5729   ac_status=$?
5730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731   (exit $ac_status); }; } &&
5732          { ac_try='test -s conftest.$ac_objext'
5733   { (case "(($ac_try" in
5734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5735   *) ac_try_echo=$ac_try;;
5736 esac
5737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5738   (eval "$ac_try") 2>&5
5739   ac_status=$?
5740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741   (exit $ac_status); }; }; then
5742   ac_lo=$ac_mid; break
5743 else
5744   echo "$as_me: failed program was:" >&5
5745 sed 's/^/| /' conftest.$ac_ext >&5
5746
5747         ac_hi=`expr '(' $ac_mid ')' - 1`
5748                         if test $ac_mid -le $ac_hi; then
5749                           ac_lo= ac_hi=
5750                           break
5751                         fi
5752                         ac_mid=`expr 2 '*' $ac_mid`
5753 fi
5754
5755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5756   done
5757 else
5758   echo "$as_me: failed program was:" >&5
5759 sed 's/^/| /' conftest.$ac_ext >&5
5760
5761         ac_lo= ac_hi=
5762 fi
5763
5764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5765 fi
5766
5767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5768 # Binary search between lo and hi bounds.
5769 while test "x$ac_lo" != "x$ac_hi"; do
5770   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5771   cat >conftest.$ac_ext <<_ACEOF
5772 /* confdefs.h.  */
5773 _ACEOF
5774 cat confdefs.h >>conftest.$ac_ext
5775 cat >>conftest.$ac_ext <<_ACEOF
5776 /* end confdefs.h.  */
5777 $ac_includes_default
5778                    typedef short ac__type_sizeof_;
5779 int
5780 main ()
5781 {
5782 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5783 test_array [0] = 0
5784
5785   ;
5786   return 0;
5787 }
5788 _ACEOF
5789 rm -f conftest.$ac_objext
5790 if { (ac_try="$ac_compile"
5791 case "(($ac_try" in
5792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5793   *) ac_try_echo=$ac_try;;
5794 esac
5795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5796   (eval "$ac_compile") 2>conftest.er1
5797   ac_status=$?
5798   grep -v '^ *+' conftest.er1 >conftest.err
5799   rm -f conftest.er1
5800   cat conftest.err >&5
5801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802   (exit $ac_status); } &&
5803          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5804   { (case "(($ac_try" in
5805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5806   *) ac_try_echo=$ac_try;;
5807 esac
5808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5809   (eval "$ac_try") 2>&5
5810   ac_status=$?
5811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812   (exit $ac_status); }; } &&
5813          { ac_try='test -s conftest.$ac_objext'
5814   { (case "(($ac_try" in
5815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5816   *) ac_try_echo=$ac_try;;
5817 esac
5818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5819   (eval "$ac_try") 2>&5
5820   ac_status=$?
5821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822   (exit $ac_status); }; }; then
5823   ac_hi=$ac_mid
5824 else
5825   echo "$as_me: failed program was:" >&5
5826 sed 's/^/| /' conftest.$ac_ext >&5
5827
5828         ac_lo=`expr '(' $ac_mid ')' + 1`
5829 fi
5830
5831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5832 done
5833 case $ac_lo in
5834 ?*) ac_cv_sizeof_short=$ac_lo;;
5835 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
5836 See \`config.log' for more details." >&5
5837 echo "$as_me: error: cannot compute sizeof (short)
5838 See \`config.log' for more details." >&2;}
5839    { (exit 77); exit 77; }; } ;;
5840 esac
5841 else
5842   cat >conftest.$ac_ext <<_ACEOF
5843 /* confdefs.h.  */
5844 _ACEOF
5845 cat confdefs.h >>conftest.$ac_ext
5846 cat >>conftest.$ac_ext <<_ACEOF
5847 /* end confdefs.h.  */
5848 $ac_includes_default
5849                    typedef short ac__type_sizeof_;
5850 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5851 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5852 #include <stdio.h>
5853 #include <stdlib.h>
5854 int
5855 main ()
5856 {
5857
5858   FILE *f = fopen ("conftest.val", "w");
5859   if (! f)
5860     return 1;
5861   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5862     {
5863       long int i = longval ();
5864       if (i != ((long int) (sizeof (ac__type_sizeof_))))
5865         return 1;
5866       fprintf (f, "%ld\n", i);
5867     }
5868   else
5869     {
5870       unsigned long int i = ulongval ();
5871       if (i != ((long int) (sizeof (ac__type_sizeof_))))
5872         return 1;
5873       fprintf (f, "%lu\n", i);
5874     }
5875   return ferror (f) || fclose (f) != 0;
5876
5877   ;
5878   return 0;
5879 }
5880 _ACEOF
5881 rm -f conftest$ac_exeext
5882 if { (ac_try="$ac_link"
5883 case "(($ac_try" in
5884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5885   *) ac_try_echo=$ac_try;;
5886 esac
5887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5888   (eval "$ac_link") 2>&5
5889   ac_status=$?
5890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5892   { (case "(($ac_try" in
5893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5894   *) ac_try_echo=$ac_try;;
5895 esac
5896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5897   (eval "$ac_try") 2>&5
5898   ac_status=$?
5899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900   (exit $ac_status); }; }; then
5901   ac_cv_sizeof_short=`cat conftest.val`
5902 else
5903   echo "$as_me: program exited with status $ac_status" >&5
5904 echo "$as_me: failed program was:" >&5
5905 sed 's/^/| /' conftest.$ac_ext >&5
5906
5907 ( exit $ac_status )
5908 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
5909 See \`config.log' for more details." >&5
5910 echo "$as_me: error: cannot compute sizeof (short)
5911 See \`config.log' for more details." >&2;}
5912    { (exit 77); exit 77; }; }
5913 fi
5914 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5915 fi
5916 rm -f conftest.val
5917 else
5918   ac_cv_sizeof_short=0
5919 fi
5920 fi
5921 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5922 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
5923 cat >>confdefs.h <<_ACEOF
5924 #define SIZEOF_SHORT $ac_cv_sizeof_short
5925 _ACEOF
5926
5927
5928 { echo "$as_me:$LINENO: checking for int" >&5
5929 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
5930 if test "${ac_cv_type_int+set}" = set; then
5931   echo $ECHO_N "(cached) $ECHO_C" >&6
5932 else
5933   cat >conftest.$ac_ext <<_ACEOF
5934 /* confdefs.h.  */
5935 _ACEOF
5936 cat confdefs.h >>conftest.$ac_ext
5937 cat >>conftest.$ac_ext <<_ACEOF
5938 /* end confdefs.h.  */
5939 $ac_includes_default
5940 typedef int ac__type_new_;
5941 int
5942 main ()
5943 {
5944 if ((ac__type_new_ *) 0)
5945   return 0;
5946 if (sizeof (ac__type_new_))
5947   return 0;
5948   ;
5949   return 0;
5950 }
5951 _ACEOF
5952 rm -f conftest.$ac_objext
5953 if { (ac_try="$ac_compile"
5954 case "(($ac_try" in
5955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5956   *) ac_try_echo=$ac_try;;
5957 esac
5958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5959   (eval "$ac_compile") 2>conftest.er1
5960   ac_status=$?
5961   grep -v '^ *+' conftest.er1 >conftest.err
5962   rm -f conftest.er1
5963   cat conftest.err >&5
5964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965   (exit $ac_status); } &&
5966          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5967   { (case "(($ac_try" in
5968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5969   *) ac_try_echo=$ac_try;;
5970 esac
5971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5972   (eval "$ac_try") 2>&5
5973   ac_status=$?
5974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975   (exit $ac_status); }; } &&
5976          { ac_try='test -s conftest.$ac_objext'
5977   { (case "(($ac_try" in
5978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5979   *) ac_try_echo=$ac_try;;
5980 esac
5981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5982   (eval "$ac_try") 2>&5
5983   ac_status=$?
5984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985   (exit $ac_status); }; }; then
5986   ac_cv_type_int=yes
5987 else
5988   echo "$as_me: failed program was:" >&5
5989 sed 's/^/| /' conftest.$ac_ext >&5
5990
5991         ac_cv_type_int=no
5992 fi
5993
5994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5995 fi
5996 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5997 echo "${ECHO_T}$ac_cv_type_int" >&6; }
5998
5999 { echo "$as_me:$LINENO: checking size of int" >&5
6000 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
6001 if test "${ac_cv_sizeof_int+set}" = set; then
6002   echo $ECHO_N "(cached) $ECHO_C" >&6
6003 else
6004   if test "$ac_cv_type_int" = yes; then
6005   # The cast to long int works around a bug in the HP C Compiler
6006   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6007   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6008   # This bug is HP SR number 8606223364.
6009   if test "$cross_compiling" = yes; then
6010   # Depending upon the size, compute the lo and hi bounds.
6011 cat >conftest.$ac_ext <<_ACEOF
6012 /* confdefs.h.  */
6013 _ACEOF
6014 cat confdefs.h >>conftest.$ac_ext
6015 cat >>conftest.$ac_ext <<_ACEOF
6016 /* end confdefs.h.  */
6017 $ac_includes_default
6018                    typedef int ac__type_sizeof_;
6019 int
6020 main ()
6021 {
6022 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6023 test_array [0] = 0
6024
6025   ;
6026   return 0;
6027 }
6028 _ACEOF
6029 rm -f conftest.$ac_objext
6030 if { (ac_try="$ac_compile"
6031 case "(($ac_try" in
6032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6033   *) ac_try_echo=$ac_try;;
6034 esac
6035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6036   (eval "$ac_compile") 2>conftest.er1
6037   ac_status=$?
6038   grep -v '^ *+' conftest.er1 >conftest.err
6039   rm -f conftest.er1
6040   cat conftest.err >&5
6041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042   (exit $ac_status); } &&
6043          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6044   { (case "(($ac_try" in
6045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6046   *) ac_try_echo=$ac_try;;
6047 esac
6048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6049   (eval "$ac_try") 2>&5
6050   ac_status=$?
6051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052   (exit $ac_status); }; } &&
6053          { ac_try='test -s conftest.$ac_objext'
6054   { (case "(($ac_try" in
6055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6056   *) ac_try_echo=$ac_try;;
6057 esac
6058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6059   (eval "$ac_try") 2>&5
6060   ac_status=$?
6061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062   (exit $ac_status); }; }; then
6063   ac_lo=0 ac_mid=0
6064   while :; do
6065     cat >conftest.$ac_ext <<_ACEOF
6066 /* confdefs.h.  */
6067 _ACEOF
6068 cat confdefs.h >>conftest.$ac_ext
6069 cat >>conftest.$ac_ext <<_ACEOF
6070 /* end confdefs.h.  */
6071 $ac_includes_default
6072                    typedef int ac__type_sizeof_;
6073 int
6074 main ()
6075 {
6076 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6077 test_array [0] = 0
6078
6079   ;
6080   return 0;
6081 }
6082 _ACEOF
6083 rm -f conftest.$ac_objext
6084 if { (ac_try="$ac_compile"
6085 case "(($ac_try" in
6086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6087   *) ac_try_echo=$ac_try;;
6088 esac
6089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6090   (eval "$ac_compile") 2>conftest.er1
6091   ac_status=$?
6092   grep -v '^ *+' conftest.er1 >conftest.err
6093   rm -f conftest.er1
6094   cat conftest.err >&5
6095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096   (exit $ac_status); } &&
6097          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6098   { (case "(($ac_try" in
6099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6100   *) ac_try_echo=$ac_try;;
6101 esac
6102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6103   (eval "$ac_try") 2>&5
6104   ac_status=$?
6105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106   (exit $ac_status); }; } &&
6107          { ac_try='test -s conftest.$ac_objext'
6108   { (case "(($ac_try" in
6109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6110   *) ac_try_echo=$ac_try;;
6111 esac
6112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6113   (eval "$ac_try") 2>&5
6114   ac_status=$?
6115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116   (exit $ac_status); }; }; then
6117   ac_hi=$ac_mid; break
6118 else
6119   echo "$as_me: failed program was:" >&5
6120 sed 's/^/| /' conftest.$ac_ext >&5
6121
6122         ac_lo=`expr $ac_mid + 1`
6123                         if test $ac_lo -le $ac_mid; then
6124                           ac_lo= ac_hi=
6125                           break
6126                         fi
6127                         ac_mid=`expr 2 '*' $ac_mid + 1`
6128 fi
6129
6130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6131   done
6132 else
6133   echo "$as_me: failed program was:" >&5
6134 sed 's/^/| /' conftest.$ac_ext >&5
6135
6136         cat >conftest.$ac_ext <<_ACEOF
6137 /* confdefs.h.  */
6138 _ACEOF
6139 cat confdefs.h >>conftest.$ac_ext
6140 cat >>conftest.$ac_ext <<_ACEOF
6141 /* end confdefs.h.  */
6142 $ac_includes_default
6143                    typedef int ac__type_sizeof_;
6144 int
6145 main ()
6146 {
6147 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6148 test_array [0] = 0
6149
6150   ;
6151   return 0;
6152 }
6153 _ACEOF
6154 rm -f conftest.$ac_objext
6155 if { (ac_try="$ac_compile"
6156 case "(($ac_try" in
6157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6158   *) ac_try_echo=$ac_try;;
6159 esac
6160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6161   (eval "$ac_compile") 2>conftest.er1
6162   ac_status=$?
6163   grep -v '^ *+' conftest.er1 >conftest.err
6164   rm -f conftest.er1
6165   cat conftest.err >&5
6166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167   (exit $ac_status); } &&
6168          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6169   { (case "(($ac_try" in
6170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6171   *) ac_try_echo=$ac_try;;
6172 esac
6173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6174   (eval "$ac_try") 2>&5
6175   ac_status=$?
6176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177   (exit $ac_status); }; } &&
6178          { ac_try='test -s conftest.$ac_objext'
6179   { (case "(($ac_try" in
6180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6181   *) ac_try_echo=$ac_try;;
6182 esac
6183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6184   (eval "$ac_try") 2>&5
6185   ac_status=$?
6186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187   (exit $ac_status); }; }; then
6188   ac_hi=-1 ac_mid=-1
6189   while :; do
6190     cat >conftest.$ac_ext <<_ACEOF
6191 /* confdefs.h.  */
6192 _ACEOF
6193 cat confdefs.h >>conftest.$ac_ext
6194 cat >>conftest.$ac_ext <<_ACEOF
6195 /* end confdefs.h.  */
6196 $ac_includes_default
6197                    typedef int ac__type_sizeof_;
6198 int
6199 main ()
6200 {
6201 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6202 test_array [0] = 0
6203
6204   ;
6205   return 0;
6206 }
6207 _ACEOF
6208 rm -f conftest.$ac_objext
6209 if { (ac_try="$ac_compile"
6210 case "(($ac_try" in
6211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6212   *) ac_try_echo=$ac_try;;
6213 esac
6214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6215   (eval "$ac_compile") 2>conftest.er1
6216   ac_status=$?
6217   grep -v '^ *+' conftest.er1 >conftest.err
6218   rm -f conftest.er1
6219   cat conftest.err >&5
6220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221   (exit $ac_status); } &&
6222          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6223   { (case "(($ac_try" in
6224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6225   *) ac_try_echo=$ac_try;;
6226 esac
6227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6228   (eval "$ac_try") 2>&5
6229   ac_status=$?
6230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231   (exit $ac_status); }; } &&
6232          { ac_try='test -s conftest.$ac_objext'
6233   { (case "(($ac_try" in
6234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6235   *) ac_try_echo=$ac_try;;
6236 esac
6237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6238   (eval "$ac_try") 2>&5
6239   ac_status=$?
6240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241   (exit $ac_status); }; }; then
6242   ac_lo=$ac_mid; break
6243 else
6244   echo "$as_me: failed program was:" >&5
6245 sed 's/^/| /' conftest.$ac_ext >&5
6246
6247         ac_hi=`expr '(' $ac_mid ')' - 1`
6248                         if test $ac_mid -le $ac_hi; then
6249                           ac_lo= ac_hi=
6250                           break
6251                         fi
6252                         ac_mid=`expr 2 '*' $ac_mid`
6253 fi
6254
6255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6256   done
6257 else
6258   echo "$as_me: failed program was:" >&5
6259 sed 's/^/| /' conftest.$ac_ext >&5
6260
6261         ac_lo= ac_hi=
6262 fi
6263
6264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6265 fi
6266
6267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6268 # Binary search between lo and hi bounds.
6269 while test "x$ac_lo" != "x$ac_hi"; do
6270   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6271   cat >conftest.$ac_ext <<_ACEOF
6272 /* confdefs.h.  */
6273 _ACEOF
6274 cat confdefs.h >>conftest.$ac_ext
6275 cat >>conftest.$ac_ext <<_ACEOF
6276 /* end confdefs.h.  */
6277 $ac_includes_default
6278                    typedef int ac__type_sizeof_;
6279 int
6280 main ()
6281 {
6282 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6283 test_array [0] = 0
6284
6285   ;
6286   return 0;
6287 }
6288 _ACEOF
6289 rm -f conftest.$ac_objext
6290 if { (ac_try="$ac_compile"
6291 case "(($ac_try" in
6292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6293   *) ac_try_echo=$ac_try;;
6294 esac
6295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6296   (eval "$ac_compile") 2>conftest.er1
6297   ac_status=$?
6298   grep -v '^ *+' conftest.er1 >conftest.err
6299   rm -f conftest.er1
6300   cat conftest.err >&5
6301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302   (exit $ac_status); } &&
6303          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6304   { (case "(($ac_try" in
6305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6306   *) ac_try_echo=$ac_try;;
6307 esac
6308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6309   (eval "$ac_try") 2>&5
6310   ac_status=$?
6311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312   (exit $ac_status); }; } &&
6313          { ac_try='test -s conftest.$ac_objext'
6314   { (case "(($ac_try" in
6315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6316   *) ac_try_echo=$ac_try;;
6317 esac
6318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6319   (eval "$ac_try") 2>&5
6320   ac_status=$?
6321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322   (exit $ac_status); }; }; then
6323   ac_hi=$ac_mid
6324 else
6325   echo "$as_me: failed program was:" >&5
6326 sed 's/^/| /' conftest.$ac_ext >&5
6327
6328         ac_lo=`expr '(' $ac_mid ')' + 1`
6329 fi
6330
6331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6332 done
6333 case $ac_lo in
6334 ?*) ac_cv_sizeof_int=$ac_lo;;
6335 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
6336 See \`config.log' for more details." >&5
6337 echo "$as_me: error: cannot compute sizeof (int)
6338 See \`config.log' for more details." >&2;}
6339    { (exit 77); exit 77; }; } ;;
6340 esac
6341 else
6342   cat >conftest.$ac_ext <<_ACEOF
6343 /* confdefs.h.  */
6344 _ACEOF
6345 cat confdefs.h >>conftest.$ac_ext
6346 cat >>conftest.$ac_ext <<_ACEOF
6347 /* end confdefs.h.  */
6348 $ac_includes_default
6349                    typedef int ac__type_sizeof_;
6350 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6351 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6352 #include <stdio.h>
6353 #include <stdlib.h>
6354 int
6355 main ()
6356 {
6357
6358   FILE *f = fopen ("conftest.val", "w");
6359   if (! f)
6360     return 1;
6361   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6362     {
6363       long int i = longval ();
6364       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6365         return 1;
6366       fprintf (f, "%ld\n", i);
6367     }
6368   else
6369     {
6370       unsigned long int i = ulongval ();
6371       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6372         return 1;
6373       fprintf (f, "%lu\n", i);
6374     }
6375   return ferror (f) || fclose (f) != 0;
6376
6377   ;
6378   return 0;
6379 }
6380 _ACEOF
6381 rm -f conftest$ac_exeext
6382 if { (ac_try="$ac_link"
6383 case "(($ac_try" in
6384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6385   *) ac_try_echo=$ac_try;;
6386 esac
6387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6388   (eval "$ac_link") 2>&5
6389   ac_status=$?
6390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6392   { (case "(($ac_try" in
6393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6394   *) ac_try_echo=$ac_try;;
6395 esac
6396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6397   (eval "$ac_try") 2>&5
6398   ac_status=$?
6399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400   (exit $ac_status); }; }; then
6401   ac_cv_sizeof_int=`cat conftest.val`
6402 else
6403   echo "$as_me: program exited with status $ac_status" >&5
6404 echo "$as_me: failed program was:" >&5
6405 sed 's/^/| /' conftest.$ac_ext >&5
6406
6407 ( exit $ac_status )
6408 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
6409 See \`config.log' for more details." >&5
6410 echo "$as_me: error: cannot compute sizeof (int)
6411 See \`config.log' for more details." >&2;}
6412    { (exit 77); exit 77; }; }
6413 fi
6414 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6415 fi
6416 rm -f conftest.val
6417 else
6418   ac_cv_sizeof_int=0
6419 fi
6420 fi
6421 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6422 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
6423 cat >>confdefs.h <<_ACEOF
6424 #define SIZEOF_INT $ac_cv_sizeof_int
6425 _ACEOF
6426
6427
6428 { echo "$as_me:$LINENO: checking for long" >&5
6429 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
6430 if test "${ac_cv_type_long+set}" = set; then
6431   echo $ECHO_N "(cached) $ECHO_C" >&6
6432 else
6433   cat >conftest.$ac_ext <<_ACEOF
6434 /* confdefs.h.  */
6435 _ACEOF
6436 cat confdefs.h >>conftest.$ac_ext
6437 cat >>conftest.$ac_ext <<_ACEOF
6438 /* end confdefs.h.  */
6439 $ac_includes_default
6440 typedef long ac__type_new_;
6441 int
6442 main ()
6443 {
6444 if ((ac__type_new_ *) 0)
6445   return 0;
6446 if (sizeof (ac__type_new_))
6447   return 0;
6448   ;
6449   return 0;
6450 }
6451 _ACEOF
6452 rm -f conftest.$ac_objext
6453 if { (ac_try="$ac_compile"
6454 case "(($ac_try" in
6455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6456   *) ac_try_echo=$ac_try;;
6457 esac
6458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6459   (eval "$ac_compile") 2>conftest.er1
6460   ac_status=$?
6461   grep -v '^ *+' conftest.er1 >conftest.err
6462   rm -f conftest.er1
6463   cat conftest.err >&5
6464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465   (exit $ac_status); } &&
6466          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6467   { (case "(($ac_try" in
6468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6469   *) ac_try_echo=$ac_try;;
6470 esac
6471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6472   (eval "$ac_try") 2>&5
6473   ac_status=$?
6474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475   (exit $ac_status); }; } &&
6476          { ac_try='test -s conftest.$ac_objext'
6477   { (case "(($ac_try" in
6478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6479   *) ac_try_echo=$ac_try;;
6480 esac
6481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6482   (eval "$ac_try") 2>&5
6483   ac_status=$?
6484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485   (exit $ac_status); }; }; then
6486   ac_cv_type_long=yes
6487 else
6488   echo "$as_me: failed program was:" >&5
6489 sed 's/^/| /' conftest.$ac_ext >&5
6490
6491         ac_cv_type_long=no
6492 fi
6493
6494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6495 fi
6496 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6497 echo "${ECHO_T}$ac_cv_type_long" >&6; }
6498
6499 { echo "$as_me:$LINENO: checking size of long" >&5
6500 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
6501 if test "${ac_cv_sizeof_long+set}" = set; then
6502   echo $ECHO_N "(cached) $ECHO_C" >&6
6503 else
6504   if test "$ac_cv_type_long" = yes; then
6505   # The cast to long int works around a bug in the HP C Compiler
6506   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6507   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6508   # This bug is HP SR number 8606223364.
6509   if test "$cross_compiling" = yes; then
6510   # Depending upon the size, compute the lo and hi bounds.
6511 cat >conftest.$ac_ext <<_ACEOF
6512 /* confdefs.h.  */
6513 _ACEOF
6514 cat confdefs.h >>conftest.$ac_ext
6515 cat >>conftest.$ac_ext <<_ACEOF
6516 /* end confdefs.h.  */
6517 $ac_includes_default
6518                    typedef long ac__type_sizeof_;
6519 int
6520 main ()
6521 {
6522 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6523 test_array [0] = 0
6524
6525   ;
6526   return 0;
6527 }
6528 _ACEOF
6529 rm -f conftest.$ac_objext
6530 if { (ac_try="$ac_compile"
6531 case "(($ac_try" in
6532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6533   *) ac_try_echo=$ac_try;;
6534 esac
6535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6536   (eval "$ac_compile") 2>conftest.er1
6537   ac_status=$?
6538   grep -v '^ *+' conftest.er1 >conftest.err
6539   rm -f conftest.er1
6540   cat conftest.err >&5
6541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542   (exit $ac_status); } &&
6543          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6544   { (case "(($ac_try" in
6545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6546   *) ac_try_echo=$ac_try;;
6547 esac
6548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6549   (eval "$ac_try") 2>&5
6550   ac_status=$?
6551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552   (exit $ac_status); }; } &&
6553          { ac_try='test -s conftest.$ac_objext'
6554   { (case "(($ac_try" in
6555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6556   *) ac_try_echo=$ac_try;;
6557 esac
6558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6559   (eval "$ac_try") 2>&5
6560   ac_status=$?
6561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562   (exit $ac_status); }; }; then
6563   ac_lo=0 ac_mid=0
6564   while :; do
6565     cat >conftest.$ac_ext <<_ACEOF
6566 /* confdefs.h.  */
6567 _ACEOF
6568 cat confdefs.h >>conftest.$ac_ext
6569 cat >>conftest.$ac_ext <<_ACEOF
6570 /* end confdefs.h.  */
6571 $ac_includes_default
6572                    typedef long ac__type_sizeof_;
6573 int
6574 main ()
6575 {
6576 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6577 test_array [0] = 0
6578
6579   ;
6580   return 0;
6581 }
6582 _ACEOF
6583 rm -f conftest.$ac_objext
6584 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
6591   ac_status=$?
6592   grep -v '^ *+' conftest.er1 >conftest.err
6593   rm -f conftest.er1
6594   cat conftest.err >&5
6595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596   (exit $ac_status); } &&
6597          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6598   { (case "(($ac_try" in
6599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6600   *) ac_try_echo=$ac_try;;
6601 esac
6602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6603   (eval "$ac_try") 2>&5
6604   ac_status=$?
6605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606   (exit $ac_status); }; } &&
6607          { ac_try='test -s conftest.$ac_objext'
6608   { (case "(($ac_try" in
6609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6610   *) ac_try_echo=$ac_try;;
6611 esac
6612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6613   (eval "$ac_try") 2>&5
6614   ac_status=$?
6615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616   (exit $ac_status); }; }; then
6617   ac_hi=$ac_mid; break
6618 else
6619   echo "$as_me: failed program was:" >&5
6620 sed 's/^/| /' conftest.$ac_ext >&5
6621
6622         ac_lo=`expr $ac_mid + 1`
6623                         if test $ac_lo -le $ac_mid; then
6624                           ac_lo= ac_hi=
6625                           break
6626                         fi
6627                         ac_mid=`expr 2 '*' $ac_mid + 1`
6628 fi
6629
6630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6631   done
6632 else
6633   echo "$as_me: failed program was:" >&5
6634 sed 's/^/| /' conftest.$ac_ext >&5
6635
6636         cat >conftest.$ac_ext <<_ACEOF
6637 /* confdefs.h.  */
6638 _ACEOF
6639 cat confdefs.h >>conftest.$ac_ext
6640 cat >>conftest.$ac_ext <<_ACEOF
6641 /* end confdefs.h.  */
6642 $ac_includes_default
6643                    typedef long ac__type_sizeof_;
6644 int
6645 main ()
6646 {
6647 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6648 test_array [0] = 0
6649
6650   ;
6651   return 0;
6652 }
6653 _ACEOF
6654 rm -f conftest.$ac_objext
6655 if { (ac_try="$ac_compile"
6656 case "(($ac_try" in
6657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6658   *) ac_try_echo=$ac_try;;
6659 esac
6660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6661   (eval "$ac_compile") 2>conftest.er1
6662   ac_status=$?
6663   grep -v '^ *+' conftest.er1 >conftest.err
6664   rm -f conftest.er1
6665   cat conftest.err >&5
6666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667   (exit $ac_status); } &&
6668          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6669   { (case "(($ac_try" in
6670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6671   *) ac_try_echo=$ac_try;;
6672 esac
6673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6674   (eval "$ac_try") 2>&5
6675   ac_status=$?
6676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677   (exit $ac_status); }; } &&
6678          { ac_try='test -s conftest.$ac_objext'
6679   { (case "(($ac_try" in
6680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6681   *) ac_try_echo=$ac_try;;
6682 esac
6683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6684   (eval "$ac_try") 2>&5
6685   ac_status=$?
6686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687   (exit $ac_status); }; }; then
6688   ac_hi=-1 ac_mid=-1
6689   while :; do
6690     cat >conftest.$ac_ext <<_ACEOF
6691 /* confdefs.h.  */
6692 _ACEOF
6693 cat confdefs.h >>conftest.$ac_ext
6694 cat >>conftest.$ac_ext <<_ACEOF
6695 /* end confdefs.h.  */
6696 $ac_includes_default
6697                    typedef long ac__type_sizeof_;
6698 int
6699 main ()
6700 {
6701 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6702 test_array [0] = 0
6703
6704   ;
6705   return 0;
6706 }
6707 _ACEOF
6708 rm -f conftest.$ac_objext
6709 if { (ac_try="$ac_compile"
6710 case "(($ac_try" in
6711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6712   *) ac_try_echo=$ac_try;;
6713 esac
6714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6715   (eval "$ac_compile") 2>conftest.er1
6716   ac_status=$?
6717   grep -v '^ *+' conftest.er1 >conftest.err
6718   rm -f conftest.er1
6719   cat conftest.err >&5
6720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721   (exit $ac_status); } &&
6722          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6723   { (case "(($ac_try" in
6724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6725   *) ac_try_echo=$ac_try;;
6726 esac
6727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6728   (eval "$ac_try") 2>&5
6729   ac_status=$?
6730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731   (exit $ac_status); }; } &&
6732          { ac_try='test -s conftest.$ac_objext'
6733   { (case "(($ac_try" in
6734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6735   *) ac_try_echo=$ac_try;;
6736 esac
6737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6738   (eval "$ac_try") 2>&5
6739   ac_status=$?
6740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741   (exit $ac_status); }; }; then
6742   ac_lo=$ac_mid; break
6743 else
6744   echo "$as_me: failed program was:" >&5
6745 sed 's/^/| /' conftest.$ac_ext >&5
6746
6747         ac_hi=`expr '(' $ac_mid ')' - 1`
6748                         if test $ac_mid -le $ac_hi; then
6749                           ac_lo= ac_hi=
6750                           break
6751                         fi
6752                         ac_mid=`expr 2 '*' $ac_mid`
6753 fi
6754
6755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6756   done
6757 else
6758   echo "$as_me: failed program was:" >&5
6759 sed 's/^/| /' conftest.$ac_ext >&5
6760
6761         ac_lo= ac_hi=
6762 fi
6763
6764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6765 fi
6766
6767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6768 # Binary search between lo and hi bounds.
6769 while test "x$ac_lo" != "x$ac_hi"; do
6770   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6771   cat >conftest.$ac_ext <<_ACEOF
6772 /* confdefs.h.  */
6773 _ACEOF
6774 cat confdefs.h >>conftest.$ac_ext
6775 cat >>conftest.$ac_ext <<_ACEOF
6776 /* end confdefs.h.  */
6777 $ac_includes_default
6778                    typedef long ac__type_sizeof_;
6779 int
6780 main ()
6781 {
6782 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6783 test_array [0] = 0
6784
6785   ;
6786   return 0;
6787 }
6788 _ACEOF
6789 rm -f conftest.$ac_objext
6790 if { (ac_try="$ac_compile"
6791 case "(($ac_try" in
6792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6793   *) ac_try_echo=$ac_try;;
6794 esac
6795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6796   (eval "$ac_compile") 2>conftest.er1
6797   ac_status=$?
6798   grep -v '^ *+' conftest.er1 >conftest.err
6799   rm -f conftest.er1
6800   cat conftest.err >&5
6801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802   (exit $ac_status); } &&
6803          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6804   { (case "(($ac_try" in
6805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6806   *) ac_try_echo=$ac_try;;
6807 esac
6808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6809   (eval "$ac_try") 2>&5
6810   ac_status=$?
6811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812   (exit $ac_status); }; } &&
6813          { ac_try='test -s conftest.$ac_objext'
6814   { (case "(($ac_try" in
6815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6816   *) ac_try_echo=$ac_try;;
6817 esac
6818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6819   (eval "$ac_try") 2>&5
6820   ac_status=$?
6821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822   (exit $ac_status); }; }; then
6823   ac_hi=$ac_mid
6824 else
6825   echo "$as_me: failed program was:" >&5
6826 sed 's/^/| /' conftest.$ac_ext >&5
6827
6828         ac_lo=`expr '(' $ac_mid ')' + 1`
6829 fi
6830
6831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6832 done
6833 case $ac_lo in
6834 ?*) ac_cv_sizeof_long=$ac_lo;;
6835 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6836 See \`config.log' for more details." >&5
6837 echo "$as_me: error: cannot compute sizeof (long)
6838 See \`config.log' for more details." >&2;}
6839    { (exit 77); exit 77; }; } ;;
6840 esac
6841 else
6842   cat >conftest.$ac_ext <<_ACEOF
6843 /* confdefs.h.  */
6844 _ACEOF
6845 cat confdefs.h >>conftest.$ac_ext
6846 cat >>conftest.$ac_ext <<_ACEOF
6847 /* end confdefs.h.  */
6848 $ac_includes_default
6849                    typedef long ac__type_sizeof_;
6850 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6851 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6852 #include <stdio.h>
6853 #include <stdlib.h>
6854 int
6855 main ()
6856 {
6857
6858   FILE *f = fopen ("conftest.val", "w");
6859   if (! f)
6860     return 1;
6861   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6862     {
6863       long int i = longval ();
6864       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6865         return 1;
6866       fprintf (f, "%ld\n", i);
6867     }
6868   else
6869     {
6870       unsigned long int i = ulongval ();
6871       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6872         return 1;
6873       fprintf (f, "%lu\n", i);
6874     }
6875   return ferror (f) || fclose (f) != 0;
6876
6877   ;
6878   return 0;
6879 }
6880 _ACEOF
6881 rm -f conftest$ac_exeext
6882 if { (ac_try="$ac_link"
6883 case "(($ac_try" in
6884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6885   *) ac_try_echo=$ac_try;;
6886 esac
6887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6888   (eval "$ac_link") 2>&5
6889   ac_status=$?
6890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6892   { (case "(($ac_try" in
6893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6894   *) ac_try_echo=$ac_try;;
6895 esac
6896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6897   (eval "$ac_try") 2>&5
6898   ac_status=$?
6899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900   (exit $ac_status); }; }; then
6901   ac_cv_sizeof_long=`cat conftest.val`
6902 else
6903   echo "$as_me: program exited with status $ac_status" >&5
6904 echo "$as_me: failed program was:" >&5
6905 sed 's/^/| /' conftest.$ac_ext >&5
6906
6907 ( exit $ac_status )
6908 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6909 See \`config.log' for more details." >&5
6910 echo "$as_me: error: cannot compute sizeof (long)
6911 See \`config.log' for more details." >&2;}
6912    { (exit 77); exit 77; }; }
6913 fi
6914 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6915 fi
6916 rm -f conftest.val
6917 else
6918   ac_cv_sizeof_long=0
6919 fi
6920 fi
6921 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6922 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
6923 cat >>confdefs.h <<_ACEOF
6924 #define SIZEOF_LONG $ac_cv_sizeof_long
6925 _ACEOF
6926
6927
6928 { echo "$as_me:$LINENO: checking for float" >&5
6929 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
6930 if test "${ac_cv_type_float+set}" = set; then
6931   echo $ECHO_N "(cached) $ECHO_C" >&6
6932 else
6933   cat >conftest.$ac_ext <<_ACEOF
6934 /* confdefs.h.  */
6935 _ACEOF
6936 cat confdefs.h >>conftest.$ac_ext
6937 cat >>conftest.$ac_ext <<_ACEOF
6938 /* end confdefs.h.  */
6939 $ac_includes_default
6940 typedef float ac__type_new_;
6941 int
6942 main ()
6943 {
6944 if ((ac__type_new_ *) 0)
6945   return 0;
6946 if (sizeof (ac__type_new_))
6947   return 0;
6948   ;
6949   return 0;
6950 }
6951 _ACEOF
6952 rm -f conftest.$ac_objext
6953 if { (ac_try="$ac_compile"
6954 case "(($ac_try" in
6955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6956   *) ac_try_echo=$ac_try;;
6957 esac
6958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6959   (eval "$ac_compile") 2>conftest.er1
6960   ac_status=$?
6961   grep -v '^ *+' conftest.er1 >conftest.err
6962   rm -f conftest.er1
6963   cat conftest.err >&5
6964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965   (exit $ac_status); } &&
6966          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6967   { (case "(($ac_try" in
6968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6969   *) ac_try_echo=$ac_try;;
6970 esac
6971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6972   (eval "$ac_try") 2>&5
6973   ac_status=$?
6974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975   (exit $ac_status); }; } &&
6976          { ac_try='test -s conftest.$ac_objext'
6977   { (case "(($ac_try" in
6978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6979   *) ac_try_echo=$ac_try;;
6980 esac
6981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6982   (eval "$ac_try") 2>&5
6983   ac_status=$?
6984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985   (exit $ac_status); }; }; then
6986   ac_cv_type_float=yes
6987 else
6988   echo "$as_me: failed program was:" >&5
6989 sed 's/^/| /' conftest.$ac_ext >&5
6990
6991         ac_cv_type_float=no
6992 fi
6993
6994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6995 fi
6996 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
6997 echo "${ECHO_T}$ac_cv_type_float" >&6; }
6998
6999 { echo "$as_me:$LINENO: checking size of float" >&5
7000 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
7001 if test "${ac_cv_sizeof_float+set}" = set; then
7002   echo $ECHO_N "(cached) $ECHO_C" >&6
7003 else
7004   if test "$ac_cv_type_float" = yes; then
7005   # The cast to long int works around a bug in the HP C Compiler
7006   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7007   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7008   # This bug is HP SR number 8606223364.
7009   if test "$cross_compiling" = yes; then
7010   # Depending upon the size, compute the lo and hi bounds.
7011 cat >conftest.$ac_ext <<_ACEOF
7012 /* confdefs.h.  */
7013 _ACEOF
7014 cat confdefs.h >>conftest.$ac_ext
7015 cat >>conftest.$ac_ext <<_ACEOF
7016 /* end confdefs.h.  */
7017 $ac_includes_default
7018                    typedef float ac__type_sizeof_;
7019 int
7020 main ()
7021 {
7022 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7023 test_array [0] = 0
7024
7025   ;
7026   return 0;
7027 }
7028 _ACEOF
7029 rm -f conftest.$ac_objext
7030 if { (ac_try="$ac_compile"
7031 case "(($ac_try" in
7032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7033   *) ac_try_echo=$ac_try;;
7034 esac
7035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7036   (eval "$ac_compile") 2>conftest.er1
7037   ac_status=$?
7038   grep -v '^ *+' conftest.er1 >conftest.err
7039   rm -f conftest.er1
7040   cat conftest.err >&5
7041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042   (exit $ac_status); } &&
7043          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7044   { (case "(($ac_try" in
7045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7046   *) ac_try_echo=$ac_try;;
7047 esac
7048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7049   (eval "$ac_try") 2>&5
7050   ac_status=$?
7051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052   (exit $ac_status); }; } &&
7053          { ac_try='test -s conftest.$ac_objext'
7054   { (case "(($ac_try" in
7055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7056   *) ac_try_echo=$ac_try;;
7057 esac
7058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7059   (eval "$ac_try") 2>&5
7060   ac_status=$?
7061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062   (exit $ac_status); }; }; then
7063   ac_lo=0 ac_mid=0
7064   while :; do
7065     cat >conftest.$ac_ext <<_ACEOF
7066 /* confdefs.h.  */
7067 _ACEOF
7068 cat confdefs.h >>conftest.$ac_ext
7069 cat >>conftest.$ac_ext <<_ACEOF
7070 /* end confdefs.h.  */
7071 $ac_includes_default
7072                    typedef float ac__type_sizeof_;
7073 int
7074 main ()
7075 {
7076 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7077 test_array [0] = 0
7078
7079   ;
7080   return 0;
7081 }
7082 _ACEOF
7083 rm -f conftest.$ac_objext
7084 if { (ac_try="$ac_compile"
7085 case "(($ac_try" in
7086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7087   *) ac_try_echo=$ac_try;;
7088 esac
7089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7090   (eval "$ac_compile") 2>conftest.er1
7091   ac_status=$?
7092   grep -v '^ *+' conftest.er1 >conftest.err
7093   rm -f conftest.er1
7094   cat conftest.err >&5
7095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096   (exit $ac_status); } &&
7097          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
7107          { ac_try='test -s conftest.$ac_objext'
7108   { (case "(($ac_try" in
7109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7110   *) ac_try_echo=$ac_try;;
7111 esac
7112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7113   (eval "$ac_try") 2>&5
7114   ac_status=$?
7115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7116   (exit $ac_status); }; }; then
7117   ac_hi=$ac_mid; break
7118 else
7119   echo "$as_me: failed program was:" >&5
7120 sed 's/^/| /' conftest.$ac_ext >&5
7121
7122         ac_lo=`expr $ac_mid + 1`
7123                         if test $ac_lo -le $ac_mid; then
7124                           ac_lo= ac_hi=
7125                           break
7126                         fi
7127                         ac_mid=`expr 2 '*' $ac_mid + 1`
7128 fi
7129
7130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7131   done
7132 else
7133   echo "$as_me: failed program was:" >&5
7134 sed 's/^/| /' conftest.$ac_ext >&5
7135
7136         cat >conftest.$ac_ext <<_ACEOF
7137 /* confdefs.h.  */
7138 _ACEOF
7139 cat confdefs.h >>conftest.$ac_ext
7140 cat >>conftest.$ac_ext <<_ACEOF
7141 /* end confdefs.h.  */
7142 $ac_includes_default
7143                    typedef float ac__type_sizeof_;
7144 int
7145 main ()
7146 {
7147 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7148 test_array [0] = 0
7149
7150   ;
7151   return 0;
7152 }
7153 _ACEOF
7154 rm -f conftest.$ac_objext
7155 if { (ac_try="$ac_compile"
7156 case "(($ac_try" in
7157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7158   *) ac_try_echo=$ac_try;;
7159 esac
7160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7161   (eval "$ac_compile") 2>conftest.er1
7162   ac_status=$?
7163   grep -v '^ *+' conftest.er1 >conftest.err
7164   rm -f conftest.er1
7165   cat conftest.err >&5
7166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167   (exit $ac_status); } &&
7168          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7169   { (case "(($ac_try" in
7170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7171   *) ac_try_echo=$ac_try;;
7172 esac
7173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7174   (eval "$ac_try") 2>&5
7175   ac_status=$?
7176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177   (exit $ac_status); }; } &&
7178          { ac_try='test -s conftest.$ac_objext'
7179   { (case "(($ac_try" in
7180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7181   *) ac_try_echo=$ac_try;;
7182 esac
7183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7184   (eval "$ac_try") 2>&5
7185   ac_status=$?
7186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187   (exit $ac_status); }; }; then
7188   ac_hi=-1 ac_mid=-1
7189   while :; do
7190     cat >conftest.$ac_ext <<_ACEOF
7191 /* confdefs.h.  */
7192 _ACEOF
7193 cat confdefs.h >>conftest.$ac_ext
7194 cat >>conftest.$ac_ext <<_ACEOF
7195 /* end confdefs.h.  */
7196 $ac_includes_default
7197                    typedef float ac__type_sizeof_;
7198 int
7199 main ()
7200 {
7201 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7202 test_array [0] = 0
7203
7204   ;
7205   return 0;
7206 }
7207 _ACEOF
7208 rm -f conftest.$ac_objext
7209 if { (ac_try="$ac_compile"
7210 case "(($ac_try" in
7211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7212   *) ac_try_echo=$ac_try;;
7213 esac
7214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7215   (eval "$ac_compile") 2>conftest.er1
7216   ac_status=$?
7217   grep -v '^ *+' conftest.er1 >conftest.err
7218   rm -f conftest.er1
7219   cat conftest.err >&5
7220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221   (exit $ac_status); } &&
7222          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7223   { (case "(($ac_try" in
7224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7225   *) ac_try_echo=$ac_try;;
7226 esac
7227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7228   (eval "$ac_try") 2>&5
7229   ac_status=$?
7230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231   (exit $ac_status); }; } &&
7232          { ac_try='test -s conftest.$ac_objext'
7233   { (case "(($ac_try" in
7234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7235   *) ac_try_echo=$ac_try;;
7236 esac
7237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7238   (eval "$ac_try") 2>&5
7239   ac_status=$?
7240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7241   (exit $ac_status); }; }; then
7242   ac_lo=$ac_mid; break
7243 else
7244   echo "$as_me: failed program was:" >&5
7245 sed 's/^/| /' conftest.$ac_ext >&5
7246
7247         ac_hi=`expr '(' $ac_mid ')' - 1`
7248                         if test $ac_mid -le $ac_hi; then
7249                           ac_lo= ac_hi=
7250                           break
7251                         fi
7252                         ac_mid=`expr 2 '*' $ac_mid`
7253 fi
7254
7255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7256   done
7257 else
7258   echo "$as_me: failed program was:" >&5
7259 sed 's/^/| /' conftest.$ac_ext >&5
7260
7261         ac_lo= ac_hi=
7262 fi
7263
7264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7265 fi
7266
7267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7268 # Binary search between lo and hi bounds.
7269 while test "x$ac_lo" != "x$ac_hi"; do
7270   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7271   cat >conftest.$ac_ext <<_ACEOF
7272 /* confdefs.h.  */
7273 _ACEOF
7274 cat confdefs.h >>conftest.$ac_ext
7275 cat >>conftest.$ac_ext <<_ACEOF
7276 /* end confdefs.h.  */
7277 $ac_includes_default
7278                    typedef float ac__type_sizeof_;
7279 int
7280 main ()
7281 {
7282 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7283 test_array [0] = 0
7284
7285   ;
7286   return 0;
7287 }
7288 _ACEOF
7289 rm -f conftest.$ac_objext
7290 if { (ac_try="$ac_compile"
7291 case "(($ac_try" in
7292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7293   *) ac_try_echo=$ac_try;;
7294 esac
7295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7296   (eval "$ac_compile") 2>conftest.er1
7297   ac_status=$?
7298   grep -v '^ *+' conftest.er1 >conftest.err
7299   rm -f conftest.er1
7300   cat conftest.err >&5
7301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302   (exit $ac_status); } &&
7303          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7304   { (case "(($ac_try" in
7305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7306   *) ac_try_echo=$ac_try;;
7307 esac
7308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7309   (eval "$ac_try") 2>&5
7310   ac_status=$?
7311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7312   (exit $ac_status); }; } &&
7313          { ac_try='test -s conftest.$ac_objext'
7314   { (case "(($ac_try" in
7315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7316   *) ac_try_echo=$ac_try;;
7317 esac
7318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7319   (eval "$ac_try") 2>&5
7320   ac_status=$?
7321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322   (exit $ac_status); }; }; then
7323   ac_hi=$ac_mid
7324 else
7325   echo "$as_me: failed program was:" >&5
7326 sed 's/^/| /' conftest.$ac_ext >&5
7327
7328         ac_lo=`expr '(' $ac_mid ')' + 1`
7329 fi
7330
7331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7332 done
7333 case $ac_lo in
7334 ?*) ac_cv_sizeof_float=$ac_lo;;
7335 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
7336 See \`config.log' for more details." >&5
7337 echo "$as_me: error: cannot compute sizeof (float)
7338 See \`config.log' for more details." >&2;}
7339    { (exit 77); exit 77; }; } ;;
7340 esac
7341 else
7342   cat >conftest.$ac_ext <<_ACEOF
7343 /* confdefs.h.  */
7344 _ACEOF
7345 cat confdefs.h >>conftest.$ac_ext
7346 cat >>conftest.$ac_ext <<_ACEOF
7347 /* end confdefs.h.  */
7348 $ac_includes_default
7349                    typedef float ac__type_sizeof_;
7350 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7351 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7352 #include <stdio.h>
7353 #include <stdlib.h>
7354 int
7355 main ()
7356 {
7357
7358   FILE *f = fopen ("conftest.val", "w");
7359   if (! f)
7360     return 1;
7361   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7362     {
7363       long int i = longval ();
7364       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7365         return 1;
7366       fprintf (f, "%ld\n", i);
7367     }
7368   else
7369     {
7370       unsigned long int i = ulongval ();
7371       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7372         return 1;
7373       fprintf (f, "%lu\n", i);
7374     }
7375   return ferror (f) || fclose (f) != 0;
7376
7377   ;
7378   return 0;
7379 }
7380 _ACEOF
7381 rm -f conftest$ac_exeext
7382 if { (ac_try="$ac_link"
7383 case "(($ac_try" in
7384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7385   *) ac_try_echo=$ac_try;;
7386 esac
7387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7388   (eval "$ac_link") 2>&5
7389   ac_status=$?
7390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7391   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7392   { (case "(($ac_try" in
7393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7394   *) ac_try_echo=$ac_try;;
7395 esac
7396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7397   (eval "$ac_try") 2>&5
7398   ac_status=$?
7399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7400   (exit $ac_status); }; }; then
7401   ac_cv_sizeof_float=`cat conftest.val`
7402 else
7403   echo "$as_me: program exited with status $ac_status" >&5
7404 echo "$as_me: failed program was:" >&5
7405 sed 's/^/| /' conftest.$ac_ext >&5
7406
7407 ( exit $ac_status )
7408 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
7409 See \`config.log' for more details." >&5
7410 echo "$as_me: error: cannot compute sizeof (float)
7411 See \`config.log' for more details." >&2;}
7412    { (exit 77); exit 77; }; }
7413 fi
7414 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7415 fi
7416 rm -f conftest.val
7417 else
7418   ac_cv_sizeof_float=0
7419 fi
7420 fi
7421 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
7422 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
7423 cat >>confdefs.h <<_ACEOF
7424 #define SIZEOF_FLOAT $ac_cv_sizeof_float
7425 _ACEOF
7426
7427
7428 { echo "$as_me:$LINENO: checking for double" >&5
7429 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
7430 if test "${ac_cv_type_double+set}" = set; then
7431   echo $ECHO_N "(cached) $ECHO_C" >&6
7432 else
7433   cat >conftest.$ac_ext <<_ACEOF
7434 /* confdefs.h.  */
7435 _ACEOF
7436 cat confdefs.h >>conftest.$ac_ext
7437 cat >>conftest.$ac_ext <<_ACEOF
7438 /* end confdefs.h.  */
7439 $ac_includes_default
7440 typedef double ac__type_new_;
7441 int
7442 main ()
7443 {
7444 if ((ac__type_new_ *) 0)
7445   return 0;
7446 if (sizeof (ac__type_new_))
7447   return 0;
7448   ;
7449   return 0;
7450 }
7451 _ACEOF
7452 rm -f conftest.$ac_objext
7453 if { (ac_try="$ac_compile"
7454 case "(($ac_try" in
7455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7456   *) ac_try_echo=$ac_try;;
7457 esac
7458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7459   (eval "$ac_compile") 2>conftest.er1
7460   ac_status=$?
7461   grep -v '^ *+' conftest.er1 >conftest.err
7462   rm -f conftest.er1
7463   cat conftest.err >&5
7464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465   (exit $ac_status); } &&
7466          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7467   { (case "(($ac_try" in
7468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7469   *) ac_try_echo=$ac_try;;
7470 esac
7471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7472   (eval "$ac_try") 2>&5
7473   ac_status=$?
7474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475   (exit $ac_status); }; } &&
7476          { ac_try='test -s conftest.$ac_objext'
7477   { (case "(($ac_try" in
7478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7479   *) ac_try_echo=$ac_try;;
7480 esac
7481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7482   (eval "$ac_try") 2>&5
7483   ac_status=$?
7484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485   (exit $ac_status); }; }; then
7486   ac_cv_type_double=yes
7487 else
7488   echo "$as_me: failed program was:" >&5
7489 sed 's/^/| /' conftest.$ac_ext >&5
7490
7491         ac_cv_type_double=no
7492 fi
7493
7494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7495 fi
7496 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
7497 echo "${ECHO_T}$ac_cv_type_double" >&6; }
7498
7499 { echo "$as_me:$LINENO: checking size of double" >&5
7500 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
7501 if test "${ac_cv_sizeof_double+set}" = set; then
7502   echo $ECHO_N "(cached) $ECHO_C" >&6
7503 else
7504   if test "$ac_cv_type_double" = yes; then
7505   # The cast to long int works around a bug in the HP C Compiler
7506   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7507   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7508   # This bug is HP SR number 8606223364.
7509   if test "$cross_compiling" = yes; then
7510   # Depending upon the size, compute the lo and hi bounds.
7511 cat >conftest.$ac_ext <<_ACEOF
7512 /* confdefs.h.  */
7513 _ACEOF
7514 cat confdefs.h >>conftest.$ac_ext
7515 cat >>conftest.$ac_ext <<_ACEOF
7516 /* end confdefs.h.  */
7517 $ac_includes_default
7518                    typedef double ac__type_sizeof_;
7519 int
7520 main ()
7521 {
7522 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7523 test_array [0] = 0
7524
7525   ;
7526   return 0;
7527 }
7528 _ACEOF
7529 rm -f conftest.$ac_objext
7530 if { (ac_try="$ac_compile"
7531 case "(($ac_try" in
7532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7533   *) ac_try_echo=$ac_try;;
7534 esac
7535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7536   (eval "$ac_compile") 2>conftest.er1
7537   ac_status=$?
7538   grep -v '^ *+' conftest.er1 >conftest.err
7539   rm -f conftest.er1
7540   cat conftest.err >&5
7541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542   (exit $ac_status); } &&
7543          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7544   { (case "(($ac_try" in
7545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7546   *) ac_try_echo=$ac_try;;
7547 esac
7548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7549   (eval "$ac_try") 2>&5
7550   ac_status=$?
7551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552   (exit $ac_status); }; } &&
7553          { ac_try='test -s conftest.$ac_objext'
7554   { (case "(($ac_try" in
7555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7556   *) ac_try_echo=$ac_try;;
7557 esac
7558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7559   (eval "$ac_try") 2>&5
7560   ac_status=$?
7561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562   (exit $ac_status); }; }; then
7563   ac_lo=0 ac_mid=0
7564   while :; do
7565     cat >conftest.$ac_ext <<_ACEOF
7566 /* confdefs.h.  */
7567 _ACEOF
7568 cat confdefs.h >>conftest.$ac_ext
7569 cat >>conftest.$ac_ext <<_ACEOF
7570 /* end confdefs.h.  */
7571 $ac_includes_default
7572                    typedef double ac__type_sizeof_;
7573 int
7574 main ()
7575 {
7576 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7577 test_array [0] = 0
7578
7579   ;
7580   return 0;
7581 }
7582 _ACEOF
7583 rm -f conftest.$ac_objext
7584 if { (ac_try="$ac_compile"
7585 case "(($ac_try" in
7586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7587   *) ac_try_echo=$ac_try;;
7588 esac
7589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7590   (eval "$ac_compile") 2>conftest.er1
7591   ac_status=$?
7592   grep -v '^ *+' conftest.er1 >conftest.err
7593   rm -f conftest.er1
7594   cat conftest.err >&5
7595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596   (exit $ac_status); } &&
7597          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7598   { (case "(($ac_try" in
7599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7600   *) ac_try_echo=$ac_try;;
7601 esac
7602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7603   (eval "$ac_try") 2>&5
7604   ac_status=$?
7605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7606   (exit $ac_status); }; } &&
7607          { ac_try='test -s conftest.$ac_objext'
7608   { (case "(($ac_try" in
7609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7610   *) ac_try_echo=$ac_try;;
7611 esac
7612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7613   (eval "$ac_try") 2>&5
7614   ac_status=$?
7615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616   (exit $ac_status); }; }; then
7617   ac_hi=$ac_mid; break
7618 else
7619   echo "$as_me: failed program was:" >&5
7620 sed 's/^/| /' conftest.$ac_ext >&5
7621
7622         ac_lo=`expr $ac_mid + 1`
7623                         if test $ac_lo -le $ac_mid; then
7624                           ac_lo= ac_hi=
7625                           break
7626                         fi
7627                         ac_mid=`expr 2 '*' $ac_mid + 1`
7628 fi
7629
7630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7631   done
7632 else
7633   echo "$as_me: failed program was:" >&5
7634 sed 's/^/| /' conftest.$ac_ext >&5
7635
7636         cat >conftest.$ac_ext <<_ACEOF
7637 /* confdefs.h.  */
7638 _ACEOF
7639 cat confdefs.h >>conftest.$ac_ext
7640 cat >>conftest.$ac_ext <<_ACEOF
7641 /* end confdefs.h.  */
7642 $ac_includes_default
7643                    typedef double ac__type_sizeof_;
7644 int
7645 main ()
7646 {
7647 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7648 test_array [0] = 0
7649
7650   ;
7651   return 0;
7652 }
7653 _ACEOF
7654 rm -f conftest.$ac_objext
7655 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
7662   ac_status=$?
7663   grep -v '^ *+' conftest.er1 >conftest.err
7664   rm -f conftest.er1
7665   cat conftest.err >&5
7666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667   (exit $ac_status); } &&
7668          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7669   { (case "(($ac_try" in
7670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7671   *) ac_try_echo=$ac_try;;
7672 esac
7673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7674   (eval "$ac_try") 2>&5
7675   ac_status=$?
7676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677   (exit $ac_status); }; } &&
7678          { ac_try='test -s conftest.$ac_objext'
7679   { (case "(($ac_try" in
7680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7681   *) ac_try_echo=$ac_try;;
7682 esac
7683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7684   (eval "$ac_try") 2>&5
7685   ac_status=$?
7686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687   (exit $ac_status); }; }; then
7688   ac_hi=-1 ac_mid=-1
7689   while :; do
7690     cat >conftest.$ac_ext <<_ACEOF
7691 /* confdefs.h.  */
7692 _ACEOF
7693 cat confdefs.h >>conftest.$ac_ext
7694 cat >>conftest.$ac_ext <<_ACEOF
7695 /* end confdefs.h.  */
7696 $ac_includes_default
7697                    typedef double ac__type_sizeof_;
7698 int
7699 main ()
7700 {
7701 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7702 test_array [0] = 0
7703
7704   ;
7705   return 0;
7706 }
7707 _ACEOF
7708 rm -f conftest.$ac_objext
7709 if { (ac_try="$ac_compile"
7710 case "(($ac_try" in
7711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7712   *) ac_try_echo=$ac_try;;
7713 esac
7714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7715   (eval "$ac_compile") 2>conftest.er1
7716   ac_status=$?
7717   grep -v '^ *+' conftest.er1 >conftest.err
7718   rm -f conftest.er1
7719   cat conftest.err >&5
7720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721   (exit $ac_status); } &&
7722          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7723   { (case "(($ac_try" in
7724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7725   *) ac_try_echo=$ac_try;;
7726 esac
7727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7728   (eval "$ac_try") 2>&5
7729   ac_status=$?
7730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731   (exit $ac_status); }; } &&
7732          { ac_try='test -s conftest.$ac_objext'
7733   { (case "(($ac_try" in
7734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7735   *) ac_try_echo=$ac_try;;
7736 esac
7737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7738   (eval "$ac_try") 2>&5
7739   ac_status=$?
7740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741   (exit $ac_status); }; }; then
7742   ac_lo=$ac_mid; break
7743 else
7744   echo "$as_me: failed program was:" >&5
7745 sed 's/^/| /' conftest.$ac_ext >&5
7746
7747         ac_hi=`expr '(' $ac_mid ')' - 1`
7748                         if test $ac_mid -le $ac_hi; then
7749                           ac_lo= ac_hi=
7750                           break
7751                         fi
7752                         ac_mid=`expr 2 '*' $ac_mid`
7753 fi
7754
7755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7756   done
7757 else
7758   echo "$as_me: failed program was:" >&5
7759 sed 's/^/| /' conftest.$ac_ext >&5
7760
7761         ac_lo= ac_hi=
7762 fi
7763
7764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7765 fi
7766
7767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7768 # Binary search between lo and hi bounds.
7769 while test "x$ac_lo" != "x$ac_hi"; do
7770   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7771   cat >conftest.$ac_ext <<_ACEOF
7772 /* confdefs.h.  */
7773 _ACEOF
7774 cat confdefs.h >>conftest.$ac_ext
7775 cat >>conftest.$ac_ext <<_ACEOF
7776 /* end confdefs.h.  */
7777 $ac_includes_default
7778                    typedef double ac__type_sizeof_;
7779 int
7780 main ()
7781 {
7782 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7783 test_array [0] = 0
7784
7785   ;
7786   return 0;
7787 }
7788 _ACEOF
7789 rm -f conftest.$ac_objext
7790 if { (ac_try="$ac_compile"
7791 case "(($ac_try" in
7792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7793   *) ac_try_echo=$ac_try;;
7794 esac
7795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7796   (eval "$ac_compile") 2>conftest.er1
7797   ac_status=$?
7798   grep -v '^ *+' conftest.er1 >conftest.err
7799   rm -f conftest.er1
7800   cat conftest.err >&5
7801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7802   (exit $ac_status); } &&
7803          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7804   { (case "(($ac_try" in
7805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7806   *) ac_try_echo=$ac_try;;
7807 esac
7808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7809   (eval "$ac_try") 2>&5
7810   ac_status=$?
7811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812   (exit $ac_status); }; } &&
7813          { ac_try='test -s conftest.$ac_objext'
7814   { (case "(($ac_try" in
7815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7816   *) ac_try_echo=$ac_try;;
7817 esac
7818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7819   (eval "$ac_try") 2>&5
7820   ac_status=$?
7821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822   (exit $ac_status); }; }; then
7823   ac_hi=$ac_mid
7824 else
7825   echo "$as_me: failed program was:" >&5
7826 sed 's/^/| /' conftest.$ac_ext >&5
7827
7828         ac_lo=`expr '(' $ac_mid ')' + 1`
7829 fi
7830
7831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7832 done
7833 case $ac_lo in
7834 ?*) ac_cv_sizeof_double=$ac_lo;;
7835 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
7836 See \`config.log' for more details." >&5
7837 echo "$as_me: error: cannot compute sizeof (double)
7838 See \`config.log' for more details." >&2;}
7839    { (exit 77); exit 77; }; } ;;
7840 esac
7841 else
7842   cat >conftest.$ac_ext <<_ACEOF
7843 /* confdefs.h.  */
7844 _ACEOF
7845 cat confdefs.h >>conftest.$ac_ext
7846 cat >>conftest.$ac_ext <<_ACEOF
7847 /* end confdefs.h.  */
7848 $ac_includes_default
7849                    typedef double ac__type_sizeof_;
7850 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7851 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7852 #include <stdio.h>
7853 #include <stdlib.h>
7854 int
7855 main ()
7856 {
7857
7858   FILE *f = fopen ("conftest.val", "w");
7859   if (! f)
7860     return 1;
7861   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7862     {
7863       long int i = longval ();
7864       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7865         return 1;
7866       fprintf (f, "%ld\n", i);
7867     }
7868   else
7869     {
7870       unsigned long int i = ulongval ();
7871       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7872         return 1;
7873       fprintf (f, "%lu\n", i);
7874     }
7875   return ferror (f) || fclose (f) != 0;
7876
7877   ;
7878   return 0;
7879 }
7880 _ACEOF
7881 rm -f conftest$ac_exeext
7882 if { (ac_try="$ac_link"
7883 case "(($ac_try" in
7884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7885   *) ac_try_echo=$ac_try;;
7886 esac
7887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7888   (eval "$ac_link") 2>&5
7889   ac_status=$?
7890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7892   { (case "(($ac_try" in
7893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7894   *) ac_try_echo=$ac_try;;
7895 esac
7896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7897   (eval "$ac_try") 2>&5
7898   ac_status=$?
7899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900   (exit $ac_status); }; }; then
7901   ac_cv_sizeof_double=`cat conftest.val`
7902 else
7903   echo "$as_me: program exited with status $ac_status" >&5
7904 echo "$as_me: failed program was:" >&5
7905 sed 's/^/| /' conftest.$ac_ext >&5
7906
7907 ( exit $ac_status )
7908 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
7909 See \`config.log' for more details." >&5
7910 echo "$as_me: error: cannot compute sizeof (double)
7911 See \`config.log' for more details." >&2;}
7912    { (exit 77); exit 77; }; }
7913 fi
7914 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7915 fi
7916 rm -f conftest.val
7917 else
7918   ac_cv_sizeof_double=0
7919 fi
7920 fi
7921 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
7922 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
7923 cat >>confdefs.h <<_ACEOF
7924 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
7925 _ACEOF
7926
7927
7928
7929
7930 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
7931 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
7932 if test "${ac_cv_lib_z_deflate+set}" = set; then
7933   echo $ECHO_N "(cached) $ECHO_C" >&6
7934 else
7935   ac_check_lib_save_LIBS=$LIBS
7936 LIBS="-lz  $LIBS"
7937 cat >conftest.$ac_ext <<_ACEOF
7938 /* confdefs.h.  */
7939 _ACEOF
7940 cat confdefs.h >>conftest.$ac_ext
7941 cat >>conftest.$ac_ext <<_ACEOF
7942 /* end confdefs.h.  */
7943
7944 /* Override any GCC internal prototype to avoid an error.
7945    Use char because int might match the return type of a GCC
7946    builtin and then its argument prototype would still apply.  */
7947 #ifdef __cplusplus
7948 extern "C"
7949 #endif
7950 char deflate ();
7951 int
7952 main ()
7953 {
7954 return deflate ();
7955   ;
7956   return 0;
7957 }
7958 _ACEOF
7959 rm -f conftest.$ac_objext conftest$ac_exeext
7960 if { (ac_try="$ac_link"
7961 case "(($ac_try" in
7962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7963   *) ac_try_echo=$ac_try;;
7964 esac
7965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7966   (eval "$ac_link") 2>conftest.er1
7967   ac_status=$?
7968   grep -v '^ *+' conftest.er1 >conftest.err
7969   rm -f conftest.er1
7970   cat conftest.err >&5
7971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972   (exit $ac_status); } &&
7973          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7974   { (case "(($ac_try" in
7975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7976   *) ac_try_echo=$ac_try;;
7977 esac
7978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7979   (eval "$ac_try") 2>&5
7980   ac_status=$?
7981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982   (exit $ac_status); }; } &&
7983          { ac_try='test -s conftest$ac_exeext'
7984   { (case "(($ac_try" in
7985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7986   *) ac_try_echo=$ac_try;;
7987 esac
7988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7989   (eval "$ac_try") 2>&5
7990   ac_status=$?
7991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992   (exit $ac_status); }; }; then
7993   ac_cv_lib_z_deflate=yes
7994 else
7995   echo "$as_me: failed program was:" >&5
7996 sed 's/^/| /' conftest.$ac_ext >&5
7997
7998         ac_cv_lib_z_deflate=no
7999 fi
8000
8001 rm -f core conftest.err conftest.$ac_objext \
8002       conftest$ac_exeext conftest.$ac_ext
8003 LIBS=$ac_check_lib_save_LIBS
8004 fi
8005 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
8006 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
8007 if test $ac_cv_lib_z_deflate = yes; then
8008    zlib="true"
8009 else
8010    zlib="false" ;  { echo "$as_me:$LINENO: WARNING: zlib missing. Will need zlib for PNG support" >&5
8011 echo "$as_me: WARNING: zlib missing. Will need zlib for PNG support" >&2;}
8012 fi
8013
8014
8015 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
8016 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8017 if test "${ac_cv_lib_m_sin+set}" = set; then
8018   echo $ECHO_N "(cached) $ECHO_C" >&6
8019 else
8020   ac_check_lib_save_LIBS=$LIBS
8021 LIBS="-lm  $LIBS"
8022 cat >conftest.$ac_ext <<_ACEOF
8023 /* confdefs.h.  */
8024 _ACEOF
8025 cat confdefs.h >>conftest.$ac_ext
8026 cat >>conftest.$ac_ext <<_ACEOF
8027 /* end confdefs.h.  */
8028
8029 /* Override any GCC internal prototype to avoid an error.
8030    Use char because int might match the return type of a GCC
8031    builtin and then its argument prototype would still apply.  */
8032 #ifdef __cplusplus
8033 extern "C"
8034 #endif
8035 char sin ();
8036 int
8037 main ()
8038 {
8039 return sin ();
8040   ;
8041   return 0;
8042 }
8043 _ACEOF
8044 rm -f conftest.$ac_objext conftest$ac_exeext
8045 if { (ac_try="$ac_link"
8046 case "(($ac_try" in
8047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8048   *) ac_try_echo=$ac_try;;
8049 esac
8050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8051   (eval "$ac_link") 2>conftest.er1
8052   ac_status=$?
8053   grep -v '^ *+' conftest.er1 >conftest.err
8054   rm -f conftest.er1
8055   cat conftest.err >&5
8056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057   (exit $ac_status); } &&
8058          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8059   { (case "(($ac_try" in
8060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8061   *) ac_try_echo=$ac_try;;
8062 esac
8063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8064   (eval "$ac_try") 2>&5
8065   ac_status=$?
8066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067   (exit $ac_status); }; } &&
8068          { ac_try='test -s conftest$ac_exeext'
8069   { (case "(($ac_try" in
8070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8071   *) ac_try_echo=$ac_try;;
8072 esac
8073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8074   (eval "$ac_try") 2>&5
8075   ac_status=$?
8076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077   (exit $ac_status); }; }; then
8078   ac_cv_lib_m_sin=yes
8079 else
8080   echo "$as_me: failed program was:" >&5
8081 sed 's/^/| /' conftest.$ac_ext >&5
8082
8083         ac_cv_lib_m_sin=no
8084 fi
8085
8086 rm -f core conftest.err conftest.$ac_objext \
8087       conftest$ac_exeext conftest.$ac_ext
8088 LIBS=$ac_check_lib_save_LIBS
8089 fi
8090 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8091 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8092 if test $ac_cv_lib_m_sin = yes; then
8093   cat >>confdefs.h <<_ACEOF
8094 #define HAVE_LIBM 1
8095 _ACEOF
8096
8097   LIBS="-lm $LIBS"
8098
8099 fi
8100
8101 { echo "$as_me:$LINENO: checking for main in -lcurses" >&5
8102 echo $ECHO_N "checking for main in -lcurses... $ECHO_C" >&6; }
8103 if test "${ac_cv_lib_curses_main+set}" = set; then
8104   echo $ECHO_N "(cached) $ECHO_C" >&6
8105 else
8106   ac_check_lib_save_LIBS=$LIBS
8107 LIBS="-lcurses  $LIBS"
8108 cat >conftest.$ac_ext <<_ACEOF
8109 /* confdefs.h.  */
8110 _ACEOF
8111 cat confdefs.h >>conftest.$ac_ext
8112 cat >>conftest.$ac_ext <<_ACEOF
8113 /* end confdefs.h.  */
8114
8115
8116 int
8117 main ()
8118 {
8119 return main ();
8120   ;
8121   return 0;
8122 }
8123 _ACEOF
8124 rm -f conftest.$ac_objext conftest$ac_exeext
8125 if { (ac_try="$ac_link"
8126 case "(($ac_try" in
8127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8128   *) ac_try_echo=$ac_try;;
8129 esac
8130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8131   (eval "$ac_link") 2>conftest.er1
8132   ac_status=$?
8133   grep -v '^ *+' conftest.er1 >conftest.err
8134   rm -f conftest.er1
8135   cat conftest.err >&5
8136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137   (exit $ac_status); } &&
8138          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
8148          { ac_try='test -s conftest$ac_exeext'
8149   { (case "(($ac_try" in
8150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8151   *) ac_try_echo=$ac_try;;
8152 esac
8153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8154   (eval "$ac_try") 2>&5
8155   ac_status=$?
8156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157   (exit $ac_status); }; }; then
8158   ac_cv_lib_curses_main=yes
8159 else
8160   echo "$as_me: failed program was:" >&5
8161 sed 's/^/| /' conftest.$ac_ext >&5
8162
8163         ac_cv_lib_curses_main=no
8164 fi
8165
8166 rm -f core conftest.err conftest.$ac_objext \
8167       conftest$ac_exeext conftest.$ac_ext
8168 LIBS=$ac_check_lib_save_LIBS
8169 fi
8170 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_main" >&5
8171 echo "${ECHO_T}$ac_cv_lib_curses_main" >&6; }
8172 if test $ac_cv_lib_curses_main = yes; then
8173   curses=true
8174 else
8175   curses=false
8176 fi
8177
8178 { echo "$as_me:$LINENO: checking for main in -lncurses" >&5
8179 echo $ECHO_N "checking for main in -lncurses... $ECHO_C" >&6; }
8180 if test "${ac_cv_lib_ncurses_main+set}" = set; then
8181   echo $ECHO_N "(cached) $ECHO_C" >&6
8182 else
8183   ac_check_lib_save_LIBS=$LIBS
8184 LIBS="-lncurses  $LIBS"
8185 cat >conftest.$ac_ext <<_ACEOF
8186 /* confdefs.h.  */
8187 _ACEOF
8188 cat confdefs.h >>conftest.$ac_ext
8189 cat >>conftest.$ac_ext <<_ACEOF
8190 /* end confdefs.h.  */
8191
8192
8193 int
8194 main ()
8195 {
8196 return main ();
8197   ;
8198   return 0;
8199 }
8200 _ACEOF
8201 rm -f conftest.$ac_objext conftest$ac_exeext
8202 if { (ac_try="$ac_link"
8203 case "(($ac_try" in
8204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8205   *) ac_try_echo=$ac_try;;
8206 esac
8207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8208   (eval "$ac_link") 2>conftest.er1
8209   ac_status=$?
8210   grep -v '^ *+' conftest.er1 >conftest.err
8211   rm -f conftest.er1
8212   cat conftest.err >&5
8213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214   (exit $ac_status); } &&
8215          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8216   { (case "(($ac_try" in
8217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8218   *) ac_try_echo=$ac_try;;
8219 esac
8220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8221   (eval "$ac_try") 2>&5
8222   ac_status=$?
8223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224   (exit $ac_status); }; } &&
8225          { ac_try='test -s conftest$ac_exeext'
8226   { (case "(($ac_try" in
8227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8228   *) ac_try_echo=$ac_try;;
8229 esac
8230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8231   (eval "$ac_try") 2>&5
8232   ac_status=$?
8233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234   (exit $ac_status); }; }; then
8235   ac_cv_lib_ncurses_main=yes
8236 else
8237   echo "$as_me: failed program was:" >&5
8238 sed 's/^/| /' conftest.$ac_ext >&5
8239
8240         ac_cv_lib_ncurses_main=no
8241 fi
8242
8243 rm -f core conftest.err conftest.$ac_objext \
8244       conftest$ac_exeext conftest.$ac_ext
8245 LIBS=$ac_check_lib_save_LIBS
8246 fi
8247 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_main" >&5
8248 echo "${ECHO_T}$ac_cv_lib_ncurses_main" >&6; }
8249 if test $ac_cv_lib_ncurses_main = yes; then
8250   ncurses=true
8251 else
8252   ncurses=false
8253 fi
8254
8255 { echo "$as_me:$LINENO: checking for main in -lreadline" >&5
8256 echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6; }
8257 if test "${ac_cv_lib_readline_main+set}" = set; then
8258   echo $ECHO_N "(cached) $ECHO_C" >&6
8259 else
8260   ac_check_lib_save_LIBS=$LIBS
8261 LIBS="-lreadline -lcurses $LIBS"
8262 cat >conftest.$ac_ext <<_ACEOF
8263 /* confdefs.h.  */
8264 _ACEOF
8265 cat confdefs.h >>conftest.$ac_ext
8266 cat >>conftest.$ac_ext <<_ACEOF
8267 /* end confdefs.h.  */
8268
8269
8270 int
8271 main ()
8272 {
8273 return main ();
8274   ;
8275   return 0;
8276 }
8277 _ACEOF
8278 rm -f conftest.$ac_objext conftest$ac_exeext
8279 if { (ac_try="$ac_link"
8280 case "(($ac_try" in
8281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8282   *) ac_try_echo=$ac_try;;
8283 esac
8284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8285   (eval "$ac_link") 2>conftest.er1
8286   ac_status=$?
8287   grep -v '^ *+' conftest.er1 >conftest.err
8288   rm -f conftest.er1
8289   cat conftest.err >&5
8290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291   (exit $ac_status); } &&
8292          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8293   { (case "(($ac_try" in
8294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8295   *) ac_try_echo=$ac_try;;
8296 esac
8297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8298   (eval "$ac_try") 2>&5
8299   ac_status=$?
8300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301   (exit $ac_status); }; } &&
8302          { ac_try='test -s conftest$ac_exeext'
8303   { (case "(($ac_try" in
8304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8305   *) ac_try_echo=$ac_try;;
8306 esac
8307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8308   (eval "$ac_try") 2>&5
8309   ac_status=$?
8310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311   (exit $ac_status); }; }; then
8312   ac_cv_lib_readline_main=yes
8313 else
8314   echo "$as_me: failed program was:" >&5
8315 sed 's/^/| /' conftest.$ac_ext >&5
8316
8317         ac_cv_lib_readline_main=no
8318 fi
8319
8320 rm -f core conftest.err conftest.$ac_objext \
8321       conftest$ac_exeext conftest.$ac_ext
8322 LIBS=$ac_check_lib_save_LIBS
8323 fi
8324 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5
8325 echo "${ECHO_T}$ac_cv_lib_readline_main" >&6; }
8326 if test $ac_cv_lib_readline_main = yes; then
8327   readline=true;
8328
8329 cat >>confdefs.h <<\_ACEOF
8330 #define HAVE_READLINE 1
8331 _ACEOF
8332
8333 else
8334   readline=false
8335 fi
8336
8337 wxwin=false
8338 { echo "$as_me:$LINENO: checking for main in -lwx_gtk-2.4" >&5
8339 echo $ECHO_N "checking for main in -lwx_gtk-2.4... $ECHO_C" >&6; }
8340 if test "${ac_cv_lib_wx_gtk_2_4_main+set}" = set; then
8341   echo $ECHO_N "(cached) $ECHO_C" >&6
8342 else
8343   ac_check_lib_save_LIBS=$LIBS
8344 LIBS="-lwx_gtk-2.4 -L/usr/lib64 -L/usr/lib `gtk-config --libs` `glib-config --libs glib gmodule gthread`  $LIBS"
8345 cat >conftest.$ac_ext <<_ACEOF
8346 /* confdefs.h.  */
8347 _ACEOF
8348 cat confdefs.h >>conftest.$ac_ext
8349 cat >>conftest.$ac_ext <<_ACEOF
8350 /* end confdefs.h.  */
8351
8352
8353 int
8354 main ()
8355 {
8356 return main ();
8357   ;
8358   return 0;
8359 }
8360 _ACEOF
8361 rm -f conftest.$ac_objext conftest$ac_exeext
8362 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
8369   ac_status=$?
8370   grep -v '^ *+' conftest.er1 >conftest.err
8371   rm -f conftest.er1
8372   cat conftest.err >&5
8373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374   (exit $ac_status); } &&
8375          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8376   { (case "(($ac_try" in
8377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8378   *) ac_try_echo=$ac_try;;
8379 esac
8380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8381   (eval "$ac_try") 2>&5
8382   ac_status=$?
8383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384   (exit $ac_status); }; } &&
8385          { ac_try='test -s conftest$ac_exeext'
8386   { (case "(($ac_try" in
8387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8388   *) ac_try_echo=$ac_try;;
8389 esac
8390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8391   (eval "$ac_try") 2>&5
8392   ac_status=$?
8393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394   (exit $ac_status); }; }; then
8395   ac_cv_lib_wx_gtk_2_4_main=yes
8396 else
8397   echo "$as_me: failed program was:" >&5
8398 sed 's/^/| /' conftest.$ac_ext >&5
8399
8400         ac_cv_lib_wx_gtk_2_4_main=no
8401 fi
8402
8403 rm -f core conftest.err conftest.$ac_objext \
8404       conftest$ac_exeext conftest.$ac_ext
8405 LIBS=$ac_check_lib_save_LIBS
8406 fi
8407 { echo "$as_me:$LINENO: result: $ac_cv_lib_wx_gtk_2_4_main" >&5
8408 echo "${ECHO_T}$ac_cv_lib_wx_gtk_2_4_main" >&6; }
8409 if test $ac_cv_lib_wx_gtk_2_4_main = yes; then
8410   wxwin=true; wx_gtk=true;
8411 cat >>confdefs.h <<\_ACEOF
8412 #define HAVE_WXWINDOWS 1
8413 _ACEOF
8414
8415 fi
8416
8417 { echo "$as_me:$LINENO: checking for main in -lwx_mac-2.4" >&5
8418 echo $ECHO_N "checking for main in -lwx_mac-2.4... $ECHO_C" >&6; }
8419 if test "${ac_cv_lib_wx_mac_2_4_main+set}" = set; then
8420   echo $ECHO_N "(cached) $ECHO_C" >&6
8421 else
8422   ac_check_lib_save_LIBS=$LIBS
8423 LIBS="-lwx_mac-2.4  $LIBS"
8424 cat >conftest.$ac_ext <<_ACEOF
8425 /* confdefs.h.  */
8426 _ACEOF
8427 cat confdefs.h >>conftest.$ac_ext
8428 cat >>conftest.$ac_ext <<_ACEOF
8429 /* end confdefs.h.  */
8430
8431
8432 int
8433 main ()
8434 {
8435 return main ();
8436   ;
8437   return 0;
8438 }
8439 _ACEOF
8440 rm -f conftest.$ac_objext conftest$ac_exeext
8441 if { (ac_try="$ac_link"
8442 case "(($ac_try" in
8443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8444   *) ac_try_echo=$ac_try;;
8445 esac
8446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8447   (eval "$ac_link") 2>conftest.er1
8448   ac_status=$?
8449   grep -v '^ *+' conftest.er1 >conftest.err
8450   rm -f conftest.er1
8451   cat conftest.err >&5
8452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453   (exit $ac_status); } &&
8454          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8455   { (case "(($ac_try" in
8456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8457   *) ac_try_echo=$ac_try;;
8458 esac
8459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8460   (eval "$ac_try") 2>&5
8461   ac_status=$?
8462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463   (exit $ac_status); }; } &&
8464          { ac_try='test -s conftest$ac_exeext'
8465   { (case "(($ac_try" in
8466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8467   *) ac_try_echo=$ac_try;;
8468 esac
8469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8470   (eval "$ac_try") 2>&5
8471   ac_status=$?
8472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473   (exit $ac_status); }; }; then
8474   ac_cv_lib_wx_mac_2_4_main=yes
8475 else
8476   echo "$as_me: failed program was:" >&5
8477 sed 's/^/| /' conftest.$ac_ext >&5
8478
8479         ac_cv_lib_wx_mac_2_4_main=no
8480 fi
8481
8482 rm -f core conftest.err conftest.$ac_objext \
8483       conftest$ac_exeext conftest.$ac_ext
8484 LIBS=$ac_check_lib_save_LIBS
8485 fi
8486 { echo "$as_me:$LINENO: result: $ac_cv_lib_wx_mac_2_4_main" >&5
8487 echo "${ECHO_T}$ac_cv_lib_wx_mac_2_4_main" >&6; }
8488 if test $ac_cv_lib_wx_mac_2_4_main = yes; then
8489   wxwin=true; wx_mac=true;
8490 cat >>confdefs.h <<\_ACEOF
8491 #define HAVE_WXWINDOWS 1
8492 _ACEOF
8493
8494 fi
8495
8496 { echo "$as_me:$LINENO: checking for fftw_malloc in -lfftw3" >&5
8497 echo $ECHO_N "checking for fftw_malloc in -lfftw3... $ECHO_C" >&6; }
8498 if test "${ac_cv_lib_fftw3_fftw_malloc+set}" = set; then
8499   echo $ECHO_N "(cached) $ECHO_C" >&6
8500 else
8501   ac_check_lib_save_LIBS=$LIBS
8502 LIBS="-lfftw3 -L/usr/lib64 -L/usr/lib $LIBS"
8503 cat >conftest.$ac_ext <<_ACEOF
8504 /* confdefs.h.  */
8505 _ACEOF
8506 cat confdefs.h >>conftest.$ac_ext
8507 cat >>conftest.$ac_ext <<_ACEOF
8508 /* end confdefs.h.  */
8509
8510 /* Override any GCC internal prototype to avoid an error.
8511    Use char because int might match the return type of a GCC
8512    builtin and then its argument prototype would still apply.  */
8513 #ifdef __cplusplus
8514 extern "C"
8515 #endif
8516 char fftw_malloc ();
8517 int
8518 main ()
8519 {
8520 return fftw_malloc ();
8521   ;
8522   return 0;
8523 }
8524 _ACEOF
8525 rm -f conftest.$ac_objext conftest$ac_exeext
8526 if { (ac_try="$ac_link"
8527 case "(($ac_try" in
8528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8529   *) ac_try_echo=$ac_try;;
8530 esac
8531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8532   (eval "$ac_link") 2>conftest.er1
8533   ac_status=$?
8534   grep -v '^ *+' conftest.er1 >conftest.err
8535   rm -f conftest.er1
8536   cat conftest.err >&5
8537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538   (exit $ac_status); } &&
8539          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8540   { (case "(($ac_try" in
8541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8542   *) ac_try_echo=$ac_try;;
8543 esac
8544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8545   (eval "$ac_try") 2>&5
8546   ac_status=$?
8547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548   (exit $ac_status); }; } &&
8549          { ac_try='test -s conftest$ac_exeext'
8550   { (case "(($ac_try" in
8551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8552   *) ac_try_echo=$ac_try;;
8553 esac
8554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8555   (eval "$ac_try") 2>&5
8556   ac_status=$?
8557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558   (exit $ac_status); }; }; then
8559   ac_cv_lib_fftw3_fftw_malloc=yes
8560 else
8561   echo "$as_me: failed program was:" >&5
8562 sed 's/^/| /' conftest.$ac_ext >&5
8563
8564         ac_cv_lib_fftw3_fftw_malloc=no
8565 fi
8566
8567 rm -f core conftest.err conftest.$ac_objext \
8568       conftest$ac_exeext conftest.$ac_ext
8569 LIBS=$ac_check_lib_save_LIBS
8570 fi
8571 { echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_fftw_malloc" >&5
8572 echo "${ECHO_T}$ac_cv_lib_fftw3_fftw_malloc" >&6; }
8573 if test $ac_cv_lib_fftw3_fftw_malloc = yes; then
8574   fftw=true;
8575 cat >>confdefs.h <<\_ACEOF
8576 #define HAVE_FFTW 1
8577 _ACEOF
8578
8579 else
8580   fftw=false
8581 fi
8582
8583 { echo "$as_me:$LINENO: checking for main in -lGL" >&5
8584 echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6; }
8585 if test "${ac_cv_lib_GL_main+set}" = set; then
8586   echo $ECHO_N "(cached) $ECHO_C" >&6
8587 else
8588   ac_check_lib_save_LIBS=$LIBS
8589 LIBS="-lGL -L/usr/X11R6/lib -L/usr/X11R6/lib64 $LIBS"
8590 cat >conftest.$ac_ext <<_ACEOF
8591 /* confdefs.h.  */
8592 _ACEOF
8593 cat confdefs.h >>conftest.$ac_ext
8594 cat >>conftest.$ac_ext <<_ACEOF
8595 /* end confdefs.h.  */
8596
8597
8598 int
8599 main ()
8600 {
8601 return main ();
8602   ;
8603   return 0;
8604 }
8605 _ACEOF
8606 rm -f conftest.$ac_objext conftest$ac_exeext
8607 if { (ac_try="$ac_link"
8608 case "(($ac_try" in
8609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8610   *) ac_try_echo=$ac_try;;
8611 esac
8612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8613   (eval "$ac_link") 2>conftest.er1
8614   ac_status=$?
8615   grep -v '^ *+' conftest.er1 >conftest.err
8616   rm -f conftest.er1
8617   cat conftest.err >&5
8618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619   (exit $ac_status); } &&
8620          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8621   { (case "(($ac_try" in
8622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8623   *) ac_try_echo=$ac_try;;
8624 esac
8625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8626   (eval "$ac_try") 2>&5
8627   ac_status=$?
8628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629   (exit $ac_status); }; } &&
8630          { ac_try='test -s conftest$ac_exeext'
8631   { (case "(($ac_try" in
8632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8633   *) ac_try_echo=$ac_try;;
8634 esac
8635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8636   (eval "$ac_try") 2>&5
8637   ac_status=$?
8638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639   (exit $ac_status); }; }; then
8640   ac_cv_lib_GL_main=yes
8641 else
8642   echo "$as_me: failed program was:" >&5
8643 sed 's/^/| /' conftest.$ac_ext >&5
8644
8645         ac_cv_lib_GL_main=no
8646 fi
8647
8648 rm -f core conftest.err conftest.$ac_objext \
8649       conftest$ac_exeext conftest.$ac_ext
8650 LIBS=$ac_check_lib_save_LIBS
8651 fi
8652 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5
8653 echo "${ECHO_T}$ac_cv_lib_GL_main" >&6; }
8654 if test $ac_cv_lib_GL_main = yes; then
8655   libgl=true
8656 else
8657   libgl=false
8658 fi
8659
8660 { echo "$as_me:$LINENO: checking for main in -lpthread" >&5
8661 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6; }
8662 if test "${ac_cv_lib_pthread_main+set}" = set; then
8663   echo $ECHO_N "(cached) $ECHO_C" >&6
8664 else
8665   ac_check_lib_save_LIBS=$LIBS
8666 LIBS="-lpthread  $LIBS"
8667 cat >conftest.$ac_ext <<_ACEOF
8668 /* confdefs.h.  */
8669 _ACEOF
8670 cat confdefs.h >>conftest.$ac_ext
8671 cat >>conftest.$ac_ext <<_ACEOF
8672 /* end confdefs.h.  */
8673
8674
8675 int
8676 main ()
8677 {
8678 return main ();
8679   ;
8680   return 0;
8681 }
8682 _ACEOF
8683 rm -f conftest.$ac_objext conftest$ac_exeext
8684 if { (ac_try="$ac_link"
8685 case "(($ac_try" in
8686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8687   *) ac_try_echo=$ac_try;;
8688 esac
8689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8690   (eval "$ac_link") 2>conftest.er1
8691   ac_status=$?
8692   grep -v '^ *+' conftest.er1 >conftest.err
8693   rm -f conftest.er1
8694   cat conftest.err >&5
8695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696   (exit $ac_status); } &&
8697          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8698   { (case "(($ac_try" in
8699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8700   *) ac_try_echo=$ac_try;;
8701 esac
8702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8703   (eval "$ac_try") 2>&5
8704   ac_status=$?
8705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706   (exit $ac_status); }; } &&
8707          { ac_try='test -s conftest$ac_exeext'
8708   { (case "(($ac_try" in
8709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8710   *) ac_try_echo=$ac_try;;
8711 esac
8712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8713   (eval "$ac_try") 2>&5
8714   ac_status=$?
8715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716   (exit $ac_status); }; }; then
8717   ac_cv_lib_pthread_main=yes
8718 else
8719   echo "$as_me: failed program was:" >&5
8720 sed 's/^/| /' conftest.$ac_ext >&5
8721
8722         ac_cv_lib_pthread_main=no
8723 fi
8724
8725 rm -f core conftest.err conftest.$ac_objext \
8726       conftest$ac_exeext conftest.$ac_ext
8727 LIBS=$ac_check_lib_save_LIBS
8728 fi
8729 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
8730 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6; }
8731 if test $ac_cv_lib_pthread_main = yes; then
8732   pthread=true
8733 else
8734   pthread=false
8735 fi
8736
8737
8738 if test "$zlib" = "true" ; then
8739   { echo "$as_me:$LINENO: checking for main in -lpng" >&5
8740 echo $ECHO_N "checking for main in -lpng... $ECHO_C" >&6; }
8741 if test "${ac_cv_lib_png_main+set}" = set; then
8742   echo $ECHO_N "(cached) $ECHO_C" >&6
8743 else
8744   ac_check_lib_save_LIBS=$LIBS
8745 LIBS="-lpng -lz -lm $LIBS"
8746 cat >conftest.$ac_ext <<_ACEOF
8747 /* confdefs.h.  */
8748 _ACEOF
8749 cat confdefs.h >>conftest.$ac_ext
8750 cat >>conftest.$ac_ext <<_ACEOF
8751 /* end confdefs.h.  */
8752
8753
8754 int
8755 main ()
8756 {
8757 return main ();
8758   ;
8759   return 0;
8760 }
8761 _ACEOF
8762 rm -f conftest.$ac_objext conftest$ac_exeext
8763 if { (ac_try="$ac_link"
8764 case "(($ac_try" in
8765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8766   *) ac_try_echo=$ac_try;;
8767 esac
8768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8769   (eval "$ac_link") 2>conftest.er1
8770   ac_status=$?
8771   grep -v '^ *+' conftest.er1 >conftest.err
8772   rm -f conftest.er1
8773   cat conftest.err >&5
8774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775   (exit $ac_status); } &&
8776          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8777   { (case "(($ac_try" in
8778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8779   *) ac_try_echo=$ac_try;;
8780 esac
8781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8782   (eval "$ac_try") 2>&5
8783   ac_status=$?
8784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785   (exit $ac_status); }; } &&
8786          { ac_try='test -s conftest$ac_exeext'
8787   { (case "(($ac_try" in
8788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8789   *) ac_try_echo=$ac_try;;
8790 esac
8791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8792   (eval "$ac_try") 2>&5
8793   ac_status=$?
8794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795   (exit $ac_status); }; }; then
8796   ac_cv_lib_png_main=yes
8797 else
8798   echo "$as_me: failed program was:" >&5
8799 sed 's/^/| /' conftest.$ac_ext >&5
8800
8801         ac_cv_lib_png_main=no
8802 fi
8803
8804 rm -f core conftest.err conftest.$ac_objext \
8805       conftest$ac_exeext conftest.$ac_ext
8806 LIBS=$ac_check_lib_save_LIBS
8807 fi
8808 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_main" >&5
8809 echo "${ECHO_T}$ac_cv_lib_png_main" >&6; }
8810 if test $ac_cv_lib_png_main = yes; then
8811   png=true ;
8812 cat >>confdefs.h <<\_ACEOF
8813 #define HAVE_PNG 1
8814 _ACEOF
8815
8816 else
8817   png=false
8818 fi
8819
8820 fi
8821
8822 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8823 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8824 if test "${ac_cv_header_stdc+set}" = set; then
8825   echo $ECHO_N "(cached) $ECHO_C" >&6
8826 else
8827   cat >conftest.$ac_ext <<_ACEOF
8828 /* confdefs.h.  */
8829 _ACEOF
8830 cat confdefs.h >>conftest.$ac_ext
8831 cat >>conftest.$ac_ext <<_ACEOF
8832 /* end confdefs.h.  */
8833 #include <stdlib.h>
8834 #include <stdarg.h>
8835 #include <string.h>
8836 #include <float.h>
8837
8838 int
8839 main ()
8840 {
8841
8842   ;
8843   return 0;
8844 }
8845 _ACEOF
8846 rm -f conftest.$ac_objext
8847 if { (ac_try="$ac_compile"
8848 case "(($ac_try" in
8849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8850   *) ac_try_echo=$ac_try;;
8851 esac
8852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8853   (eval "$ac_compile") 2>conftest.er1
8854   ac_status=$?
8855   grep -v '^ *+' conftest.er1 >conftest.err
8856   rm -f conftest.er1
8857   cat conftest.err >&5
8858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859   (exit $ac_status); } &&
8860          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8861   { (case "(($ac_try" in
8862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8863   *) ac_try_echo=$ac_try;;
8864 esac
8865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8866   (eval "$ac_try") 2>&5
8867   ac_status=$?
8868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869   (exit $ac_status); }; } &&
8870          { ac_try='test -s conftest.$ac_objext'
8871   { (case "(($ac_try" in
8872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8873   *) ac_try_echo=$ac_try;;
8874 esac
8875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8876   (eval "$ac_try") 2>&5
8877   ac_status=$?
8878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879   (exit $ac_status); }; }; then
8880   ac_cv_header_stdc=yes
8881 else
8882   echo "$as_me: failed program was:" >&5
8883 sed 's/^/| /' conftest.$ac_ext >&5
8884
8885         ac_cv_header_stdc=no
8886 fi
8887
8888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8889
8890 if test $ac_cv_header_stdc = yes; then
8891   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8892   cat >conftest.$ac_ext <<_ACEOF
8893 /* confdefs.h.  */
8894 _ACEOF
8895 cat confdefs.h >>conftest.$ac_ext
8896 cat >>conftest.$ac_ext <<_ACEOF
8897 /* end confdefs.h.  */
8898 #include <string.h>
8899
8900 _ACEOF
8901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8902   $EGREP "memchr" >/dev/null 2>&1; then
8903   :
8904 else
8905   ac_cv_header_stdc=no
8906 fi
8907 rm -f conftest*
8908
8909 fi
8910
8911 if test $ac_cv_header_stdc = yes; then
8912   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8913   cat >conftest.$ac_ext <<_ACEOF
8914 /* confdefs.h.  */
8915 _ACEOF
8916 cat confdefs.h >>conftest.$ac_ext
8917 cat >>conftest.$ac_ext <<_ACEOF
8918 /* end confdefs.h.  */
8919 #include <stdlib.h>
8920
8921 _ACEOF
8922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8923   $EGREP "free" >/dev/null 2>&1; then
8924   :
8925 else
8926   ac_cv_header_stdc=no
8927 fi
8928 rm -f conftest*
8929
8930 fi
8931
8932 if test $ac_cv_header_stdc = yes; then
8933   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8934   if test "$cross_compiling" = yes; then
8935   :
8936 else
8937   cat >conftest.$ac_ext <<_ACEOF
8938 /* confdefs.h.  */
8939 _ACEOF
8940 cat confdefs.h >>conftest.$ac_ext
8941 cat >>conftest.$ac_ext <<_ACEOF
8942 /* end confdefs.h.  */
8943 #include <ctype.h>
8944 #include <stdlib.h>
8945 #if ((' ' & 0x0FF) == 0x020)
8946 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8947 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8948 #else
8949 # define ISLOWER(c) \
8950                    (('a' <= (c) && (c) <= 'i') \
8951                      || ('j' <= (c) && (c) <= 'r') \
8952                      || ('s' <= (c) && (c) <= 'z'))
8953 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8954 #endif
8955
8956 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8957 int
8958 main ()
8959 {
8960   int i;
8961   for (i = 0; i < 256; i++)
8962     if (XOR (islower (i), ISLOWER (i))
8963         || toupper (i) != TOUPPER (i))
8964       return 2;
8965   return 0;
8966 }
8967 _ACEOF
8968 rm -f conftest$ac_exeext
8969 if { (ac_try="$ac_link"
8970 case "(($ac_try" in
8971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8972   *) ac_try_echo=$ac_try;;
8973 esac
8974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8975   (eval "$ac_link") 2>&5
8976   ac_status=$?
8977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8979   { (case "(($ac_try" in
8980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8981   *) ac_try_echo=$ac_try;;
8982 esac
8983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8984   (eval "$ac_try") 2>&5
8985   ac_status=$?
8986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987   (exit $ac_status); }; }; then
8988   :
8989 else
8990   echo "$as_me: program exited with status $ac_status" >&5
8991 echo "$as_me: failed program was:" >&5
8992 sed 's/^/| /' conftest.$ac_ext >&5
8993
8994 ( exit $ac_status )
8995 ac_cv_header_stdc=no
8996 fi
8997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8998 fi
8999
9000
9001 fi
9002 fi
9003 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9004 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
9005 if test $ac_cv_header_stdc = yes; then
9006
9007 cat >>confdefs.h <<\_ACEOF
9008 #define STDC_HEADERS 1
9009 _ACEOF
9010
9011 fi
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037 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
9038 do
9039 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9040 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9041   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9043 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9044   echo $ECHO_N "(cached) $ECHO_C" >&6
9045 fi
9046 ac_res=`eval echo '${'$as_ac_Header'}'`
9047                { echo "$as_me:$LINENO: result: $ac_res" >&5
9048 echo "${ECHO_T}$ac_res" >&6; }
9049 else
9050   # Is the header compilable?
9051 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9052 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9053 cat >conftest.$ac_ext <<_ACEOF
9054 /* confdefs.h.  */
9055 _ACEOF
9056 cat confdefs.h >>conftest.$ac_ext
9057 cat >>conftest.$ac_ext <<_ACEOF
9058 /* end confdefs.h.  */
9059 $ac_includes_default
9060 #include <$ac_header>
9061 _ACEOF
9062 rm -f conftest.$ac_objext
9063 if { (ac_try="$ac_compile"
9064 case "(($ac_try" in
9065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9066   *) ac_try_echo=$ac_try;;
9067 esac
9068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9069   (eval "$ac_compile") 2>conftest.er1
9070   ac_status=$?
9071   grep -v '^ *+' conftest.er1 >conftest.err
9072   rm -f conftest.er1
9073   cat conftest.err >&5
9074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075   (exit $ac_status); } &&
9076          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9077   { (case "(($ac_try" in
9078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9079   *) ac_try_echo=$ac_try;;
9080 esac
9081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9082   (eval "$ac_try") 2>&5
9083   ac_status=$?
9084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085   (exit $ac_status); }; } &&
9086          { ac_try='test -s conftest.$ac_objext'
9087   { (case "(($ac_try" in
9088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9089   *) ac_try_echo=$ac_try;;
9090 esac
9091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9092   (eval "$ac_try") 2>&5
9093   ac_status=$?
9094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095   (exit $ac_status); }; }; then
9096   ac_header_compiler=yes
9097 else
9098   echo "$as_me: failed program was:" >&5
9099 sed 's/^/| /' conftest.$ac_ext >&5
9100
9101         ac_header_compiler=no
9102 fi
9103
9104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9105 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9106 echo "${ECHO_T}$ac_header_compiler" >&6; }
9107
9108 # Is the header present?
9109 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9110 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9111 cat >conftest.$ac_ext <<_ACEOF
9112 /* confdefs.h.  */
9113 _ACEOF
9114 cat confdefs.h >>conftest.$ac_ext
9115 cat >>conftest.$ac_ext <<_ACEOF
9116 /* end confdefs.h.  */
9117 #include <$ac_header>
9118 _ACEOF
9119 if { (ac_try="$ac_cpp conftest.$ac_ext"
9120 case "(($ac_try" in
9121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9122   *) ac_try_echo=$ac_try;;
9123 esac
9124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9125   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9126   ac_status=$?
9127   grep -v '^ *+' conftest.er1 >conftest.err
9128   rm -f conftest.er1
9129   cat conftest.err >&5
9130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131   (exit $ac_status); } >/dev/null; then
9132   if test -s conftest.err; then
9133     ac_cpp_err=$ac_c_preproc_warn_flag
9134     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9135   else
9136     ac_cpp_err=
9137   fi
9138 else
9139   ac_cpp_err=yes
9140 fi
9141 if test -z "$ac_cpp_err"; then
9142   ac_header_preproc=yes
9143 else
9144   echo "$as_me: failed program was:" >&5
9145 sed 's/^/| /' conftest.$ac_ext >&5
9146
9147   ac_header_preproc=no
9148 fi
9149
9150 rm -f conftest.err conftest.$ac_ext
9151 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9152 echo "${ECHO_T}$ac_header_preproc" >&6; }
9153
9154 # So?  What about this header?
9155 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9156   yes:no: )
9157     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9158 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9159     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9160 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9161     ac_header_preproc=yes
9162     ;;
9163   no:yes:* )
9164     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9165 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9166     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9167 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9168     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9169 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9170     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9171 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9172     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9173 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9174     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9175 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9176
9177     ;;
9178 esac
9179 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9182   echo $ECHO_N "(cached) $ECHO_C" >&6
9183 else
9184   eval "$as_ac_Header=\$ac_header_preproc"
9185 fi
9186 ac_res=`eval echo '${'$as_ac_Header'}'`
9187                { echo "$as_me:$LINENO: result: $ac_res" >&5
9188 echo "${ECHO_T}$ac_res" >&6; }
9189
9190 fi
9191 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9192   cat >>confdefs.h <<_ACEOF
9193 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9194 _ACEOF
9195
9196 fi
9197
9198 done
9199
9200
9201 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9202 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9203 if test "${ac_cv_c_const+set}" = set; then
9204   echo $ECHO_N "(cached) $ECHO_C" >&6
9205 else
9206   cat >conftest.$ac_ext <<_ACEOF
9207 /* confdefs.h.  */
9208 _ACEOF
9209 cat confdefs.h >>conftest.$ac_ext
9210 cat >>conftest.$ac_ext <<_ACEOF
9211 /* end confdefs.h.  */
9212
9213 int
9214 main ()
9215 {
9216 /* FIXME: Include the comments suggested by Paul. */
9217 #ifndef __cplusplus
9218   /* Ultrix mips cc rejects this.  */
9219   typedef int charset[2];
9220   const charset x;
9221   /* SunOS 4.1.1 cc rejects this.  */
9222   char const *const *ccp;
9223   char **p;
9224   /* NEC SVR4.0.2 mips cc rejects this.  */
9225   struct point {int x, y;};
9226   static struct point const zero = {0,0};
9227   /* AIX XL C 1.02.0.0 rejects this.
9228      It does not let you subtract one const X* pointer from another in
9229      an arm of an if-expression whose if-part is not a constant
9230      expression */
9231   const char *g = "string";
9232   ccp = &g + (g ? g-g : 0);
9233   /* HPUX 7.0 cc rejects these. */
9234   ++ccp;
9235   p = (char**) ccp;
9236   ccp = (char const *const *) p;
9237   { /* SCO 3.2v4 cc rejects this.  */
9238     char *t;
9239     char const *s = 0 ? (char *) 0 : (char const *) 0;
9240
9241     *t++ = 0;
9242     if (s) return 0;
9243   }
9244   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9245     int x[] = {25, 17};
9246     const int *foo = &x[0];
9247     ++foo;
9248   }
9249   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9250     typedef const int *iptr;
9251     iptr p = 0;
9252     ++p;
9253   }
9254   { /* AIX XL C 1.02.0.0 rejects this saying
9255        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9256     struct s { int j; const int *ap[3]; };
9257     struct s *b; b->j = 5;
9258   }
9259   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9260     const int foo = 10;
9261     if (!foo) return 0;
9262   }
9263   return !x[0] && !zero.x;
9264 #endif
9265
9266   ;
9267   return 0;
9268 }
9269 _ACEOF
9270 rm -f conftest.$ac_objext
9271 if { (ac_try="$ac_compile"
9272 case "(($ac_try" in
9273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9274   *) ac_try_echo=$ac_try;;
9275 esac
9276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9277   (eval "$ac_compile") 2>conftest.er1
9278   ac_status=$?
9279   grep -v '^ *+' conftest.er1 >conftest.err
9280   rm -f conftest.er1
9281   cat conftest.err >&5
9282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283   (exit $ac_status); } &&
9284          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9285   { (case "(($ac_try" in
9286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9287   *) ac_try_echo=$ac_try;;
9288 esac
9289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9290   (eval "$ac_try") 2>&5
9291   ac_status=$?
9292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293   (exit $ac_status); }; } &&
9294          { ac_try='test -s conftest.$ac_objext'
9295   { (case "(($ac_try" in
9296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9297   *) ac_try_echo=$ac_try;;
9298 esac
9299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9300   (eval "$ac_try") 2>&5
9301   ac_status=$?
9302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303   (exit $ac_status); }; }; then
9304   ac_cv_c_const=yes
9305 else
9306   echo "$as_me: failed program was:" >&5
9307 sed 's/^/| /' conftest.$ac_ext >&5
9308
9309         ac_cv_c_const=no
9310 fi
9311
9312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9313 fi
9314 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9315 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9316 if test $ac_cv_c_const = no; then
9317
9318 cat >>confdefs.h <<\_ACEOF
9319 #define const
9320 _ACEOF
9321
9322 fi
9323
9324 { echo "$as_me:$LINENO: checking for off_t" >&5
9325 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
9326 if test "${ac_cv_type_off_t+set}" = set; then
9327   echo $ECHO_N "(cached) $ECHO_C" >&6
9328 else
9329   cat >conftest.$ac_ext <<_ACEOF
9330 /* confdefs.h.  */
9331 _ACEOF
9332 cat confdefs.h >>conftest.$ac_ext
9333 cat >>conftest.$ac_ext <<_ACEOF
9334 /* end confdefs.h.  */
9335 $ac_includes_default
9336 typedef off_t ac__type_new_;
9337 int
9338 main ()
9339 {
9340 if ((ac__type_new_ *) 0)
9341   return 0;
9342 if (sizeof (ac__type_new_))
9343   return 0;
9344   ;
9345   return 0;
9346 }
9347 _ACEOF
9348 rm -f conftest.$ac_objext
9349 if { (ac_try="$ac_compile"
9350 case "(($ac_try" in
9351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9352   *) ac_try_echo=$ac_try;;
9353 esac
9354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9355   (eval "$ac_compile") 2>conftest.er1
9356   ac_status=$?
9357   grep -v '^ *+' conftest.er1 >conftest.err
9358   rm -f conftest.er1
9359   cat conftest.err >&5
9360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361   (exit $ac_status); } &&
9362          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9363   { (case "(($ac_try" in
9364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9365   *) ac_try_echo=$ac_try;;
9366 esac
9367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9368   (eval "$ac_try") 2>&5
9369   ac_status=$?
9370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371   (exit $ac_status); }; } &&
9372          { ac_try='test -s conftest.$ac_objext'
9373   { (case "(($ac_try" in
9374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9375   *) ac_try_echo=$ac_try;;
9376 esac
9377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9378   (eval "$ac_try") 2>&5
9379   ac_status=$?
9380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381   (exit $ac_status); }; }; then
9382   ac_cv_type_off_t=yes
9383 else
9384   echo "$as_me: failed program was:" >&5
9385 sed 's/^/| /' conftest.$ac_ext >&5
9386
9387         ac_cv_type_off_t=no
9388 fi
9389
9390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9391 fi
9392 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
9393 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
9394 if test $ac_cv_type_off_t = yes; then
9395   :
9396 else
9397
9398 cat >>confdefs.h <<_ACEOF
9399 #define off_t long int
9400 _ACEOF
9401
9402 fi
9403
9404 { echo "$as_me:$LINENO: checking for size_t" >&5
9405 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
9406 if test "${ac_cv_type_size_t+set}" = set; then
9407   echo $ECHO_N "(cached) $ECHO_C" >&6
9408 else
9409   cat >conftest.$ac_ext <<_ACEOF
9410 /* confdefs.h.  */
9411 _ACEOF
9412 cat confdefs.h >>conftest.$ac_ext
9413 cat >>conftest.$ac_ext <<_ACEOF
9414 /* end confdefs.h.  */
9415 $ac_includes_default
9416 typedef size_t ac__type_new_;
9417 int
9418 main ()
9419 {
9420 if ((ac__type_new_ *) 0)
9421   return 0;
9422 if (sizeof (ac__type_new_))
9423   return 0;
9424   ;
9425   return 0;
9426 }
9427 _ACEOF
9428 rm -f conftest.$ac_objext
9429 if { (ac_try="$ac_compile"
9430 case "(($ac_try" in
9431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9432   *) ac_try_echo=$ac_try;;
9433 esac
9434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9435   (eval "$ac_compile") 2>conftest.er1
9436   ac_status=$?
9437   grep -v '^ *+' conftest.er1 >conftest.err
9438   rm -f conftest.er1
9439   cat conftest.err >&5
9440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441   (exit $ac_status); } &&
9442          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
9452          { ac_try='test -s conftest.$ac_objext'
9453   { (case "(($ac_try" in
9454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9455   *) ac_try_echo=$ac_try;;
9456 esac
9457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9458   (eval "$ac_try") 2>&5
9459   ac_status=$?
9460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461   (exit $ac_status); }; }; then
9462   ac_cv_type_size_t=yes
9463 else
9464   echo "$as_me: failed program was:" >&5
9465 sed 's/^/| /' conftest.$ac_ext >&5
9466
9467         ac_cv_type_size_t=no
9468 fi
9469
9470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9471 fi
9472 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9473 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
9474 if test $ac_cv_type_size_t = yes; then
9475   :
9476 else
9477
9478 cat >>confdefs.h <<_ACEOF
9479 #define size_t unsigned int
9480 _ACEOF
9481
9482 fi
9483
9484 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9485 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
9486 if test "${ac_cv_struct_tm+set}" = set; then
9487   echo $ECHO_N "(cached) $ECHO_C" >&6
9488 else
9489   cat >conftest.$ac_ext <<_ACEOF
9490 /* confdefs.h.  */
9491 _ACEOF
9492 cat confdefs.h >>conftest.$ac_ext
9493 cat >>conftest.$ac_ext <<_ACEOF
9494 /* end confdefs.h.  */
9495 #include <sys/types.h>
9496 #include <time.h>
9497
9498 int
9499 main ()
9500 {
9501 struct tm *tp; tp->tm_sec;
9502   ;
9503   return 0;
9504 }
9505 _ACEOF
9506 rm -f conftest.$ac_objext
9507 if { (ac_try="$ac_compile"
9508 case "(($ac_try" in
9509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9510   *) ac_try_echo=$ac_try;;
9511 esac
9512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9513   (eval "$ac_compile") 2>conftest.er1
9514   ac_status=$?
9515   grep -v '^ *+' conftest.er1 >conftest.err
9516   rm -f conftest.er1
9517   cat conftest.err >&5
9518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519   (exit $ac_status); } &&
9520          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9521   { (case "(($ac_try" in
9522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9523   *) ac_try_echo=$ac_try;;
9524 esac
9525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9526   (eval "$ac_try") 2>&5
9527   ac_status=$?
9528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529   (exit $ac_status); }; } &&
9530          { ac_try='test -s conftest.$ac_objext'
9531   { (case "(($ac_try" in
9532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9533   *) ac_try_echo=$ac_try;;
9534 esac
9535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9536   (eval "$ac_try") 2>&5
9537   ac_status=$?
9538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539   (exit $ac_status); }; }; then
9540   ac_cv_struct_tm=time.h
9541 else
9542   echo "$as_me: failed program was:" >&5
9543 sed 's/^/| /' conftest.$ac_ext >&5
9544
9545         ac_cv_struct_tm=sys/time.h
9546 fi
9547
9548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9549 fi
9550 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9551 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
9552 if test $ac_cv_struct_tm = sys/time.h; then
9553
9554 cat >>confdefs.h <<\_ACEOF
9555 #define TM_IN_SYS_TIME 1
9556 _ACEOF
9557
9558 fi
9559
9560
9561
9562 for ac_func in vprintf
9563 do
9564 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9565 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9566 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9567 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9568   echo $ECHO_N "(cached) $ECHO_C" >&6
9569 else
9570   cat >conftest.$ac_ext <<_ACEOF
9571 /* confdefs.h.  */
9572 _ACEOF
9573 cat confdefs.h >>conftest.$ac_ext
9574 cat >>conftest.$ac_ext <<_ACEOF
9575 /* end confdefs.h.  */
9576 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9577    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9578 #define $ac_func innocuous_$ac_func
9579
9580 /* System header to define __stub macros and hopefully few prototypes,
9581     which can conflict with char $ac_func (); below.
9582     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9583     <limits.h> exists even on freestanding compilers.  */
9584
9585 #ifdef __STDC__
9586 # include <limits.h>
9587 #else
9588 # include <assert.h>
9589 #endif
9590
9591 #undef $ac_func
9592
9593 /* Override any GCC internal prototype to avoid an error.
9594    Use char because int might match the return type of a GCC
9595    builtin and then its argument prototype would still apply.  */
9596 #ifdef __cplusplus
9597 extern "C"
9598 #endif
9599 char $ac_func ();
9600 /* The GNU C library defines this for functions which it implements
9601     to always fail with ENOSYS.  Some functions are actually named
9602     something starting with __ and the normal name is an alias.  */
9603 #if defined __stub_$ac_func || defined __stub___$ac_func
9604 choke me
9605 #endif
9606
9607 int
9608 main ()
9609 {
9610 return $ac_func ();
9611   ;
9612   return 0;
9613 }
9614 _ACEOF
9615 rm -f conftest.$ac_objext conftest$ac_exeext
9616 if { (ac_try="$ac_link"
9617 case "(($ac_try" in
9618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9619   *) ac_try_echo=$ac_try;;
9620 esac
9621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9622   (eval "$ac_link") 2>conftest.er1
9623   ac_status=$?
9624   grep -v '^ *+' conftest.er1 >conftest.err
9625   rm -f conftest.er1
9626   cat conftest.err >&5
9627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9628   (exit $ac_status); } &&
9629          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9630   { (case "(($ac_try" in
9631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9632   *) ac_try_echo=$ac_try;;
9633 esac
9634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9635   (eval "$ac_try") 2>&5
9636   ac_status=$?
9637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638   (exit $ac_status); }; } &&
9639          { ac_try='test -s conftest$ac_exeext'
9640   { (case "(($ac_try" in
9641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9642   *) ac_try_echo=$ac_try;;
9643 esac
9644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9645   (eval "$ac_try") 2>&5
9646   ac_status=$?
9647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648   (exit $ac_status); }; }; then
9649   eval "$as_ac_var=yes"
9650 else
9651   echo "$as_me: failed program was:" >&5
9652 sed 's/^/| /' conftest.$ac_ext >&5
9653
9654         eval "$as_ac_var=no"
9655 fi
9656
9657 rm -f core conftest.err conftest.$ac_objext \
9658       conftest$ac_exeext conftest.$ac_ext
9659 fi
9660 ac_res=`eval echo '${'$as_ac_var'}'`
9661                { echo "$as_me:$LINENO: result: $ac_res" >&5
9662 echo "${ECHO_T}$ac_res" >&6; }
9663 if test `eval echo '${'$as_ac_var'}'` = yes; then
9664   cat >>confdefs.h <<_ACEOF
9665 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9666 _ACEOF
9667
9668 { echo "$as_me:$LINENO: checking for _doprnt" >&5
9669 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
9670 if test "${ac_cv_func__doprnt+set}" = set; then
9671   echo $ECHO_N "(cached) $ECHO_C" >&6
9672 else
9673   cat >conftest.$ac_ext <<_ACEOF
9674 /* confdefs.h.  */
9675 _ACEOF
9676 cat confdefs.h >>conftest.$ac_ext
9677 cat >>conftest.$ac_ext <<_ACEOF
9678 /* end confdefs.h.  */
9679 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
9680    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9681 #define _doprnt innocuous__doprnt
9682
9683 /* System header to define __stub macros and hopefully few prototypes,
9684     which can conflict with char _doprnt (); below.
9685     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9686     <limits.h> exists even on freestanding compilers.  */
9687
9688 #ifdef __STDC__
9689 # include <limits.h>
9690 #else
9691 # include <assert.h>
9692 #endif
9693
9694 #undef _doprnt
9695
9696 /* Override any GCC internal prototype to avoid an error.
9697    Use char because int might match the return type of a GCC
9698    builtin and then its argument prototype would still apply.  */
9699 #ifdef __cplusplus
9700 extern "C"
9701 #endif
9702 char _doprnt ();
9703 /* The GNU C library defines this for functions which it implements
9704     to always fail with ENOSYS.  Some functions are actually named
9705     something starting with __ and the normal name is an alias.  */
9706 #if defined __stub__doprnt || defined __stub____doprnt
9707 choke me
9708 #endif
9709
9710 int
9711 main ()
9712 {
9713 return _doprnt ();
9714   ;
9715   return 0;
9716 }
9717 _ACEOF
9718 rm -f conftest.$ac_objext conftest$ac_exeext
9719 if { (ac_try="$ac_link"
9720 case "(($ac_try" in
9721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9722   *) ac_try_echo=$ac_try;;
9723 esac
9724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9725   (eval "$ac_link") 2>conftest.er1
9726   ac_status=$?
9727   grep -v '^ *+' conftest.er1 >conftest.err
9728   rm -f conftest.er1
9729   cat conftest.err >&5
9730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731   (exit $ac_status); } &&
9732          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9733   { (case "(($ac_try" in
9734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9735   *) ac_try_echo=$ac_try;;
9736 esac
9737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9738   (eval "$ac_try") 2>&5
9739   ac_status=$?
9740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741   (exit $ac_status); }; } &&
9742          { ac_try='test -s conftest$ac_exeext'
9743   { (case "(($ac_try" in
9744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9745   *) ac_try_echo=$ac_try;;
9746 esac
9747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9748   (eval "$ac_try") 2>&5
9749   ac_status=$?
9750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751   (exit $ac_status); }; }; then
9752   ac_cv_func__doprnt=yes
9753 else
9754   echo "$as_me: failed program was:" >&5
9755 sed 's/^/| /' conftest.$ac_ext >&5
9756
9757         ac_cv_func__doprnt=no
9758 fi
9759
9760 rm -f core conftest.err conftest.$ac_objext \
9761       conftest$ac_exeext conftest.$ac_ext
9762 fi
9763 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
9764 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
9765 if test $ac_cv_func__doprnt = yes; then
9766
9767 cat >>confdefs.h <<\_ACEOF
9768 #define HAVE_DOPRNT 1
9769 _ACEOF
9770
9771 fi
9772
9773 fi
9774 done
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790 for ac_func in strtod strtol snprintf htonl usleep vsprintf vsnprintf basename setjmp setpriority time gettimeofday getenv
9791 do
9792 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9793 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9794 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9795 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9796   echo $ECHO_N "(cached) $ECHO_C" >&6
9797 else
9798   cat >conftest.$ac_ext <<_ACEOF
9799 /* confdefs.h.  */
9800 _ACEOF
9801 cat confdefs.h >>conftest.$ac_ext
9802 cat >>conftest.$ac_ext <<_ACEOF
9803 /* end confdefs.h.  */
9804 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9805    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9806 #define $ac_func innocuous_$ac_func
9807
9808 /* System header to define __stub macros and hopefully few prototypes,
9809     which can conflict with char $ac_func (); below.
9810     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9811     <limits.h> exists even on freestanding compilers.  */
9812
9813 #ifdef __STDC__
9814 # include <limits.h>
9815 #else
9816 # include <assert.h>
9817 #endif
9818
9819 #undef $ac_func
9820
9821 /* Override any GCC internal prototype to avoid an error.
9822    Use char because int might match the return type of a GCC
9823    builtin and then its argument prototype would still apply.  */
9824 #ifdef __cplusplus
9825 extern "C"
9826 #endif
9827 char $ac_func ();
9828 /* The GNU C library defines this for functions which it implements
9829     to always fail with ENOSYS.  Some functions are actually named
9830     something starting with __ and the normal name is an alias.  */
9831 #if defined __stub_$ac_func || defined __stub___$ac_func
9832 choke me
9833 #endif
9834
9835 int
9836 main ()
9837 {
9838 return $ac_func ();
9839   ;
9840   return 0;
9841 }
9842 _ACEOF
9843 rm -f conftest.$ac_objext conftest$ac_exeext
9844 if { (ac_try="$ac_link"
9845 case "(($ac_try" in
9846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9847   *) ac_try_echo=$ac_try;;
9848 esac
9849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9850   (eval "$ac_link") 2>conftest.er1
9851   ac_status=$?
9852   grep -v '^ *+' conftest.er1 >conftest.err
9853   rm -f conftest.er1
9854   cat conftest.err >&5
9855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856   (exit $ac_status); } &&
9857          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9858   { (case "(($ac_try" in
9859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9860   *) ac_try_echo=$ac_try;;
9861 esac
9862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9863   (eval "$ac_try") 2>&5
9864   ac_status=$?
9865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866   (exit $ac_status); }; } &&
9867          { ac_try='test -s conftest$ac_exeext'
9868   { (case "(($ac_try" in
9869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9870   *) ac_try_echo=$ac_try;;
9871 esac
9872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9873   (eval "$ac_try") 2>&5
9874   ac_status=$?
9875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876   (exit $ac_status); }; }; then
9877   eval "$as_ac_var=yes"
9878 else
9879   echo "$as_me: failed program was:" >&5
9880 sed 's/^/| /' conftest.$ac_ext >&5
9881
9882         eval "$as_ac_var=no"
9883 fi
9884
9885 rm -f core conftest.err conftest.$ac_objext \
9886       conftest$ac_exeext conftest.$ac_ext
9887 fi
9888 ac_res=`eval echo '${'$as_ac_var'}'`
9889                { echo "$as_me:$LINENO: result: $ac_res" >&5
9890 echo "${ECHO_T}$ac_res" >&6; }
9891 if test `eval echo '${'$as_ac_var'}'` = yes; then
9892   cat >>confdefs.h <<_ACEOF
9893 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9894 _ACEOF
9895
9896 fi
9897 done
9898
9899 { echo "$as_me:$LINENO: checking for basename" >&5
9900 echo $ECHO_N "checking for basename... $ECHO_C" >&6; }
9901 if test "${ac_cv_func_basename+set}" = set; then
9902   echo $ECHO_N "(cached) $ECHO_C" >&6
9903 else
9904   cat >conftest.$ac_ext <<_ACEOF
9905 /* confdefs.h.  */
9906 _ACEOF
9907 cat confdefs.h >>conftest.$ac_ext
9908 cat >>conftest.$ac_ext <<_ACEOF
9909 /* end confdefs.h.  */
9910 /* Define basename to an innocuous variant, in case <limits.h> declares basename.
9911    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9912 #define basename innocuous_basename
9913
9914 /* System header to define __stub macros and hopefully few prototypes,
9915     which can conflict with char basename (); below.
9916     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9917     <limits.h> exists even on freestanding compilers.  */
9918
9919 #ifdef __STDC__
9920 # include <limits.h>
9921 #else
9922 # include <assert.h>
9923 #endif
9924
9925 #undef basename
9926
9927 /* Override any GCC internal prototype to avoid an error.
9928    Use char because int might match the return type of a GCC
9929    builtin and then its argument prototype would still apply.  */
9930 #ifdef __cplusplus
9931 extern "C"
9932 #endif
9933 char basename ();
9934 /* The GNU C library defines this for functions which it implements
9935     to always fail with ENOSYS.  Some functions are actually named
9936     something starting with __ and the normal name is an alias.  */
9937 #if defined __stub_basename || defined __stub___basename
9938 choke me
9939 #endif
9940
9941 int
9942 main ()
9943 {
9944 return basename ();
9945   ;
9946   return 0;
9947 }
9948 _ACEOF
9949 rm -f conftest.$ac_objext conftest$ac_exeext
9950 if { (ac_try="$ac_link"
9951 case "(($ac_try" in
9952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9953   *) ac_try_echo=$ac_try;;
9954 esac
9955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9956   (eval "$ac_link") 2>conftest.er1
9957   ac_status=$?
9958   grep -v '^ *+' conftest.er1 >conftest.err
9959   rm -f conftest.er1
9960   cat conftest.err >&5
9961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962   (exit $ac_status); } &&
9963          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9964   { (case "(($ac_try" in
9965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9966   *) ac_try_echo=$ac_try;;
9967 esac
9968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9969   (eval "$ac_try") 2>&5
9970   ac_status=$?
9971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972   (exit $ac_status); }; } &&
9973          { ac_try='test -s conftest$ac_exeext'
9974   { (case "(($ac_try" in
9975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9976   *) ac_try_echo=$ac_try;;
9977 esac
9978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9979   (eval "$ac_try") 2>&5
9980   ac_status=$?
9981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982   (exit $ac_status); }; }; then
9983   ac_cv_func_basename=yes
9984 else
9985   echo "$as_me: failed program was:" >&5
9986 sed 's/^/| /' conftest.$ac_ext >&5
9987
9988         ac_cv_func_basename=no
9989 fi
9990
9991 rm -f core conftest.err conftest.$ac_objext \
9992       conftest$ac_exeext conftest.$ac_ext
9993 fi
9994 { echo "$as_me:$LINENO: result: $ac_cv_func_basename" >&5
9995 echo "${ECHO_T}$ac_cv_func_basename" >&6; }
9996
9997 { echo "$as_me:$LINENO: checking for setjmp" >&5
9998 echo $ECHO_N "checking for setjmp... $ECHO_C" >&6; }
9999 if test "${ac_cv_func_setjmp+set}" = set; then
10000   echo $ECHO_N "(cached) $ECHO_C" >&6
10001 else
10002   cat >conftest.$ac_ext <<_ACEOF
10003 /* confdefs.h.  */
10004 _ACEOF
10005 cat confdefs.h >>conftest.$ac_ext
10006 cat >>conftest.$ac_ext <<_ACEOF
10007 /* end confdefs.h.  */
10008 /* Define setjmp to an innocuous variant, in case <limits.h> declares setjmp.
10009    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10010 #define setjmp innocuous_setjmp
10011
10012 /* System header to define __stub macros and hopefully few prototypes,
10013     which can conflict with char setjmp (); below.
10014     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10015     <limits.h> exists even on freestanding compilers.  */
10016
10017 #ifdef __STDC__
10018 # include <limits.h>
10019 #else
10020 # include <assert.h>
10021 #endif
10022
10023 #undef setjmp
10024
10025 /* Override any GCC internal prototype to avoid an error.
10026    Use char because int might match the return type of a GCC
10027    builtin and then its argument prototype would still apply.  */
10028 #ifdef __cplusplus
10029 extern "C"
10030 #endif
10031 char setjmp ();
10032 /* The GNU C library defines this for functions which it implements
10033     to always fail with ENOSYS.  Some functions are actually named
10034     something starting with __ and the normal name is an alias.  */
10035 #if defined __stub_setjmp || defined __stub___setjmp
10036 choke me
10037 #endif
10038
10039 int
10040 main ()
10041 {
10042 return setjmp ();
10043   ;
10044   return 0;
10045 }
10046 _ACEOF
10047 rm -f conftest.$ac_objext conftest$ac_exeext
10048 if { (ac_try="$ac_link"
10049 case "(($ac_try" in
10050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10051   *) ac_try_echo=$ac_try;;
10052 esac
10053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10054   (eval "$ac_link") 2>conftest.er1
10055   ac_status=$?
10056   grep -v '^ *+' conftest.er1 >conftest.err
10057   rm -f conftest.er1
10058   cat conftest.err >&5
10059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060   (exit $ac_status); } &&
10061          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10062   { (case "(($ac_try" in
10063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10064   *) ac_try_echo=$ac_try;;
10065 esac
10066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10067   (eval "$ac_try") 2>&5
10068   ac_status=$?
10069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070   (exit $ac_status); }; } &&
10071          { ac_try='test -s conftest$ac_exeext'
10072   { (case "(($ac_try" in
10073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10074   *) ac_try_echo=$ac_try;;
10075 esac
10076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10077   (eval "$ac_try") 2>&5
10078   ac_status=$?
10079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080   (exit $ac_status); }; }; then
10081   ac_cv_func_setjmp=yes
10082 else
10083   echo "$as_me: failed program was:" >&5
10084 sed 's/^/| /' conftest.$ac_ext >&5
10085
10086         ac_cv_func_setjmp=no
10087 fi
10088
10089 rm -f core conftest.err conftest.$ac_objext \
10090       conftest$ac_exeext conftest.$ac_ext
10091 fi
10092 { echo "$as_me:$LINENO: result: $ac_cv_func_setjmp" >&5
10093 echo "${ECHO_T}$ac_cv_func_setjmp" >&6; }
10094
10095 { echo "$as_me:$LINENO: checking for setpriority" >&5
10096 echo $ECHO_N "checking for setpriority... $ECHO_C" >&6; }
10097 if test "${ac_cv_func_setpriority+set}" = set; then
10098   echo $ECHO_N "(cached) $ECHO_C" >&6
10099 else
10100   cat >conftest.$ac_ext <<_ACEOF
10101 /* confdefs.h.  */
10102 _ACEOF
10103 cat confdefs.h >>conftest.$ac_ext
10104 cat >>conftest.$ac_ext <<_ACEOF
10105 /* end confdefs.h.  */
10106 /* Define setpriority to an innocuous variant, in case <limits.h> declares setpriority.
10107    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10108 #define setpriority innocuous_setpriority
10109
10110 /* System header to define __stub macros and hopefully few prototypes,
10111     which can conflict with char setpriority (); below.
10112     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10113     <limits.h> exists even on freestanding compilers.  */
10114
10115 #ifdef __STDC__
10116 # include <limits.h>
10117 #else
10118 # include <assert.h>
10119 #endif
10120
10121 #undef setpriority
10122
10123 /* Override any GCC internal prototype to avoid an error.
10124    Use char because int might match the return type of a GCC
10125    builtin and then its argument prototype would still apply.  */
10126 #ifdef __cplusplus
10127 extern "C"
10128 #endif
10129 char setpriority ();
10130 /* The GNU C library defines this for functions which it implements
10131     to always fail with ENOSYS.  Some functions are actually named
10132     something starting with __ and the normal name is an alias.  */
10133 #if defined __stub_setpriority || defined __stub___setpriority
10134 choke me
10135 #endif
10136
10137 int
10138 main ()
10139 {
10140 return setpriority ();
10141   ;
10142   return 0;
10143 }
10144 _ACEOF
10145 rm -f conftest.$ac_objext conftest$ac_exeext
10146 if { (ac_try="$ac_link"
10147 case "(($ac_try" in
10148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10149   *) ac_try_echo=$ac_try;;
10150 esac
10151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10152   (eval "$ac_link") 2>conftest.er1
10153   ac_status=$?
10154   grep -v '^ *+' conftest.er1 >conftest.err
10155   rm -f conftest.er1
10156   cat conftest.err >&5
10157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158   (exit $ac_status); } &&
10159          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10160   { (case "(($ac_try" in
10161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10162   *) ac_try_echo=$ac_try;;
10163 esac
10164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10165   (eval "$ac_try") 2>&5
10166   ac_status=$?
10167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168   (exit $ac_status); }; } &&
10169          { ac_try='test -s conftest$ac_exeext'
10170   { (case "(($ac_try" in
10171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10172   *) ac_try_echo=$ac_try;;
10173 esac
10174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10175   (eval "$ac_try") 2>&5
10176   ac_status=$?
10177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178   (exit $ac_status); }; }; then
10179   ac_cv_func_setpriority=yes
10180 else
10181   echo "$as_me: failed program was:" >&5
10182 sed 's/^/| /' conftest.$ac_ext >&5
10183
10184         ac_cv_func_setpriority=no
10185 fi
10186
10187 rm -f core conftest.err conftest.$ac_objext \
10188       conftest$ac_exeext conftest.$ac_ext
10189 fi
10190 { echo "$as_me:$LINENO: result: $ac_cv_func_setpriority" >&5
10191 echo "${ECHO_T}$ac_cv_func_setpriority" >&6; }
10192
10193 { echo "$as_me:$LINENO: checking for time" >&5
10194 echo $ECHO_N "checking for time... $ECHO_C" >&6; }
10195 if test "${ac_cv_func_time+set}" = set; then
10196   echo $ECHO_N "(cached) $ECHO_C" >&6
10197 else
10198   cat >conftest.$ac_ext <<_ACEOF
10199 /* confdefs.h.  */
10200 _ACEOF
10201 cat confdefs.h >>conftest.$ac_ext
10202 cat >>conftest.$ac_ext <<_ACEOF
10203 /* end confdefs.h.  */
10204 /* Define time to an innocuous variant, in case <limits.h> declares time.
10205    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10206 #define time innocuous_time
10207
10208 /* System header to define __stub macros and hopefully few prototypes,
10209     which can conflict with char time (); below.
10210     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10211     <limits.h> exists even on freestanding compilers.  */
10212
10213 #ifdef __STDC__
10214 # include <limits.h>
10215 #else
10216 # include <assert.h>
10217 #endif
10218
10219 #undef time
10220
10221 /* Override any GCC internal prototype to avoid an error.
10222    Use char because int might match the return type of a GCC
10223    builtin and then its argument prototype would still apply.  */
10224 #ifdef __cplusplus
10225 extern "C"
10226 #endif
10227 char time ();
10228 /* The GNU C library defines this for functions which it implements
10229     to always fail with ENOSYS.  Some functions are actually named
10230     something starting with __ and the normal name is an alias.  */
10231 #if defined __stub_time || defined __stub___time
10232 choke me
10233 #endif
10234
10235 int
10236 main ()
10237 {
10238 return time ();
10239   ;
10240   return 0;
10241 }
10242 _ACEOF
10243 rm -f conftest.$ac_objext conftest$ac_exeext
10244 if { (ac_try="$ac_link"
10245 case "(($ac_try" in
10246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10247   *) ac_try_echo=$ac_try;;
10248 esac
10249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10250   (eval "$ac_link") 2>conftest.er1
10251   ac_status=$?
10252   grep -v '^ *+' conftest.er1 >conftest.err
10253   rm -f conftest.er1
10254   cat conftest.err >&5
10255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256   (exit $ac_status); } &&
10257          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10258   { (case "(($ac_try" in
10259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10260   *) ac_try_echo=$ac_try;;
10261 esac
10262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10263   (eval "$ac_try") 2>&5
10264   ac_status=$?
10265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266   (exit $ac_status); }; } &&
10267          { ac_try='test -s conftest$ac_exeext'
10268   { (case "(($ac_try" in
10269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10270   *) ac_try_echo=$ac_try;;
10271 esac
10272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10273   (eval "$ac_try") 2>&5
10274   ac_status=$?
10275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276   (exit $ac_status); }; }; then
10277   ac_cv_func_time=yes
10278 else
10279   echo "$as_me: failed program was:" >&5
10280 sed 's/^/| /' conftest.$ac_ext >&5
10281
10282         ac_cv_func_time=no
10283 fi
10284
10285 rm -f core conftest.err conftest.$ac_objext \
10286       conftest$ac_exeext conftest.$ac_ext
10287 fi
10288 { echo "$as_me:$LINENO: result: $ac_cv_func_time" >&5
10289 echo "${ECHO_T}$ac_cv_func_time" >&6; }
10290
10291 { echo "$as_me:$LINENO: checking for gettimeofday" >&5
10292 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6; }
10293 if test "${ac_cv_func_gettimeofday+set}" = set; then
10294   echo $ECHO_N "(cached) $ECHO_C" >&6
10295 else
10296   cat >conftest.$ac_ext <<_ACEOF
10297 /* confdefs.h.  */
10298 _ACEOF
10299 cat confdefs.h >>conftest.$ac_ext
10300 cat >>conftest.$ac_ext <<_ACEOF
10301 /* end confdefs.h.  */
10302 /* Define gettimeofday to an innocuous variant, in case <limits.h> declares gettimeofday.
10303    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10304 #define gettimeofday innocuous_gettimeofday
10305
10306 /* System header to define __stub macros and hopefully few prototypes,
10307     which can conflict with char gettimeofday (); below.
10308     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10309     <limits.h> exists even on freestanding compilers.  */
10310
10311 #ifdef __STDC__
10312 # include <limits.h>
10313 #else
10314 # include <assert.h>
10315 #endif
10316
10317 #undef gettimeofday
10318
10319 /* Override any GCC internal prototype to avoid an error.
10320    Use char because int might match the return type of a GCC
10321    builtin and then its argument prototype would still apply.  */
10322 #ifdef __cplusplus
10323 extern "C"
10324 #endif
10325 char gettimeofday ();
10326 /* The GNU C library defines this for functions which it implements
10327     to always fail with ENOSYS.  Some functions are actually named
10328     something starting with __ and the normal name is an alias.  */
10329 #if defined __stub_gettimeofday || defined __stub___gettimeofday
10330 choke me
10331 #endif
10332
10333 int
10334 main ()
10335 {
10336 return gettimeofday ();
10337   ;
10338   return 0;
10339 }
10340 _ACEOF
10341 rm -f conftest.$ac_objext conftest$ac_exeext
10342 if { (ac_try="$ac_link"
10343 case "(($ac_try" in
10344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10345   *) ac_try_echo=$ac_try;;
10346 esac
10347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10348   (eval "$ac_link") 2>conftest.er1
10349   ac_status=$?
10350   grep -v '^ *+' conftest.er1 >conftest.err
10351   rm -f conftest.er1
10352   cat conftest.err >&5
10353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354   (exit $ac_status); } &&
10355          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10356   { (case "(($ac_try" in
10357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10358   *) ac_try_echo=$ac_try;;
10359 esac
10360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10361   (eval "$ac_try") 2>&5
10362   ac_status=$?
10363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364   (exit $ac_status); }; } &&
10365          { ac_try='test -s conftest$ac_exeext'
10366   { (case "(($ac_try" in
10367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10368   *) ac_try_echo=$ac_try;;
10369 esac
10370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10371   (eval "$ac_try") 2>&5
10372   ac_status=$?
10373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374   (exit $ac_status); }; }; then
10375   ac_cv_func_gettimeofday=yes
10376 else
10377   echo "$as_me: failed program was:" >&5
10378 sed 's/^/| /' conftest.$ac_ext >&5
10379
10380         ac_cv_func_gettimeofday=no
10381 fi
10382
10383 rm -f core conftest.err conftest.$ac_objext \
10384       conftest$ac_exeext conftest.$ac_ext
10385 fi
10386 { echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
10387 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6; }
10388
10389 { echo "$as_me:$LINENO: checking for getopt" >&5
10390 echo $ECHO_N "checking for getopt... $ECHO_C" >&6; }
10391 if test "${ac_cv_func_getopt+set}" = set; then
10392   echo $ECHO_N "(cached) $ECHO_C" >&6
10393 else
10394   cat >conftest.$ac_ext <<_ACEOF
10395 /* confdefs.h.  */
10396 _ACEOF
10397 cat confdefs.h >>conftest.$ac_ext
10398 cat >>conftest.$ac_ext <<_ACEOF
10399 /* end confdefs.h.  */
10400 /* Define getopt to an innocuous variant, in case <limits.h> declares getopt.
10401    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10402 #define getopt innocuous_getopt
10403
10404 /* System header to define __stub macros and hopefully few prototypes,
10405     which can conflict with char getopt (); below.
10406     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10407     <limits.h> exists even on freestanding compilers.  */
10408
10409 #ifdef __STDC__
10410 # include <limits.h>
10411 #else
10412 # include <assert.h>
10413 #endif
10414
10415 #undef getopt
10416
10417 /* Override any GCC internal prototype to avoid an error.
10418    Use char because int might match the return type of a GCC
10419    builtin and then its argument prototype would still apply.  */
10420 #ifdef __cplusplus
10421 extern "C"
10422 #endif
10423 char getopt ();
10424 /* The GNU C library defines this for functions which it implements
10425     to always fail with ENOSYS.  Some functions are actually named
10426     something starting with __ and the normal name is an alias.  */
10427 #if defined __stub_getopt || defined __stub___getopt
10428 choke me
10429 #endif
10430
10431 int
10432 main ()
10433 {
10434 return getopt ();
10435   ;
10436   return 0;
10437 }
10438 _ACEOF
10439 rm -f conftest.$ac_objext conftest$ac_exeext
10440 if { (ac_try="$ac_link"
10441 case "(($ac_try" in
10442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10443   *) ac_try_echo=$ac_try;;
10444 esac
10445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10446   (eval "$ac_link") 2>conftest.er1
10447   ac_status=$?
10448   grep -v '^ *+' conftest.er1 >conftest.err
10449   rm -f conftest.er1
10450   cat conftest.err >&5
10451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452   (exit $ac_status); } &&
10453          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10454   { (case "(($ac_try" in
10455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10456   *) ac_try_echo=$ac_try;;
10457 esac
10458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10459   (eval "$ac_try") 2>&5
10460   ac_status=$?
10461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462   (exit $ac_status); }; } &&
10463          { ac_try='test -s conftest$ac_exeext'
10464   { (case "(($ac_try" in
10465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10466   *) ac_try_echo=$ac_try;;
10467 esac
10468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10469   (eval "$ac_try") 2>&5
10470   ac_status=$?
10471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472   (exit $ac_status); }; }; then
10473   ac_cv_func_getopt=yes
10474 else
10475   echo "$as_me: failed program was:" >&5
10476 sed 's/^/| /' conftest.$ac_ext >&5
10477
10478         ac_cv_func_getopt=no
10479 fi
10480
10481 rm -f core conftest.err conftest.$ac_objext \
10482       conftest$ac_exeext conftest.$ac_ext
10483 fi
10484 { echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5
10485 echo "${ECHO_T}$ac_cv_func_getopt" >&6; }
10486 if test $ac_cv_func_getopt = yes; then
10487    getopt=true
10488 else
10489    getopt=false
10490 fi
10491
10492
10493 if test "${OSTYPE}" = "cygwin" ; then
10494   getopt_long=false
10495 else
10496   { echo "$as_me:$LINENO: checking for getopt_long" >&5
10497 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6; }
10498 if test "${ac_cv_func_getopt_long+set}" = set; then
10499   echo $ECHO_N "(cached) $ECHO_C" >&6
10500 else
10501   cat >conftest.$ac_ext <<_ACEOF
10502 /* confdefs.h.  */
10503 _ACEOF
10504 cat confdefs.h >>conftest.$ac_ext
10505 cat >>conftest.$ac_ext <<_ACEOF
10506 /* end confdefs.h.  */
10507 /* Define getopt_long to an innocuous variant, in case <limits.h> declares getopt_long.
10508    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10509 #define getopt_long innocuous_getopt_long
10510
10511 /* System header to define __stub macros and hopefully few prototypes,
10512     which can conflict with char getopt_long (); below.
10513     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10514     <limits.h> exists even on freestanding compilers.  */
10515
10516 #ifdef __STDC__
10517 # include <limits.h>
10518 #else
10519 # include <assert.h>
10520 #endif
10521
10522 #undef getopt_long
10523
10524 /* Override any GCC internal prototype to avoid an error.
10525    Use char because int might match the return type of a GCC
10526    builtin and then its argument prototype would still apply.  */
10527 #ifdef __cplusplus
10528 extern "C"
10529 #endif
10530 char getopt_long ();
10531 /* The GNU C library defines this for functions which it implements
10532     to always fail with ENOSYS.  Some functions are actually named
10533     something starting with __ and the normal name is an alias.  */
10534 #if defined __stub_getopt_long || defined __stub___getopt_long
10535 choke me
10536 #endif
10537
10538 int
10539 main ()
10540 {
10541 return getopt_long ();
10542   ;
10543   return 0;
10544 }
10545 _ACEOF
10546 rm -f conftest.$ac_objext conftest$ac_exeext
10547 if { (ac_try="$ac_link"
10548 case "(($ac_try" in
10549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10550   *) ac_try_echo=$ac_try;;
10551 esac
10552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10553   (eval "$ac_link") 2>conftest.er1
10554   ac_status=$?
10555   grep -v '^ *+' conftest.er1 >conftest.err
10556   rm -f conftest.er1
10557   cat conftest.err >&5
10558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559   (exit $ac_status); } &&
10560          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10561   { (case "(($ac_try" in
10562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10563   *) ac_try_echo=$ac_try;;
10564 esac
10565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10566   (eval "$ac_try") 2>&5
10567   ac_status=$?
10568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569   (exit $ac_status); }; } &&
10570          { ac_try='test -s conftest$ac_exeext'
10571   { (case "(($ac_try" in
10572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10573   *) ac_try_echo=$ac_try;;
10574 esac
10575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10576   (eval "$ac_try") 2>&5
10577   ac_status=$?
10578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579   (exit $ac_status); }; }; then
10580   ac_cv_func_getopt_long=yes
10581 else
10582   echo "$as_me: failed program was:" >&5
10583 sed 's/^/| /' conftest.$ac_ext >&5
10584
10585         ac_cv_func_getopt_long=no
10586 fi
10587
10588 rm -f core conftest.err conftest.$ac_objext \
10589       conftest$ac_exeext conftest.$ac_ext
10590 fi
10591 { echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
10592 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6; }
10593 if test $ac_cv_func_getopt_long = yes; then
10594    getopt_long=true
10595 else
10596    getopt_long=false
10597 fi
10598
10599 fi
10600
10601 if test "${getopt_long}" = "false" ; then
10602   my_includes="$my_includes -I../getopt"
10603
10604 cat >>confdefs.h <<\_ACEOF
10605 #define HAVE_GETOPT_LONG 1
10606 _ACEOF
10607
10608   ctlibs_base="$ctlibs_base -lgetopt"
10609   LDFLAGS="$LDFLAGS -L../getopt"
10610   GETOPTLONG=1
10611 fi
10612
10613
10614 if test "$GETOPTLONG"="1"; then
10615   INCLUDED_GETOPT_LONG_TRUE=
10616   INCLUDED_GETOPT_LONG_FALSE='#'
10617 else
10618   INCLUDED_GETOPT_LONG_TRUE='#'
10619   INCLUDED_GETOPT_LONG_FALSE=
10620 fi
10621
10622
10623 if test "${readline}" = "true" ; then
10624   ctlibs_base="$ctlibs_base -lreadline"
10625   if test "${ncurses}" = "true"; then
10626     ctlibs_base="$ctlibs_base -lncurses"
10627   elif test "${curses}" = "true"; then
10628     ctlibs_base="$ctlibs_base -lcurses"
10629   fi
10630 fi
10631
10632 { echo "$as_me:$LINENO: checking debug" >&5
10633 echo $ECHO_N "checking debug... $ECHO_C" >&6; }
10634 # Check whether --enable-debug was given.
10635 if test "${enable_debug+set}" = set; then
10636   enableval=$enable_debug; case "${enableval}" in
10637   yes) debug=true
10638        { echo "$as_me:$LINENO: result: yes" >&5
10639 echo "${ECHO_T}yes" >&6; }
10640        ;;
10641   no)  debug=false
10642        { echo "$as_me:$LINENO: result: no" >&5
10643 echo "${ECHO_T}no" >&6; }
10644        ;;
10645   *) { echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-debug" >&5
10646 echo "${ECHO_T}bad value ${enableval} for --enable-debug" >&6; }
10647        ;;
10648 esac
10649 else
10650   debug=false; { echo "$as_me:$LINENO: result: no" >&5
10651 echo "${ECHO_T}no" >&6; }
10652 fi
10653
10654
10655
10656 if test "$debug" = "true"; then
10657   DEBUG_TRUE=
10658   DEBUG_FALSE='#'
10659 else
10660   DEBUG_TRUE='#'
10661   DEBUG_FALSE=
10662 fi
10663
10664
10665 if test "$datadir" != "" ; then
10666   CPPFLAGS="$CPPFLAGS -DDATADIR=\"\\\"$datadir\\\"\""
10667 fi
10668
10669 if test "$debug" = "true" ; then
10670   CFLAGS="$CFLAGS -g -DDEBUG"
10671
10672 cat >>confdefs.h <<\_ACEOF
10673 #define DEBUG 1
10674 _ACEOF
10675
10676 else
10677   CFLAGS="$CFLAGS -O2 -DNDEBUG -fomit-frame-pointer"
10678
10679 cat >>confdefs.h <<\_ACEOF
10680 #define NDEBUG 1
10681 _ACEOF
10682
10683 fi
10684
10685 if test "${pthread}" = "true" ; then
10686
10687 cat >>confdefs.h <<\_ACEOF
10688 #define HAVE_WXTHREADS 1
10689 _ACEOF
10690
10691 fi
10692
10693 { echo "$as_me:$LINENO: checking sstream" >&5
10694 echo $ECHO_N "checking sstream... $ECHO_C" >&6; }
10695  if  test -f /usr/include/sstream || test -f /usr/include/g++/sstream ||
10696      test -f /usr/include/g++-2/sstream || test -f /usr/include/g++-3/sstream ||
10697      test -f /usr/include/gcc/darwin/3.1/g++-v3/sstream ; then
10698
10699 cat >>confdefs.h <<\_ACEOF
10700 #define HAVE_SSTREAM 1
10701 _ACEOF
10702
10703    { echo "$as_me:$LINENO: result: yes" >&5
10704 echo "${ECHO_T}yes" >&6; }
10705   else
10706    { echo "$as_me:$LINENO: result: no" >&5
10707 echo "${ECHO_T}no" >&6; }
10708  fi
10709
10710
10711 CFLAGS="$CFLAGS -Wall"
10712 { echo "$as_me:$LINENO: checking whether to enable verbose warnings" >&5
10713 echo $ECHO_N "checking whether to enable verbose warnings... $ECHO_C" >&6; }
10714 # Check whether --enable-verbose-warnings was given.
10715 if test "${enable_verbose_warnings+set}" = set; then
10716   enableval=$enable_verbose_warnings;  case "$enableval" in
10717   yes)
10718     { echo "$as_me:$LINENO: result: yes" >&5
10719 echo "${ECHO_T}yes" >&6; }
10720     CFLAGS="$CFLAGS -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Waggregate-return -Wmissing-prototypes -Wstrict-prototypes -pedantic -Wredundant-decls"
10721     ;;
10722   *)
10723     { echo "$as_me:$LINENO: result: no" >&5
10724 echo "${ECHO_T}no" >&6; }
10725     ;;
10726   esac
10727 else
10728   { echo "$as_me:$LINENO: result: no" >&5
10729 echo "${ECHO_T}no" >&6; }
10730
10731 fi
10732
10733
10734 { echo "$as_me:$LINENO: checking static executables" >&5
10735 echo $ECHO_N "checking static executables... $ECHO_C" >&6; }
10736 # Check whether --enable-static was given.
10737 if test "${enable_static+set}" = set; then
10738   enableval=$enable_static;  case "$enableval" in
10739   yes)
10740     { echo "$as_me:$LINENO: result: yes" >&5
10741 echo "${ECHO_T}yes" >&6; }
10742     CFLAGS="$CFLAGS --static"
10743     ;;
10744   *)
10745     { echo "$as_me:$LINENO: result: no" >&5
10746 echo "${ECHO_T}no" >&6; }
10747     ;;
10748   esac
10749 else
10750   { echo "$as_me:$LINENO: result: no" >&5
10751 echo "${ECHO_T}no" >&6; }
10752
10753 fi
10754
10755
10756
10757 # Check whether --with-lam was given.
10758 if test "${with_lam+set}" = set; then
10759   withval=$with_lam;     if test "$withval" != "no" ; then
10760          trylamdir=$withval
10761      fi
10762
10763 fi
10764
10765
10766 if test "$withval" != "no" ; then
10767   if test "$prefix" != "NONE" ; then
10768      trylamdir="$trylamdir $prefix"
10769   fi
10770
10771   { echo "$as_me:$LINENO: checking for LAM MPI installation" >&5
10772 echo $ECHO_N "checking for LAM MPI installation... $ECHO_C" >&6; }
10773   for testlamdir in "." $trylamdir /usr/local /usr/local/lam /usr /usr/lam /opt /opt/lam ; do
10774     if test -x "$testlamdir/bin/hcp" ; then
10775       if test "$testlamdir" != "/usr"; then
10776         LDFLAGS="$LDFLAGS -L$testlamdir/lib"
10777         CFLAGS="$CFLAGS -I$testlamdir/include"
10778       fi
10779       CFLAGS="$CFLAGS -I$testlamdir/include/mpi2c++"
10780       lamdir="$testlamdir"
10781
10782       mpienable="true"
10783
10784       break
10785     fi
10786   done
10787   { echo "$as_me:$LINENO: result: $lamdir" >&5
10788 echo "${ECHO_T}$lamdir" >&6; }
10789 else
10790   { echo "$as_me:$LINENO: result: no" >&5
10791 echo "${ECHO_T}no" >&6; }
10792 fi
10793
10794
10795
10796 # Check whether --with-ctn was given.
10797 if test "${with_ctn+set}" = set; then
10798   withval=$with_ctn;     if test "$withval" != "no" ; then
10799          tryctndir=$withval
10800      fi
10801
10802 fi
10803
10804
10805 if test "$withval" == "no" -o "$withval" == "NONE" ; then
10806   { echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
10807 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6; }
10808   { echo "$as_me:$LINENO: result: disabled" >&5
10809 echo "${ECHO_T}disabled" >&6; }
10810 else
10811   { echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
10812 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6; }
10813   for testctndir in $tryctndir/lib /usr/local/lib /usr/local/ctn/lib /usr/lib /usr/ctn/lib /usr/lib/ctn /opt/ctn/lib ; do
10814     if test -f "$testctndir/libctn.a" ; then
10815       LDFLAGS="$LDFLAGS -L$testctndir"
10816       ctnlib="true"
10817       break
10818     fi
10819   done
10820   for testctndir in $tryctndir/include /usr/local/include /usr/local/ctn/include /usr/include /usr/include/ctn /usr/ctn/include /opt/ctn/include ; do
10821     if test -f "$testctndir/ctn_os.h" ; then
10822       CFLAGS="$CFLAGS -I$testctndir"
10823       ctninclude="true"
10824       break
10825     fi
10826   done
10827   if test "$ctnlib" == "true" -a "$ctninclude" == "true" ; then
10828       ctn="true"
10829
10830 cat >>confdefs.h <<\_ACEOF
10831 #define HAVE_CTN_DICOM 1
10832 _ACEOF
10833
10834       { echo "$as_me:$LINENO: result: yes" >&5
10835 echo "${ECHO_T}yes" >&6; }
10836   else
10837     { echo "$as_me:$LINENO: result: no" >&5
10838 echo "${ECHO_T}no" >&6; }
10839   fi
10840 fi
10841
10842 { echo "$as_me:$LINENO: checking for CPU specification" >&5
10843 echo $ECHO_N "checking for CPU specification... $ECHO_C" >&6; }
10844
10845 # Check whether --with-mcpu was given.
10846 if test "${with_mcpu+set}" = set; then
10847   withval=$with_mcpu;
10848 fi
10849
10850
10851 if test "$withval" == "no" -o "$withval" == "yes" -o "$withval" == ""; then
10852   { echo "$as_me:$LINENO: result: no" >&5
10853 echo "${ECHO_T}no" >&6; }
10854 else
10855   { echo "$as_me:$LINENO: result: $withval" >&5
10856 echo "${ECHO_T}$withval" >&6; }
10857   CFLAGS="$CFLAGS -mcpu=$withval"
10858 fi
10859
10860 { echo "$as_me:$LINENO: checking for web access" >&5
10861 echo $ECHO_N "checking for web access... $ECHO_C" >&6; }
10862
10863 # Check whether --with-cgibin-dir was given.
10864 if test "${with_cgibin_dir+set}" = set; then
10865   withval=$with_cgibin_dir;  cgibindir=$withval ;
10866 fi
10867
10868
10869
10870 # Check whether --with-cgibin-url was given.
10871 if test "${with_cgibin_url+set}" = set; then
10872   withval=$with_cgibin_url;  cgibinurl=$withval ;
10873 fi
10874
10875
10876
10877 # Check whether --with-webdata-dir was given.
10878 if test "${with_webdata_dir+set}" = set; then
10879   withval=$with_webdata_dir;  webdatadir=$withval ;
10880 fi
10881
10882
10883
10884 # Check whether --with-webdata-url was given.
10885 if test "${with_webdata_url+set}" = set; then
10886   withval=$with_webdata_url;  webdataurl=$withval ;
10887 fi
10888
10889
10890
10891 # Check whether --with-html-dir was given.
10892 if test "${with_html_dir+set}" = set; then
10893   withval=$with_html_dir;  html_%dir=$withval ;
10894 fi
10895
10896
10897 if test -n "$cgibindir" -o -n "$cgibinurl" ; then
10898   cgiprograms="ctsim.cgi ctsim.conf"
10899
10900 fi
10901
10902 if test -n "$html_dir" ; then
10903   htmldata=simulate.html
10904
10905 fi
10906
10907
10908 if test -n "$html_dir"; then
10909   USE_HTML_TRUE=
10910   USE_HTML_FALSE='#'
10911 else
10912   USE_HTML_TRUE='#'
10913   USE_HTML_FALSE=
10914 fi
10915
10916
10917 if test -n "$cgibindir" -o -n "$cgibinurl" -o -n "$webdatadir" -o -n "$webdataurl" -o -n "$html_dir" ; then
10918   webenabled=true
10919
10920   { echo "$as_me:$LINENO: result: yes" >&5
10921 echo "${ECHO_T}yes" >&6; }
10922   if test -z "$cgibindir" ; then
10923     { { echo "$as_me:$LINENO: error: --with-cgibin-dir not set for web access" >&5
10924 echo "$as_me: error: --with-cgibin-dir not set for web access" >&2;}
10925    { (exit 1); exit 1; }; }
10926   elif test -z "$cgibinurl" ; then
10927     { { echo "$as_me:$LINENO: error: --with-cgibin-url not set for web access" >&5
10928 echo "$as_me: error: --with-cgibin-url not set for web access" >&2;}
10929    { (exit 1); exit 1; }; }
10930   elif test -z "$webdatadir" ; then
10931     { { echo "$as_me:$LINENO: error: --with-webdata-dir not set for web access" >&5
10932 echo "$as_me: error: --with-webdata-dir not set for web access" >&2;}
10933    { (exit 1); exit 1; }; }
10934   elif test -z "$webdataurl" ; then
10935     { { echo "$as_me:$LINENO: error: --with-webdata-url not set for web access" >&5
10936 echo "$as_me: error: --with-webdata-url not set for web access" >&2;}
10937    { (exit 1); exit 1; }; }
10938   elif test -z "$html_dir" ; then
10939     { { echo "$as_me:$LINENO: error: --with-html-dir not set for web access" >&5
10940 echo "$as_me: error: --with-html-dir not set for web access" >&2;}
10941    { (exit 1); exit 1; }; }
10942   fi
10943 else
10944   { echo "$as_me:$LINENO: result: no" >&5
10945 echo "${ECHO_T}no" >&6; }
10946 fi
10947
10948
10949
10950 if test -n "$lamdir"; then
10951   USE_LAM_TRUE=
10952   USE_LAM_FALSE='#'
10953 else
10954   USE_LAM_TRUE='#'
10955   USE_LAM_FALSE=
10956 fi
10957
10958
10959 { echo "$as_me:$LINENO: checking for X" >&5
10960 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
10961
10962
10963 # Check whether --with-x was given.
10964 if test "${with_x+set}" = set; then
10965   withval=$with_x;
10966 fi
10967
10968 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
10969 if test "x$with_x" = xno; then
10970   # The user explicitly disabled X.
10971   have_x=disabled
10972 else
10973   case $x_includes,$x_libraries in #(
10974     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
10975 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
10976    { (exit 1); exit 1; }; };; #(
10977     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
10978   echo $ECHO_N "(cached) $ECHO_C" >&6
10979 else
10980   # One or both of the vars are not set, and there is no cached value.
10981 ac_x_includes=no ac_x_libraries=no
10982 rm -f -r conftest.dir
10983 if mkdir conftest.dir; then
10984   cd conftest.dir
10985   cat >Imakefile <<'_ACEOF'
10986 incroot:
10987         @echo incroot='${INCROOT}'
10988 usrlibdir:
10989         @echo usrlibdir='${USRLIBDIR}'
10990 libdir:
10991         @echo libdir='${LIBDIR}'
10992 _ACEOF
10993   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
10994     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10995     for ac_var in incroot usrlibdir libdir; do
10996       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
10997     done
10998     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10999     for ac_extension in a so sl; do
11000       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
11001          test -f "$ac_im_libdir/libX11.$ac_extension"; then
11002         ac_im_usrlibdir=$ac_im_libdir; break
11003       fi
11004     done
11005     # Screen out bogus values from the imake configuration.  They are
11006     # bogus both because they are the default anyway, and because
11007     # using them would break gcc on systems where it needs fixed includes.
11008     case $ac_im_incroot in
11009         /usr/include) ac_x_includes= ;;
11010         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
11011     esac
11012     case $ac_im_usrlibdir in
11013         /usr/lib | /lib) ;;
11014         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
11015     esac
11016   fi
11017   cd ..
11018   rm -f -r conftest.dir
11019 fi
11020
11021 # Standard set of common directories for X headers.
11022 # Check X11 before X11Rn because it is often a symlink to the current release.
11023 ac_x_header_dirs='
11024 /usr/X11/include
11025 /usr/X11R6/include
11026 /usr/X11R5/include
11027 /usr/X11R4/include
11028
11029 /usr/include/X11
11030 /usr/include/X11R6
11031 /usr/include/X11R5
11032 /usr/include/X11R4
11033
11034 /usr/local/X11/include
11035 /usr/local/X11R6/include
11036 /usr/local/X11R5/include
11037 /usr/local/X11R4/include
11038
11039 /usr/local/include/X11
11040 /usr/local/include/X11R6
11041 /usr/local/include/X11R5
11042 /usr/local/include/X11R4
11043
11044 /usr/X386/include
11045 /usr/x386/include
11046 /usr/XFree86/include/X11
11047
11048 /usr/include
11049 /usr/local/include
11050 /usr/unsupported/include
11051 /usr/athena/include
11052 /usr/local/x11r5/include
11053 /usr/lpp/Xamples/include
11054
11055 /usr/openwin/include
11056 /usr/openwin/share/include'
11057
11058 if test "$ac_x_includes" = no; then
11059   # Guess where to find include files, by looking for Xlib.h.
11060   # First, try using that file with no special directory specified.
11061   cat >conftest.$ac_ext <<_ACEOF
11062 /* confdefs.h.  */
11063 _ACEOF
11064 cat confdefs.h >>conftest.$ac_ext
11065 cat >>conftest.$ac_ext <<_ACEOF
11066 /* end confdefs.h.  */
11067 #include <X11/Xlib.h>
11068 _ACEOF
11069 if { (ac_try="$ac_cpp conftest.$ac_ext"
11070 case "(($ac_try" in
11071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11072   *) ac_try_echo=$ac_try;;
11073 esac
11074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11075   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11076   ac_status=$?
11077   grep -v '^ *+' conftest.er1 >conftest.err
11078   rm -f conftest.er1
11079   cat conftest.err >&5
11080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081   (exit $ac_status); } >/dev/null; then
11082   if test -s conftest.err; then
11083     ac_cpp_err=$ac_c_preproc_warn_flag
11084     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11085   else
11086     ac_cpp_err=
11087   fi
11088 else
11089   ac_cpp_err=yes
11090 fi
11091 if test -z "$ac_cpp_err"; then
11092   # We can compile using X headers with no special include directory.
11093 ac_x_includes=
11094 else
11095   echo "$as_me: failed program was:" >&5
11096 sed 's/^/| /' conftest.$ac_ext >&5
11097
11098   for ac_dir in $ac_x_header_dirs; do
11099   if test -r "$ac_dir/X11/Xlib.h"; then
11100     ac_x_includes=$ac_dir
11101     break
11102   fi
11103 done
11104 fi
11105
11106 rm -f conftest.err conftest.$ac_ext
11107 fi # $ac_x_includes = no
11108
11109 if test "$ac_x_libraries" = no; then
11110   # Check for the libraries.
11111   # See if we find them without any special options.
11112   # Don't add to $LIBS permanently.
11113   ac_save_LIBS=$LIBS
11114   LIBS="-lXt $LIBS"
11115   cat >conftest.$ac_ext <<_ACEOF
11116 /* confdefs.h.  */
11117 _ACEOF
11118 cat confdefs.h >>conftest.$ac_ext
11119 cat >>conftest.$ac_ext <<_ACEOF
11120 /* end confdefs.h.  */
11121 #include <X11/Xlib.h>
11122 int
11123 main ()
11124 {
11125 XrmInitialize ()
11126   ;
11127   return 0;
11128 }
11129 _ACEOF
11130 rm -f conftest.$ac_objext conftest$ac_exeext
11131 if { (ac_try="$ac_link"
11132 case "(($ac_try" in
11133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11134   *) ac_try_echo=$ac_try;;
11135 esac
11136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11137   (eval "$ac_link") 2>conftest.er1
11138   ac_status=$?
11139   grep -v '^ *+' conftest.er1 >conftest.err
11140   rm -f conftest.er1
11141   cat conftest.err >&5
11142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143   (exit $ac_status); } &&
11144          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11145   { (case "(($ac_try" in
11146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11147   *) ac_try_echo=$ac_try;;
11148 esac
11149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11150   (eval "$ac_try") 2>&5
11151   ac_status=$?
11152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153   (exit $ac_status); }; } &&
11154          { ac_try='test -s conftest$ac_exeext'
11155   { (case "(($ac_try" in
11156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11157   *) ac_try_echo=$ac_try;;
11158 esac
11159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11160   (eval "$ac_try") 2>&5
11161   ac_status=$?
11162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163   (exit $ac_status); }; }; then
11164   LIBS=$ac_save_LIBS
11165 # We can link X programs with no special library path.
11166 ac_x_libraries=
11167 else
11168   echo "$as_me: failed program was:" >&5
11169 sed 's/^/| /' conftest.$ac_ext >&5
11170
11171         LIBS=$ac_save_LIBS
11172 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
11173 do
11174   # Don't even attempt the hair of trying to link an X program!
11175   for ac_extension in a so sl; do
11176     if test -r "$ac_dir/libXt.$ac_extension"; then
11177       ac_x_libraries=$ac_dir
11178       break 2
11179     fi
11180   done
11181 done
11182 fi
11183
11184 rm -f core conftest.err conftest.$ac_objext \
11185       conftest$ac_exeext conftest.$ac_ext
11186 fi # $ac_x_libraries = no
11187
11188 case $ac_x_includes,$ac_x_libraries in #(
11189   no,* | *,no | *\'*)
11190     # Didn't find X, or a directory has "'" in its name.
11191     ac_cv_have_x="have_x=no";; #(
11192   *)
11193     # Record where we found X for the cache.
11194     ac_cv_have_x="have_x=yes\
11195         ac_x_includes='$ac_x_includes'\
11196         ac_x_libraries='$ac_x_libraries'"
11197 esac
11198 fi
11199 ;; #(
11200     *) have_x=yes;;
11201   esac
11202   eval "$ac_cv_have_x"
11203 fi # $with_x != no
11204
11205 if test "$have_x" != yes; then
11206   { echo "$as_me:$LINENO: result: $have_x" >&5
11207 echo "${ECHO_T}$have_x" >&6; }
11208   no_x=yes
11209 else
11210   # If each of the values was on the command line, it overrides each guess.
11211   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11212   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11213   # Update the cache value to reflect the command line values.
11214   ac_cv_have_x="have_x=yes\
11215         ac_x_includes='$x_includes'\
11216         ac_x_libraries='$x_libraries'"
11217   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
11218 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
11219 fi
11220
11221 if test "$no_x" = yes; then
11222   # Not all programs may use this symbol, but it does not hurt to define it.
11223
11224 cat >>confdefs.h <<\_ACEOF
11225 #define X_DISPLAY_MISSING 1
11226 _ACEOF
11227
11228   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
11229 else
11230   if test -n "$x_includes"; then
11231     X_CFLAGS="$X_CFLAGS -I$x_includes"
11232   fi
11233
11234   # It would also be nice to do this for all -L options, not just this one.
11235   if test -n "$x_libraries"; then
11236     X_LIBS="$X_LIBS -L$x_libraries"
11237     # For Solaris; some versions of Sun CC require a space after -R and
11238     # others require no space.  Words are not sufficient . . . .
11239     case `(uname -sr) 2>/dev/null` in
11240     "SunOS 5"*)
11241       { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
11242 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
11243       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
11244       cat >conftest.$ac_ext <<_ACEOF
11245 /* confdefs.h.  */
11246 _ACEOF
11247 cat confdefs.h >>conftest.$ac_ext
11248 cat >>conftest.$ac_ext <<_ACEOF
11249 /* end confdefs.h.  */
11250
11251 int
11252 main ()
11253 {
11254
11255   ;
11256   return 0;
11257 }
11258 _ACEOF
11259 rm -f conftest.$ac_objext conftest$ac_exeext
11260 if { (ac_try="$ac_link"
11261 case "(($ac_try" in
11262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11263   *) ac_try_echo=$ac_try;;
11264 esac
11265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11266   (eval "$ac_link") 2>conftest.er1
11267   ac_status=$?
11268   grep -v '^ *+' conftest.er1 >conftest.err
11269   rm -f conftest.er1
11270   cat conftest.err >&5
11271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272   (exit $ac_status); } &&
11273          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11274   { (case "(($ac_try" in
11275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11276   *) ac_try_echo=$ac_try;;
11277 esac
11278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11279   (eval "$ac_try") 2>&5
11280   ac_status=$?
11281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282   (exit $ac_status); }; } &&
11283          { ac_try='test -s conftest$ac_exeext'
11284   { (case "(($ac_try" in
11285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11286   *) ac_try_echo=$ac_try;;
11287 esac
11288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11289   (eval "$ac_try") 2>&5
11290   ac_status=$?
11291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292   (exit $ac_status); }; }; then
11293   ac_R_nospace=yes
11294 else
11295   echo "$as_me: failed program was:" >&5
11296 sed 's/^/| /' conftest.$ac_ext >&5
11297
11298         ac_R_nospace=no
11299 fi
11300
11301 rm -f core conftest.err conftest.$ac_objext \
11302       conftest$ac_exeext conftest.$ac_ext
11303       if test $ac_R_nospace = yes; then
11304         { echo "$as_me:$LINENO: result: no" >&5
11305 echo "${ECHO_T}no" >&6; }
11306         X_LIBS="$X_LIBS -R$x_libraries"
11307       else
11308         LIBS="$ac_xsave_LIBS -R $x_libraries"
11309         cat >conftest.$ac_ext <<_ACEOF
11310 /* confdefs.h.  */
11311 _ACEOF
11312 cat confdefs.h >>conftest.$ac_ext
11313 cat >>conftest.$ac_ext <<_ACEOF
11314 /* end confdefs.h.  */
11315
11316 int
11317 main ()
11318 {
11319
11320   ;
11321   return 0;
11322 }
11323 _ACEOF
11324 rm -f conftest.$ac_objext conftest$ac_exeext
11325 if { (ac_try="$ac_link"
11326 case "(($ac_try" in
11327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11328   *) ac_try_echo=$ac_try;;
11329 esac
11330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11331   (eval "$ac_link") 2>conftest.er1
11332   ac_status=$?
11333   grep -v '^ *+' conftest.er1 >conftest.err
11334   rm -f conftest.er1
11335   cat conftest.err >&5
11336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337   (exit $ac_status); } &&
11338          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11339   { (case "(($ac_try" in
11340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11341   *) ac_try_echo=$ac_try;;
11342 esac
11343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11344   (eval "$ac_try") 2>&5
11345   ac_status=$?
11346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347   (exit $ac_status); }; } &&
11348          { ac_try='test -s conftest$ac_exeext'
11349   { (case "(($ac_try" in
11350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11351   *) ac_try_echo=$ac_try;;
11352 esac
11353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11354   (eval "$ac_try") 2>&5
11355   ac_status=$?
11356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11357   (exit $ac_status); }; }; then
11358   ac_R_space=yes
11359 else
11360   echo "$as_me: failed program was:" >&5
11361 sed 's/^/| /' conftest.$ac_ext >&5
11362
11363         ac_R_space=no
11364 fi
11365
11366 rm -f core conftest.err conftest.$ac_objext \
11367       conftest$ac_exeext conftest.$ac_ext
11368         if test $ac_R_space = yes; then
11369           { echo "$as_me:$LINENO: result: yes" >&5
11370 echo "${ECHO_T}yes" >&6; }
11371           X_LIBS="$X_LIBS -R $x_libraries"
11372         else
11373           { echo "$as_me:$LINENO: result: neither works" >&5
11374 echo "${ECHO_T}neither works" >&6; }
11375         fi
11376       fi
11377       LIBS=$ac_xsave_LIBS
11378     esac
11379   fi
11380
11381   # Check for system-dependent libraries X programs must link with.
11382   # Do this before checking for the system-independent R6 libraries
11383   # (-lICE), since we may need -lsocket or whatever for X linking.
11384
11385   if test "$ISC" = yes; then
11386     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
11387   else
11388     # Martyn Johnson says this is needed for Ultrix, if the X
11389     # libraries were built with DECnet support.  And Karl Berry says
11390     # the Alpha needs dnet_stub (dnet does not exist).
11391     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
11392     cat >conftest.$ac_ext <<_ACEOF
11393 /* confdefs.h.  */
11394 _ACEOF
11395 cat confdefs.h >>conftest.$ac_ext
11396 cat >>conftest.$ac_ext <<_ACEOF
11397 /* end confdefs.h.  */
11398
11399 /* Override any GCC internal prototype to avoid an error.
11400    Use char because int might match the return type of a GCC
11401    builtin and then its argument prototype would still apply.  */
11402 #ifdef __cplusplus
11403 extern "C"
11404 #endif
11405 char XOpenDisplay ();
11406 int
11407 main ()
11408 {
11409 return XOpenDisplay ();
11410   ;
11411   return 0;
11412 }
11413 _ACEOF
11414 rm -f conftest.$ac_objext conftest$ac_exeext
11415 if { (ac_try="$ac_link"
11416 case "(($ac_try" in
11417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11418   *) ac_try_echo=$ac_try;;
11419 esac
11420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11421   (eval "$ac_link") 2>conftest.er1
11422   ac_status=$?
11423   grep -v '^ *+' conftest.er1 >conftest.err
11424   rm -f conftest.er1
11425   cat conftest.err >&5
11426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427   (exit $ac_status); } &&
11428          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11429   { (case "(($ac_try" in
11430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11431   *) ac_try_echo=$ac_try;;
11432 esac
11433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11434   (eval "$ac_try") 2>&5
11435   ac_status=$?
11436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437   (exit $ac_status); }; } &&
11438          { ac_try='test -s conftest$ac_exeext'
11439   { (case "(($ac_try" in
11440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11441   *) ac_try_echo=$ac_try;;
11442 esac
11443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11444   (eval "$ac_try") 2>&5
11445   ac_status=$?
11446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447   (exit $ac_status); }; }; then
11448   :
11449 else
11450   echo "$as_me: failed program was:" >&5
11451 sed 's/^/| /' conftest.$ac_ext >&5
11452
11453         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
11454 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
11455 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
11456   echo $ECHO_N "(cached) $ECHO_C" >&6
11457 else
11458   ac_check_lib_save_LIBS=$LIBS
11459 LIBS="-ldnet  $LIBS"
11460 cat >conftest.$ac_ext <<_ACEOF
11461 /* confdefs.h.  */
11462 _ACEOF
11463 cat confdefs.h >>conftest.$ac_ext
11464 cat >>conftest.$ac_ext <<_ACEOF
11465 /* end confdefs.h.  */
11466
11467 /* Override any GCC internal prototype to avoid an error.
11468    Use char because int might match the return type of a GCC
11469    builtin and then its argument prototype would still apply.  */
11470 #ifdef __cplusplus
11471 extern "C"
11472 #endif
11473 char dnet_ntoa ();
11474 int
11475 main ()
11476 {
11477 return dnet_ntoa ();
11478   ;
11479   return 0;
11480 }
11481 _ACEOF
11482 rm -f conftest.$ac_objext conftest$ac_exeext
11483 if { (ac_try="$ac_link"
11484 case "(($ac_try" in
11485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11486   *) ac_try_echo=$ac_try;;
11487 esac
11488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11489   (eval "$ac_link") 2>conftest.er1
11490   ac_status=$?
11491   grep -v '^ *+' conftest.er1 >conftest.err
11492   rm -f conftest.er1
11493   cat conftest.err >&5
11494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495   (exit $ac_status); } &&
11496          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11497   { (case "(($ac_try" in
11498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11499   *) ac_try_echo=$ac_try;;
11500 esac
11501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11502   (eval "$ac_try") 2>&5
11503   ac_status=$?
11504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505   (exit $ac_status); }; } &&
11506          { ac_try='test -s conftest$ac_exeext'
11507   { (case "(($ac_try" in
11508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11509   *) ac_try_echo=$ac_try;;
11510 esac
11511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11512   (eval "$ac_try") 2>&5
11513   ac_status=$?
11514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515   (exit $ac_status); }; }; then
11516   ac_cv_lib_dnet_dnet_ntoa=yes
11517 else
11518   echo "$as_me: failed program was:" >&5
11519 sed 's/^/| /' conftest.$ac_ext >&5
11520
11521         ac_cv_lib_dnet_dnet_ntoa=no
11522 fi
11523
11524 rm -f core conftest.err conftest.$ac_objext \
11525       conftest$ac_exeext conftest.$ac_ext
11526 LIBS=$ac_check_lib_save_LIBS
11527 fi
11528 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
11529 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
11530 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
11531   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
11532 fi
11533
11534     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
11535       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
11536 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
11537 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
11538   echo $ECHO_N "(cached) $ECHO_C" >&6
11539 else
11540   ac_check_lib_save_LIBS=$LIBS
11541 LIBS="-ldnet_stub  $LIBS"
11542 cat >conftest.$ac_ext <<_ACEOF
11543 /* confdefs.h.  */
11544 _ACEOF
11545 cat confdefs.h >>conftest.$ac_ext
11546 cat >>conftest.$ac_ext <<_ACEOF
11547 /* end confdefs.h.  */
11548
11549 /* Override any GCC internal prototype to avoid an error.
11550    Use char because int might match the return type of a GCC
11551    builtin and then its argument prototype would still apply.  */
11552 #ifdef __cplusplus
11553 extern "C"
11554 #endif
11555 char dnet_ntoa ();
11556 int
11557 main ()
11558 {
11559 return dnet_ntoa ();
11560   ;
11561   return 0;
11562 }
11563 _ACEOF
11564 rm -f conftest.$ac_objext conftest$ac_exeext
11565 if { (ac_try="$ac_link"
11566 case "(($ac_try" in
11567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11568   *) ac_try_echo=$ac_try;;
11569 esac
11570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11571   (eval "$ac_link") 2>conftest.er1
11572   ac_status=$?
11573   grep -v '^ *+' conftest.er1 >conftest.err
11574   rm -f conftest.er1
11575   cat conftest.err >&5
11576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577   (exit $ac_status); } &&
11578          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11579   { (case "(($ac_try" in
11580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11581   *) ac_try_echo=$ac_try;;
11582 esac
11583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11584   (eval "$ac_try") 2>&5
11585   ac_status=$?
11586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587   (exit $ac_status); }; } &&
11588          { ac_try='test -s conftest$ac_exeext'
11589   { (case "(($ac_try" in
11590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11591   *) ac_try_echo=$ac_try;;
11592 esac
11593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11594   (eval "$ac_try") 2>&5
11595   ac_status=$?
11596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597   (exit $ac_status); }; }; then
11598   ac_cv_lib_dnet_stub_dnet_ntoa=yes
11599 else
11600   echo "$as_me: failed program was:" >&5
11601 sed 's/^/| /' conftest.$ac_ext >&5
11602
11603         ac_cv_lib_dnet_stub_dnet_ntoa=no
11604 fi
11605
11606 rm -f core conftest.err conftest.$ac_objext \
11607       conftest$ac_exeext conftest.$ac_ext
11608 LIBS=$ac_check_lib_save_LIBS
11609 fi
11610 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
11611 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
11612 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
11613   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
11614 fi
11615
11616     fi
11617 fi
11618
11619 rm -f core conftest.err conftest.$ac_objext \
11620       conftest$ac_exeext conftest.$ac_ext
11621     LIBS="$ac_xsave_LIBS"
11622
11623     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
11624     # to get the SysV transport functions.
11625     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
11626     # needs -lnsl.
11627     # The nsl library prevents programs from opening the X display
11628     # on Irix 5.2, according to T.E. Dickey.
11629     # The functions gethostbyname, getservbyname, and inet_addr are
11630     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
11631     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
11632 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
11633 if test "${ac_cv_func_gethostbyname+set}" = set; then
11634   echo $ECHO_N "(cached) $ECHO_C" >&6
11635 else
11636   cat >conftest.$ac_ext <<_ACEOF
11637 /* confdefs.h.  */
11638 _ACEOF
11639 cat confdefs.h >>conftest.$ac_ext
11640 cat >>conftest.$ac_ext <<_ACEOF
11641 /* end confdefs.h.  */
11642 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
11643    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11644 #define gethostbyname innocuous_gethostbyname
11645
11646 /* System header to define __stub macros and hopefully few prototypes,
11647     which can conflict with char gethostbyname (); below.
11648     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11649     <limits.h> exists even on freestanding compilers.  */
11650
11651 #ifdef __STDC__
11652 # include <limits.h>
11653 #else
11654 # include <assert.h>
11655 #endif
11656
11657 #undef gethostbyname
11658
11659 /* Override any GCC internal prototype to avoid an error.
11660    Use char because int might match the return type of a GCC
11661    builtin and then its argument prototype would still apply.  */
11662 #ifdef __cplusplus
11663 extern "C"
11664 #endif
11665 char gethostbyname ();
11666 /* The GNU C library defines this for functions which it implements
11667     to always fail with ENOSYS.  Some functions are actually named
11668     something starting with __ and the normal name is an alias.  */
11669 #if defined __stub_gethostbyname || defined __stub___gethostbyname
11670 choke me
11671 #endif
11672
11673 int
11674 main ()
11675 {
11676 return gethostbyname ();
11677   ;
11678   return 0;
11679 }
11680 _ACEOF
11681 rm -f conftest.$ac_objext conftest$ac_exeext
11682 if { (ac_try="$ac_link"
11683 case "(($ac_try" in
11684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11685   *) ac_try_echo=$ac_try;;
11686 esac
11687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11688   (eval "$ac_link") 2>conftest.er1
11689   ac_status=$?
11690   grep -v '^ *+' conftest.er1 >conftest.err
11691   rm -f conftest.er1
11692   cat conftest.err >&5
11693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694   (exit $ac_status); } &&
11695          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11696   { (case "(($ac_try" in
11697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11698   *) ac_try_echo=$ac_try;;
11699 esac
11700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11701   (eval "$ac_try") 2>&5
11702   ac_status=$?
11703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704   (exit $ac_status); }; } &&
11705          { ac_try='test -s conftest$ac_exeext'
11706   { (case "(($ac_try" in
11707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11708   *) ac_try_echo=$ac_try;;
11709 esac
11710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11711   (eval "$ac_try") 2>&5
11712   ac_status=$?
11713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714   (exit $ac_status); }; }; then
11715   ac_cv_func_gethostbyname=yes
11716 else
11717   echo "$as_me: failed program was:" >&5
11718 sed 's/^/| /' conftest.$ac_ext >&5
11719
11720         ac_cv_func_gethostbyname=no
11721 fi
11722
11723 rm -f core conftest.err conftest.$ac_objext \
11724       conftest$ac_exeext conftest.$ac_ext
11725 fi
11726 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
11727 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
11728
11729     if test $ac_cv_func_gethostbyname = no; then
11730       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
11731 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
11732 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
11733   echo $ECHO_N "(cached) $ECHO_C" >&6
11734 else
11735   ac_check_lib_save_LIBS=$LIBS
11736 LIBS="-lnsl  $LIBS"
11737 cat >conftest.$ac_ext <<_ACEOF
11738 /* confdefs.h.  */
11739 _ACEOF
11740 cat confdefs.h >>conftest.$ac_ext
11741 cat >>conftest.$ac_ext <<_ACEOF
11742 /* end confdefs.h.  */
11743
11744 /* Override any GCC internal prototype to avoid an error.
11745    Use char because int might match the return type of a GCC
11746    builtin and then its argument prototype would still apply.  */
11747 #ifdef __cplusplus
11748 extern "C"
11749 #endif
11750 char gethostbyname ();
11751 int
11752 main ()
11753 {
11754 return gethostbyname ();
11755   ;
11756   return 0;
11757 }
11758 _ACEOF
11759 rm -f conftest.$ac_objext conftest$ac_exeext
11760 if { (ac_try="$ac_link"
11761 case "(($ac_try" in
11762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11763   *) ac_try_echo=$ac_try;;
11764 esac
11765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11766   (eval "$ac_link") 2>conftest.er1
11767   ac_status=$?
11768   grep -v '^ *+' conftest.er1 >conftest.err
11769   rm -f conftest.er1
11770   cat conftest.err >&5
11771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772   (exit $ac_status); } &&
11773          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11774   { (case "(($ac_try" in
11775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11776   *) ac_try_echo=$ac_try;;
11777 esac
11778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11779   (eval "$ac_try") 2>&5
11780   ac_status=$?
11781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782   (exit $ac_status); }; } &&
11783          { ac_try='test -s conftest$ac_exeext'
11784   { (case "(($ac_try" in
11785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11786   *) ac_try_echo=$ac_try;;
11787 esac
11788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11789   (eval "$ac_try") 2>&5
11790   ac_status=$?
11791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792   (exit $ac_status); }; }; then
11793   ac_cv_lib_nsl_gethostbyname=yes
11794 else
11795   echo "$as_me: failed program was:" >&5
11796 sed 's/^/| /' conftest.$ac_ext >&5
11797
11798         ac_cv_lib_nsl_gethostbyname=no
11799 fi
11800
11801 rm -f core conftest.err conftest.$ac_objext \
11802       conftest$ac_exeext conftest.$ac_ext
11803 LIBS=$ac_check_lib_save_LIBS
11804 fi
11805 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
11806 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
11807 if test $ac_cv_lib_nsl_gethostbyname = yes; then
11808   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
11809 fi
11810
11811       if test $ac_cv_lib_nsl_gethostbyname = no; then
11812         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
11813 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
11814 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
11815   echo $ECHO_N "(cached) $ECHO_C" >&6
11816 else
11817   ac_check_lib_save_LIBS=$LIBS
11818 LIBS="-lbsd  $LIBS"
11819 cat >conftest.$ac_ext <<_ACEOF
11820 /* confdefs.h.  */
11821 _ACEOF
11822 cat confdefs.h >>conftest.$ac_ext
11823 cat >>conftest.$ac_ext <<_ACEOF
11824 /* end confdefs.h.  */
11825
11826 /* Override any GCC internal prototype to avoid an error.
11827    Use char because int might match the return type of a GCC
11828    builtin and then its argument prototype would still apply.  */
11829 #ifdef __cplusplus
11830 extern "C"
11831 #endif
11832 char gethostbyname ();
11833 int
11834 main ()
11835 {
11836 return gethostbyname ();
11837   ;
11838   return 0;
11839 }
11840 _ACEOF
11841 rm -f conftest.$ac_objext conftest$ac_exeext
11842 if { (ac_try="$ac_link"
11843 case "(($ac_try" in
11844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11845   *) ac_try_echo=$ac_try;;
11846 esac
11847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11848   (eval "$ac_link") 2>conftest.er1
11849   ac_status=$?
11850   grep -v '^ *+' conftest.er1 >conftest.err
11851   rm -f conftest.er1
11852   cat conftest.err >&5
11853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854   (exit $ac_status); } &&
11855          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11856   { (case "(($ac_try" in
11857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11858   *) ac_try_echo=$ac_try;;
11859 esac
11860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11861   (eval "$ac_try") 2>&5
11862   ac_status=$?
11863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864   (exit $ac_status); }; } &&
11865          { ac_try='test -s conftest$ac_exeext'
11866   { (case "(($ac_try" in
11867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11868   *) ac_try_echo=$ac_try;;
11869 esac
11870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11871   (eval "$ac_try") 2>&5
11872   ac_status=$?
11873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874   (exit $ac_status); }; }; then
11875   ac_cv_lib_bsd_gethostbyname=yes
11876 else
11877   echo "$as_me: failed program was:" >&5
11878 sed 's/^/| /' conftest.$ac_ext >&5
11879
11880         ac_cv_lib_bsd_gethostbyname=no
11881 fi
11882
11883 rm -f core conftest.err conftest.$ac_objext \
11884       conftest$ac_exeext conftest.$ac_ext
11885 LIBS=$ac_check_lib_save_LIBS
11886 fi
11887 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
11888 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
11889 if test $ac_cv_lib_bsd_gethostbyname = yes; then
11890   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
11891 fi
11892
11893       fi
11894     fi
11895
11896     # lieder@skyler.mavd.honeywell.com says without -lsocket,
11897     # socket/setsockopt and other routines are undefined under SCO ODT
11898     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
11899     # on later versions), says Simon Leinen: it contains gethostby*
11900     # variants that don't use the name server (or something).  -lsocket
11901     # must be given before -lnsl if both are needed.  We assume that
11902     # if connect needs -lnsl, so does gethostbyname.
11903     { echo "$as_me:$LINENO: checking for connect" >&5
11904 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
11905 if test "${ac_cv_func_connect+set}" = set; then
11906   echo $ECHO_N "(cached) $ECHO_C" >&6
11907 else
11908   cat >conftest.$ac_ext <<_ACEOF
11909 /* confdefs.h.  */
11910 _ACEOF
11911 cat confdefs.h >>conftest.$ac_ext
11912 cat >>conftest.$ac_ext <<_ACEOF
11913 /* end confdefs.h.  */
11914 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
11915    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11916 #define connect innocuous_connect
11917
11918 /* System header to define __stub macros and hopefully few prototypes,
11919     which can conflict with char connect (); below.
11920     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11921     <limits.h> exists even on freestanding compilers.  */
11922
11923 #ifdef __STDC__
11924 # include <limits.h>
11925 #else
11926 # include <assert.h>
11927 #endif
11928
11929 #undef connect
11930
11931 /* Override any GCC internal prototype to avoid an error.
11932    Use char because int might match the return type of a GCC
11933    builtin and then its argument prototype would still apply.  */
11934 #ifdef __cplusplus
11935 extern "C"
11936 #endif
11937 char connect ();
11938 /* The GNU C library defines this for functions which it implements
11939     to always fail with ENOSYS.  Some functions are actually named
11940     something starting with __ and the normal name is an alias.  */
11941 #if defined __stub_connect || defined __stub___connect
11942 choke me
11943 #endif
11944
11945 int
11946 main ()
11947 {
11948 return connect ();
11949   ;
11950   return 0;
11951 }
11952 _ACEOF
11953 rm -f conftest.$ac_objext conftest$ac_exeext
11954 if { (ac_try="$ac_link"
11955 case "(($ac_try" in
11956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11957   *) ac_try_echo=$ac_try;;
11958 esac
11959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11960   (eval "$ac_link") 2>conftest.er1
11961   ac_status=$?
11962   grep -v '^ *+' conftest.er1 >conftest.err
11963   rm -f conftest.er1
11964   cat conftest.err >&5
11965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966   (exit $ac_status); } &&
11967          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11968   { (case "(($ac_try" in
11969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11970   *) ac_try_echo=$ac_try;;
11971 esac
11972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11973   (eval "$ac_try") 2>&5
11974   ac_status=$?
11975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976   (exit $ac_status); }; } &&
11977          { ac_try='test -s conftest$ac_exeext'
11978   { (case "(($ac_try" in
11979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11980   *) ac_try_echo=$ac_try;;
11981 esac
11982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11983   (eval "$ac_try") 2>&5
11984   ac_status=$?
11985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986   (exit $ac_status); }; }; then
11987   ac_cv_func_connect=yes
11988 else
11989   echo "$as_me: failed program was:" >&5
11990 sed 's/^/| /' conftest.$ac_ext >&5
11991
11992         ac_cv_func_connect=no
11993 fi
11994
11995 rm -f core conftest.err conftest.$ac_objext \
11996       conftest$ac_exeext conftest.$ac_ext
11997 fi
11998 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
11999 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
12000
12001     if test $ac_cv_func_connect = no; then
12002       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
12003 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
12004 if test "${ac_cv_lib_socket_connect+set}" = set; then
12005   echo $ECHO_N "(cached) $ECHO_C" >&6
12006 else
12007   ac_check_lib_save_LIBS=$LIBS
12008 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
12009 cat >conftest.$ac_ext <<_ACEOF
12010 /* confdefs.h.  */
12011 _ACEOF
12012 cat confdefs.h >>conftest.$ac_ext
12013 cat >>conftest.$ac_ext <<_ACEOF
12014 /* end confdefs.h.  */
12015
12016 /* Override any GCC internal prototype to avoid an error.
12017    Use char because int might match the return type of a GCC
12018    builtin and then its argument prototype would still apply.  */
12019 #ifdef __cplusplus
12020 extern "C"
12021 #endif
12022 char connect ();
12023 int
12024 main ()
12025 {
12026 return connect ();
12027   ;
12028   return 0;
12029 }
12030 _ACEOF
12031 rm -f conftest.$ac_objext conftest$ac_exeext
12032 if { (ac_try="$ac_link"
12033 case "(($ac_try" in
12034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12035   *) ac_try_echo=$ac_try;;
12036 esac
12037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12038   (eval "$ac_link") 2>conftest.er1
12039   ac_status=$?
12040   grep -v '^ *+' conftest.er1 >conftest.err
12041   rm -f conftest.er1
12042   cat conftest.err >&5
12043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044   (exit $ac_status); } &&
12045          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12046   { (case "(($ac_try" in
12047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12048   *) ac_try_echo=$ac_try;;
12049 esac
12050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12051   (eval "$ac_try") 2>&5
12052   ac_status=$?
12053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054   (exit $ac_status); }; } &&
12055          { ac_try='test -s conftest$ac_exeext'
12056   { (case "(($ac_try" in
12057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12058   *) ac_try_echo=$ac_try;;
12059 esac
12060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12061   (eval "$ac_try") 2>&5
12062   ac_status=$?
12063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12064   (exit $ac_status); }; }; then
12065   ac_cv_lib_socket_connect=yes
12066 else
12067   echo "$as_me: failed program was:" >&5
12068 sed 's/^/| /' conftest.$ac_ext >&5
12069
12070         ac_cv_lib_socket_connect=no
12071 fi
12072
12073 rm -f core conftest.err conftest.$ac_objext \
12074       conftest$ac_exeext conftest.$ac_ext
12075 LIBS=$ac_check_lib_save_LIBS
12076 fi
12077 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
12078 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
12079 if test $ac_cv_lib_socket_connect = yes; then
12080   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
12081 fi
12082
12083     fi
12084
12085     # Guillermo Gomez says -lposix is necessary on A/UX.
12086     { echo "$as_me:$LINENO: checking for remove" >&5
12087 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
12088 if test "${ac_cv_func_remove+set}" = set; then
12089   echo $ECHO_N "(cached) $ECHO_C" >&6
12090 else
12091   cat >conftest.$ac_ext <<_ACEOF
12092 /* confdefs.h.  */
12093 _ACEOF
12094 cat confdefs.h >>conftest.$ac_ext
12095 cat >>conftest.$ac_ext <<_ACEOF
12096 /* end confdefs.h.  */
12097 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
12098    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12099 #define remove innocuous_remove
12100
12101 /* System header to define __stub macros and hopefully few prototypes,
12102     which can conflict with char remove (); below.
12103     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12104     <limits.h> exists even on freestanding compilers.  */
12105
12106 #ifdef __STDC__
12107 # include <limits.h>
12108 #else
12109 # include <assert.h>
12110 #endif
12111
12112 #undef remove
12113
12114 /* Override any GCC internal prototype to avoid an error.
12115    Use char because int might match the return type of a GCC
12116    builtin and then its argument prototype would still apply.  */
12117 #ifdef __cplusplus
12118 extern "C"
12119 #endif
12120 char remove ();
12121 /* The GNU C library defines this for functions which it implements
12122     to always fail with ENOSYS.  Some functions are actually named
12123     something starting with __ and the normal name is an alias.  */
12124 #if defined __stub_remove || defined __stub___remove
12125 choke me
12126 #endif
12127
12128 int
12129 main ()
12130 {
12131 return remove ();
12132   ;
12133   return 0;
12134 }
12135 _ACEOF
12136 rm -f conftest.$ac_objext conftest$ac_exeext
12137 if { (ac_try="$ac_link"
12138 case "(($ac_try" in
12139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12140   *) ac_try_echo=$ac_try;;
12141 esac
12142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12143   (eval "$ac_link") 2>conftest.er1
12144   ac_status=$?
12145   grep -v '^ *+' conftest.er1 >conftest.err
12146   rm -f conftest.er1
12147   cat conftest.err >&5
12148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149   (exit $ac_status); } &&
12150          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12151   { (case "(($ac_try" in
12152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12153   *) ac_try_echo=$ac_try;;
12154 esac
12155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12156   (eval "$ac_try") 2>&5
12157   ac_status=$?
12158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159   (exit $ac_status); }; } &&
12160          { ac_try='test -s conftest$ac_exeext'
12161   { (case "(($ac_try" in
12162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12163   *) ac_try_echo=$ac_try;;
12164 esac
12165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12166   (eval "$ac_try") 2>&5
12167   ac_status=$?
12168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12169   (exit $ac_status); }; }; then
12170   ac_cv_func_remove=yes
12171 else
12172   echo "$as_me: failed program was:" >&5
12173 sed 's/^/| /' conftest.$ac_ext >&5
12174
12175         ac_cv_func_remove=no
12176 fi
12177
12178 rm -f core conftest.err conftest.$ac_objext \
12179       conftest$ac_exeext conftest.$ac_ext
12180 fi
12181 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
12182 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
12183
12184     if test $ac_cv_func_remove = no; then
12185       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
12186 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
12187 if test "${ac_cv_lib_posix_remove+set}" = set; then
12188   echo $ECHO_N "(cached) $ECHO_C" >&6
12189 else
12190   ac_check_lib_save_LIBS=$LIBS
12191 LIBS="-lposix  $LIBS"
12192 cat >conftest.$ac_ext <<_ACEOF
12193 /* confdefs.h.  */
12194 _ACEOF
12195 cat confdefs.h >>conftest.$ac_ext
12196 cat >>conftest.$ac_ext <<_ACEOF
12197 /* end confdefs.h.  */
12198
12199 /* Override any GCC internal prototype to avoid an error.
12200    Use char because int might match the return type of a GCC
12201    builtin and then its argument prototype would still apply.  */
12202 #ifdef __cplusplus
12203 extern "C"
12204 #endif
12205 char remove ();
12206 int
12207 main ()
12208 {
12209 return remove ();
12210   ;
12211   return 0;
12212 }
12213 _ACEOF
12214 rm -f conftest.$ac_objext conftest$ac_exeext
12215 if { (ac_try="$ac_link"
12216 case "(($ac_try" in
12217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12218   *) ac_try_echo=$ac_try;;
12219 esac
12220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12221   (eval "$ac_link") 2>conftest.er1
12222   ac_status=$?
12223   grep -v '^ *+' conftest.er1 >conftest.err
12224   rm -f conftest.er1
12225   cat conftest.err >&5
12226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227   (exit $ac_status); } &&
12228          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12229   { (case "(($ac_try" in
12230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12231   *) ac_try_echo=$ac_try;;
12232 esac
12233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12234   (eval "$ac_try") 2>&5
12235   ac_status=$?
12236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237   (exit $ac_status); }; } &&
12238          { ac_try='test -s conftest$ac_exeext'
12239   { (case "(($ac_try" in
12240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12241   *) ac_try_echo=$ac_try;;
12242 esac
12243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12244   (eval "$ac_try") 2>&5
12245   ac_status=$?
12246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247   (exit $ac_status); }; }; then
12248   ac_cv_lib_posix_remove=yes
12249 else
12250   echo "$as_me: failed program was:" >&5
12251 sed 's/^/| /' conftest.$ac_ext >&5
12252
12253         ac_cv_lib_posix_remove=no
12254 fi
12255
12256 rm -f core conftest.err conftest.$ac_objext \
12257       conftest$ac_exeext conftest.$ac_ext
12258 LIBS=$ac_check_lib_save_LIBS
12259 fi
12260 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
12261 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
12262 if test $ac_cv_lib_posix_remove = yes; then
12263   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
12264 fi
12265
12266     fi
12267
12268     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
12269     { echo "$as_me:$LINENO: checking for shmat" >&5
12270 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
12271 if test "${ac_cv_func_shmat+set}" = set; then
12272   echo $ECHO_N "(cached) $ECHO_C" >&6
12273 else
12274   cat >conftest.$ac_ext <<_ACEOF
12275 /* confdefs.h.  */
12276 _ACEOF
12277 cat confdefs.h >>conftest.$ac_ext
12278 cat >>conftest.$ac_ext <<_ACEOF
12279 /* end confdefs.h.  */
12280 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
12281    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12282 #define shmat innocuous_shmat
12283
12284 /* System header to define __stub macros and hopefully few prototypes,
12285     which can conflict with char shmat (); below.
12286     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12287     <limits.h> exists even on freestanding compilers.  */
12288
12289 #ifdef __STDC__
12290 # include <limits.h>
12291 #else
12292 # include <assert.h>
12293 #endif
12294
12295 #undef shmat
12296
12297 /* Override any GCC internal prototype to avoid an error.
12298    Use char because int might match the return type of a GCC
12299    builtin and then its argument prototype would still apply.  */
12300 #ifdef __cplusplus
12301 extern "C"
12302 #endif
12303 char shmat ();
12304 /* The GNU C library defines this for functions which it implements
12305     to always fail with ENOSYS.  Some functions are actually named
12306     something starting with __ and the normal name is an alias.  */
12307 #if defined __stub_shmat || defined __stub___shmat
12308 choke me
12309 #endif
12310
12311 int
12312 main ()
12313 {
12314 return shmat ();
12315   ;
12316   return 0;
12317 }
12318 _ACEOF
12319 rm -f conftest.$ac_objext conftest$ac_exeext
12320 if { (ac_try="$ac_link"
12321 case "(($ac_try" in
12322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12323   *) ac_try_echo=$ac_try;;
12324 esac
12325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12326   (eval "$ac_link") 2>conftest.er1
12327   ac_status=$?
12328   grep -v '^ *+' conftest.er1 >conftest.err
12329   rm -f conftest.er1
12330   cat conftest.err >&5
12331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332   (exit $ac_status); } &&
12333          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12334   { (case "(($ac_try" in
12335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12336   *) ac_try_echo=$ac_try;;
12337 esac
12338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12339   (eval "$ac_try") 2>&5
12340   ac_status=$?
12341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342   (exit $ac_status); }; } &&
12343          { ac_try='test -s conftest$ac_exeext'
12344   { (case "(($ac_try" in
12345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12346   *) ac_try_echo=$ac_try;;
12347 esac
12348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12349   (eval "$ac_try") 2>&5
12350   ac_status=$?
12351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12352   (exit $ac_status); }; }; then
12353   ac_cv_func_shmat=yes
12354 else
12355   echo "$as_me: failed program was:" >&5
12356 sed 's/^/| /' conftest.$ac_ext >&5
12357
12358         ac_cv_func_shmat=no
12359 fi
12360
12361 rm -f core conftest.err conftest.$ac_objext \
12362       conftest$ac_exeext conftest.$ac_ext
12363 fi
12364 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
12365 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
12366
12367     if test $ac_cv_func_shmat = no; then
12368       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
12369 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
12370 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
12371   echo $ECHO_N "(cached) $ECHO_C" >&6
12372 else
12373   ac_check_lib_save_LIBS=$LIBS
12374 LIBS="-lipc  $LIBS"
12375 cat >conftest.$ac_ext <<_ACEOF
12376 /* confdefs.h.  */
12377 _ACEOF
12378 cat confdefs.h >>conftest.$ac_ext
12379 cat >>conftest.$ac_ext <<_ACEOF
12380 /* end confdefs.h.  */
12381
12382 /* Override any GCC internal prototype to avoid an error.
12383    Use char because int might match the return type of a GCC
12384    builtin and then its argument prototype would still apply.  */
12385 #ifdef __cplusplus
12386 extern "C"
12387 #endif
12388 char shmat ();
12389 int
12390 main ()
12391 {
12392 return shmat ();
12393   ;
12394   return 0;
12395 }
12396 _ACEOF
12397 rm -f conftest.$ac_objext conftest$ac_exeext
12398 if { (ac_try="$ac_link"
12399 case "(($ac_try" in
12400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12401   *) ac_try_echo=$ac_try;;
12402 esac
12403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12404   (eval "$ac_link") 2>conftest.er1
12405   ac_status=$?
12406   grep -v '^ *+' conftest.er1 >conftest.err
12407   rm -f conftest.er1
12408   cat conftest.err >&5
12409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410   (exit $ac_status); } &&
12411          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12412   { (case "(($ac_try" in
12413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12414   *) ac_try_echo=$ac_try;;
12415 esac
12416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12417   (eval "$ac_try") 2>&5
12418   ac_status=$?
12419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420   (exit $ac_status); }; } &&
12421          { ac_try='test -s conftest$ac_exeext'
12422   { (case "(($ac_try" in
12423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12424   *) ac_try_echo=$ac_try;;
12425 esac
12426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12427   (eval "$ac_try") 2>&5
12428   ac_status=$?
12429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430   (exit $ac_status); }; }; then
12431   ac_cv_lib_ipc_shmat=yes
12432 else
12433   echo "$as_me: failed program was:" >&5
12434 sed 's/^/| /' conftest.$ac_ext >&5
12435
12436         ac_cv_lib_ipc_shmat=no
12437 fi
12438
12439 rm -f core conftest.err conftest.$ac_objext \
12440       conftest$ac_exeext conftest.$ac_ext
12441 LIBS=$ac_check_lib_save_LIBS
12442 fi
12443 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
12444 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
12445 if test $ac_cv_lib_ipc_shmat = yes; then
12446   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
12447 fi
12448
12449     fi
12450   fi
12451
12452   # Check for libraries that X11R6 Xt/Xaw programs need.
12453   ac_save_LDFLAGS=$LDFLAGS
12454   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
12455   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
12456   # check for ICE first), but we must link in the order -lSM -lICE or
12457   # we get undefined symbols.  So assume we have SM if we have ICE.
12458   # These have to be linked with before -lX11, unlike the other
12459   # libraries we check for below, so use a different variable.
12460   # John Interrante, Karl Berry
12461   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
12462 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
12463 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
12464   echo $ECHO_N "(cached) $ECHO_C" >&6
12465 else
12466   ac_check_lib_save_LIBS=$LIBS
12467 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
12468 cat >conftest.$ac_ext <<_ACEOF
12469 /* confdefs.h.  */
12470 _ACEOF
12471 cat confdefs.h >>conftest.$ac_ext
12472 cat >>conftest.$ac_ext <<_ACEOF
12473 /* end confdefs.h.  */
12474
12475 /* Override any GCC internal prototype to avoid an error.
12476    Use char because int might match the return type of a GCC
12477    builtin and then its argument prototype would still apply.  */
12478 #ifdef __cplusplus
12479 extern "C"
12480 #endif
12481 char IceConnectionNumber ();
12482 int
12483 main ()
12484 {
12485 return IceConnectionNumber ();
12486   ;
12487   return 0;
12488 }
12489 _ACEOF
12490 rm -f conftest.$ac_objext conftest$ac_exeext
12491 if { (ac_try="$ac_link"
12492 case "(($ac_try" in
12493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12494   *) ac_try_echo=$ac_try;;
12495 esac
12496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12497   (eval "$ac_link") 2>conftest.er1
12498   ac_status=$?
12499   grep -v '^ *+' conftest.er1 >conftest.err
12500   rm -f conftest.er1
12501   cat conftest.err >&5
12502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503   (exit $ac_status); } &&
12504          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12505   { (case "(($ac_try" in
12506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12507   *) ac_try_echo=$ac_try;;
12508 esac
12509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12510   (eval "$ac_try") 2>&5
12511   ac_status=$?
12512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513   (exit $ac_status); }; } &&
12514          { ac_try='test -s conftest$ac_exeext'
12515   { (case "(($ac_try" in
12516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12517   *) ac_try_echo=$ac_try;;
12518 esac
12519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12520   (eval "$ac_try") 2>&5
12521   ac_status=$?
12522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523   (exit $ac_status); }; }; then
12524   ac_cv_lib_ICE_IceConnectionNumber=yes
12525 else
12526   echo "$as_me: failed program was:" >&5
12527 sed 's/^/| /' conftest.$ac_ext >&5
12528
12529         ac_cv_lib_ICE_IceConnectionNumber=no
12530 fi
12531
12532 rm -f core conftest.err conftest.$ac_objext \
12533       conftest$ac_exeext conftest.$ac_ext
12534 LIBS=$ac_check_lib_save_LIBS
12535 fi
12536 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
12537 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
12538 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
12539   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
12540 fi
12541
12542   LDFLAGS=$ac_save_LDFLAGS
12543
12544 fi
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555 if test "x$with_x" = "xno"; then
12556   NO_X_TRUE=
12557   NO_X_FALSE='#'
12558 else
12559   NO_X_TRUE='#'
12560   NO_X_FALSE=
12561 fi
12562
12563
12564 my_includes="$my_includes -I../include -I.. -I/usr/local/include"
12565
12566
12567 LDFLAGS="$LDFLAGS -L/usr/local/lib"
12568
12569 { echo "$as_me:$LINENO: checking for X" >&5
12570 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
12571 if test "$with_x" != "no" && test "$wxwin" = "true"; then
12572
12573 cat >>confdefs.h <<\_ACEOF
12574 #define HAVE_X11 1
12575 _ACEOF
12576
12577   LDFLAGS="$LDFLAGS -L../libctgraphics -L/usr/X11R6/lib -L/usr/X11R6/lib64"
12578   my_includes="$my_includes -I/usr/X11R6/include"
12579   ctlib_graphics="$ctlibs_base -lctgraphics"
12580   { echo "$as_me:$LINENO: result: yes" >&5
12581 echo "${ECHO_T}yes" >&6; }
12582   ctlib_graphics="$ctlib_graphics $X_BASIC_LIBS $X_TOOLKIT_LIBS"
12583   if test "$libgl" = "true" ; then
12584     # Removed "-lglut" for Mac OS X compilation
12585     ctlib_graphics="$ctlib_graphics -lGL -lGLU"
12586     if test "$wxwin" = "true" ; then
12587       if  "$wx_gtk" ; then
12588         ctlib_graphics="$ctlib_graphics `wx-config --libs` -lwx_gtk_gl-2.4 `gtk-config --libs` `glib-config --libs glib gmodule gthread`"
12589       elif  "$wx_mac" ; then
12590         ctlib_graphics="$ctlib_graphics -lwx_mac_gl-2.4"
12591       fi
12592     fi
12593   fi
12594   if test "$wxwin" = "true" ; then
12595
12596 cat >>confdefs.h <<\_ACEOF
12597 #define HAVE_SGP 1
12598 _ACEOF
12599
12600   fi
12601 else
12602   { echo "$as_me:$LINENO: result: no" >&5
12603 echo "${ECHO_T}no" >&6; }
12604 fi
12605
12606
12607
12608 if test "$wxwin" = "true"; then
12609   HAVE_SGP_TRUE=
12610   HAVE_SGP_FALSE='#'
12611 else
12612   HAVE_SGP_TRUE='#'
12613   HAVE_SGP_FALSE=
12614 fi
12615
12616
12617 if test "$png" = "true" ; then
12618   ctlibs_tools="$ctlibs_tools -lpng"
12619 fi
12620 if test "$zlib" = "true" ; then
12621   ctlibs_tools="$ctlibs_tools -lz"
12622 fi
12623 if test "$fftw" = "true" ; then
12624   ctlibs_tools="$ctlibs_tools -lfftw3"
12625 fi
12626 if test "$ctn" = "true"; then
12627   ctlibs_tools="$ctlibs_tools -lctn"
12628 fi
12629
12630 { echo "$as_me:$LINENO: checking for main in -ldmallocxx" >&5
12631 echo $ECHO_N "checking for main in -ldmallocxx... $ECHO_C" >&6; }
12632 if test "${ac_cv_lib_dmallocxx_main+set}" = set; then
12633   echo $ECHO_N "(cached) $ECHO_C" >&6
12634 else
12635   ac_check_lib_save_LIBS=$LIBS
12636 LIBS="-ldmallocxx  $LIBS"
12637 cat >conftest.$ac_ext <<_ACEOF
12638 /* confdefs.h.  */
12639 _ACEOF
12640 cat confdefs.h >>conftest.$ac_ext
12641 cat >>conftest.$ac_ext <<_ACEOF
12642 /* end confdefs.h.  */
12643
12644
12645 int
12646 main ()
12647 {
12648 return main ();
12649   ;
12650   return 0;
12651 }
12652 _ACEOF
12653 rm -f conftest.$ac_objext conftest$ac_exeext
12654 if { (ac_try="$ac_link"
12655 case "(($ac_try" in
12656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12657   *) ac_try_echo=$ac_try;;
12658 esac
12659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12660   (eval "$ac_link") 2>conftest.er1
12661   ac_status=$?
12662   grep -v '^ *+' conftest.er1 >conftest.err
12663   rm -f conftest.er1
12664   cat conftest.err >&5
12665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666   (exit $ac_status); } &&
12667          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12668   { (case "(($ac_try" in
12669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12670   *) ac_try_echo=$ac_try;;
12671 esac
12672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12673   (eval "$ac_try") 2>&5
12674   ac_status=$?
12675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12676   (exit $ac_status); }; } &&
12677          { ac_try='test -s conftest$ac_exeext'
12678   { (case "(($ac_try" in
12679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12680   *) ac_try_echo=$ac_try;;
12681 esac
12682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12683   (eval "$ac_try") 2>&5
12684   ac_status=$?
12685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686   (exit $ac_status); }; }; then
12687   ac_cv_lib_dmallocxx_main=yes
12688 else
12689   echo "$as_me: failed program was:" >&5
12690 sed 's/^/| /' conftest.$ac_ext >&5
12691
12692         ac_cv_lib_dmallocxx_main=no
12693 fi
12694
12695 rm -f core conftest.err conftest.$ac_objext \
12696       conftest$ac_exeext conftest.$ac_ext
12697 LIBS=$ac_check_lib_save_LIBS
12698 fi
12699 { echo "$as_me:$LINENO: result: $ac_cv_lib_dmallocxx_main" >&5
12700 echo "${ECHO_T}$ac_cv_lib_dmallocxx_main" >&6; }
12701 if test $ac_cv_lib_dmallocxx_main = yes; then
12702   dmallocxx=true
12703 else
12704   dmallocxx=false
12705 fi
12706
12707 { echo "$as_me:$LINENO: checking for enable-dmalloc" >&5
12708 echo $ECHO_N "checking for enable-dmalloc... $ECHO_C" >&6; }
12709 # Check whether --enable-dmalloc was given.
12710 if test "${enable_dmalloc+set}" = set; then
12711   enableval=$enable_dmalloc; case "${enableval}" in
12712   yes) usedmalloc=true
12713        { echo "$as_me:$LINENO: result: yes" >&5
12714 echo "${ECHO_T}yes" >&6; }
12715        ;;
12716   no)  usedmalloc=false
12717        { echo "$as_me:$LINENO: result: no" >&5
12718 echo "${ECHO_T}no" >&6; }
12719        ;;
12720   *) { echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-dmalloc" >&5
12721 echo "${ECHO_T}bad value ${enableval} for --enable-dmalloc" >&6; }
12722        ;;
12723 esac
12724 else
12725   usedmalloc=false; { echo "$as_me:$LINENO: result: no" >&5
12726 echo "${ECHO_T}no" >&6; }
12727 fi
12728
12729
12730 if test "$dmallocxx" = "true" -a "$usedmalloc" = "true" ; then
12731   ctlibs_tools="$ctlibs_tools -ldmallocxx"
12732
12733 cat >>confdefs.h <<\_ACEOF
12734 #define HAVE_DMALLOC 1
12735 _ACEOF
12736
12737   { echo "$as_me:$LINENO: result: Using dmalloc" >&5
12738 echo "${ECHO_T}Using dmalloc" >&6; }
12739 fi
12740
12741 { echo "$as_me:$LINENO: checking for main in -lefence" >&5
12742 echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6; }
12743 if test "${ac_cv_lib_efence_main+set}" = set; then
12744   echo $ECHO_N "(cached) $ECHO_C" >&6
12745 else
12746   ac_check_lib_save_LIBS=$LIBS
12747 LIBS="-lefence  $LIBS"
12748 cat >conftest.$ac_ext <<_ACEOF
12749 /* confdefs.h.  */
12750 _ACEOF
12751 cat confdefs.h >>conftest.$ac_ext
12752 cat >>conftest.$ac_ext <<_ACEOF
12753 /* end confdefs.h.  */
12754
12755
12756 int
12757 main ()
12758 {
12759 return main ();
12760   ;
12761   return 0;
12762 }
12763 _ACEOF
12764 rm -f conftest.$ac_objext conftest$ac_exeext
12765 if { (ac_try="$ac_link"
12766 case "(($ac_try" in
12767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12768   *) ac_try_echo=$ac_try;;
12769 esac
12770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12771   (eval "$ac_link") 2>conftest.er1
12772   ac_status=$?
12773   grep -v '^ *+' conftest.er1 >conftest.err
12774   rm -f conftest.er1
12775   cat conftest.err >&5
12776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777   (exit $ac_status); } &&
12778          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12779   { (case "(($ac_try" in
12780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12781   *) ac_try_echo=$ac_try;;
12782 esac
12783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12784   (eval "$ac_try") 2>&5
12785   ac_status=$?
12786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787   (exit $ac_status); }; } &&
12788          { ac_try='test -s conftest$ac_exeext'
12789   { (case "(($ac_try" in
12790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12791   *) ac_try_echo=$ac_try;;
12792 esac
12793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12794   (eval "$ac_try") 2>&5
12795   ac_status=$?
12796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797   (exit $ac_status); }; }; then
12798   ac_cv_lib_efence_main=yes
12799 else
12800   echo "$as_me: failed program was:" >&5
12801 sed 's/^/| /' conftest.$ac_ext >&5
12802
12803         ac_cv_lib_efence_main=no
12804 fi
12805
12806 rm -f core conftest.err conftest.$ac_objext \
12807       conftest$ac_exeext conftest.$ac_ext
12808 LIBS=$ac_check_lib_save_LIBS
12809 fi
12810 { echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5
12811 echo "${ECHO_T}$ac_cv_lib_efence_main" >&6; }
12812 if test $ac_cv_lib_efence_main = yes; then
12813   efence=true
12814 else
12815   efence=false
12816 fi
12817
12818 { echo "$as_me:$LINENO: checking for enable-efence" >&5
12819 echo $ECHO_N "checking for enable-efence... $ECHO_C" >&6; }
12820 # Check whether --enable-efence was given.
12821 if test "${enable_efence+set}" = set; then
12822   enableval=$enable_efence; case "${enableval}" in
12823   yes) useefence=true
12824        { echo "$as_me:$LINENO: result: yes" >&5
12825 echo "${ECHO_T}yes" >&6; }
12826        ;;
12827   no)  useefence=false
12828        { echo "$as_me:$LINENO: result: no" >&5
12829 echo "${ECHO_T}no" >&6; }
12830        ;;
12831   *) { echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-efence" >&5
12832 echo "${ECHO_T}bad value ${enableval} for --enable-efence" >&6; }
12833        ;;
12834 esac
12835 else
12836   useefence=false; { echo "$as_me:$LINENO: result: no" >&5
12837 echo "${ECHO_T}no" >&6; }
12838 fi
12839
12840
12841 if test "$efence" = "true" -a "$useefence" = "true" ; then
12842   ctlibs_tools="$ctlibs_tools -lefence"
12843
12844 cat >>confdefs.h <<\_ACEOF
12845 #define HAVE_EFENCE 1
12846 _ACEOF
12847
12848   { echo "$as_me:$LINENO: result: Using efence" >&5
12849 echo "${ECHO_T}Using efence" >&6; }
12850 fi
12851
12852 if test "$wxwin" = "true" ; then
12853   if  "$wx_gtk" = "true"  ||  "$wx_mac" == "true"  ; then
12854     wxcflags=`$wxconfig --cflags`
12855     wxlibs=`$wxconfig --libs`
12856   else
12857         wxcflags="-D__WXMSW__ -D__WIN32__ -D__GNUWIN32__"
12858         wxlibs="-lwx -lglui -ljpeg -lxpm -lzlib -ltiff"
12859   fi
12860   CFLAGS="$CFLAGS -I../include $wxcflags"
12861   ctlib_graphics="$ctlib_graphics $wxlibs"
12862 fi
12863
12864
12865
12866
12867 if test "$wxwin"="true"; then
12868   HAVE_WXWINDOWS_TRUE=
12869   HAVE_WXWINDOWS_FALSE='#'
12870 else
12871   HAVE_WXWINDOWS_TRUE='#'
12872   HAVE_WXWINDOWS_FALSE=
12873 fi
12874
12875
12876 LDFLAGS="$LDFLAGS -L../libctsupport -L../libctsim"
12877 ctlibs="$ctlibs_base -lctsim $ctlib_graphics -lctsupport $ctlibs_tools"
12878
12879
12880 if test -n "$lamdir" ; then
12881   lamprograms="ctsimtext-lam"
12882
12883   lamdefs="$CFLAGS"
12884
12885 fi
12886
12887 CXXFLAGS="$CFLAGS"
12888
12889 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"
12890
12891
12892 cat >confcache <<\_ACEOF
12893 # This file is a shell script that caches the results of configure
12894 # tests run on this system so they can be shared between configure
12895 # scripts and configure runs, see configure's option --config-cache.
12896 # It is not useful on other systems.  If it contains results you don't
12897 # want to keep, you may remove or edit it.
12898 #
12899 # config.status only pays attention to the cache file if you give it
12900 # the --recheck option to rerun configure.
12901 #
12902 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12903 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12904 # following values.
12905
12906 _ACEOF
12907
12908 # The following way of writing the cache mishandles newlines in values,
12909 # but we know of no workaround that is simple, portable, and efficient.
12910 # So, we kill variables containing newlines.
12911 # Ultrix sh set writes to stderr and can't be redirected directly,
12912 # and sets the high bit in the cache file unless we assign to the vars.
12913 (
12914   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12915     eval ac_val=\$$ac_var
12916     case $ac_val in #(
12917     *${as_nl}*)
12918       case $ac_var in #(
12919       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12920 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
12921       esac
12922       case $ac_var in #(
12923       _ | IFS | as_nl) ;; #(
12924       *) $as_unset $ac_var ;;
12925       esac ;;
12926     esac
12927   done
12928
12929   (set) 2>&1 |
12930     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12931     *${as_nl}ac_space=\ *)
12932       # `set' does not quote correctly, so add quotes (double-quote
12933       # substitution turns \\\\ into \\, and sed turns \\ into \).
12934       sed -n \
12935         "s/'/'\\\\''/g;
12936           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12937       ;; #(
12938     *)
12939       # `set' quotes correctly as required by POSIX, so do not add quotes.
12940       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12941       ;;
12942     esac |
12943     sort
12944 ) |
12945   sed '
12946      /^ac_cv_env_/b end
12947      t clear
12948      :clear
12949      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12950      t end
12951      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12952      :end' >>confcache
12953 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12954   if test -w "$cache_file"; then
12955     test "x$cache_file" != "x/dev/null" &&
12956       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
12957 echo "$as_me: updating cache $cache_file" >&6;}
12958     cat confcache >$cache_file
12959   else
12960     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12961 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12962   fi
12963 fi
12964 rm -f confcache
12965
12966 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12967 # Let make expand exec_prefix.
12968 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12969
12970 DEFS=-DHAVE_CONFIG_H
12971
12972 ac_libobjs=
12973 ac_ltlibobjs=
12974 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12975   # 1. Remove the extension, and $U if already installed.
12976   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12977   ac_i=`echo "$ac_i" | sed "$ac_script"`
12978   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12979   #    will be set to the directory where LIBOBJS objects are built.
12980   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12981   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12982 done
12983 LIBOBJS=$ac_libobjs
12984
12985 LTLIBOBJS=$ac_ltlibobjs
12986
12987
12988 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12989   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12990 Usually this means the macro was only invoked conditionally." >&5
12991 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12992 Usually this means the macro was only invoked conditionally." >&2;}
12993    { (exit 1); exit 1; }; }
12994 fi
12995 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12996   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12997 Usually this means the macro was only invoked conditionally." >&5
12998 echo "$as_me: error: conditional \"AMDEP\" was never defined.
12999 Usually this means the macro was only invoked conditionally." >&2;}
13000    { (exit 1); exit 1; }; }
13001 fi
13002 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13003   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13004 Usually this means the macro was only invoked conditionally." >&5
13005 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13006 Usually this means the macro was only invoked conditionally." >&2;}
13007    { (exit 1); exit 1; }; }
13008 fi
13009 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
13010   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
13011 Usually this means the macro was only invoked conditionally." >&5
13012 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
13013 Usually this means the macro was only invoked conditionally." >&2;}
13014    { (exit 1); exit 1; }; }
13015 fi
13016 if test -z "${INCLUDED_GETOPT_LONG_TRUE}" && test -z "${INCLUDED_GETOPT_LONG_FALSE}"; then
13017   { { echo "$as_me:$LINENO: error: conditional \"INCLUDED_GETOPT_LONG\" was never defined.
13018 Usually this means the macro was only invoked conditionally." >&5
13019 echo "$as_me: error: conditional \"INCLUDED_GETOPT_LONG\" was never defined.
13020 Usually this means the macro was only invoked conditionally." >&2;}
13021    { (exit 1); exit 1; }; }
13022 fi
13023 if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
13024   { { echo "$as_me:$LINENO: error: conditional \"DEBUG\" was never defined.
13025 Usually this means the macro was only invoked conditionally." >&5
13026 echo "$as_me: error: conditional \"DEBUG\" was never defined.
13027 Usually this means the macro was only invoked conditionally." >&2;}
13028    { (exit 1); exit 1; }; }
13029 fi
13030 if test -z "${USE_HTML_TRUE}" && test -z "${USE_HTML_FALSE}"; then
13031   { { echo "$as_me:$LINENO: error: conditional \"USE_HTML\" was never defined.
13032 Usually this means the macro was only invoked conditionally." >&5
13033 echo "$as_me: error: conditional \"USE_HTML\" was never defined.
13034 Usually this means the macro was only invoked conditionally." >&2;}
13035    { (exit 1); exit 1; }; }
13036 fi
13037 if test -z "${USE_LAM_TRUE}" && test -z "${USE_LAM_FALSE}"; then
13038   { { echo "$as_me:$LINENO: error: conditional \"USE_LAM\" was never defined.
13039 Usually this means the macro was only invoked conditionally." >&5
13040 echo "$as_me: error: conditional \"USE_LAM\" was never defined.
13041 Usually this means the macro was only invoked conditionally." >&2;}
13042    { (exit 1); exit 1; }; }
13043 fi
13044 if test -z "${NO_X_TRUE}" && test -z "${NO_X_FALSE}"; then
13045   { { echo "$as_me:$LINENO: error: conditional \"NO_X\" was never defined.
13046 Usually this means the macro was only invoked conditionally." >&5
13047 echo "$as_me: error: conditional \"NO_X\" was never defined.
13048 Usually this means the macro was only invoked conditionally." >&2;}
13049    { (exit 1); exit 1; }; }
13050 fi
13051 if test -z "${HAVE_SGP_TRUE}" && test -z "${HAVE_SGP_FALSE}"; then
13052   { { echo "$as_me:$LINENO: error: conditional \"HAVE_SGP\" was never defined.
13053 Usually this means the macro was only invoked conditionally." >&5
13054 echo "$as_me: error: conditional \"HAVE_SGP\" was never defined.
13055 Usually this means the macro was only invoked conditionally." >&2;}
13056    { (exit 1); exit 1; }; }
13057 fi
13058 if test -z "${HAVE_WXWINDOWS_TRUE}" && test -z "${HAVE_WXWINDOWS_FALSE}"; then
13059   { { echo "$as_me:$LINENO: error: conditional \"HAVE_WXWINDOWS\" was never defined.
13060 Usually this means the macro was only invoked conditionally." >&5
13061 echo "$as_me: error: conditional \"HAVE_WXWINDOWS\" was never defined.
13062 Usually this means the macro was only invoked conditionally." >&2;}
13063    { (exit 1); exit 1; }; }
13064 fi
13065
13066 : ${CONFIG_STATUS=./config.status}
13067 ac_clean_files_save=$ac_clean_files
13068 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13069 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13070 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13071 cat >$CONFIG_STATUS <<_ACEOF
13072 #! $SHELL
13073 # Generated by $as_me.
13074 # Run this file to recreate the current configuration.
13075 # Compiler output produced by configure, useful for debugging
13076 # configure, is in config.log if it exists.
13077
13078 debug=false
13079 ac_cs_recheck=false
13080 ac_cs_silent=false
13081 SHELL=\${CONFIG_SHELL-$SHELL}
13082 _ACEOF
13083
13084 cat >>$CONFIG_STATUS <<\_ACEOF
13085 ## --------------------- ##
13086 ## M4sh Initialization.  ##
13087 ## --------------------- ##
13088
13089 # Be Bourne compatible
13090 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13091   emulate sh
13092   NULLCMD=:
13093   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13094   # is contrary to our usage.  Disable this feature.
13095   alias -g '${1+"$@"}'='"$@"'
13096   setopt NO_GLOB_SUBST
13097 else
13098   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
13099 fi
13100 BIN_SH=xpg4; export BIN_SH # for Tru64
13101 DUALCASE=1; export DUALCASE # for MKS sh
13102
13103
13104 # PATH needs CR
13105 # Avoid depending upon Character Ranges.
13106 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13107 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13108 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13109 as_cr_digits='0123456789'
13110 as_cr_alnum=$as_cr_Letters$as_cr_digits
13111
13112 # The user is always right.
13113 if test "${PATH_SEPARATOR+set}" != set; then
13114   echo "#! /bin/sh" >conf$$.sh
13115   echo  "exit 0"   >>conf$$.sh
13116   chmod +x conf$$.sh
13117   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13118     PATH_SEPARATOR=';'
13119   else
13120     PATH_SEPARATOR=:
13121   fi
13122   rm -f conf$$.sh
13123 fi
13124
13125 # Support unset when possible.
13126 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13127   as_unset=unset
13128 else
13129   as_unset=false
13130 fi
13131
13132
13133 # IFS
13134 # We need space, tab and new line, in precisely that order.  Quoting is
13135 # there to prevent editors from complaining about space-tab.
13136 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13137 # splitting by setting IFS to empty value.)
13138 as_nl='
13139 '
13140 IFS=" ""        $as_nl"
13141
13142 # Find who we are.  Look in the path if we contain no directory separator.
13143 case $0 in
13144   *[\\/]* ) as_myself=$0 ;;
13145   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13146 for as_dir in $PATH
13147 do
13148   IFS=$as_save_IFS
13149   test -z "$as_dir" && as_dir=.
13150   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13151 done
13152 IFS=$as_save_IFS
13153
13154      ;;
13155 esac
13156 # We did not find ourselves, most probably we were run as `sh COMMAND'
13157 # in which case we are not to be found in the path.
13158 if test "x$as_myself" = x; then
13159   as_myself=$0
13160 fi
13161 if test ! -f "$as_myself"; then
13162   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13163   { (exit 1); exit 1; }
13164 fi
13165
13166 # Work around bugs in pre-3.0 UWIN ksh.
13167 for as_var in ENV MAIL MAILPATH
13168 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13169 done
13170 PS1='$ '
13171 PS2='> '
13172 PS4='+ '
13173
13174 # NLS nuisances.
13175 for as_var in \
13176   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13177   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13178   LC_TELEPHONE LC_TIME
13179 do
13180   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13181     eval $as_var=C; export $as_var
13182   else
13183     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13184   fi
13185 done
13186
13187 # Required to use basename.
13188 if expr a : '\(a\)' >/dev/null 2>&1 &&
13189    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13190   as_expr=expr
13191 else
13192   as_expr=false
13193 fi
13194
13195 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13196   as_basename=basename
13197 else
13198   as_basename=false
13199 fi
13200
13201
13202 # Name of the executable.
13203 as_me=`$as_basename -- "$0" ||
13204 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13205          X"$0" : 'X\(//\)$' \| \
13206          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13207 echo X/"$0" |
13208     sed '/^.*\/\([^/][^/]*\)\/*$/{
13209             s//\1/
13210             q
13211           }
13212           /^X\/\(\/\/\)$/{
13213             s//\1/
13214             q
13215           }
13216           /^X\/\(\/\).*/{
13217             s//\1/
13218             q
13219           }
13220           s/.*/./; q'`
13221
13222 # CDPATH.
13223 $as_unset CDPATH
13224
13225
13226
13227   as_lineno_1=$LINENO
13228   as_lineno_2=$LINENO
13229   test "x$as_lineno_1" != "x$as_lineno_2" &&
13230   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13231
13232   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13233   # uniformly replaced by the line number.  The first 'sed' inserts a
13234   # line-number line after each line using $LINENO; the second 'sed'
13235   # does the real work.  The second script uses 'N' to pair each
13236   # line-number line with the line containing $LINENO, and appends
13237   # trailing '-' during substitution so that $LINENO is not a special
13238   # case at line end.
13239   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13240   # scripts with optimization help from Paolo Bonzini.  Blame Lee
13241   # E. McMahon (1931-1989) for sed's syntax.  :-)
13242   sed -n '
13243     p
13244     /[$]LINENO/=
13245   ' <$as_myself |
13246     sed '
13247       s/[$]LINENO.*/&-/
13248       t lineno
13249       b
13250       :lineno
13251       N
13252       :loop
13253       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13254       t loop
13255       s/-\n.*//
13256     ' >$as_me.lineno &&
13257   chmod +x "$as_me.lineno" ||
13258     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13259    { (exit 1); exit 1; }; }
13260
13261   # Don't try to exec as it changes $[0], causing all sort of problems
13262   # (the dirname of $[0] is not the place where we might find the
13263   # original and so on.  Autoconf is especially sensitive to this).
13264   . "./$as_me.lineno"
13265   # Exit status is that of the last command.
13266   exit
13267 }
13268
13269
13270 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13271   as_dirname=dirname
13272 else
13273   as_dirname=false
13274 fi
13275
13276 ECHO_C= ECHO_N= ECHO_T=
13277 case `echo -n x` in
13278 -n*)
13279   case `echo 'x\c'` in
13280   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13281   *)   ECHO_C='\c';;
13282   esac;;
13283 *)
13284   ECHO_N='-n';;
13285 esac
13286
13287 if expr a : '\(a\)' >/dev/null 2>&1 &&
13288    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13289   as_expr=expr
13290 else
13291   as_expr=false
13292 fi
13293
13294 rm -f conf$$ conf$$.exe conf$$.file
13295 if test -d conf$$.dir; then
13296   rm -f conf$$.dir/conf$$.file
13297 else
13298   rm -f conf$$.dir
13299   mkdir conf$$.dir
13300 fi
13301 echo >conf$$.file
13302 if ln -s conf$$.file conf$$ 2>/dev/null; then
13303   as_ln_s='ln -s'
13304   # ... but there are two gotchas:
13305   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13306   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13307   # In both cases, we have to default to `cp -p'.
13308   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13309     as_ln_s='cp -p'
13310 elif ln conf$$.file conf$$ 2>/dev/null; then
13311   as_ln_s=ln
13312 else
13313   as_ln_s='cp -p'
13314 fi
13315 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13316 rmdir conf$$.dir 2>/dev/null
13317
13318 if mkdir -p . 2>/dev/null; then
13319   as_mkdir_p=:
13320 else
13321   test -d ./-p && rmdir ./-p
13322   as_mkdir_p=false
13323 fi
13324
13325 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
13326 # systems may use methods other than mode bits to determine executability.
13327 cat >conf$$.file <<_ASEOF
13328 #! /bin/sh
13329 exit 0
13330 _ASEOF
13331 chmod +x conf$$.file
13332 if test -x conf$$.file >/dev/null 2>&1; then
13333   as_executable_p="test -x"
13334 else
13335   as_executable_p=:
13336 fi
13337 rm -f conf$$.file
13338
13339 # Sed expression to map a string onto a valid CPP name.
13340 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13341
13342 # Sed expression to map a string onto a valid variable name.
13343 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13344
13345
13346 exec 6>&1
13347
13348 # Save the log message, to keep $[0] and so on meaningful, and to
13349 # report actual input values of CONFIG_FILES etc. instead of their
13350 # values after options handling.
13351 ac_log="
13352 This file was extended by $as_me, which was
13353 generated by GNU Autoconf 2.60.  Invocation command line was
13354
13355   CONFIG_FILES    = $CONFIG_FILES
13356   CONFIG_HEADERS  = $CONFIG_HEADERS
13357   CONFIG_LINKS    = $CONFIG_LINKS
13358   CONFIG_COMMANDS = $CONFIG_COMMANDS
13359   $ $0 $@
13360
13361 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13362 "
13363
13364 _ACEOF
13365
13366 cat >>$CONFIG_STATUS <<_ACEOF
13367 # Files that config.status was made for.
13368 config_files="$ac_config_files"
13369 config_headers="$ac_config_headers"
13370 config_commands="$ac_config_commands"
13371
13372 _ACEOF
13373
13374 cat >>$CONFIG_STATUS <<\_ACEOF
13375 ac_cs_usage="\
13376 \`$as_me' instantiates files from templates according to the
13377 current configuration.
13378
13379 Usage: $0 [OPTIONS] [FILE]...
13380
13381   -h, --help       print this help, then exit
13382   -V, --version    print version number, then exit
13383   -q, --quiet      do not print progress messages
13384   -d, --debug      don't remove temporary files
13385       --recheck    update $as_me by reconfiguring in the same conditions
13386   --file=FILE[:TEMPLATE]
13387                    instantiate the configuration file FILE
13388   --header=FILE[:TEMPLATE]
13389                    instantiate the configuration header FILE
13390
13391 Configuration files:
13392 $config_files
13393
13394 Configuration headers:
13395 $config_headers
13396
13397 Configuration commands:
13398 $config_commands
13399
13400 Report bugs to <bug-autoconf@gnu.org>."
13401
13402 _ACEOF
13403 cat >>$CONFIG_STATUS <<_ACEOF
13404 ac_cs_version="\\
13405 config.status
13406 configured by $0, generated by GNU Autoconf 2.60,
13407   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13408
13409 Copyright (C) 2006 Free Software Foundation, Inc.
13410 This config.status script is free software; the Free Software Foundation
13411 gives unlimited permission to copy, distribute and modify it."
13412
13413 ac_pwd='$ac_pwd'
13414 srcdir='$srcdir'
13415 INSTALL='$INSTALL'
13416 _ACEOF
13417
13418 cat >>$CONFIG_STATUS <<\_ACEOF
13419 # If no file are specified by the user, then we need to provide default
13420 # value.  By we need to know if files were specified by the user.
13421 ac_need_defaults=:
13422 while test $# != 0
13423 do
13424   case $1 in
13425   --*=*)
13426     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13427     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13428     ac_shift=:
13429     ;;
13430   *)
13431     ac_option=$1
13432     ac_optarg=$2
13433     ac_shift=shift
13434     ;;
13435   esac
13436
13437   case $ac_option in
13438   # Handling of the options.
13439   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13440     ac_cs_recheck=: ;;
13441   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13442     echo "$ac_cs_version"; exit ;;
13443   --debug | --debu | --deb | --de | --d | -d )
13444     debug=: ;;
13445   --file | --fil | --fi | --f )
13446     $ac_shift
13447     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13448     ac_need_defaults=false;;
13449   --header | --heade | --head | --hea )
13450     $ac_shift
13451     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13452     ac_need_defaults=false;;
13453   --he | --h)
13454     # Conflict between --help and --header
13455     { echo "$as_me: error: ambiguous option: $1
13456 Try \`$0 --help' for more information." >&2
13457    { (exit 1); exit 1; }; };;
13458   --help | --hel | -h )
13459     echo "$ac_cs_usage"; exit ;;
13460   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13461   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13462     ac_cs_silent=: ;;
13463
13464   # This is an error.
13465   -*) { echo "$as_me: error: unrecognized option: $1
13466 Try \`$0 --help' for more information." >&2
13467    { (exit 1); exit 1; }; } ;;
13468
13469   *) ac_config_targets="$ac_config_targets $1"
13470      ac_need_defaults=false ;;
13471
13472   esac
13473   shift
13474 done
13475
13476 ac_configure_extra_args=
13477
13478 if $ac_cs_silent; then
13479   exec 6>/dev/null
13480   ac_configure_extra_args="$ac_configure_extra_args --silent"
13481 fi
13482
13483 _ACEOF
13484 cat >>$CONFIG_STATUS <<_ACEOF
13485 if \$ac_cs_recheck; then
13486   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13487   CONFIG_SHELL=$SHELL
13488   export CONFIG_SHELL
13489   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13490 fi
13491
13492 _ACEOF
13493 cat >>$CONFIG_STATUS <<\_ACEOF
13494 exec 5>>config.log
13495 {
13496   echo
13497   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13498 ## Running $as_me. ##
13499 _ASBOX
13500   echo "$ac_log"
13501 } >&5
13502
13503 _ACEOF
13504 cat >>$CONFIG_STATUS <<_ACEOF
13505 #
13506 # INIT-COMMANDS
13507 #
13508 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13509
13510 _ACEOF
13511
13512 cat >>$CONFIG_STATUS <<\_ACEOF
13513
13514 # Handling of arguments.
13515 for ac_config_target in $ac_config_targets
13516 do
13517   case $ac_config_target in
13518     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13519     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13520     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13521     "libctgraphics/Makefile") CONFIG_FILES="$CONFIG_FILES libctgraphics/Makefile" ;;
13522     "libctsupport/Makefile") CONFIG_FILES="$CONFIG_FILES libctsupport/Makefile" ;;
13523     "libctsim/Makefile") CONFIG_FILES="$CONFIG_FILES libctsim/Makefile" ;;
13524     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13525     "cgi-bin/ctsim.cgi") CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.cgi" ;;
13526     "cgi-bin/Makefile") CONFIG_FILES="$CONFIG_FILES cgi-bin/Makefile" ;;
13527     "html/simulate.html") CONFIG_FILES="$CONFIG_FILES html/simulate.html" ;;
13528     "html/Makefile") CONFIG_FILES="$CONFIG_FILES html/Makefile" ;;
13529     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13530     "getopt/Makefile") CONFIG_FILES="$CONFIG_FILES getopt/Makefile" ;;
13531     "tools/sample-ctsim.sh") CONFIG_FILES="$CONFIG_FILES tools/sample-ctsim.sh" ;;
13532     "cgi-bin/ctsim.conf") CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.conf" ;;
13533     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
13534     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13535     "helical/Makefile") CONFIG_FILES="$CONFIG_FILES helical/Makefile" ;;
13536     "helical/sample-helical.sh") CONFIG_FILES="$CONFIG_FILES helical/sample-helical.sh" ;;
13537
13538   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13539 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13540    { (exit 1); exit 1; }; };;
13541   esac
13542 done
13543
13544
13545 # If the user did not use the arguments to specify the items to instantiate,
13546 # then the envvar interface is used.  Set only those that are not.
13547 # We use the long form for the default assignment because of an extremely
13548 # bizarre bug on SunOS 4.1.3.
13549 if $ac_need_defaults; then
13550   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13551   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13552   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13553 fi
13554
13555 # Have a temporary directory for convenience.  Make it in the build tree
13556 # simply because there is no reason against having it here, and in addition,
13557 # creating and moving files from /tmp can sometimes cause problems.
13558 # Hook for its removal unless debugging.
13559 # Note that there is a small window in which the directory will not be cleaned:
13560 # after its creation but before its name has been assigned to `$tmp'.
13561 $debug ||
13562 {
13563   tmp=
13564   trap 'exit_status=$?
13565   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13566 ' 0
13567   trap '{ (exit 1); exit 1; }' 1 2 13 15
13568 }
13569 # Create a (secure) tmp directory for tmp files.
13570
13571 {
13572   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13573   test -n "$tmp" && test -d "$tmp"
13574 }  ||
13575 {
13576   tmp=./conf$$-$RANDOM
13577   (umask 077 && mkdir "$tmp")
13578 } ||
13579 {
13580    echo "$me: cannot create a temporary directory in ." >&2
13581    { (exit 1); exit 1; }
13582 }
13583
13584 #
13585 # Set up the sed scripts for CONFIG_FILES section.
13586 #
13587
13588 # No need to generate the scripts if there are no CONFIG_FILES.
13589 # This happens for instance when ./config.status config.h
13590 if test -n "$CONFIG_FILES"; then
13591
13592 _ACEOF
13593
13594
13595
13596 ac_delim='%!_!# '
13597 for ac_last_try in false false false false false :; do
13598   cat >conf$$subs.sed <<_ACEOF
13599 SHELL!$SHELL$ac_delim
13600 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
13601 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
13602 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
13603 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
13604 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
13605 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
13606 exec_prefix!$exec_prefix$ac_delim
13607 prefix!$prefix$ac_delim
13608 program_transform_name!$program_transform_name$ac_delim
13609 bindir!$bindir$ac_delim
13610 sbindir!$sbindir$ac_delim
13611 libexecdir!$libexecdir$ac_delim
13612 datarootdir!$datarootdir$ac_delim
13613 datadir!$datadir$ac_delim
13614 sysconfdir!$sysconfdir$ac_delim
13615 sharedstatedir!$sharedstatedir$ac_delim
13616 localstatedir!$localstatedir$ac_delim
13617 includedir!$includedir$ac_delim
13618 oldincludedir!$oldincludedir$ac_delim
13619 docdir!$docdir$ac_delim
13620 infodir!$infodir$ac_delim
13621 htmldir!$htmldir$ac_delim
13622 dvidir!$dvidir$ac_delim
13623 pdfdir!$pdfdir$ac_delim
13624 psdir!$psdir$ac_delim
13625 libdir!$libdir$ac_delim
13626 localedir!$localedir$ac_delim
13627 mandir!$mandir$ac_delim
13628 DEFS!$DEFS$ac_delim
13629 ECHO_C!$ECHO_C$ac_delim
13630 ECHO_N!$ECHO_N$ac_delim
13631 ECHO_T!$ECHO_T$ac_delim
13632 LIBS!$LIBS$ac_delim
13633 build_alias!$build_alias$ac_delim
13634 host_alias!$host_alias$ac_delim
13635 target_alias!$target_alias$ac_delim
13636 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
13637 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
13638 MAINT!$MAINT$ac_delim
13639 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
13640 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
13641 INSTALL_DATA!$INSTALL_DATA$ac_delim
13642 CYGPATH_W!$CYGPATH_W$ac_delim
13643 PACKAGE!$PACKAGE$ac_delim
13644 VERSION!$VERSION$ac_delim
13645 ACLOCAL!$ACLOCAL$ac_delim
13646 AUTOCONF!$AUTOCONF$ac_delim
13647 AUTOMAKE!$AUTOMAKE$ac_delim
13648 AUTOHEADER!$AUTOHEADER$ac_delim
13649 MAKEINFO!$MAKEINFO$ac_delim
13650 AMTAR!$AMTAR$ac_delim
13651 install_sh!$install_sh$ac_delim
13652 STRIP!$STRIP$ac_delim
13653 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
13654 AWK!$AWK$ac_delim
13655 SET_MAKE!$SET_MAKE$ac_delim
13656 am__leading_dot!$am__leading_dot$ac_delim
13657 RANLIB!$RANLIB$ac_delim
13658 CC!$CC$ac_delim
13659 CFLAGS!$CFLAGS$ac_delim
13660 LDFLAGS!$LDFLAGS$ac_delim
13661 CPPFLAGS!$CPPFLAGS$ac_delim
13662 ac_ct_CC!$ac_ct_CC$ac_delim
13663 EXEEXT!$EXEEXT$ac_delim
13664 OBJEXT!$OBJEXT$ac_delim
13665 DEPDIR!$DEPDIR$ac_delim
13666 am__include!$am__include$ac_delim
13667 am__quote!$am__quote$ac_delim
13668 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
13669 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
13670 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
13671 CCDEPMODE!$CCDEPMODE$ac_delim
13672 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
13673 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
13674 CXX!$CXX$ac_delim
13675 CXXFLAGS!$CXXFLAGS$ac_delim
13676 ac_ct_CXX!$ac_ct_CXX$ac_delim
13677 CXXDEPMODE!$CXXDEPMODE$ac_delim
13678 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
13679 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
13680 CPP!$CPP$ac_delim
13681 GREP!$GREP$ac_delim
13682 EGREP!$EGREP$ac_delim
13683 wxconfig!$wxconfig$ac_delim
13684 build!$build$ac_delim
13685 build_cpu!$build_cpu$ac_delim
13686 build_vendor!$build_vendor$ac_delim
13687 build_os!$build_os$ac_delim
13688 host!$host$ac_delim
13689 host_cpu!$host_cpu$ac_delim
13690 host_vendor!$host_vendor$ac_delim
13691 host_os!$host_os$ac_delim
13692 INCLUDED_GETOPT_LONG_TRUE!$INCLUDED_GETOPT_LONG_TRUE$ac_delim
13693 INCLUDED_GETOPT_LONG_FALSE!$INCLUDED_GETOPT_LONG_FALSE$ac_delim
13694 DEBUG_TRUE!$DEBUG_TRUE$ac_delim
13695 DEBUG_FALSE!$DEBUG_FALSE$ac_delim
13696 _ACEOF
13697
13698   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
13699     break
13700   elif $ac_last_try; then
13701     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13702 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13703    { (exit 1); exit 1; }; }
13704   else
13705     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13706   fi
13707 done
13708
13709 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13710 if test -n "$ac_eof"; then
13711   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13712   ac_eof=`expr $ac_eof + 1`
13713 fi
13714
13715 cat >>$CONFIG_STATUS <<_ACEOF
13716 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
13717 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13718 _ACEOF
13719 sed '
13720 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13721 s/^/s,@/; s/!/@,|#_!!_#|/
13722 :n
13723 t n
13724 s/'"$ac_delim"'$/,g/; t
13725 s/$/\\/; p
13726 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13727 ' >>$CONFIG_STATUS <conf$$subs.sed
13728 rm -f conf$$subs.sed
13729 cat >>$CONFIG_STATUS <<_ACEOF
13730 CEOF$ac_eof
13731 _ACEOF
13732
13733
13734 ac_delim='%!_!# '
13735 for ac_last_try in false false false false false :; do
13736   cat >conf$$subs.sed <<_ACEOF
13737 lamdir!$lamdir$ac_delim
13738 mpienable!$mpienable$ac_delim
13739 cgibindir!$cgibindir$ac_delim
13740 cgibinurl!$cgibinurl$ac_delim
13741 webdatadir!$webdatadir$ac_delim
13742 webdataurl!$webdataurl$ac_delim
13743 cgiprograms!$cgiprograms$ac_delim
13744 htmldata!$htmldata$ac_delim
13745 USE_HTML_TRUE!$USE_HTML_TRUE$ac_delim
13746 USE_HTML_FALSE!$USE_HTML_FALSE$ac_delim
13747 webenabled!$webenabled$ac_delim
13748 USE_LAM_TRUE!$USE_LAM_TRUE$ac_delim
13749 USE_LAM_FALSE!$USE_LAM_FALSE$ac_delim
13750 XMKMF!$XMKMF$ac_delim
13751 X_CFLAGS!$X_CFLAGS$ac_delim
13752 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
13753 X_LIBS!$X_LIBS$ac_delim
13754 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
13755 X_TOOLKIT_LIBS!$X_TOOLKIT_LIBS$ac_delim
13756 X_BASIC_LIBS!$X_BASIC_LIBS$ac_delim
13757 NO_X_TRUE!$NO_X_TRUE$ac_delim
13758 NO_X_FALSE!$NO_X_FALSE$ac_delim
13759 my_includes!$my_includes$ac_delim
13760 HAVE_SGP_TRUE!$HAVE_SGP_TRUE$ac_delim
13761 HAVE_SGP_FALSE!$HAVE_SGP_FALSE$ac_delim
13762 wxcflags!$wxcflags$ac_delim
13763 wxlibs!$wxlibs$ac_delim
13764 HAVE_WXWINDOWS_TRUE!$HAVE_WXWINDOWS_TRUE$ac_delim
13765 HAVE_WXWINDOWS_FALSE!$HAVE_WXWINDOWS_FALSE$ac_delim
13766 ctlibs!$ctlibs$ac_delim
13767 lamprograms!$lamprograms$ac_delim
13768 lamdefs!$lamdefs$ac_delim
13769 LIBOBJS!$LIBOBJS$ac_delim
13770 LTLIBOBJS!$LTLIBOBJS$ac_delim
13771 _ACEOF
13772
13773   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 34; then
13774     break
13775   elif $ac_last_try; then
13776     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13777 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13778    { (exit 1); exit 1; }; }
13779   else
13780     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13781   fi
13782 done
13783
13784 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13785 if test -n "$ac_eof"; then
13786   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13787   ac_eof=`expr $ac_eof + 1`
13788 fi
13789
13790 cat >>$CONFIG_STATUS <<_ACEOF
13791 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
13792 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
13793 _ACEOF
13794 sed '
13795 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13796 s/^/s,@/; s/!/@,|#_!!_#|/
13797 :n
13798 t n
13799 s/'"$ac_delim"'$/,g/; t
13800 s/$/\\/; p
13801 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13802 ' >>$CONFIG_STATUS <conf$$subs.sed
13803 rm -f conf$$subs.sed
13804 cat >>$CONFIG_STATUS <<_ACEOF
13805 :end
13806 s/|#_!!_#|//g
13807 CEOF$ac_eof
13808 _ACEOF
13809
13810
13811 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13812 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13813 # trailing colons and then remove the whole line if VPATH becomes empty
13814 # (actually we leave an empty line to preserve line numbers).
13815 if test "x$srcdir" = x.; then
13816   ac_vpsub='/^[  ]*VPATH[        ]*=/{
13817 s/:*\$(srcdir):*/:/
13818 s/:*\${srcdir}:*/:/
13819 s/:*@srcdir@:*/:/
13820 s/^\([^=]*=[     ]*\):*/\1/
13821 s/:*$//
13822 s/^[^=]*=[       ]*$//
13823 }'
13824 fi
13825
13826 cat >>$CONFIG_STATUS <<\_ACEOF
13827 fi # test -n "$CONFIG_FILES"
13828
13829
13830 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
13831 do
13832   case $ac_tag in
13833   :[FHLC]) ac_mode=$ac_tag; continue;;
13834   esac
13835   case $ac_mode$ac_tag in
13836   :[FHL]*:*);;
13837   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
13838 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
13839    { (exit 1); exit 1; }; };;
13840   :[FH]-) ac_tag=-:-;;
13841   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13842   esac
13843   ac_save_IFS=$IFS
13844   IFS=:
13845   set x $ac_tag
13846   IFS=$ac_save_IFS
13847   shift
13848   ac_file=$1
13849   shift
13850
13851   case $ac_mode in
13852   :L) ac_source=$1;;
13853   :[FH])
13854     ac_file_inputs=
13855     for ac_f
13856     do
13857       case $ac_f in
13858       -) ac_f="$tmp/stdin";;
13859       *) # Look for the file first in the build tree, then in the source tree
13860          # (if the path is not absolute).  The absolute path cannot be DOS-style,
13861          # because $ac_f cannot contain `:'.
13862          test -f "$ac_f" ||
13863            case $ac_f in
13864            [\\/$]*) false;;
13865            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13866            esac ||
13867            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13868 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13869    { (exit 1); exit 1; }; };;
13870       esac
13871       ac_file_inputs="$ac_file_inputs $ac_f"
13872     done
13873
13874     # Let's still pretend it is `configure' which instantiates (i.e., don't
13875     # use $as_me), people would be surprised to read:
13876     #    /* config.h.  Generated by config.status.  */
13877     configure_input="Generated from "`IFS=:
13878           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
13879     if test x"$ac_file" != x-; then
13880       configure_input="$ac_file.  $configure_input"
13881       { echo "$as_me:$LINENO: creating $ac_file" >&5
13882 echo "$as_me: creating $ac_file" >&6;}
13883     fi
13884
13885     case $ac_tag in
13886     *:-:* | *:-) cat >"$tmp/stdin";;
13887     esac
13888     ;;
13889   esac
13890
13891   ac_dir=`$as_dirname -- "$ac_file" ||
13892 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13893          X"$ac_file" : 'X\(//\)[^/]' \| \
13894          X"$ac_file" : 'X\(//\)$' \| \
13895          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13896 echo X"$ac_file" |
13897     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13898             s//\1/
13899             q
13900           }
13901           /^X\(\/\/\)[^/].*/{
13902             s//\1/
13903             q
13904           }
13905           /^X\(\/\/\)$/{
13906             s//\1/
13907             q
13908           }
13909           /^X\(\/\).*/{
13910             s//\1/
13911             q
13912           }
13913           s/.*/./; q'`
13914   { as_dir="$ac_dir"
13915   case $as_dir in #(
13916   -*) as_dir=./$as_dir;;
13917   esac
13918   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13919     as_dirs=
13920     while :; do
13921       case $as_dir in #(
13922       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
13923       *) as_qdir=$as_dir;;
13924       esac
13925       as_dirs="'$as_qdir' $as_dirs"
13926       as_dir=`$as_dirname -- "$as_dir" ||
13927 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13928          X"$as_dir" : 'X\(//\)[^/]' \| \
13929          X"$as_dir" : 'X\(//\)$' \| \
13930          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13931 echo X"$as_dir" |
13932     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13933             s//\1/
13934             q
13935           }
13936           /^X\(\/\/\)[^/].*/{
13937             s//\1/
13938             q
13939           }
13940           /^X\(\/\/\)$/{
13941             s//\1/
13942             q
13943           }
13944           /^X\(\/\).*/{
13945             s//\1/
13946             q
13947           }
13948           s/.*/./; q'`
13949       test -d "$as_dir" && break
13950     done
13951     test -z "$as_dirs" || eval "mkdir $as_dirs"
13952   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13953 echo "$as_me: error: cannot create directory $as_dir" >&2;}
13954    { (exit 1); exit 1; }; }; }
13955   ac_builddir=.
13956
13957 case "$ac_dir" in
13958 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13959 *)
13960   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13961   # A ".." for each directory in $ac_dir_suffix.
13962   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
13963   case $ac_top_builddir_sub in
13964   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13965   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13966   esac ;;
13967 esac
13968 ac_abs_top_builddir=$ac_pwd
13969 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13970 # for backward compatibility:
13971 ac_top_builddir=$ac_top_build_prefix
13972
13973 case $srcdir in
13974   .)  # We are building in place.
13975     ac_srcdir=.
13976     ac_top_srcdir=$ac_top_builddir_sub
13977     ac_abs_top_srcdir=$ac_pwd ;;
13978   [\\/]* | ?:[\\/]* )  # Absolute name.
13979     ac_srcdir=$srcdir$ac_dir_suffix;
13980     ac_top_srcdir=$srcdir
13981     ac_abs_top_srcdir=$srcdir ;;
13982   *) # Relative name.
13983     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13984     ac_top_srcdir=$ac_top_build_prefix$srcdir
13985     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13986 esac
13987 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13988
13989
13990   case $ac_mode in
13991   :F)
13992   #
13993   # CONFIG_FILE
13994   #
13995
13996   case $INSTALL in
13997   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13998   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13999   esac
14000 _ACEOF
14001
14002 cat >>$CONFIG_STATUS <<\_ACEOF
14003 # If the template does not know about datarootdir, expand it.
14004 # FIXME: This hack should be removed a few years after 2.60.
14005 ac_datarootdir_hack=; ac_datarootdir_seen=
14006
14007 case `sed -n '/datarootdir/ {
14008   p
14009   q
14010 }
14011 /@datadir@/p
14012 /@docdir@/p
14013 /@infodir@/p
14014 /@localedir@/p
14015 /@mandir@/p
14016 ' $ac_file_inputs` in
14017 *datarootdir*) ac_datarootdir_seen=yes;;
14018 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14019   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14020 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14021 _ACEOF
14022 cat >>$CONFIG_STATUS <<_ACEOF
14023   ac_datarootdir_hack='
14024   s&@datadir@&$datadir&g
14025   s&@docdir@&$docdir&g
14026   s&@infodir@&$infodir&g
14027   s&@localedir@&$localedir&g
14028   s&@mandir@&$mandir&g
14029     s&\\\${datarootdir}&$datarootdir&g' ;;
14030 esac
14031 _ACEOF
14032
14033 # Neutralize VPATH when `$srcdir' = `.'.
14034 # Shell code in configure.ac might set extrasub.
14035 # FIXME: do we really want to maintain this feature?
14036 cat >>$CONFIG_STATUS <<_ACEOF
14037   sed "$ac_vpsub
14038 $extrasub
14039 _ACEOF
14040 cat >>$CONFIG_STATUS <<\_ACEOF
14041 :t
14042 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14043 s&@configure_input@&$configure_input&;t t
14044 s&@top_builddir@&$ac_top_builddir_sub&;t t
14045 s&@srcdir@&$ac_srcdir&;t t
14046 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14047 s&@top_srcdir@&$ac_top_srcdir&;t t
14048 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14049 s&@builddir@&$ac_builddir&;t t
14050 s&@abs_builddir@&$ac_abs_builddir&;t t
14051 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14052 s&@INSTALL@&$ac_INSTALL&;t t
14053 $ac_datarootdir_hack
14054 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
14055
14056 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14057   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14058   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14059   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14060 which seems to be undefined.  Please make sure it is defined." >&5
14061 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14062 which seems to be undefined.  Please make sure it is defined." >&2;}
14063
14064   rm -f "$tmp/stdin"
14065   case $ac_file in
14066   -) cat "$tmp/out"; rm -f "$tmp/out";;
14067   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
14068   esac
14069  ;;
14070   :H)
14071   #
14072   # CONFIG_HEADER
14073   #
14074 _ACEOF
14075
14076 # Transform confdefs.h into a sed script `conftest.defines', that
14077 # substitutes the proper values into config.h.in to produce config.h.
14078 rm -f conftest.defines conftest.tail
14079 # First, append a space to every undef/define line, to ease matching.
14080 echo 's/$/ /' >conftest.defines
14081 # Then, protect against being on the right side of a sed subst, or in
14082 # an unquoted here document, in config.status.  If some macros were
14083 # called several times there might be several #defines for the same
14084 # symbol, which is useless.  But do not sort them, since the last
14085 # AC_DEFINE must be honored.
14086 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14087 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
14088 # NAME is the cpp macro being defined, VALUE is the value it is being given.
14089 # PARAMS is the parameter list in the macro definition--in most cases, it's
14090 # just an empty string.
14091 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
14092 ac_dB='\\)[      (].*,\\1define\\2'
14093 ac_dC=' '
14094 ac_dD=' ,'
14095
14096 uniq confdefs.h |
14097   sed -n '
14098         t rset
14099         :rset
14100         s/^[     ]*#[    ]*define[       ][      ]*//
14101         t ok
14102         d
14103         :ok
14104         s/[\\&,]/\\&/g
14105         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
14106         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
14107   ' >>conftest.defines
14108
14109 # Remove the space that was appended to ease matching.
14110 # Then replace #undef with comments.  This is necessary, for
14111 # example, in the case of _POSIX_SOURCE, which is predefined and required
14112 # on some systems where configure will not decide to define it.
14113 # (The regexp can be short, since the line contains either #define or #undef.)
14114 echo 's/ $//
14115 s,^[     #]*u.*,/* & */,' >>conftest.defines
14116
14117 # Break up conftest.defines:
14118 ac_max_sed_lines=50
14119
14120 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
14121 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
14122 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
14123 # et cetera.
14124 ac_in='$ac_file_inputs'
14125 ac_out='"$tmp/out1"'
14126 ac_nxt='"$tmp/out2"'
14127
14128 while :
14129 do
14130   # Write a here document:
14131     cat >>$CONFIG_STATUS <<_ACEOF
14132     # First, check the format of the line:
14133     cat >"\$tmp/defines.sed" <<\\CEOF
14134 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
14135 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
14136 b
14137 :def
14138 _ACEOF
14139   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
14140   echo 'CEOF
14141     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
14142   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
14143   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
14144   grep . conftest.tail >/dev/null || break
14145   rm -f conftest.defines
14146   mv conftest.tail conftest.defines
14147 done
14148 rm -f conftest.defines conftest.tail
14149
14150 echo "ac_result=$ac_in" >>$CONFIG_STATUS
14151 cat >>$CONFIG_STATUS <<\_ACEOF
14152   if test x"$ac_file" != x-; then
14153     echo "/* $configure_input  */" >"$tmp/config.h"
14154     cat "$ac_result" >>"$tmp/config.h"
14155     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
14156       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14157 echo "$as_me: $ac_file is unchanged" >&6;}
14158     else
14159       rm -f $ac_file
14160       mv "$tmp/config.h" $ac_file
14161     fi
14162   else
14163     echo "/* $configure_input  */"
14164     cat "$ac_result"
14165   fi
14166   rm -f "$tmp/out12"
14167 # Compute $ac_file's index in $config_headers.
14168 _am_stamp_count=1
14169 for _am_header in $config_headers :; do
14170   case $_am_header in
14171     $ac_file | $ac_file:* )
14172       break ;;
14173     * )
14174       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14175   esac
14176 done
14177 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
14178 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14179          X$ac_file : 'X\(//\)[^/]' \| \
14180          X$ac_file : 'X\(//\)$' \| \
14181          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
14182 echo X$ac_file |
14183     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14184             s//\1/
14185             q
14186           }
14187           /^X\(\/\/\)[^/].*/{
14188             s//\1/
14189             q
14190           }
14191           /^X\(\/\/\)$/{
14192             s//\1/
14193             q
14194           }
14195           /^X\(\/\).*/{
14196             s//\1/
14197             q
14198           }
14199           s/.*/./; q'`/stamp-h$_am_stamp_count
14200  ;;
14201
14202   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
14203 echo "$as_me: executing $ac_file commands" >&6;}
14204  ;;
14205   esac
14206
14207
14208   case $ac_file$ac_mode in
14209     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14210   # Strip MF so we end up with the name of the file.
14211   mf=`echo "$mf" | sed -e 's/:.*$//'`
14212   # Check whether this is an Automake generated Makefile or not.
14213   # We used to match only the files named `Makefile.in', but
14214   # some people rename them; so instead we look at the file content.
14215   # Grep'ing the first line is not enough: some people post-process
14216   # each Makefile.in and add a new line on top of each file to say so.
14217   # So let's grep whole file.
14218   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
14219     dirpart=`$as_dirname -- "$mf" ||
14220 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14221          X"$mf" : 'X\(//\)[^/]' \| \
14222          X"$mf" : 'X\(//\)$' \| \
14223          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14224 echo X"$mf" |
14225     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14226             s//\1/
14227             q
14228           }
14229           /^X\(\/\/\)[^/].*/{
14230             s//\1/
14231             q
14232           }
14233           /^X\(\/\/\)$/{
14234             s//\1/
14235             q
14236           }
14237           /^X\(\/\).*/{
14238             s//\1/
14239             q
14240           }
14241           s/.*/./; q'`
14242   else
14243     continue
14244   fi
14245   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
14246   # Extract the definition of DEP_FILES from the Makefile without
14247   # running `make'.
14248   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
14249   test -z "$DEPDIR" && continue
14250   # When using ansi2knr, U may be empty or an underscore; expand it
14251   U=`sed -n -e '/^U = / s///p' < "$mf"`
14252   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
14253   # We invoke sed twice because it is the simplest approach to
14254   # changing $(DEPDIR) to its actual value in the expansion.
14255   for file in `sed -n -e '
14256     /^DEP_FILES = .*\\\\$/ {
14257       s/^DEP_FILES = //
14258       :loop
14259         s/\\\\$//
14260         p
14261         n
14262         /\\\\$/ b loop
14263       p
14264     }
14265     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
14266        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14267     # Make sure the directory exists.
14268     test -f "$dirpart/$file" && continue
14269     fdir=`$as_dirname -- "$file" ||
14270 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14271          X"$file" : 'X\(//\)[^/]' \| \
14272          X"$file" : 'X\(//\)$' \| \
14273          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14274 echo X"$file" |
14275     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14276             s//\1/
14277             q
14278           }
14279           /^X\(\/\/\)[^/].*/{
14280             s//\1/
14281             q
14282           }
14283           /^X\(\/\/\)$/{
14284             s//\1/
14285             q
14286           }
14287           /^X\(\/\).*/{
14288             s//\1/
14289             q
14290           }
14291           s/.*/./; q'`
14292     { as_dir=$dirpart/$fdir
14293   case $as_dir in #(
14294   -*) as_dir=./$as_dir;;
14295   esac
14296   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14297     as_dirs=
14298     while :; do
14299       case $as_dir in #(
14300       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14301       *) as_qdir=$as_dir;;
14302       esac
14303       as_dirs="'$as_qdir' $as_dirs"
14304       as_dir=`$as_dirname -- "$as_dir" ||
14305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14306          X"$as_dir" : 'X\(//\)[^/]' \| \
14307          X"$as_dir" : 'X\(//\)$' \| \
14308          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14309 echo X"$as_dir" |
14310     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14311             s//\1/
14312             q
14313           }
14314           /^X\(\/\/\)[^/].*/{
14315             s//\1/
14316             q
14317           }
14318           /^X\(\/\/\)$/{
14319             s//\1/
14320             q
14321           }
14322           /^X\(\/\).*/{
14323             s//\1/
14324             q
14325           }
14326           s/.*/./; q'`
14327       test -d "$as_dir" && break
14328     done
14329     test -z "$as_dirs" || eval "mkdir $as_dirs"
14330   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14331 echo "$as_me: error: cannot create directory $as_dir" >&2;}
14332    { (exit 1); exit 1; }; }; }
14333     # echo "creating $dirpart/$file"
14334     echo '# dummy' > "$dirpart/$file"
14335   done
14336 done
14337  ;;
14338
14339   esac
14340 done # for ac_tag
14341
14342
14343 { (exit 0); exit 0; }
14344 _ACEOF
14345 chmod +x $CONFIG_STATUS
14346 ac_clean_files=$ac_clean_files_save
14347
14348
14349 # configure is writing to config.log, and then calls config.status.
14350 # config.status does its own redirection, appending to config.log.
14351 # Unfortunately, on DOS this fails, as config.log is still kept open
14352 # by configure, so config.status won't be able to write to it; its
14353 # output is simply discarded.  So we exec the FD to /dev/null,
14354 # effectively closing config.log, so it can be properly (re)opened and
14355 # appended to by config.status.  When coming back to configure, we
14356 # need to make the FD available again.
14357 if test "$no_create" != yes; then
14358   ac_cs_success=:
14359   ac_config_status_args=
14360   test "$silent" = yes &&
14361     ac_config_status_args="$ac_config_status_args --quiet"
14362   exec 5>/dev/null
14363   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14364   exec 5>>config.log
14365   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14366   # would make configure fail if this is the last instruction.
14367   $ac_cs_success || { (exit 1); exit 1; }
14368 fi
14369