Imported Upstream version 2.10
[debian/cpmtools] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83   as_unset=unset
84 else
85   as_unset=false
86 fi
87
88
89 # IFS
90 # We need space, tab and new line, in precisely that order.  Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" ""        $as_nl"
95
96 # Find who we are.  Look in the path if we contain no directory separator.
97 case $0 in
98   *[\\/]* ) as_myself=$0 ;;
99   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102   IFS=$as_save_IFS
103   test -z "$as_dir" && as_dir=.
104   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
107
108      ;;
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113   as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117   { (exit 1); exit 1; }
118 fi
119
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136    test "X`expr 00001 : '.*\(...\)'`" = X001; then
137   as_expr=expr
138 else
139   as_expr=false
140 fi
141
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143   as_basename=basename
144 else
145   as_basename=false
146 fi
147
148
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152          X"$0" : 'X\(//\)$' \| \
153          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155     sed '/^.*\/\([^/][^/]*\)\/*$/{
156             s//\1/
157             q
158           }
159           /^X\/\(\/\/\)$/{
160             s//\1/
161             q
162           }
163           /^X\/\(\/\).*/{
164             s//\1/
165             q
166           }
167           s/.*/./; q'`
168
169 # CDPATH.
170 $as_unset CDPATH
171
172
173 if test "x$CONFIG_SHELL" = x; then
174   if (eval ":") 2>/dev/null; then
175   as_have_required=yes
176 else
177   as_have_required=no
178 fi
179
180   if test $as_have_required = yes &&     (eval ":
181 (as_func_return () {
182   (exit \$1)
183 }
184 as_func_success () {
185   as_func_return 0
186 }
187 as_func_failure () {
188   as_func_return 1
189 }
190 as_func_ret_success () {
191   return 0
192 }
193 as_func_ret_failure () {
194   return 1
195 }
196
197 exitcode=0
198 if as_func_success; then
199   :
200 else
201   exitcode=1
202   echo as_func_success failed.
203 fi
204
205 if as_func_failure; then
206   exitcode=1
207   echo as_func_failure succeeded.
208 fi
209
210 if as_func_ret_success; then
211   :
212 else
213   exitcode=1
214   echo as_func_ret_success failed.
215 fi
216
217 if as_func_ret_failure; then
218   exitcode=1
219   echo as_func_ret_failure succeeded.
220 fi
221
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223   :
224 else
225   exitcode=1
226   echo positional parameters were not saved.
227 fi
228
229 test \$exitcode = 0) || { (exit 1); exit 1; }
230
231 (
232   as_lineno_1=\$LINENO
233   as_lineno_2=\$LINENO
234   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
237   :
238 else
239   as_candidate_shells=
240     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243   IFS=$as_save_IFS
244   test -z "$as_dir" && as_dir=.
245   case $as_dir in
246          /*)
247            for as_base in sh bash ksh sh5; do
248              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249            done;;
250        esac
251 done
252 IFS=$as_save_IFS
253
254
255       for as_shell in $as_candidate_shells $SHELL; do
256          # Try only shells that exist, to save several forks.
257          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258                 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260   emulate sh
261   NULLCMD=:
262   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263   # is contrary to our usage.  Disable this feature.
264   alias -g '${1+"$@"}'='"$@"'
265   setopt NO_GLOB_SUBST
266 else
267   case `(set -o) 2>/dev/null` in
268   *posix*) set -o posix ;;
269 esac
270
271 fi
272
273
274 :
275 _ASEOF
276 }; then
277   CONFIG_SHELL=$as_shell
278                as_have_required=yes
279                if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281   emulate sh
282   NULLCMD=:
283   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284   # is contrary to our usage.  Disable this feature.
285   alias -g '${1+"$@"}'='"$@"'
286   setopt NO_GLOB_SUBST
287 else
288   case `(set -o) 2>/dev/null` in
289   *posix*) set -o posix ;;
290 esac
291
292 fi
293
294
295 :
296 (as_func_return () {
297   (exit $1)
298 }
299 as_func_success () {
300   as_func_return 0
301 }
302 as_func_failure () {
303   as_func_return 1
304 }
305 as_func_ret_success () {
306   return 0
307 }
308 as_func_ret_failure () {
309   return 1
310 }
311
312 exitcode=0
313 if as_func_success; then
314   :
315 else
316   exitcode=1
317   echo as_func_success failed.
318 fi
319
320 if as_func_failure; then
321   exitcode=1
322   echo as_func_failure succeeded.
323 fi
324
325 if as_func_ret_success; then
326   :
327 else
328   exitcode=1
329   echo as_func_ret_success failed.
330 fi
331
332 if as_func_ret_failure; then
333   exitcode=1
334   echo as_func_ret_failure succeeded.
335 fi
336
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338   :
339 else
340   exitcode=1
341   echo positional parameters were not saved.
342 fi
343
344 test $exitcode = 0) || { (exit 1); exit 1; }
345
346 (
347   as_lineno_1=$LINENO
348   as_lineno_2=$LINENO
349   test "x$as_lineno_1" != "x$as_lineno_2" &&
350   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352 _ASEOF
353 }; then
354   break
355 fi
356
357 fi
358
359       done
360
361       if test "x$CONFIG_SHELL" != x; then
362   for as_var in BASH_ENV ENV
363         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364         done
365         export CONFIG_SHELL
366         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367 fi
368
369
370     if test $as_have_required = no; then
371   echo This script requires a shell more modern than all the
372       echo shells that I found on your system.  Please install a
373       echo modern shell, or manually run the script under such a
374       echo shell if you do have one.
375       { (exit 1); exit 1; }
376 fi
377
378
379 fi
380
381 fi
382
383
384
385 (eval "as_func_return () {
386   (exit \$1)
387 }
388 as_func_success () {
389   as_func_return 0
390 }
391 as_func_failure () {
392   as_func_return 1
393 }
394 as_func_ret_success () {
395   return 0
396 }
397 as_func_ret_failure () {
398   return 1
399 }
400
401 exitcode=0
402 if as_func_success; then
403   :
404 else
405   exitcode=1
406   echo as_func_success failed.
407 fi
408
409 if as_func_failure; then
410   exitcode=1
411   echo as_func_failure succeeded.
412 fi
413
414 if as_func_ret_success; then
415   :
416 else
417   exitcode=1
418   echo as_func_ret_success failed.
419 fi
420
421 if as_func_ret_failure; then
422   exitcode=1
423   echo as_func_ret_failure succeeded.
424 fi
425
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427   :
428 else
429   exitcode=1
430   echo positional parameters were not saved.
431 fi
432
433 test \$exitcode = 0") || {
434   echo No shell found that supports shell functions.
435   echo Please tell bug-autoconf@gnu.org about your system,
436   echo including any error possibly output before this message.
437   echo This can help us improve future autoconf versions.
438   echo Configuration will now proceed without shell functions.
439 }
440
441
442
443   as_lineno_1=$LINENO
444   as_lineno_2=$LINENO
445   test "x$as_lineno_1" != "x$as_lineno_2" &&
446   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449   # uniformly replaced by the line number.  The first 'sed' inserts a
450   # line-number line after each line using $LINENO; the second 'sed'
451   # does the real work.  The second script uses 'N' to pair each
452   # line-number line with the line containing $LINENO, and appends
453   # trailing '-' during substitution so that $LINENO is not a special
454   # case at line end.
455   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456   # scripts with optimization help from Paolo Bonzini.  Blame Lee
457   # E. McMahon (1931-1989) for sed's syntax.  :-)
458   sed -n '
459     p
460     /[$]LINENO/=
461   ' <$as_myself |
462     sed '
463       s/[$]LINENO.*/&-/
464       t lineno
465       b
466       :lineno
467       N
468       :loop
469       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470       t loop
471       s/-\n.*//
472     ' >$as_me.lineno &&
473   chmod +x "$as_me.lineno" ||
474     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475    { (exit 1); exit 1; }; }
476
477   # Don't try to exec as it changes $[0], causing all sort of problems
478   # (the dirname of $[0] is not the place where we might find the
479   # original and so on.  Autoconf is especially sensitive to this).
480   . "./$as_me.lineno"
481   # Exit status is that of the last command.
482   exit
483 }
484
485
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487   as_dirname=dirname
488 else
489   as_dirname=false
490 fi
491
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495   case `echo 'x\c'` in
496   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
497   *)   ECHO_C='\c';;
498   esac;;
499 *)
500   ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503    test "X`expr 00001 : '.*\(...\)'`" = X001; then
504   as_expr=expr
505 else
506   as_expr=false
507 fi
508
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511   rm -f conf$$.dir/conf$$.file
512 else
513   rm -f conf$$.dir
514   mkdir conf$$.dir 2>/dev/null
515 fi
516 if (echo >conf$$.file) 2>/dev/null; then
517   if ln -s conf$$.file conf$$ 2>/dev/null; then
518     as_ln_s='ln -s'
519     # ... but there are two gotchas:
520     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522     # In both cases, we have to default to `cp -p'.
523     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524       as_ln_s='cp -p'
525   elif ln conf$$.file conf$$ 2>/dev/null; then
526     as_ln_s=ln
527   else
528     as_ln_s='cp -p'
529   fi
530 else
531   as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
535
536 if mkdir -p . 2>/dev/null; then
537   as_mkdir_p=:
538 else
539   test -d ./-p && rmdir ./-p
540   as_mkdir_p=false
541 fi
542
543 if test -x / >/dev/null 2>&1; then
544   as_test_x='test -x'
545 else
546   if ls -dL / >/dev/null 2>&1; then
547     as_ls_L_option=L
548   else
549     as_ls_L_option=
550   fi
551   as_test_x='
552     eval sh -c '\''
553       if test -d "$1"; then
554         test -d "$1/.";
555       else
556         case $1 in
557         -*)set "./$1";;
558         esac;
559         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560         ???[sx]*):;;*)false;;esac;fi
561     '\'' sh
562   '
563 fi
564 as_executable_p=$as_test_x
565
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574 exec 7<&0 </dev/null 6>&1
575
576 # Name of the host.
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
581 #
582 # Initializations.
583 #
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592 SHELL=${CONFIG_SHELL-/bin/sh}
593
594 # Identity of this package.
595 PACKAGE_NAME=
596 PACKAGE_TARNAME=
597 PACKAGE_VERSION=
598 PACKAGE_STRING=
599 PACKAGE_BUGREPORT=
600
601 ac_unique_file="cpmfs.c"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
604 #include <stdio.h>
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
607 #endif
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
610 #endif
611 #ifdef STDC_HEADERS
612 # include <stdlib.h>
613 # include <stddef.h>
614 #else
615 # ifdef HAVE_STDLIB_H
616 #  include <stdlib.h>
617 # endif
618 #endif
619 #ifdef HAVE_STRING_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 #  include <memory.h>
622 # endif
623 # include <string.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
637
638 ac_subst_vars='LTLIBOBJS
639 UPDATED
640 FSED_CPM
641 DEFFORMAT
642 DISKDEFS
643 DATADIR
644 DEVICE
645 LDDEPS
646 LDLIBS
647 LIBOBJS
648 EGREP
649 GREP
650 CPP
651 INSTALL_DATA
652 INSTALL_SCRIPT
653 INSTALL_PROGRAM
654 OBJEXT
655 EXEEXT
656 ac_ct_CC
657 CPPFLAGS
658 LDFLAGS
659 CFLAGS
660 CC
661 host_os
662 host_vendor
663 host_cpu
664 host
665 build_os
666 build_vendor
667 build_cpu
668 build
669 target_alias
670 host_alias
671 build_alias
672 LIBS
673 ECHO_T
674 ECHO_N
675 ECHO_C
676 DEFS
677 mandir
678 localedir
679 libdir
680 psdir
681 pdfdir
682 dvidir
683 htmldir
684 infodir
685 docdir
686 oldincludedir
687 includedir
688 localstatedir
689 sharedstatedir
690 sysconfdir
691 datadir
692 datarootdir
693 libexecdir
694 sbindir
695 bindir
696 program_transform_name
697 prefix
698 exec_prefix
699 PACKAGE_BUGREPORT
700 PACKAGE_STRING
701 PACKAGE_VERSION
702 PACKAGE_TARNAME
703 PACKAGE_NAME
704 PATH_SEPARATOR
705 SHELL'
706 ac_subst_files=''
707 ac_user_opts='
708 enable_option_checking
709 with_diskdefs
710 with_defformat
711 with_libdsk
712 with_dmalloc
713 enable_largefile
714 '
715       ac_precious_vars='build_alias
716 host_alias
717 target_alias
718 CC
719 CFLAGS
720 LDFLAGS
721 LIBS
722 CPPFLAGS
723 CPP'
724
725
726 # Initialize some variables set by options.
727 ac_init_help=
728 ac_init_version=false
729 ac_unrecognized_opts=
730 ac_unrecognized_sep=
731 # The variables have the same names as the options, with
732 # dashes changed to underlines.
733 cache_file=/dev/null
734 exec_prefix=NONE
735 no_create=
736 no_recursion=
737 prefix=NONE
738 program_prefix=NONE
739 program_suffix=NONE
740 program_transform_name=s,x,x,
741 silent=
742 site=
743 srcdir=
744 verbose=
745 x_includes=NONE
746 x_libraries=NONE
747
748 # Installation directory options.
749 # These are left unexpanded so users can "make install exec_prefix=/foo"
750 # and all the variables that are supposed to be based on exec_prefix
751 # by default will actually change.
752 # Use braces instead of parens because sh, perl, etc. also accept them.
753 # (The list follows the same order as the GNU Coding Standards.)
754 bindir='${exec_prefix}/bin'
755 sbindir='${exec_prefix}/sbin'
756 libexecdir='${exec_prefix}/libexec'
757 datarootdir='${prefix}/share'
758 datadir='${datarootdir}'
759 sysconfdir='${prefix}/etc'
760 sharedstatedir='${prefix}/com'
761 localstatedir='${prefix}/var'
762 includedir='${prefix}/include'
763 oldincludedir='/usr/include'
764 docdir='${datarootdir}/doc/${PACKAGE}'
765 infodir='${datarootdir}/info'
766 htmldir='${docdir}'
767 dvidir='${docdir}'
768 pdfdir='${docdir}'
769 psdir='${docdir}'
770 libdir='${exec_prefix}/lib'
771 localedir='${datarootdir}/locale'
772 mandir='${datarootdir}/man'
773
774 ac_prev=
775 ac_dashdash=
776 for ac_option
777 do
778   # If the previous option needs an argument, assign it.
779   if test -n "$ac_prev"; then
780     eval $ac_prev=\$ac_option
781     ac_prev=
782     continue
783   fi
784
785   case $ac_option in
786   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
787   *)    ac_optarg=yes ;;
788   esac
789
790   # Accept the important Cygnus configure options, so we can diagnose typos.
791
792   case $ac_dashdash$ac_option in
793   --)
794     ac_dashdash=yes ;;
795
796   -bindir | --bindir | --bindi | --bind | --bin | --bi)
797     ac_prev=bindir ;;
798   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
799     bindir=$ac_optarg ;;
800
801   -build | --build | --buil | --bui | --bu)
802     ac_prev=build_alias ;;
803   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
804     build_alias=$ac_optarg ;;
805
806   -cache-file | --cache-file | --cache-fil | --cache-fi \
807   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
808     ac_prev=cache_file ;;
809   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
810   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
811     cache_file=$ac_optarg ;;
812
813   --config-cache | -C)
814     cache_file=config.cache ;;
815
816   -datadir | --datadir | --datadi | --datad)
817     ac_prev=datadir ;;
818   -datadir=* | --datadir=* | --datadi=* | --datad=*)
819     datadir=$ac_optarg ;;
820
821   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
822   | --dataroo | --dataro | --datar)
823     ac_prev=datarootdir ;;
824   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
825   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
826     datarootdir=$ac_optarg ;;
827
828   -disable-* | --disable-*)
829     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
830     # Reject names that are not valid shell variable names.
831     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
832       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
833    { (exit 1); exit 1; }; }
834     ac_useropt_orig=$ac_useropt
835     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
836     case $ac_user_opts in
837       *"
838 "enable_$ac_useropt"
839 "*) ;;
840       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
841          ac_unrecognized_sep=', ';;
842     esac
843     eval enable_$ac_useropt=no ;;
844
845   -docdir | --docdir | --docdi | --doc | --do)
846     ac_prev=docdir ;;
847   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
848     docdir=$ac_optarg ;;
849
850   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
851     ac_prev=dvidir ;;
852   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
853     dvidir=$ac_optarg ;;
854
855   -enable-* | --enable-*)
856     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
857     # Reject names that are not valid shell variable names.
858     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
859       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
860    { (exit 1); exit 1; }; }
861     ac_useropt_orig=$ac_useropt
862     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
863     case $ac_user_opts in
864       *"
865 "enable_$ac_useropt"
866 "*) ;;
867       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
868          ac_unrecognized_sep=', ';;
869     esac
870     eval enable_$ac_useropt=\$ac_optarg ;;
871
872   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
873   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
874   | --exec | --exe | --ex)
875     ac_prev=exec_prefix ;;
876   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
877   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
878   | --exec=* | --exe=* | --ex=*)
879     exec_prefix=$ac_optarg ;;
880
881   -gas | --gas | --ga | --g)
882     # Obsolete; use --with-gas.
883     with_gas=yes ;;
884
885   -help | --help | --hel | --he | -h)
886     ac_init_help=long ;;
887   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
888     ac_init_help=recursive ;;
889   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
890     ac_init_help=short ;;
891
892   -host | --host | --hos | --ho)
893     ac_prev=host_alias ;;
894   -host=* | --host=* | --hos=* | --ho=*)
895     host_alias=$ac_optarg ;;
896
897   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
898     ac_prev=htmldir ;;
899   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
900   | --ht=*)
901     htmldir=$ac_optarg ;;
902
903   -includedir | --includedir | --includedi | --included | --include \
904   | --includ | --inclu | --incl | --inc)
905     ac_prev=includedir ;;
906   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
907   | --includ=* | --inclu=* | --incl=* | --inc=*)
908     includedir=$ac_optarg ;;
909
910   -infodir | --infodir | --infodi | --infod | --info | --inf)
911     ac_prev=infodir ;;
912   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
913     infodir=$ac_optarg ;;
914
915   -libdir | --libdir | --libdi | --libd)
916     ac_prev=libdir ;;
917   -libdir=* | --libdir=* | --libdi=* | --libd=*)
918     libdir=$ac_optarg ;;
919
920   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
921   | --libexe | --libex | --libe)
922     ac_prev=libexecdir ;;
923   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
924   | --libexe=* | --libex=* | --libe=*)
925     libexecdir=$ac_optarg ;;
926
927   -localedir | --localedir | --localedi | --localed | --locale)
928     ac_prev=localedir ;;
929   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
930     localedir=$ac_optarg ;;
931
932   -localstatedir | --localstatedir | --localstatedi | --localstated \
933   | --localstate | --localstat | --localsta | --localst | --locals)
934     ac_prev=localstatedir ;;
935   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
936   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
937     localstatedir=$ac_optarg ;;
938
939   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
940     ac_prev=mandir ;;
941   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
942     mandir=$ac_optarg ;;
943
944   -nfp | --nfp | --nf)
945     # Obsolete; use --without-fp.
946     with_fp=no ;;
947
948   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
949   | --no-cr | --no-c | -n)
950     no_create=yes ;;
951
952   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
953   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
954     no_recursion=yes ;;
955
956   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
957   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
958   | --oldin | --oldi | --old | --ol | --o)
959     ac_prev=oldincludedir ;;
960   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
961   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
962   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
963     oldincludedir=$ac_optarg ;;
964
965   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
966     ac_prev=prefix ;;
967   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
968     prefix=$ac_optarg ;;
969
970   -program-prefix | --program-prefix | --program-prefi | --program-pref \
971   | --program-pre | --program-pr | --program-p)
972     ac_prev=program_prefix ;;
973   -program-prefix=* | --program-prefix=* | --program-prefi=* \
974   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
975     program_prefix=$ac_optarg ;;
976
977   -program-suffix | --program-suffix | --program-suffi | --program-suff \
978   | --program-suf | --program-su | --program-s)
979     ac_prev=program_suffix ;;
980   -program-suffix=* | --program-suffix=* | --program-suffi=* \
981   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
982     program_suffix=$ac_optarg ;;
983
984   -program-transform-name | --program-transform-name \
985   | --program-transform-nam | --program-transform-na \
986   | --program-transform-n | --program-transform- \
987   | --program-transform | --program-transfor \
988   | --program-transfo | --program-transf \
989   | --program-trans | --program-tran \
990   | --progr-tra | --program-tr | --program-t)
991     ac_prev=program_transform_name ;;
992   -program-transform-name=* | --program-transform-name=* \
993   | --program-transform-nam=* | --program-transform-na=* \
994   | --program-transform-n=* | --program-transform-=* \
995   | --program-transform=* | --program-transfor=* \
996   | --program-transfo=* | --program-transf=* \
997   | --program-trans=* | --program-tran=* \
998   | --progr-tra=* | --program-tr=* | --program-t=*)
999     program_transform_name=$ac_optarg ;;
1000
1001   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1002     ac_prev=pdfdir ;;
1003   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1004     pdfdir=$ac_optarg ;;
1005
1006   -psdir | --psdir | --psdi | --psd | --ps)
1007     ac_prev=psdir ;;
1008   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1009     psdir=$ac_optarg ;;
1010
1011   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1012   | -silent | --silent | --silen | --sile | --sil)
1013     silent=yes ;;
1014
1015   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1016     ac_prev=sbindir ;;
1017   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1018   | --sbi=* | --sb=*)
1019     sbindir=$ac_optarg ;;
1020
1021   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1022   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1023   | --sharedst | --shareds | --shared | --share | --shar \
1024   | --sha | --sh)
1025     ac_prev=sharedstatedir ;;
1026   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1027   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1028   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1029   | --sha=* | --sh=*)
1030     sharedstatedir=$ac_optarg ;;
1031
1032   -site | --site | --sit)
1033     ac_prev=site ;;
1034   -site=* | --site=* | --sit=*)
1035     site=$ac_optarg ;;
1036
1037   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1038     ac_prev=srcdir ;;
1039   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1040     srcdir=$ac_optarg ;;
1041
1042   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1043   | --syscon | --sysco | --sysc | --sys | --sy)
1044     ac_prev=sysconfdir ;;
1045   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1046   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1047     sysconfdir=$ac_optarg ;;
1048
1049   -target | --target | --targe | --targ | --tar | --ta | --t)
1050     ac_prev=target_alias ;;
1051   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1052     target_alias=$ac_optarg ;;
1053
1054   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1055     verbose=yes ;;
1056
1057   -version | --version | --versio | --versi | --vers | -V)
1058     ac_init_version=: ;;
1059
1060   -with-* | --with-*)
1061     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1062     # Reject names that are not valid shell variable names.
1063     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1064       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1065    { (exit 1); exit 1; }; }
1066     ac_useropt_orig=$ac_useropt
1067     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1068     case $ac_user_opts in
1069       *"
1070 "with_$ac_useropt"
1071 "*) ;;
1072       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1073          ac_unrecognized_sep=', ';;
1074     esac
1075     eval with_$ac_useropt=\$ac_optarg ;;
1076
1077   -without-* | --without-*)
1078     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1079     # Reject names that are not valid shell variable names.
1080     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1081       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1082    { (exit 1); exit 1; }; }
1083     ac_useropt_orig=$ac_useropt
1084     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1085     case $ac_user_opts in
1086       *"
1087 "with_$ac_useropt"
1088 "*) ;;
1089       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1090          ac_unrecognized_sep=', ';;
1091     esac
1092     eval with_$ac_useropt=no ;;
1093
1094   --x)
1095     # Obsolete; use --with-x.
1096     with_x=yes ;;
1097
1098   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1099   | --x-incl | --x-inc | --x-in | --x-i)
1100     ac_prev=x_includes ;;
1101   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1102   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1103     x_includes=$ac_optarg ;;
1104
1105   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1106   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1107     ac_prev=x_libraries ;;
1108   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1109   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1110     x_libraries=$ac_optarg ;;
1111
1112   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1113 Try \`$0 --help' for more information." >&2
1114    { (exit 1); exit 1; }; }
1115     ;;
1116
1117   *=*)
1118     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1119     # Reject names that are not valid shell variable names.
1120     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1121       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1122    { (exit 1); exit 1; }; }
1123     eval $ac_envvar=\$ac_optarg
1124     export $ac_envvar ;;
1125
1126   *)
1127     # FIXME: should be removed in autoconf 3.0.
1128     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1129     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1130       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1131     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1132     ;;
1133
1134   esac
1135 done
1136
1137 if test -n "$ac_prev"; then
1138   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1139   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1140    { (exit 1); exit 1; }; }
1141 fi
1142
1143 if test -n "$ac_unrecognized_opts"; then
1144   case $enable_option_checking in
1145     no) ;;
1146     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1147    { (exit 1); exit 1; }; } ;;
1148     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1149   esac
1150 fi
1151
1152 # Check all directory arguments for consistency.
1153 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1154                 datadir sysconfdir sharedstatedir localstatedir includedir \
1155                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1156                 libdir localedir mandir
1157 do
1158   eval ac_val=\$$ac_var
1159   # Remove trailing slashes.
1160   case $ac_val in
1161     */ )
1162       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1163       eval $ac_var=\$ac_val;;
1164   esac
1165   # Be sure to have absolute directory names.
1166   case $ac_val in
1167     [\\/$]* | ?:[\\/]* )  continue;;
1168     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1169   esac
1170   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1171    { (exit 1); exit 1; }; }
1172 done
1173
1174 # There might be people who depend on the old broken behavior: `$host'
1175 # used to hold the argument of --host etc.
1176 # FIXME: To remove some day.
1177 build=$build_alias
1178 host=$host_alias
1179 target=$target_alias
1180
1181 # FIXME: To remove some day.
1182 if test "x$host_alias" != x; then
1183   if test "x$build_alias" = x; then
1184     cross_compiling=maybe
1185     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1186     If a cross compiler is detected then cross compile mode will be used." >&2
1187   elif test "x$build_alias" != "x$host_alias"; then
1188     cross_compiling=yes
1189   fi
1190 fi
1191
1192 ac_tool_prefix=
1193 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1194
1195 test "$silent" = yes && exec 6>/dev/null
1196
1197
1198 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1199 ac_ls_di=`ls -di .` &&
1200 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1201   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1202    { (exit 1); exit 1; }; }
1203 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1204   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1205    { (exit 1); exit 1; }; }
1206
1207
1208 # Find the source files, if location was not specified.
1209 if test -z "$srcdir"; then
1210   ac_srcdir_defaulted=yes
1211   # Try the directory containing this script, then the parent directory.
1212   ac_confdir=`$as_dirname -- "$as_myself" ||
1213 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1214          X"$as_myself" : 'X\(//\)[^/]' \| \
1215          X"$as_myself" : 'X\(//\)$' \| \
1216          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1217 $as_echo X"$as_myself" |
1218     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1219             s//\1/
1220             q
1221           }
1222           /^X\(\/\/\)[^/].*/{
1223             s//\1/
1224             q
1225           }
1226           /^X\(\/\/\)$/{
1227             s//\1/
1228             q
1229           }
1230           /^X\(\/\).*/{
1231             s//\1/
1232             q
1233           }
1234           s/.*/./; q'`
1235   srcdir=$ac_confdir
1236   if test ! -r "$srcdir/$ac_unique_file"; then
1237     srcdir=..
1238   fi
1239 else
1240   ac_srcdir_defaulted=no
1241 fi
1242 if test ! -r "$srcdir/$ac_unique_file"; then
1243   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1244   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1245    { (exit 1); exit 1; }; }
1246 fi
1247 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1248 ac_abs_confdir=`(
1249         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1250    { (exit 1); exit 1; }; }
1251         pwd)`
1252 # When building in place, set srcdir=.
1253 if test "$ac_abs_confdir" = "$ac_pwd"; then
1254   srcdir=.
1255 fi
1256 # Remove unnecessary trailing slashes from srcdir.
1257 # Double slashes in file names in object file debugging info
1258 # mess up M-x gdb in Emacs.
1259 case $srcdir in
1260 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1261 esac
1262 for ac_var in $ac_precious_vars; do
1263   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1264   eval ac_env_${ac_var}_value=\$${ac_var}
1265   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1266   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1267 done
1268
1269 #
1270 # Report the --help message.
1271 #
1272 if test "$ac_init_help" = "long"; then
1273   # Omit some internal or obsolete options to make the list less imposing.
1274   # This message is too long to be a string in the A/UX 3.1 sh.
1275   cat <<_ACEOF
1276 \`configure' configures this package to adapt to many kinds of systems.
1277
1278 Usage: $0 [OPTION]... [VAR=VALUE]...
1279
1280 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1281 VAR=VALUE.  See below for descriptions of some of the useful variables.
1282
1283 Defaults for the options are specified in brackets.
1284
1285 Configuration:
1286   -h, --help              display this help and exit
1287       --help=short        display options specific to this package
1288       --help=recursive    display the short help of all the included packages
1289   -V, --version           display version information and exit
1290   -q, --quiet, --silent   do not print \`checking...' messages
1291       --cache-file=FILE   cache test results in FILE [disabled]
1292   -C, --config-cache      alias for \`--cache-file=config.cache'
1293   -n, --no-create         do not create output files
1294       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1295
1296 Installation directories:
1297   --prefix=PREFIX         install architecture-independent files in PREFIX
1298                           [$ac_default_prefix]
1299   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1300                           [PREFIX]
1301
1302 By default, \`make install' will install all the files in
1303 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1304 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1305 for instance \`--prefix=\$HOME'.
1306
1307 For better control, use the options below.
1308
1309 Fine tuning of the installation directories:
1310   --bindir=DIR            user executables [EPREFIX/bin]
1311   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1312   --libexecdir=DIR        program executables [EPREFIX/libexec]
1313   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1314   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1315   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1316   --libdir=DIR            object code libraries [EPREFIX/lib]
1317   --includedir=DIR        C header files [PREFIX/include]
1318   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1319   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1320   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1321   --infodir=DIR           info documentation [DATAROOTDIR/info]
1322   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1323   --mandir=DIR            man documentation [DATAROOTDIR/man]
1324   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1325   --htmldir=DIR           html documentation [DOCDIR]
1326   --dvidir=DIR            dvi documentation [DOCDIR]
1327   --pdfdir=DIR            pdf documentation [DOCDIR]
1328   --psdir=DIR             ps documentation [DOCDIR]
1329 _ACEOF
1330
1331   cat <<\_ACEOF
1332
1333 System types:
1334   --build=BUILD     configure for building on BUILD [guessed]
1335   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1336 _ACEOF
1337 fi
1338
1339 if test -n "$ac_init_help"; then
1340
1341   cat <<\_ACEOF
1342
1343 Optional Features:
1344   --disable-option-checking  ignore unrecognized --enable/--with options
1345   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1346   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1347   --disable-largefile     omit support for large files
1348
1349 Optional Packages:
1350   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1351   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1352   --with-diskdefs         Specify diskdefs location
1353   --with-defformat        Specify default format (ibm-3740)
1354   --with-libdsk           Specify path to libdsk library
1355   --with-dmalloc          Specify path to dmalloc library
1356
1357 Some influential environment variables:
1358   CC          C compiler command
1359   CFLAGS      C compiler flags
1360   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1361               nonstandard directory <lib dir>
1362   LIBS        libraries to pass to the linker, e.g. -l<library>
1363   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1364               you have headers in a nonstandard directory <include dir>
1365   CPP         C preprocessor
1366
1367 Use these variables to override the choices made by `configure' or to help
1368 it to find libraries and programs with nonstandard names/locations.
1369
1370 _ACEOF
1371 ac_status=$?
1372 fi
1373
1374 if test "$ac_init_help" = "recursive"; then
1375   # If there are subdirs, report their specific --help.
1376   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1377     test -d "$ac_dir" ||
1378       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1379       continue
1380     ac_builddir=.
1381
1382 case "$ac_dir" in
1383 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1384 *)
1385   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1386   # A ".." for each directory in $ac_dir_suffix.
1387   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1388   case $ac_top_builddir_sub in
1389   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1390   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1391   esac ;;
1392 esac
1393 ac_abs_top_builddir=$ac_pwd
1394 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1395 # for backward compatibility:
1396 ac_top_builddir=$ac_top_build_prefix
1397
1398 case $srcdir in
1399   .)  # We are building in place.
1400     ac_srcdir=.
1401     ac_top_srcdir=$ac_top_builddir_sub
1402     ac_abs_top_srcdir=$ac_pwd ;;
1403   [\\/]* | ?:[\\/]* )  # Absolute name.
1404     ac_srcdir=$srcdir$ac_dir_suffix;
1405     ac_top_srcdir=$srcdir
1406     ac_abs_top_srcdir=$srcdir ;;
1407   *) # Relative name.
1408     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1409     ac_top_srcdir=$ac_top_build_prefix$srcdir
1410     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1411 esac
1412 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1413
1414     cd "$ac_dir" || { ac_status=$?; continue; }
1415     # Check for guested configure.
1416     if test -f "$ac_srcdir/configure.gnu"; then
1417       echo &&
1418       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1419     elif test -f "$ac_srcdir/configure"; then
1420       echo &&
1421       $SHELL "$ac_srcdir/configure" --help=recursive
1422     else
1423       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1424     fi || ac_status=$?
1425     cd "$ac_pwd" || { ac_status=$?; break; }
1426   done
1427 fi
1428
1429 test -n "$ac_init_help" && exit $ac_status
1430 if $ac_init_version; then
1431   cat <<\_ACEOF
1432 configure
1433 generated by GNU Autoconf 2.63
1434
1435 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1436 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1437 This configure script is free software; the Free Software Foundation
1438 gives unlimited permission to copy, distribute and modify it.
1439 _ACEOF
1440   exit
1441 fi
1442 cat >config.log <<_ACEOF
1443 This file contains any messages produced by compilers while
1444 running configure, to aid debugging if configure makes a mistake.
1445
1446 It was created by $as_me, which was
1447 generated by GNU Autoconf 2.63.  Invocation command line was
1448
1449   $ $0 $@
1450
1451 _ACEOF
1452 exec 5>>config.log
1453 {
1454 cat <<_ASUNAME
1455 ## --------- ##
1456 ## Platform. ##
1457 ## --------- ##
1458
1459 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1460 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1461 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1462 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1463 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1464
1465 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1466 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1467
1468 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1469 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1470 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1471 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1472 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1473 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1474 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1475
1476 _ASUNAME
1477
1478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1479 for as_dir in $PATH
1480 do
1481   IFS=$as_save_IFS
1482   test -z "$as_dir" && as_dir=.
1483   $as_echo "PATH: $as_dir"
1484 done
1485 IFS=$as_save_IFS
1486
1487 } >&5
1488
1489 cat >&5 <<_ACEOF
1490
1491
1492 ## ----------- ##
1493 ## Core tests. ##
1494 ## ----------- ##
1495
1496 _ACEOF
1497
1498
1499 # Keep a trace of the command line.
1500 # Strip out --no-create and --no-recursion so they do not pile up.
1501 # Strip out --silent because we don't want to record it for future runs.
1502 # Also quote any args containing shell meta-characters.
1503 # Make two passes to allow for proper duplicate-argument suppression.
1504 ac_configure_args=
1505 ac_configure_args0=
1506 ac_configure_args1=
1507 ac_must_keep_next=false
1508 for ac_pass in 1 2
1509 do
1510   for ac_arg
1511   do
1512     case $ac_arg in
1513     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1514     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1515     | -silent | --silent | --silen | --sile | --sil)
1516       continue ;;
1517     *\'*)
1518       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1519     esac
1520     case $ac_pass in
1521     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1522     2)
1523       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1524       if test $ac_must_keep_next = true; then
1525         ac_must_keep_next=false # Got value, back to normal.
1526       else
1527         case $ac_arg in
1528           *=* | --config-cache | -C | -disable-* | --disable-* \
1529           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1530           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1531           | -with-* | --with-* | -without-* | --without-* | --x)
1532             case "$ac_configure_args0 " in
1533               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1534             esac
1535             ;;
1536           -* ) ac_must_keep_next=true ;;
1537         esac
1538       fi
1539       ac_configure_args="$ac_configure_args '$ac_arg'"
1540       ;;
1541     esac
1542   done
1543 done
1544 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1545 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1546
1547 # When interrupted or exit'd, cleanup temporary files, and complete
1548 # config.log.  We remove comments because anyway the quotes in there
1549 # would cause problems or look ugly.
1550 # WARNING: Use '\'' to represent an apostrophe within the trap.
1551 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1552 trap 'exit_status=$?
1553   # Save into config.log some information that might help in debugging.
1554   {
1555     echo
1556
1557     cat <<\_ASBOX
1558 ## ---------------- ##
1559 ## Cache variables. ##
1560 ## ---------------- ##
1561 _ASBOX
1562     echo
1563     # The following way of writing the cache mishandles newlines in values,
1564 (
1565   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1566     eval ac_val=\$$ac_var
1567     case $ac_val in #(
1568     *${as_nl}*)
1569       case $ac_var in #(
1570       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1571 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1572       esac
1573       case $ac_var in #(
1574       _ | IFS | as_nl) ;; #(
1575       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1576       *) $as_unset $ac_var ;;
1577       esac ;;
1578     esac
1579   done
1580   (set) 2>&1 |
1581     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1582     *${as_nl}ac_space=\ *)
1583       sed -n \
1584         "s/'\''/'\''\\\\'\'''\''/g;
1585           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1586       ;; #(
1587     *)
1588       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1589       ;;
1590     esac |
1591     sort
1592 )
1593     echo
1594
1595     cat <<\_ASBOX
1596 ## ----------------- ##
1597 ## Output variables. ##
1598 ## ----------------- ##
1599 _ASBOX
1600     echo
1601     for ac_var in $ac_subst_vars
1602     do
1603       eval ac_val=\$$ac_var
1604       case $ac_val in
1605       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1606       esac
1607       $as_echo "$ac_var='\''$ac_val'\''"
1608     done | sort
1609     echo
1610
1611     if test -n "$ac_subst_files"; then
1612       cat <<\_ASBOX
1613 ## ------------------- ##
1614 ## File substitutions. ##
1615 ## ------------------- ##
1616 _ASBOX
1617       echo
1618       for ac_var in $ac_subst_files
1619       do
1620         eval ac_val=\$$ac_var
1621         case $ac_val in
1622         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1623         esac
1624         $as_echo "$ac_var='\''$ac_val'\''"
1625       done | sort
1626       echo
1627     fi
1628
1629     if test -s confdefs.h; then
1630       cat <<\_ASBOX
1631 ## ----------- ##
1632 ## confdefs.h. ##
1633 ## ----------- ##
1634 _ASBOX
1635       echo
1636       cat confdefs.h
1637       echo
1638     fi
1639     test "$ac_signal" != 0 &&
1640       $as_echo "$as_me: caught signal $ac_signal"
1641     $as_echo "$as_me: exit $exit_status"
1642   } >&5
1643   rm -f core *.core core.conftest.* &&
1644     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1645     exit $exit_status
1646 ' 0
1647 for ac_signal in 1 2 13 15; do
1648   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1649 done
1650 ac_signal=0
1651
1652 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1653 rm -f -r conftest* confdefs.h
1654
1655 # Predefined preprocessor variables.
1656
1657 cat >>confdefs.h <<_ACEOF
1658 #define PACKAGE_NAME "$PACKAGE_NAME"
1659 _ACEOF
1660
1661
1662 cat >>confdefs.h <<_ACEOF
1663 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1664 _ACEOF
1665
1666
1667 cat >>confdefs.h <<_ACEOF
1668 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1669 _ACEOF
1670
1671
1672 cat >>confdefs.h <<_ACEOF
1673 #define PACKAGE_STRING "$PACKAGE_STRING"
1674 _ACEOF
1675
1676
1677 cat >>confdefs.h <<_ACEOF
1678 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1679 _ACEOF
1680
1681
1682 # Let the site file select an alternate cache file if it wants to.
1683 # Prefer an explicitly selected file to automatically selected ones.
1684 ac_site_file1=NONE
1685 ac_site_file2=NONE
1686 if test -n "$CONFIG_SITE"; then
1687   ac_site_file1=$CONFIG_SITE
1688 elif test "x$prefix" != xNONE; then
1689   ac_site_file1=$prefix/share/config.site
1690   ac_site_file2=$prefix/etc/config.site
1691 else
1692   ac_site_file1=$ac_default_prefix/share/config.site
1693   ac_site_file2=$ac_default_prefix/etc/config.site
1694 fi
1695 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1696 do
1697   test "x$ac_site_file" = xNONE && continue
1698   if test -r "$ac_site_file"; then
1699     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1700 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1701     sed 's/^/| /' "$ac_site_file" >&5
1702     . "$ac_site_file"
1703   fi
1704 done
1705
1706 if test -r "$cache_file"; then
1707   # Some versions of bash will fail to source /dev/null (special
1708   # files actually), so we avoid doing that.
1709   if test -f "$cache_file"; then
1710     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1711 $as_echo "$as_me: loading cache $cache_file" >&6;}
1712     case $cache_file in
1713       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1714       *)                      . "./$cache_file";;
1715     esac
1716   fi
1717 else
1718   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1719 $as_echo "$as_me: creating cache $cache_file" >&6;}
1720   >$cache_file
1721 fi
1722
1723 # Check that the precious variables saved in the cache have kept the same
1724 # value.
1725 ac_cache_corrupted=false
1726 for ac_var in $ac_precious_vars; do
1727   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1728   eval ac_new_set=\$ac_env_${ac_var}_set
1729   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1730   eval ac_new_val=\$ac_env_${ac_var}_value
1731   case $ac_old_set,$ac_new_set in
1732     set,)
1733       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1734 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1735       ac_cache_corrupted=: ;;
1736     ,set)
1737       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1738 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1739       ac_cache_corrupted=: ;;
1740     ,);;
1741     *)
1742       if test "x$ac_old_val" != "x$ac_new_val"; then
1743         # differences in whitespace do not lead to failure.
1744         ac_old_val_w=`echo x $ac_old_val`
1745         ac_new_val_w=`echo x $ac_new_val`
1746         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1747           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1748 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1749           ac_cache_corrupted=:
1750         else
1751           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1752 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1753           eval $ac_var=\$ac_old_val
1754         fi
1755         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1756 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1757         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1758 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1759       fi;;
1760   esac
1761   # Pass precious variables to config.status.
1762   if test "$ac_new_set" = set; then
1763     case $ac_new_val in
1764     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1765     *) ac_arg=$ac_var=$ac_new_val ;;
1766     esac
1767     case " $ac_configure_args " in
1768       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1769       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1770     esac
1771   fi
1772 done
1773 if $ac_cache_corrupted; then
1774   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1775 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1776   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1777 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1778   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1779 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1780    { (exit 1); exit 1; }; }
1781 fi
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799 ac_ext=c
1800 ac_cpp='$CPP $CPPFLAGS'
1801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1804
1805
1806 ac_config_headers="$ac_config_headers config.h"
1807
1808 ac_aux_dir=
1809 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1810   if test -f "$ac_dir/install-sh"; then
1811     ac_aux_dir=$ac_dir
1812     ac_install_sh="$ac_aux_dir/install-sh -c"
1813     break
1814   elif test -f "$ac_dir/install.sh"; then
1815     ac_aux_dir=$ac_dir
1816     ac_install_sh="$ac_aux_dir/install.sh -c"
1817     break
1818   elif test -f "$ac_dir/shtool"; then
1819     ac_aux_dir=$ac_dir
1820     ac_install_sh="$ac_aux_dir/shtool install -c"
1821     break
1822   fi
1823 done
1824 if test -z "$ac_aux_dir"; then
1825   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1826 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1827    { (exit 1); exit 1; }; }
1828 fi
1829
1830 # These three variables are undocumented and unsupported,
1831 # and are intended to be withdrawn in a future Autoconf release.
1832 # They can cause serious problems if a builder's source tree is in a directory
1833 # whose full name contains unusual characters.
1834 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1835 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1836 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1837
1838
1839 # Make sure we can run config.sub.
1840 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1841   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1842 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1843    { (exit 1); exit 1; }; }
1844
1845 { $as_echo "$as_me:$LINENO: checking build system type" >&5
1846 $as_echo_n "checking build system type... " >&6; }
1847 if test "${ac_cv_build+set}" = set; then
1848   $as_echo_n "(cached) " >&6
1849 else
1850   ac_build_alias=$build_alias
1851 test "x$ac_build_alias" = x &&
1852   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1853 test "x$ac_build_alias" = x &&
1854   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1855 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1856    { (exit 1); exit 1; }; }
1857 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1858   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1859 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1860    { (exit 1); exit 1; }; }
1861
1862 fi
1863 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1864 $as_echo "$ac_cv_build" >&6; }
1865 case $ac_cv_build in
1866 *-*-*) ;;
1867 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1868 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
1869    { (exit 1); exit 1; }; };;
1870 esac
1871 build=$ac_cv_build
1872 ac_save_IFS=$IFS; IFS='-'
1873 set x $ac_cv_build
1874 shift
1875 build_cpu=$1
1876 build_vendor=$2
1877 shift; shift
1878 # Remember, the first character of IFS is used to create $*,
1879 # except with old shells:
1880 build_os=$*
1881 IFS=$ac_save_IFS
1882 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1883
1884
1885 { $as_echo "$as_me:$LINENO: checking host system type" >&5
1886 $as_echo_n "checking host system type... " >&6; }
1887 if test "${ac_cv_host+set}" = set; then
1888   $as_echo_n "(cached) " >&6
1889 else
1890   if test "x$host_alias" = x; then
1891   ac_cv_host=$ac_cv_build
1892 else
1893   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1894     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1895 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1896    { (exit 1); exit 1; }; }
1897 fi
1898
1899 fi
1900 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1901 $as_echo "$ac_cv_host" >&6; }
1902 case $ac_cv_host in
1903 *-*-*) ;;
1904 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1905 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
1906    { (exit 1); exit 1; }; };;
1907 esac
1908 host=$ac_cv_host
1909 ac_save_IFS=$IFS; IFS='-'
1910 set x $ac_cv_host
1911 shift
1912 host_cpu=$1
1913 host_vendor=$2
1914 shift; shift
1915 # Remember, the first character of IFS is used to create $*,
1916 # except with old shells:
1917 host_os=$*
1918 IFS=$ac_save_IFS
1919 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1920
1921
1922 VERSION=2.10
1923 UPDATED='July 6, 2009'
1924
1925 DEVICE="posix"
1926
1927 if test "$prefix" = NONE
1928 then
1929   case $host in
1930     *-linux-*)
1931     ;;
1932   esac
1933 fi
1934
1935 ac_ext=c
1936 ac_cpp='$CPP $CPPFLAGS'
1937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1940 if test -n "$ac_tool_prefix"; then
1941   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1942 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1943 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1944 $as_echo_n "checking for $ac_word... " >&6; }
1945 if test "${ac_cv_prog_CC+set}" = set; then
1946   $as_echo_n "(cached) " >&6
1947 else
1948   if test -n "$CC"; then
1949   ac_cv_prog_CC="$CC" # Let the user override the test.
1950 else
1951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1952 for as_dir in $PATH
1953 do
1954   IFS=$as_save_IFS
1955   test -z "$as_dir" && as_dir=.
1956   for ac_exec_ext in '' $ac_executable_extensions; do
1957   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1958     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1959     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1960     break 2
1961   fi
1962 done
1963 done
1964 IFS=$as_save_IFS
1965
1966 fi
1967 fi
1968 CC=$ac_cv_prog_CC
1969 if test -n "$CC"; then
1970   { $as_echo "$as_me:$LINENO: result: $CC" >&5
1971 $as_echo "$CC" >&6; }
1972 else
1973   { $as_echo "$as_me:$LINENO: result: no" >&5
1974 $as_echo "no" >&6; }
1975 fi
1976
1977
1978 fi
1979 if test -z "$ac_cv_prog_CC"; then
1980   ac_ct_CC=$CC
1981   # Extract the first word of "gcc", so it can be a program name with args.
1982 set dummy gcc; ac_word=$2
1983 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1984 $as_echo_n "checking for $ac_word... " >&6; }
1985 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1986   $as_echo_n "(cached) " >&6
1987 else
1988   if test -n "$ac_ct_CC"; then
1989   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1990 else
1991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1992 for as_dir in $PATH
1993 do
1994   IFS=$as_save_IFS
1995   test -z "$as_dir" && as_dir=.
1996   for ac_exec_ext in '' $ac_executable_extensions; do
1997   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1998     ac_cv_prog_ac_ct_CC="gcc"
1999     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2000     break 2
2001   fi
2002 done
2003 done
2004 IFS=$as_save_IFS
2005
2006 fi
2007 fi
2008 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2009 if test -n "$ac_ct_CC"; then
2010   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2011 $as_echo "$ac_ct_CC" >&6; }
2012 else
2013   { $as_echo "$as_me:$LINENO: result: no" >&5
2014 $as_echo "no" >&6; }
2015 fi
2016
2017   if test "x$ac_ct_CC" = x; then
2018     CC=""
2019   else
2020     case $cross_compiling:$ac_tool_warned in
2021 yes:)
2022 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2023 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2024 ac_tool_warned=yes ;;
2025 esac
2026     CC=$ac_ct_CC
2027   fi
2028 else
2029   CC="$ac_cv_prog_CC"
2030 fi
2031
2032 if test -z "$CC"; then
2033           if test -n "$ac_tool_prefix"; then
2034     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2035 set dummy ${ac_tool_prefix}cc; ac_word=$2
2036 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2037 $as_echo_n "checking for $ac_word... " >&6; }
2038 if test "${ac_cv_prog_CC+set}" = set; then
2039   $as_echo_n "(cached) " >&6
2040 else
2041   if test -n "$CC"; then
2042   ac_cv_prog_CC="$CC" # Let the user override the test.
2043 else
2044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2045 for as_dir in $PATH
2046 do
2047   IFS=$as_save_IFS
2048   test -z "$as_dir" && as_dir=.
2049   for ac_exec_ext in '' $ac_executable_extensions; do
2050   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2051     ac_cv_prog_CC="${ac_tool_prefix}cc"
2052     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2053     break 2
2054   fi
2055 done
2056 done
2057 IFS=$as_save_IFS
2058
2059 fi
2060 fi
2061 CC=$ac_cv_prog_CC
2062 if test -n "$CC"; then
2063   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2064 $as_echo "$CC" >&6; }
2065 else
2066   { $as_echo "$as_me:$LINENO: result: no" >&5
2067 $as_echo "no" >&6; }
2068 fi
2069
2070
2071   fi
2072 fi
2073 if test -z "$CC"; then
2074   # Extract the first word of "cc", so it can be a program name with args.
2075 set dummy cc; ac_word=$2
2076 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2077 $as_echo_n "checking for $ac_word... " >&6; }
2078 if test "${ac_cv_prog_CC+set}" = set; then
2079   $as_echo_n "(cached) " >&6
2080 else
2081   if test -n "$CC"; then
2082   ac_cv_prog_CC="$CC" # Let the user override the test.
2083 else
2084   ac_prog_rejected=no
2085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2086 for as_dir in $PATH
2087 do
2088   IFS=$as_save_IFS
2089   test -z "$as_dir" && as_dir=.
2090   for ac_exec_ext in '' $ac_executable_extensions; do
2091   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2092     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2093        ac_prog_rejected=yes
2094        continue
2095      fi
2096     ac_cv_prog_CC="cc"
2097     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2098     break 2
2099   fi
2100 done
2101 done
2102 IFS=$as_save_IFS
2103
2104 if test $ac_prog_rejected = yes; then
2105   # We found a bogon in the path, so make sure we never use it.
2106   set dummy $ac_cv_prog_CC
2107   shift
2108   if test $# != 0; then
2109     # We chose a different compiler from the bogus one.
2110     # However, it has the same basename, so the bogon will be chosen
2111     # first if we set CC to just the basename; use the full file name.
2112     shift
2113     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2114   fi
2115 fi
2116 fi
2117 fi
2118 CC=$ac_cv_prog_CC
2119 if test -n "$CC"; then
2120   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2121 $as_echo "$CC" >&6; }
2122 else
2123   { $as_echo "$as_me:$LINENO: result: no" >&5
2124 $as_echo "no" >&6; }
2125 fi
2126
2127
2128 fi
2129 if test -z "$CC"; then
2130   if test -n "$ac_tool_prefix"; then
2131   for ac_prog in cl.exe
2132   do
2133     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2134 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2135 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2136 $as_echo_n "checking for $ac_word... " >&6; }
2137 if test "${ac_cv_prog_CC+set}" = set; then
2138   $as_echo_n "(cached) " >&6
2139 else
2140   if test -n "$CC"; then
2141   ac_cv_prog_CC="$CC" # Let the user override the test.
2142 else
2143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2144 for as_dir in $PATH
2145 do
2146   IFS=$as_save_IFS
2147   test -z "$as_dir" && as_dir=.
2148   for ac_exec_ext in '' $ac_executable_extensions; do
2149   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2150     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2151     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2152     break 2
2153   fi
2154 done
2155 done
2156 IFS=$as_save_IFS
2157
2158 fi
2159 fi
2160 CC=$ac_cv_prog_CC
2161 if test -n "$CC"; then
2162   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2163 $as_echo "$CC" >&6; }
2164 else
2165   { $as_echo "$as_me:$LINENO: result: no" >&5
2166 $as_echo "no" >&6; }
2167 fi
2168
2169
2170     test -n "$CC" && break
2171   done
2172 fi
2173 if test -z "$CC"; then
2174   ac_ct_CC=$CC
2175   for ac_prog in cl.exe
2176 do
2177   # Extract the first word of "$ac_prog", so it can be a program name with args.
2178 set dummy $ac_prog; ac_word=$2
2179 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2180 $as_echo_n "checking for $ac_word... " >&6; }
2181 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2182   $as_echo_n "(cached) " >&6
2183 else
2184   if test -n "$ac_ct_CC"; then
2185   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2186 else
2187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2188 for as_dir in $PATH
2189 do
2190   IFS=$as_save_IFS
2191   test -z "$as_dir" && as_dir=.
2192   for ac_exec_ext in '' $ac_executable_extensions; do
2193   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2194     ac_cv_prog_ac_ct_CC="$ac_prog"
2195     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2196     break 2
2197   fi
2198 done
2199 done
2200 IFS=$as_save_IFS
2201
2202 fi
2203 fi
2204 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2205 if test -n "$ac_ct_CC"; then
2206   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2207 $as_echo "$ac_ct_CC" >&6; }
2208 else
2209   { $as_echo "$as_me:$LINENO: result: no" >&5
2210 $as_echo "no" >&6; }
2211 fi
2212
2213
2214   test -n "$ac_ct_CC" && break
2215 done
2216
2217   if test "x$ac_ct_CC" = x; then
2218     CC=""
2219   else
2220     case $cross_compiling:$ac_tool_warned in
2221 yes:)
2222 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2224 ac_tool_warned=yes ;;
2225 esac
2226     CC=$ac_ct_CC
2227   fi
2228 fi
2229
2230 fi
2231
2232
2233 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2234 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2235 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2236 See \`config.log' for more details." >&5
2237 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2238 See \`config.log' for more details." >&2;}
2239    { (exit 1); exit 1; }; }; }
2240
2241 # Provide some information about the compiler.
2242 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2243 set X $ac_compile
2244 ac_compiler=$2
2245 { (ac_try="$ac_compiler --version >&5"
2246 case "(($ac_try" in
2247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2248   *) ac_try_echo=$ac_try;;
2249 esac
2250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2251 $as_echo "$ac_try_echo") >&5
2252   (eval "$ac_compiler --version >&5") 2>&5
2253   ac_status=$?
2254   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255   (exit $ac_status); }
2256 { (ac_try="$ac_compiler -v >&5"
2257 case "(($ac_try" in
2258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2259   *) ac_try_echo=$ac_try;;
2260 esac
2261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2262 $as_echo "$ac_try_echo") >&5
2263   (eval "$ac_compiler -v >&5") 2>&5
2264   ac_status=$?
2265   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266   (exit $ac_status); }
2267 { (ac_try="$ac_compiler -V >&5"
2268 case "(($ac_try" in
2269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2270   *) ac_try_echo=$ac_try;;
2271 esac
2272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2273 $as_echo "$ac_try_echo") >&5
2274   (eval "$ac_compiler -V >&5") 2>&5
2275   ac_status=$?
2276   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277   (exit $ac_status); }
2278
2279 cat >conftest.$ac_ext <<_ACEOF
2280 /* confdefs.h.  */
2281 _ACEOF
2282 cat confdefs.h >>conftest.$ac_ext
2283 cat >>conftest.$ac_ext <<_ACEOF
2284 /* end confdefs.h.  */
2285
2286 int
2287 main ()
2288 {
2289
2290   ;
2291   return 0;
2292 }
2293 _ACEOF
2294 ac_clean_files_save=$ac_clean_files
2295 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2296 # Try to create an executable without -o first, disregard a.out.
2297 # It will help us diagnose broken compilers, and finding out an intuition
2298 # of exeext.
2299 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2300 $as_echo_n "checking for C compiler default output file name... " >&6; }
2301 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2302
2303 # The possible output files:
2304 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2305
2306 ac_rmfiles=
2307 for ac_file in $ac_files
2308 do
2309   case $ac_file in
2310     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2311     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2312   esac
2313 done
2314 rm -f $ac_rmfiles
2315
2316 if { (ac_try="$ac_link_default"
2317 case "(($ac_try" in
2318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2319   *) ac_try_echo=$ac_try;;
2320 esac
2321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2322 $as_echo "$ac_try_echo") >&5
2323   (eval "$ac_link_default") 2>&5
2324   ac_status=$?
2325   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326   (exit $ac_status); }; then
2327   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2328 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2329 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2330 # so that the user can short-circuit this test for compilers unknown to
2331 # Autoconf.
2332 for ac_file in $ac_files ''
2333 do
2334   test -f "$ac_file" || continue
2335   case $ac_file in
2336     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2337         ;;
2338     [ab].out )
2339         # We found the default executable, but exeext='' is most
2340         # certainly right.
2341         break;;
2342     *.* )
2343         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2344         then :; else
2345            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2346         fi
2347         # We set ac_cv_exeext here because the later test for it is not
2348         # safe: cross compilers may not add the suffix if given an `-o'
2349         # argument, so we may need to know it at that point already.
2350         # Even if this section looks crufty: it has the advantage of
2351         # actually working.
2352         break;;
2353     * )
2354         break;;
2355   esac
2356 done
2357 test "$ac_cv_exeext" = no && ac_cv_exeext=
2358
2359 else
2360   ac_file=''
2361 fi
2362
2363 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2364 $as_echo "$ac_file" >&6; }
2365 if test -z "$ac_file"; then
2366   $as_echo "$as_me: failed program was:" >&5
2367 sed 's/^/| /' conftest.$ac_ext >&5
2368
2369 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2370 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2371 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2372 See \`config.log' for more details." >&5
2373 $as_echo "$as_me: error: C compiler cannot create executables
2374 See \`config.log' for more details." >&2;}
2375    { (exit 77); exit 77; }; }; }
2376 fi
2377
2378 ac_exeext=$ac_cv_exeext
2379
2380 # Check that the compiler produces executables we can run.  If not, either
2381 # the compiler is broken, or we cross compile.
2382 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2383 $as_echo_n "checking whether the C compiler works... " >&6; }
2384 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2385 # If not cross compiling, check that we can run a simple program.
2386 if test "$cross_compiling" != yes; then
2387   if { ac_try='./$ac_file'
2388   { (case "(($ac_try" in
2389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2390   *) ac_try_echo=$ac_try;;
2391 esac
2392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2393 $as_echo "$ac_try_echo") >&5
2394   (eval "$ac_try") 2>&5
2395   ac_status=$?
2396   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397   (exit $ac_status); }; }; then
2398     cross_compiling=no
2399   else
2400     if test "$cross_compiling" = maybe; then
2401         cross_compiling=yes
2402     else
2403         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2404 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2405 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2406 If you meant to cross compile, use \`--host'.
2407 See \`config.log' for more details." >&5
2408 $as_echo "$as_me: error: cannot run C compiled programs.
2409 If you meant to cross compile, use \`--host'.
2410 See \`config.log' for more details." >&2;}
2411    { (exit 1); exit 1; }; }; }
2412     fi
2413   fi
2414 fi
2415 { $as_echo "$as_me:$LINENO: result: yes" >&5
2416 $as_echo "yes" >&6; }
2417
2418 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2419 ac_clean_files=$ac_clean_files_save
2420 # Check that the compiler produces executables we can run.  If not, either
2421 # the compiler is broken, or we cross compile.
2422 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2423 $as_echo_n "checking whether we are cross compiling... " >&6; }
2424 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2425 $as_echo "$cross_compiling" >&6; }
2426
2427 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2428 $as_echo_n "checking for suffix of executables... " >&6; }
2429 if { (ac_try="$ac_link"
2430 case "(($ac_try" in
2431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2432   *) ac_try_echo=$ac_try;;
2433 esac
2434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2435 $as_echo "$ac_try_echo") >&5
2436   (eval "$ac_link") 2>&5
2437   ac_status=$?
2438   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439   (exit $ac_status); }; then
2440   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2441 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2442 # work properly (i.e., refer to `conftest.exe'), while it won't with
2443 # `rm'.
2444 for ac_file in conftest.exe conftest conftest.*; do
2445   test -f "$ac_file" || continue
2446   case $ac_file in
2447     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2448     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2449           break;;
2450     * ) break;;
2451   esac
2452 done
2453 else
2454   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2455 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2456 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2457 See \`config.log' for more details." >&5
2458 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2459 See \`config.log' for more details." >&2;}
2460    { (exit 1); exit 1; }; }; }
2461 fi
2462
2463 rm -f conftest$ac_cv_exeext
2464 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2465 $as_echo "$ac_cv_exeext" >&6; }
2466
2467 rm -f conftest.$ac_ext
2468 EXEEXT=$ac_cv_exeext
2469 ac_exeext=$EXEEXT
2470 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2471 $as_echo_n "checking for suffix of object files... " >&6; }
2472 if test "${ac_cv_objext+set}" = set; then
2473   $as_echo_n "(cached) " >&6
2474 else
2475   cat >conftest.$ac_ext <<_ACEOF
2476 /* confdefs.h.  */
2477 _ACEOF
2478 cat confdefs.h >>conftest.$ac_ext
2479 cat >>conftest.$ac_ext <<_ACEOF
2480 /* end confdefs.h.  */
2481
2482 int
2483 main ()
2484 {
2485
2486   ;
2487   return 0;
2488 }
2489 _ACEOF
2490 rm -f conftest.o conftest.obj
2491 if { (ac_try="$ac_compile"
2492 case "(($ac_try" in
2493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2494   *) ac_try_echo=$ac_try;;
2495 esac
2496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2497 $as_echo "$ac_try_echo") >&5
2498   (eval "$ac_compile") 2>&5
2499   ac_status=$?
2500   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501   (exit $ac_status); }; then
2502   for ac_file in conftest.o conftest.obj conftest.*; do
2503   test -f "$ac_file" || continue;
2504   case $ac_file in
2505     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2506     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2507        break;;
2508   esac
2509 done
2510 else
2511   $as_echo "$as_me: failed program was:" >&5
2512 sed 's/^/| /' conftest.$ac_ext >&5
2513
2514 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2516 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2517 See \`config.log' for more details." >&5
2518 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2519 See \`config.log' for more details." >&2;}
2520    { (exit 1); exit 1; }; }; }
2521 fi
2522
2523 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2524 fi
2525 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2526 $as_echo "$ac_cv_objext" >&6; }
2527 OBJEXT=$ac_cv_objext
2528 ac_objext=$OBJEXT
2529 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2530 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2531 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2532   $as_echo_n "(cached) " >&6
2533 else
2534   cat >conftest.$ac_ext <<_ACEOF
2535 /* confdefs.h.  */
2536 _ACEOF
2537 cat confdefs.h >>conftest.$ac_ext
2538 cat >>conftest.$ac_ext <<_ACEOF
2539 /* end confdefs.h.  */
2540
2541 int
2542 main ()
2543 {
2544 #ifndef __GNUC__
2545        choke me
2546 #endif
2547
2548   ;
2549   return 0;
2550 }
2551 _ACEOF
2552 rm -f conftest.$ac_objext
2553 if { (ac_try="$ac_compile"
2554 case "(($ac_try" in
2555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2556   *) ac_try_echo=$ac_try;;
2557 esac
2558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2559 $as_echo "$ac_try_echo") >&5
2560   (eval "$ac_compile") 2>conftest.er1
2561   ac_status=$?
2562   grep -v '^ *+' conftest.er1 >conftest.err
2563   rm -f conftest.er1
2564   cat conftest.err >&5
2565   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566   (exit $ac_status); } && {
2567          test -z "$ac_c_werror_flag" ||
2568          test ! -s conftest.err
2569        } && test -s conftest.$ac_objext; then
2570   ac_compiler_gnu=yes
2571 else
2572   $as_echo "$as_me: failed program was:" >&5
2573 sed 's/^/| /' conftest.$ac_ext >&5
2574
2575         ac_compiler_gnu=no
2576 fi
2577
2578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2579 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2580
2581 fi
2582 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2583 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2584 if test $ac_compiler_gnu = yes; then
2585   GCC=yes
2586 else
2587   GCC=
2588 fi
2589 ac_test_CFLAGS=${CFLAGS+set}
2590 ac_save_CFLAGS=$CFLAGS
2591 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2592 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2593 if test "${ac_cv_prog_cc_g+set}" = set; then
2594   $as_echo_n "(cached) " >&6
2595 else
2596   ac_save_c_werror_flag=$ac_c_werror_flag
2597    ac_c_werror_flag=yes
2598    ac_cv_prog_cc_g=no
2599    CFLAGS="-g"
2600    cat >conftest.$ac_ext <<_ACEOF
2601 /* confdefs.h.  */
2602 _ACEOF
2603 cat confdefs.h >>conftest.$ac_ext
2604 cat >>conftest.$ac_ext <<_ACEOF
2605 /* end confdefs.h.  */
2606
2607 int
2608 main ()
2609 {
2610
2611   ;
2612   return 0;
2613 }
2614 _ACEOF
2615 rm -f conftest.$ac_objext
2616 if { (ac_try="$ac_compile"
2617 case "(($ac_try" in
2618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2619   *) ac_try_echo=$ac_try;;
2620 esac
2621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2622 $as_echo "$ac_try_echo") >&5
2623   (eval "$ac_compile") 2>conftest.er1
2624   ac_status=$?
2625   grep -v '^ *+' conftest.er1 >conftest.err
2626   rm -f conftest.er1
2627   cat conftest.err >&5
2628   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629   (exit $ac_status); } && {
2630          test -z "$ac_c_werror_flag" ||
2631          test ! -s conftest.err
2632        } && test -s conftest.$ac_objext; then
2633   ac_cv_prog_cc_g=yes
2634 else
2635   $as_echo "$as_me: failed program was:" >&5
2636 sed 's/^/| /' conftest.$ac_ext >&5
2637
2638         CFLAGS=""
2639       cat >conftest.$ac_ext <<_ACEOF
2640 /* confdefs.h.  */
2641 _ACEOF
2642 cat confdefs.h >>conftest.$ac_ext
2643 cat >>conftest.$ac_ext <<_ACEOF
2644 /* end confdefs.h.  */
2645
2646 int
2647 main ()
2648 {
2649
2650   ;
2651   return 0;
2652 }
2653 _ACEOF
2654 rm -f conftest.$ac_objext
2655 if { (ac_try="$ac_compile"
2656 case "(($ac_try" in
2657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2658   *) ac_try_echo=$ac_try;;
2659 esac
2660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2661 $as_echo "$ac_try_echo") >&5
2662   (eval "$ac_compile") 2>conftest.er1
2663   ac_status=$?
2664   grep -v '^ *+' conftest.er1 >conftest.err
2665   rm -f conftest.er1
2666   cat conftest.err >&5
2667   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668   (exit $ac_status); } && {
2669          test -z "$ac_c_werror_flag" ||
2670          test ! -s conftest.err
2671        } && test -s conftest.$ac_objext; then
2672   :
2673 else
2674   $as_echo "$as_me: failed program was:" >&5
2675 sed 's/^/| /' conftest.$ac_ext >&5
2676
2677         ac_c_werror_flag=$ac_save_c_werror_flag
2678          CFLAGS="-g"
2679          cat >conftest.$ac_ext <<_ACEOF
2680 /* confdefs.h.  */
2681 _ACEOF
2682 cat confdefs.h >>conftest.$ac_ext
2683 cat >>conftest.$ac_ext <<_ACEOF
2684 /* end confdefs.h.  */
2685
2686 int
2687 main ()
2688 {
2689
2690   ;
2691   return 0;
2692 }
2693 _ACEOF
2694 rm -f conftest.$ac_objext
2695 if { (ac_try="$ac_compile"
2696 case "(($ac_try" in
2697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2698   *) ac_try_echo=$ac_try;;
2699 esac
2700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2701 $as_echo "$ac_try_echo") >&5
2702   (eval "$ac_compile") 2>conftest.er1
2703   ac_status=$?
2704   grep -v '^ *+' conftest.er1 >conftest.err
2705   rm -f conftest.er1
2706   cat conftest.err >&5
2707   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708   (exit $ac_status); } && {
2709          test -z "$ac_c_werror_flag" ||
2710          test ! -s conftest.err
2711        } && test -s conftest.$ac_objext; then
2712   ac_cv_prog_cc_g=yes
2713 else
2714   $as_echo "$as_me: failed program was:" >&5
2715 sed 's/^/| /' conftest.$ac_ext >&5
2716
2717
2718 fi
2719
2720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2721 fi
2722
2723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2724 fi
2725
2726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2727    ac_c_werror_flag=$ac_save_c_werror_flag
2728 fi
2729 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2730 $as_echo "$ac_cv_prog_cc_g" >&6; }
2731 if test "$ac_test_CFLAGS" = set; then
2732   CFLAGS=$ac_save_CFLAGS
2733 elif test $ac_cv_prog_cc_g = yes; then
2734   if test "$GCC" = yes; then
2735     CFLAGS="-g -O2"
2736   else
2737     CFLAGS="-g"
2738   fi
2739 else
2740   if test "$GCC" = yes; then
2741     CFLAGS="-O2"
2742   else
2743     CFLAGS=
2744   fi
2745 fi
2746 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2747 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2748 if test "${ac_cv_prog_cc_c89+set}" = set; then
2749   $as_echo_n "(cached) " >&6
2750 else
2751   ac_cv_prog_cc_c89=no
2752 ac_save_CC=$CC
2753 cat >conftest.$ac_ext <<_ACEOF
2754 /* confdefs.h.  */
2755 _ACEOF
2756 cat confdefs.h >>conftest.$ac_ext
2757 cat >>conftest.$ac_ext <<_ACEOF
2758 /* end confdefs.h.  */
2759 #include <stdarg.h>
2760 #include <stdio.h>
2761 #include <sys/types.h>
2762 #include <sys/stat.h>
2763 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2764 struct buf { int x; };
2765 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2766 static char *e (p, i)
2767      char **p;
2768      int i;
2769 {
2770   return p[i];
2771 }
2772 static char *f (char * (*g) (char **, int), char **p, ...)
2773 {
2774   char *s;
2775   va_list v;
2776   va_start (v,p);
2777   s = g (p, va_arg (v,int));
2778   va_end (v);
2779   return s;
2780 }
2781
2782 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2783    function prototypes and stuff, but not '\xHH' hex character constants.
2784    These don't provoke an error unfortunately, instead are silently treated
2785    as 'x'.  The following induces an error, until -std is added to get
2786    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2787    array size at least.  It's necessary to write '\x00'==0 to get something
2788    that's true only with -std.  */
2789 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2790
2791 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2792    inside strings and character constants.  */
2793 #define FOO(x) 'x'
2794 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2795
2796 int test (int i, double x);
2797 struct s1 {int (*f) (int a);};
2798 struct s2 {int (*f) (double a);};
2799 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2800 int argc;
2801 char **argv;
2802 int
2803 main ()
2804 {
2805 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2806   ;
2807   return 0;
2808 }
2809 _ACEOF
2810 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2811         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2812 do
2813   CC="$ac_save_CC $ac_arg"
2814   rm -f conftest.$ac_objext
2815 if { (ac_try="$ac_compile"
2816 case "(($ac_try" in
2817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2818   *) ac_try_echo=$ac_try;;
2819 esac
2820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2821 $as_echo "$ac_try_echo") >&5
2822   (eval "$ac_compile") 2>conftest.er1
2823   ac_status=$?
2824   grep -v '^ *+' conftest.er1 >conftest.err
2825   rm -f conftest.er1
2826   cat conftest.err >&5
2827   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828   (exit $ac_status); } && {
2829          test -z "$ac_c_werror_flag" ||
2830          test ! -s conftest.err
2831        } && test -s conftest.$ac_objext; then
2832   ac_cv_prog_cc_c89=$ac_arg
2833 else
2834   $as_echo "$as_me: failed program was:" >&5
2835 sed 's/^/| /' conftest.$ac_ext >&5
2836
2837
2838 fi
2839
2840 rm -f core conftest.err conftest.$ac_objext
2841   test "x$ac_cv_prog_cc_c89" != "xno" && break
2842 done
2843 rm -f conftest.$ac_ext
2844 CC=$ac_save_CC
2845
2846 fi
2847 # AC_CACHE_VAL
2848 case "x$ac_cv_prog_cc_c89" in
2849   x)
2850     { $as_echo "$as_me:$LINENO: result: none needed" >&5
2851 $as_echo "none needed" >&6; } ;;
2852   xno)
2853     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2854 $as_echo "unsupported" >&6; } ;;
2855   *)
2856     CC="$CC $ac_cv_prog_cc_c89"
2857     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2858 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2859 esac
2860
2861
2862 ac_ext=c
2863 ac_cpp='$CPP $CPPFLAGS'
2864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2867
2868 # Find a good install program.  We prefer a C program (faster),
2869 # so one script is as good as another.  But avoid the broken or
2870 # incompatible versions:
2871 # SysV /etc/install, /usr/sbin/install
2872 # SunOS /usr/etc/install
2873 # IRIX /sbin/install
2874 # AIX /bin/install
2875 # AmigaOS /C/install, which installs bootblocks on floppy discs
2876 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2877 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2878 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2879 # OS/2's system install, which has a completely different semantic
2880 # ./install, which can be erroneously created by make from ./install.sh.
2881 # Reject install programs that cannot install multiple files.
2882 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2883 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2884 if test -z "$INSTALL"; then
2885 if test "${ac_cv_path_install+set}" = set; then
2886   $as_echo_n "(cached) " >&6
2887 else
2888   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889 for as_dir in $PATH
2890 do
2891   IFS=$as_save_IFS
2892   test -z "$as_dir" && as_dir=.
2893   # Account for people who put trailing slashes in PATH elements.
2894 case $as_dir/ in
2895   ./ | .// | /cC/* | \
2896   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2897   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2898   /usr/ucb/* ) ;;
2899   *)
2900     # OSF1 and SCO ODT 3.0 have their own names for install.
2901     # Don't use installbsd from OSF since it installs stuff as root
2902     # by default.
2903     for ac_prog in ginstall scoinst install; do
2904       for ac_exec_ext in '' $ac_executable_extensions; do
2905         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2906           if test $ac_prog = install &&
2907             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2908             # AIX install.  It has an incompatible calling convention.
2909             :
2910           elif test $ac_prog = install &&
2911             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2912             # program-specific install script used by HP pwplus--don't use.
2913             :
2914           else
2915             rm -rf conftest.one conftest.two conftest.dir
2916             echo one > conftest.one
2917             echo two > conftest.two
2918             mkdir conftest.dir
2919             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2920               test -s conftest.one && test -s conftest.two &&
2921               test -s conftest.dir/conftest.one &&
2922               test -s conftest.dir/conftest.two
2923             then
2924               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2925               break 3
2926             fi
2927           fi
2928         fi
2929       done
2930     done
2931     ;;
2932 esac
2933
2934 done
2935 IFS=$as_save_IFS
2936
2937 rm -rf conftest.one conftest.two conftest.dir
2938
2939 fi
2940   if test "${ac_cv_path_install+set}" = set; then
2941     INSTALL=$ac_cv_path_install
2942   else
2943     # As a last resort, use the slow shell script.  Don't cache a
2944     # value for INSTALL within a source directory, because that will
2945     # break other packages using the cache if that directory is
2946     # removed, or if the value is a relative name.
2947     INSTALL=$ac_install_sh
2948   fi
2949 fi
2950 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2951 $as_echo "$INSTALL" >&6; }
2952
2953 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2954 # It thinks the first close brace ends the variable substitution.
2955 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2956
2957 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2958
2959 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2960
2961 ac_ext=c
2962 ac_cpp='$CPP $CPPFLAGS'
2963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2966 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2967 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2968 # On Suns, sometimes $CPP names a directory.
2969 if test -n "$CPP" && test -d "$CPP"; then
2970   CPP=
2971 fi
2972 if test -z "$CPP"; then
2973   if test "${ac_cv_prog_CPP+set}" = set; then
2974   $as_echo_n "(cached) " >&6
2975 else
2976       # Double quotes because CPP needs to be expanded
2977     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2978     do
2979       ac_preproc_ok=false
2980 for ac_c_preproc_warn_flag in '' yes
2981 do
2982   # Use a header file that comes with gcc, so configuring glibc
2983   # with a fresh cross-compiler works.
2984   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2985   # <limits.h> exists even on freestanding compilers.
2986   # On the NeXT, cc -E runs the code through the compiler's parser,
2987   # not just through cpp. "Syntax error" is here to catch this case.
2988   cat >conftest.$ac_ext <<_ACEOF
2989 /* confdefs.h.  */
2990 _ACEOF
2991 cat confdefs.h >>conftest.$ac_ext
2992 cat >>conftest.$ac_ext <<_ACEOF
2993 /* end confdefs.h.  */
2994 #ifdef __STDC__
2995 # include <limits.h>
2996 #else
2997 # include <assert.h>
2998 #endif
2999                      Syntax error
3000 _ACEOF
3001 if { (ac_try="$ac_cpp conftest.$ac_ext"
3002 case "(($ac_try" in
3003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004   *) ac_try_echo=$ac_try;;
3005 esac
3006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3007 $as_echo "$ac_try_echo") >&5
3008   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3009   ac_status=$?
3010   grep -v '^ *+' conftest.er1 >conftest.err
3011   rm -f conftest.er1
3012   cat conftest.err >&5
3013   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014   (exit $ac_status); } >/dev/null && {
3015          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3016          test ! -s conftest.err
3017        }; then
3018   :
3019 else
3020   $as_echo "$as_me: failed program was:" >&5
3021 sed 's/^/| /' conftest.$ac_ext >&5
3022
3023   # Broken: fails on valid input.
3024 continue
3025 fi
3026
3027 rm -f conftest.err conftest.$ac_ext
3028
3029   # OK, works on sane cases.  Now check whether nonexistent headers
3030   # can be detected and how.
3031   cat >conftest.$ac_ext <<_ACEOF
3032 /* confdefs.h.  */
3033 _ACEOF
3034 cat confdefs.h >>conftest.$ac_ext
3035 cat >>conftest.$ac_ext <<_ACEOF
3036 /* end confdefs.h.  */
3037 #include <ac_nonexistent.h>
3038 _ACEOF
3039 if { (ac_try="$ac_cpp conftest.$ac_ext"
3040 case "(($ac_try" in
3041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042   *) ac_try_echo=$ac_try;;
3043 esac
3044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3045 $as_echo "$ac_try_echo") >&5
3046   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3047   ac_status=$?
3048   grep -v '^ *+' conftest.er1 >conftest.err
3049   rm -f conftest.er1
3050   cat conftest.err >&5
3051   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052   (exit $ac_status); } >/dev/null && {
3053          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3054          test ! -s conftest.err
3055        }; then
3056   # Broken: success on invalid input.
3057 continue
3058 else
3059   $as_echo "$as_me: failed program was:" >&5
3060 sed 's/^/| /' conftest.$ac_ext >&5
3061
3062   # Passes both tests.
3063 ac_preproc_ok=:
3064 break
3065 fi
3066
3067 rm -f conftest.err conftest.$ac_ext
3068
3069 done
3070 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3071 rm -f conftest.err conftest.$ac_ext
3072 if $ac_preproc_ok; then
3073   break
3074 fi
3075
3076     done
3077     ac_cv_prog_CPP=$CPP
3078
3079 fi
3080   CPP=$ac_cv_prog_CPP
3081 else
3082   ac_cv_prog_CPP=$CPP
3083 fi
3084 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3085 $as_echo "$CPP" >&6; }
3086 ac_preproc_ok=false
3087 for ac_c_preproc_warn_flag in '' yes
3088 do
3089   # Use a header file that comes with gcc, so configuring glibc
3090   # with a fresh cross-compiler works.
3091   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3092   # <limits.h> exists even on freestanding compilers.
3093   # On the NeXT, cc -E runs the code through the compiler's parser,
3094   # not just through cpp. "Syntax error" is here to catch this case.
3095   cat >conftest.$ac_ext <<_ACEOF
3096 /* confdefs.h.  */
3097 _ACEOF
3098 cat confdefs.h >>conftest.$ac_ext
3099 cat >>conftest.$ac_ext <<_ACEOF
3100 /* end confdefs.h.  */
3101 #ifdef __STDC__
3102 # include <limits.h>
3103 #else
3104 # include <assert.h>
3105 #endif
3106                      Syntax error
3107 _ACEOF
3108 if { (ac_try="$ac_cpp conftest.$ac_ext"
3109 case "(($ac_try" in
3110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111   *) ac_try_echo=$ac_try;;
3112 esac
3113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3114 $as_echo "$ac_try_echo") >&5
3115   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3116   ac_status=$?
3117   grep -v '^ *+' conftest.er1 >conftest.err
3118   rm -f conftest.er1
3119   cat conftest.err >&5
3120   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121   (exit $ac_status); } >/dev/null && {
3122          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3123          test ! -s conftest.err
3124        }; then
3125   :
3126 else
3127   $as_echo "$as_me: failed program was:" >&5
3128 sed 's/^/| /' conftest.$ac_ext >&5
3129
3130   # Broken: fails on valid input.
3131 continue
3132 fi
3133
3134 rm -f conftest.err conftest.$ac_ext
3135
3136   # OK, works on sane cases.  Now check whether nonexistent headers
3137   # can be detected and how.
3138   cat >conftest.$ac_ext <<_ACEOF
3139 /* confdefs.h.  */
3140 _ACEOF
3141 cat confdefs.h >>conftest.$ac_ext
3142 cat >>conftest.$ac_ext <<_ACEOF
3143 /* end confdefs.h.  */
3144 #include <ac_nonexistent.h>
3145 _ACEOF
3146 if { (ac_try="$ac_cpp conftest.$ac_ext"
3147 case "(($ac_try" in
3148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149   *) ac_try_echo=$ac_try;;
3150 esac
3151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3152 $as_echo "$ac_try_echo") >&5
3153   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3154   ac_status=$?
3155   grep -v '^ *+' conftest.er1 >conftest.err
3156   rm -f conftest.er1
3157   cat conftest.err >&5
3158   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159   (exit $ac_status); } >/dev/null && {
3160          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3161          test ! -s conftest.err
3162        }; then
3163   # Broken: success on invalid input.
3164 continue
3165 else
3166   $as_echo "$as_me: failed program was:" >&5
3167 sed 's/^/| /' conftest.$ac_ext >&5
3168
3169   # Passes both tests.
3170 ac_preproc_ok=:
3171 break
3172 fi
3173
3174 rm -f conftest.err conftest.$ac_ext
3175
3176 done
3177 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3178 rm -f conftest.err conftest.$ac_ext
3179 if $ac_preproc_ok; then
3180   :
3181 else
3182   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3183 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3184 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3185 See \`config.log' for more details." >&5
3186 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3187 See \`config.log' for more details." >&2;}
3188    { (exit 1); exit 1; }; }; }
3189 fi
3190
3191 ac_ext=c
3192 ac_cpp='$CPP $CPPFLAGS'
3193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3196
3197
3198 if test "$GCC" = yes
3199 then
3200   CFLAGS="${CFLAGS} ${EXTRA_GCFLAGS}-pipe -Wall -Wno-unused -Wshadow -Wbad-function-cast -Wmissing-prototypes -Wstrict-prototypes -Wcast-align -Wcast-qual -Wpointer-arith -Wwrite-strings -Wmissing-declarations -Wnested-externs -Wundef -pedantic -fno-common"
3201   LDFLAGS="${LDFLAGS} ${EXTRA_GLDFLAGS}-g"
3202 else
3203   CFLAGS="${CFLAGS} ${EXTRA_CFLAGS}"
3204   LDFLAGS="${LDFLAGS} ${EXTRA_LDFLAGS}"
3205 fi
3206
3207 { $as_echo "$as_me:$LINENO: checking host system type" >&5
3208 $as_echo_n "checking host system type... " >&6; }
3209 if test "${ac_cv_host+set}" = set; then
3210   $as_echo_n "(cached) " >&6
3211 else
3212   if test "x$host_alias" = x; then
3213   ac_cv_host=$ac_cv_build
3214 else
3215   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3216     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3217 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3218    { (exit 1); exit 1; }; }
3219 fi
3220
3221 fi
3222 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3223 $as_echo "$ac_cv_host" >&6; }
3224 case $ac_cv_host in
3225 *-*-*) ;;
3226 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3227 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
3228    { (exit 1); exit 1; }; };;
3229 esac
3230 host=$ac_cv_host
3231 ac_save_IFS=$IFS; IFS='-'
3232 set x $ac_cv_host
3233 shift
3234 host_cpu=$1
3235 host_vendor=$2
3236 shift; shift
3237 # Remember, the first character of IFS is used to create $*,
3238 # except with old shells:
3239 host_os=$*
3240 IFS=$ac_save_IFS
3241 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3242
3243
3244 case $host_os in
3245   *cygwin* ) CYGWIN=yes;;
3246          * ) CYGWIN=no;;
3247 esac
3248
3249 { $as_echo "$as_me:$LINENO: checking host system type" >&5
3250 $as_echo_n "checking host system type... " >&6; }
3251 if test "${ac_cv_host+set}" = set; then
3252   $as_echo_n "(cached) " >&6
3253 else
3254   if test "x$host_alias" = x; then
3255   ac_cv_host=$ac_cv_build
3256 else
3257   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3258     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3259 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3260    { (exit 1); exit 1; }; }
3261 fi
3262
3263 fi
3264 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3265 $as_echo "$ac_cv_host" >&6; }
3266 case $ac_cv_host in
3267 *-*-*) ;;
3268 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3269 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
3270    { (exit 1); exit 1; }; };;
3271 esac
3272 host=$ac_cv_host
3273 ac_save_IFS=$IFS; IFS='-'
3274 set x $ac_cv_host
3275 shift
3276 host_cpu=$1
3277 host_vendor=$2
3278 shift; shift
3279 # Remember, the first character of IFS is used to create $*,
3280 # except with old shells:
3281 host_os=$*
3282 IFS=$ac_save_IFS
3283 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3284
3285
3286 case $host_os in
3287   *mingw32* ) MINGW32=yes;;
3288           * ) MINGW32=no;;
3289 esac
3290
3291 DEVICE="posix"
3292
3293 DISKDEFS='${datarootdir}/diskdefs'
3294
3295 if test "$CYGWIN" = "yes"
3296 then
3297   DEVICE="win32"
3298 #  DISKDEFS='%USERPROFILE%/diskdefs'
3299 fi
3300 if test "$MINGW32" = "yes"
3301 then
3302   DEVICE="win32"
3303 #  DISKDEFS='%USERPROFILE%\\diskdefs'
3304 fi
3305
3306
3307 # Check whether --with-diskdefs was given.
3308 if test "${with_diskdefs+set}" = set; then
3309   withval=$with_diskdefs; DISKDEFS="$withval"
3310 else
3311   DISKDEFS="$DISKDEFS"
3312 fi
3313
3314
3315 # Check whether --with-defformat was given.
3316 if test "${with_defformat+set}" = set; then
3317   withval=$with_defformat; DEFFORMAT="$withval"
3318 else
3319   DEFFORMAT="ibm-3740"
3320 fi
3321
3322
3323 # Check whether --with-libdsk was given.
3324 if test "${with_libdsk+set}" = set; then
3325   withval=$with_libdsk; LIBDSK="$withval"
3326 else
3327   LIBDSK=""
3328 fi
3329
3330
3331 # Check whether --with-dmalloc was given.
3332 if test "${with_dmalloc+set}" = set; then
3333   withval=$with_dmalloc; CPPFLAGS="$CPPFLAGS -I$with_dmalloc/include"
3334                  LDFLAGS="$LDFLAGS -L$with_dmalloc/lib"
3335                  LIBS="$LIBS -ldmalloc"
3336                  cat >>confdefs.h <<\_ACEOF
3337 #define USE_DMALLOC 1
3338 _ACEOF
3339
3340 fi
3341
3342
3343
3344 { $as_echo "$as_me:$LINENO: checking for printw in -lcurses" >&5
3345 $as_echo_n "checking for printw in -lcurses... " >&6; }
3346 if test "${ac_cv_lib_curses_printw+set}" = set; then
3347   $as_echo_n "(cached) " >&6
3348 else
3349   ac_check_lib_save_LIBS=$LIBS
3350 LIBS="-lcurses  $LIBS"
3351 cat >conftest.$ac_ext <<_ACEOF
3352 /* confdefs.h.  */
3353 _ACEOF
3354 cat confdefs.h >>conftest.$ac_ext
3355 cat >>conftest.$ac_ext <<_ACEOF
3356 /* end confdefs.h.  */
3357
3358 /* Override any GCC internal prototype to avoid an error.
3359    Use char because int might match the return type of a GCC
3360    builtin and then its argument prototype would still apply.  */
3361 #ifdef __cplusplus
3362 extern "C"
3363 #endif
3364 char printw ();
3365 int
3366 main ()
3367 {
3368 return printw ();
3369   ;
3370   return 0;
3371 }
3372 _ACEOF
3373 rm -f conftest.$ac_objext conftest$ac_exeext
3374 if { (ac_try="$ac_link"
3375 case "(($ac_try" in
3376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377   *) ac_try_echo=$ac_try;;
3378 esac
3379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3380 $as_echo "$ac_try_echo") >&5
3381   (eval "$ac_link") 2>conftest.er1
3382   ac_status=$?
3383   grep -v '^ *+' conftest.er1 >conftest.err
3384   rm -f conftest.er1
3385   cat conftest.err >&5
3386   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387   (exit $ac_status); } && {
3388          test -z "$ac_c_werror_flag" ||
3389          test ! -s conftest.err
3390        } && test -s conftest$ac_exeext && {
3391          test "$cross_compiling" = yes ||
3392          $as_test_x conftest$ac_exeext
3393        }; then
3394   ac_cv_lib_curses_printw=yes
3395 else
3396   $as_echo "$as_me: failed program was:" >&5
3397 sed 's/^/| /' conftest.$ac_ext >&5
3398
3399         ac_cv_lib_curses_printw=no
3400 fi
3401
3402 rm -rf conftest.dSYM
3403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3404       conftest$ac_exeext conftest.$ac_ext
3405 LIBS=$ac_check_lib_save_LIBS
3406 fi
3407 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_curses_printw" >&5
3408 $as_echo "$ac_cv_lib_curses_printw" >&6; }
3409 if test "x$ac_cv_lib_curses_printw" = x""yes; then
3410   FSED_CPM=fsed.cpm LIBS="-lcurses $LIBS"
3411 else
3412   FSED_CPM=
3413 fi
3414
3415 if test x"$FSED_CPM" = x""; then
3416   { $as_echo "$as_me:$LINENO: checking for printw in -lncurses" >&5
3417 $as_echo_n "checking for printw in -lncurses... " >&6; }
3418 if test "${ac_cv_lib_ncurses_printw+set}" = set; then
3419   $as_echo_n "(cached) " >&6
3420 else
3421   ac_check_lib_save_LIBS=$LIBS
3422 LIBS="-lncurses  $LIBS"
3423 cat >conftest.$ac_ext <<_ACEOF
3424 /* confdefs.h.  */
3425 _ACEOF
3426 cat confdefs.h >>conftest.$ac_ext
3427 cat >>conftest.$ac_ext <<_ACEOF
3428 /* end confdefs.h.  */
3429
3430 /* Override any GCC internal prototype to avoid an error.
3431    Use char because int might match the return type of a GCC
3432    builtin and then its argument prototype would still apply.  */
3433 #ifdef __cplusplus
3434 extern "C"
3435 #endif
3436 char printw ();
3437 int
3438 main ()
3439 {
3440 return printw ();
3441   ;
3442   return 0;
3443 }
3444 _ACEOF
3445 rm -f conftest.$ac_objext conftest$ac_exeext
3446 if { (ac_try="$ac_link"
3447 case "(($ac_try" in
3448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449   *) ac_try_echo=$ac_try;;
3450 esac
3451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3452 $as_echo "$ac_try_echo") >&5
3453   (eval "$ac_link") 2>conftest.er1
3454   ac_status=$?
3455   grep -v '^ *+' conftest.er1 >conftest.err
3456   rm -f conftest.er1
3457   cat conftest.err >&5
3458   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459   (exit $ac_status); } && {
3460          test -z "$ac_c_werror_flag" ||
3461          test ! -s conftest.err
3462        } && test -s conftest$ac_exeext && {
3463          test "$cross_compiling" = yes ||
3464          $as_test_x conftest$ac_exeext
3465        }; then
3466   ac_cv_lib_ncurses_printw=yes
3467 else
3468   $as_echo "$as_me: failed program was:" >&5
3469 sed 's/^/| /' conftest.$ac_ext >&5
3470
3471         ac_cv_lib_ncurses_printw=no
3472 fi
3473
3474 rm -rf conftest.dSYM
3475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3476       conftest$ac_exeext conftest.$ac_ext
3477 LIBS=$ac_check_lib_save_LIBS
3478 fi
3479 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_printw" >&5
3480 $as_echo "$ac_cv_lib_ncurses_printw" >&6; }
3481 if test "x$ac_cv_lib_ncurses_printw" = x""yes; then
3482   FSED_CPM=fsed.cpm LIBS="-lncurses $LIBS"
3483 else
3484   FSED_CPM=
3485 fi
3486
3487 fi
3488
3489 if test "$LIBDSK" != ""; then
3490   DEVICE="libdsk"
3491   CPPFLAGS="$CPPFLAGS -I$LIBDSK/include"
3492   CFLAGS="$CFLAGS -I$LIBDSK/include"
3493   LDFLAGS="$LDFLAGS -L$LIBDSK/lib"
3494
3495 { $as_echo "$as_me:$LINENO: checking for dsk_open in -ldsk" >&5
3496 $as_echo_n "checking for dsk_open in -ldsk... " >&6; }
3497 if test "${ac_cv_lib_dsk_dsk_open+set}" = set; then
3498   $as_echo_n "(cached) " >&6
3499 else
3500   ac_check_lib_save_LIBS=$LIBS
3501 LIBS="-ldsk  $LIBS"
3502 cat >conftest.$ac_ext <<_ACEOF
3503 /* confdefs.h.  */
3504 _ACEOF
3505 cat confdefs.h >>conftest.$ac_ext
3506 cat >>conftest.$ac_ext <<_ACEOF
3507 /* end confdefs.h.  */
3508
3509 /* Override any GCC internal prototype to avoid an error.
3510    Use char because int might match the return type of a GCC
3511    builtin and then its argument prototype would still apply.  */
3512 #ifdef __cplusplus
3513 extern "C"
3514 #endif
3515 char dsk_open ();
3516 int
3517 main ()
3518 {
3519 return dsk_open ();
3520   ;
3521   return 0;
3522 }
3523 _ACEOF
3524 rm -f conftest.$ac_objext conftest$ac_exeext
3525 if { (ac_try="$ac_link"
3526 case "(($ac_try" in
3527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3528   *) ac_try_echo=$ac_try;;
3529 esac
3530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3531 $as_echo "$ac_try_echo") >&5
3532   (eval "$ac_link") 2>conftest.er1
3533   ac_status=$?
3534   grep -v '^ *+' conftest.er1 >conftest.err
3535   rm -f conftest.er1
3536   cat conftest.err >&5
3537   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538   (exit $ac_status); } && {
3539          test -z "$ac_c_werror_flag" ||
3540          test ! -s conftest.err
3541        } && test -s conftest$ac_exeext && {
3542          test "$cross_compiling" = yes ||
3543          $as_test_x conftest$ac_exeext
3544        }; then
3545   ac_cv_lib_dsk_dsk_open=yes
3546 else
3547   $as_echo "$as_me: failed program was:" >&5
3548 sed 's/^/| /' conftest.$ac_ext >&5
3549
3550         ac_cv_lib_dsk_dsk_open=no
3551 fi
3552
3553 rm -rf conftest.dSYM
3554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3555       conftest$ac_exeext conftest.$ac_ext
3556 LIBS=$ac_check_lib_save_LIBS
3557 fi
3558 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dsk_dsk_open" >&5
3559 $as_echo "$ac_cv_lib_dsk_dsk_open" >&6; }
3560 if test "x$ac_cv_lib_dsk_dsk_open" = x""yes; then
3561   cat >>confdefs.h <<_ACEOF
3562 #define HAVE_LIBDSK 1
3563 _ACEOF
3564
3565   LIBS="-ldsk $LIBS"
3566
3567 fi
3568
3569
3570 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3571 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3572 if test "${ac_cv_path_GREP+set}" = set; then
3573   $as_echo_n "(cached) " >&6
3574 else
3575   if test -z "$GREP"; then
3576   ac_path_GREP_found=false
3577   # Loop through the user's path and test for each of PROGNAME-LIST
3578   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3579 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3580 do
3581   IFS=$as_save_IFS
3582   test -z "$as_dir" && as_dir=.
3583   for ac_prog in grep ggrep; do
3584     for ac_exec_ext in '' $ac_executable_extensions; do
3585       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3586       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3587 # Check for GNU ac_path_GREP and select it if it is found.
3588   # Check for GNU $ac_path_GREP
3589 case `"$ac_path_GREP" --version 2>&1` in
3590 *GNU*)
3591   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3592 *)
3593   ac_count=0
3594   $as_echo_n 0123456789 >"conftest.in"
3595   while :
3596   do
3597     cat "conftest.in" "conftest.in" >"conftest.tmp"
3598     mv "conftest.tmp" "conftest.in"
3599     cp "conftest.in" "conftest.nl"
3600     $as_echo 'GREP' >> "conftest.nl"
3601     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3602     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3603     ac_count=`expr $ac_count + 1`
3604     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3605       # Best one so far, save it but keep looking for a better one
3606       ac_cv_path_GREP="$ac_path_GREP"
3607       ac_path_GREP_max=$ac_count
3608     fi
3609     # 10*(2^10) chars as input seems more than enough
3610     test $ac_count -gt 10 && break
3611   done
3612   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3613 esac
3614
3615       $ac_path_GREP_found && break 3
3616     done
3617   done
3618 done
3619 IFS=$as_save_IFS
3620   if test -z "$ac_cv_path_GREP"; then
3621     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3622 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3623    { (exit 1); exit 1; }; }
3624   fi
3625 else
3626   ac_cv_path_GREP=$GREP
3627 fi
3628
3629 fi
3630 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3631 $as_echo "$ac_cv_path_GREP" >&6; }
3632  GREP="$ac_cv_path_GREP"
3633
3634
3635 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3636 $as_echo_n "checking for egrep... " >&6; }
3637 if test "${ac_cv_path_EGREP+set}" = set; then
3638   $as_echo_n "(cached) " >&6
3639 else
3640   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3641    then ac_cv_path_EGREP="$GREP -E"
3642    else
3643      if test -z "$EGREP"; then
3644   ac_path_EGREP_found=false
3645   # Loop through the user's path and test for each of PROGNAME-LIST
3646   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3647 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3648 do
3649   IFS=$as_save_IFS
3650   test -z "$as_dir" && as_dir=.
3651   for ac_prog in egrep; do
3652     for ac_exec_ext in '' $ac_executable_extensions; do
3653       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3654       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3655 # Check for GNU ac_path_EGREP and select it if it is found.
3656   # Check for GNU $ac_path_EGREP
3657 case `"$ac_path_EGREP" --version 2>&1` in
3658 *GNU*)
3659   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3660 *)
3661   ac_count=0
3662   $as_echo_n 0123456789 >"conftest.in"
3663   while :
3664   do
3665     cat "conftest.in" "conftest.in" >"conftest.tmp"
3666     mv "conftest.tmp" "conftest.in"
3667     cp "conftest.in" "conftest.nl"
3668     $as_echo 'EGREP' >> "conftest.nl"
3669     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3670     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3671     ac_count=`expr $ac_count + 1`
3672     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3673       # Best one so far, save it but keep looking for a better one
3674       ac_cv_path_EGREP="$ac_path_EGREP"
3675       ac_path_EGREP_max=$ac_count
3676     fi
3677     # 10*(2^10) chars as input seems more than enough
3678     test $ac_count -gt 10 && break
3679   done
3680   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3681 esac
3682
3683       $ac_path_EGREP_found && break 3
3684     done
3685   done
3686 done
3687 IFS=$as_save_IFS
3688   if test -z "$ac_cv_path_EGREP"; then
3689     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3690 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3691    { (exit 1); exit 1; }; }
3692   fi
3693 else
3694   ac_cv_path_EGREP=$EGREP
3695 fi
3696
3697    fi
3698 fi
3699 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3700 $as_echo "$ac_cv_path_EGREP" >&6; }
3701  EGREP="$ac_cv_path_EGREP"
3702
3703
3704 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3705 $as_echo_n "checking for ANSI C header files... " >&6; }
3706 if test "${ac_cv_header_stdc+set}" = set; then
3707   $as_echo_n "(cached) " >&6
3708 else
3709   cat >conftest.$ac_ext <<_ACEOF
3710 /* confdefs.h.  */
3711 _ACEOF
3712 cat confdefs.h >>conftest.$ac_ext
3713 cat >>conftest.$ac_ext <<_ACEOF
3714 /* end confdefs.h.  */
3715 #include <stdlib.h>
3716 #include <stdarg.h>
3717 #include <string.h>
3718 #include <float.h>
3719
3720 int
3721 main ()
3722 {
3723
3724   ;
3725   return 0;
3726 }
3727 _ACEOF
3728 rm -f conftest.$ac_objext
3729 if { (ac_try="$ac_compile"
3730 case "(($ac_try" in
3731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3732   *) ac_try_echo=$ac_try;;
3733 esac
3734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3735 $as_echo "$ac_try_echo") >&5
3736   (eval "$ac_compile") 2>conftest.er1
3737   ac_status=$?
3738   grep -v '^ *+' conftest.er1 >conftest.err
3739   rm -f conftest.er1
3740   cat conftest.err >&5
3741   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742   (exit $ac_status); } && {
3743          test -z "$ac_c_werror_flag" ||
3744          test ! -s conftest.err
3745        } && test -s conftest.$ac_objext; then
3746   ac_cv_header_stdc=yes
3747 else
3748   $as_echo "$as_me: failed program was:" >&5
3749 sed 's/^/| /' conftest.$ac_ext >&5
3750
3751         ac_cv_header_stdc=no
3752 fi
3753
3754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3755
3756 if test $ac_cv_header_stdc = yes; then
3757   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3758   cat >conftest.$ac_ext <<_ACEOF
3759 /* confdefs.h.  */
3760 _ACEOF
3761 cat confdefs.h >>conftest.$ac_ext
3762 cat >>conftest.$ac_ext <<_ACEOF
3763 /* end confdefs.h.  */
3764 #include <string.h>
3765
3766 _ACEOF
3767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3768   $EGREP "memchr" >/dev/null 2>&1; then
3769   :
3770 else
3771   ac_cv_header_stdc=no
3772 fi
3773 rm -f conftest*
3774
3775 fi
3776
3777 if test $ac_cv_header_stdc = yes; then
3778   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3779   cat >conftest.$ac_ext <<_ACEOF
3780 /* confdefs.h.  */
3781 _ACEOF
3782 cat confdefs.h >>conftest.$ac_ext
3783 cat >>conftest.$ac_ext <<_ACEOF
3784 /* end confdefs.h.  */
3785 #include <stdlib.h>
3786
3787 _ACEOF
3788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3789   $EGREP "free" >/dev/null 2>&1; then
3790   :
3791 else
3792   ac_cv_header_stdc=no
3793 fi
3794 rm -f conftest*
3795
3796 fi
3797
3798 if test $ac_cv_header_stdc = yes; then
3799   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3800   if test "$cross_compiling" = yes; then
3801   :
3802 else
3803   cat >conftest.$ac_ext <<_ACEOF
3804 /* confdefs.h.  */
3805 _ACEOF
3806 cat confdefs.h >>conftest.$ac_ext
3807 cat >>conftest.$ac_ext <<_ACEOF
3808 /* end confdefs.h.  */
3809 #include <ctype.h>
3810 #include <stdlib.h>
3811 #if ((' ' & 0x0FF) == 0x020)
3812 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3813 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3814 #else
3815 # define ISLOWER(c) \
3816                    (('a' <= (c) && (c) <= 'i') \
3817                      || ('j' <= (c) && (c) <= 'r') \
3818                      || ('s' <= (c) && (c) <= 'z'))
3819 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3820 #endif
3821
3822 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3823 int
3824 main ()
3825 {
3826   int i;
3827   for (i = 0; i < 256; i++)
3828     if (XOR (islower (i), ISLOWER (i))
3829         || toupper (i) != TOUPPER (i))
3830       return 2;
3831   return 0;
3832 }
3833 _ACEOF
3834 rm -f conftest$ac_exeext
3835 if { (ac_try="$ac_link"
3836 case "(($ac_try" in
3837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3838   *) ac_try_echo=$ac_try;;
3839 esac
3840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3841 $as_echo "$ac_try_echo") >&5
3842   (eval "$ac_link") 2>&5
3843   ac_status=$?
3844   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3846   { (case "(($ac_try" in
3847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3848   *) ac_try_echo=$ac_try;;
3849 esac
3850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3851 $as_echo "$ac_try_echo") >&5
3852   (eval "$ac_try") 2>&5
3853   ac_status=$?
3854   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855   (exit $ac_status); }; }; then
3856   :
3857 else
3858   $as_echo "$as_me: program exited with status $ac_status" >&5
3859 $as_echo "$as_me: failed program was:" >&5
3860 sed 's/^/| /' conftest.$ac_ext >&5
3861
3862 ( exit $ac_status )
3863 ac_cv_header_stdc=no
3864 fi
3865 rm -rf conftest.dSYM
3866 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3867 fi
3868
3869
3870 fi
3871 fi
3872 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3873 $as_echo "$ac_cv_header_stdc" >&6; }
3874 if test $ac_cv_header_stdc = yes; then
3875
3876 cat >>confdefs.h <<\_ACEOF
3877 #define STDC_HEADERS 1
3878 _ACEOF
3879
3880 fi
3881
3882 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3893                   inttypes.h stdint.h unistd.h
3894 do
3895 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3896 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3897 $as_echo_n "checking for $ac_header... " >&6; }
3898 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3899   $as_echo_n "(cached) " >&6
3900 else
3901   cat >conftest.$ac_ext <<_ACEOF
3902 /* confdefs.h.  */
3903 _ACEOF
3904 cat confdefs.h >>conftest.$ac_ext
3905 cat >>conftest.$ac_ext <<_ACEOF
3906 /* end confdefs.h.  */
3907 $ac_includes_default
3908
3909 #include <$ac_header>
3910 _ACEOF
3911 rm -f conftest.$ac_objext
3912 if { (ac_try="$ac_compile"
3913 case "(($ac_try" in
3914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3915   *) ac_try_echo=$ac_try;;
3916 esac
3917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3918 $as_echo "$ac_try_echo") >&5
3919   (eval "$ac_compile") 2>conftest.er1
3920   ac_status=$?
3921   grep -v '^ *+' conftest.er1 >conftest.err
3922   rm -f conftest.er1
3923   cat conftest.err >&5
3924   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925   (exit $ac_status); } && {
3926          test -z "$ac_c_werror_flag" ||
3927          test ! -s conftest.err
3928        } && test -s conftest.$ac_objext; then
3929   eval "$as_ac_Header=yes"
3930 else
3931   $as_echo "$as_me: failed program was:" >&5
3932 sed 's/^/| /' conftest.$ac_ext >&5
3933
3934         eval "$as_ac_Header=no"
3935 fi
3936
3937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3938 fi
3939 ac_res=`eval 'as_val=${'$as_ac_Header'}
3940                  $as_echo "$as_val"'`
3941                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3942 $as_echo "$ac_res" >&6; }
3943 as_val=`eval 'as_val=${'$as_ac_Header'}
3944                  $as_echo "$as_val"'`
3945    if test "x$as_val" = x""yes; then
3946   cat >>confdefs.h <<_ACEOF
3947 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3948 _ACEOF
3949
3950 fi
3951
3952 done
3953
3954
3955
3956 for ac_header in libdsk.h
3957 do
3958 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3960   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3961 $as_echo_n "checking for $ac_header... " >&6; }
3962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3963   $as_echo_n "(cached) " >&6
3964 fi
3965 ac_res=`eval 'as_val=${'$as_ac_Header'}
3966                  $as_echo "$as_val"'`
3967                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3968 $as_echo "$ac_res" >&6; }
3969 else
3970   # Is the header compilable?
3971 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
3972 $as_echo_n "checking $ac_header usability... " >&6; }
3973 cat >conftest.$ac_ext <<_ACEOF
3974 /* confdefs.h.  */
3975 _ACEOF
3976 cat confdefs.h >>conftest.$ac_ext
3977 cat >>conftest.$ac_ext <<_ACEOF
3978 /* end confdefs.h.  */
3979 $ac_includes_default
3980 #include <$ac_header>
3981 _ACEOF
3982 rm -f conftest.$ac_objext
3983 if { (ac_try="$ac_compile"
3984 case "(($ac_try" in
3985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3986   *) ac_try_echo=$ac_try;;
3987 esac
3988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3989 $as_echo "$ac_try_echo") >&5
3990   (eval "$ac_compile") 2>conftest.er1
3991   ac_status=$?
3992   grep -v '^ *+' conftest.er1 >conftest.err
3993   rm -f conftest.er1
3994   cat conftest.err >&5
3995   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996   (exit $ac_status); } && {
3997          test -z "$ac_c_werror_flag" ||
3998          test ! -s conftest.err
3999        } && test -s conftest.$ac_objext; then
4000   ac_header_compiler=yes
4001 else
4002   $as_echo "$as_me: failed program was:" >&5
4003 sed 's/^/| /' conftest.$ac_ext >&5
4004
4005         ac_header_compiler=no
4006 fi
4007
4008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4009 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4010 $as_echo "$ac_header_compiler" >&6; }
4011
4012 # Is the header present?
4013 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4014 $as_echo_n "checking $ac_header presence... " >&6; }
4015 cat >conftest.$ac_ext <<_ACEOF
4016 /* confdefs.h.  */
4017 _ACEOF
4018 cat confdefs.h >>conftest.$ac_ext
4019 cat >>conftest.$ac_ext <<_ACEOF
4020 /* end confdefs.h.  */
4021 #include <$ac_header>
4022 _ACEOF
4023 if { (ac_try="$ac_cpp conftest.$ac_ext"
4024 case "(($ac_try" in
4025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4026   *) ac_try_echo=$ac_try;;
4027 esac
4028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4029 $as_echo "$ac_try_echo") >&5
4030   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4031   ac_status=$?
4032   grep -v '^ *+' conftest.er1 >conftest.err
4033   rm -f conftest.er1
4034   cat conftest.err >&5
4035   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036   (exit $ac_status); } >/dev/null && {
4037          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4038          test ! -s conftest.err
4039        }; then
4040   ac_header_preproc=yes
4041 else
4042   $as_echo "$as_me: failed program was:" >&5
4043 sed 's/^/| /' conftest.$ac_ext >&5
4044
4045   ac_header_preproc=no
4046 fi
4047
4048 rm -f conftest.err conftest.$ac_ext
4049 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4050 $as_echo "$ac_header_preproc" >&6; }
4051
4052 # So?  What about this header?
4053 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4054   yes:no: )
4055     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4056 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4057     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4058 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4059     ac_header_preproc=yes
4060     ;;
4061   no:yes:* )
4062     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4063 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4064     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4065 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4066     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4067 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4068     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4069 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4070     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4071 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4072     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4073 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4074
4075     ;;
4076 esac
4077 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4078 $as_echo_n "checking for $ac_header... " >&6; }
4079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4080   $as_echo_n "(cached) " >&6
4081 else
4082   eval "$as_ac_Header=\$ac_header_preproc"
4083 fi
4084 ac_res=`eval 'as_val=${'$as_ac_Header'}
4085                  $as_echo "$as_val"'`
4086                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4087 $as_echo "$ac_res" >&6; }
4088
4089 fi
4090 as_val=`eval 'as_val=${'$as_ac_Header'}
4091                  $as_echo "$as_val"'`
4092    if test "x$as_val" = x""yes; then
4093   cat >>confdefs.h <<_ACEOF
4094 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4095 _ACEOF
4096
4097 else
4098   echo "No libdsk.h - aborting"; exit 1
4099 fi
4100
4101 done
4102
4103 fi
4104
4105 if test x"$DEVICE" = x"win32"; then
4106
4107
4108 for ac_header in windows.h winioctl.h
4109 do
4110 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4112   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4113 $as_echo_n "checking for $ac_header... " >&6; }
4114 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4115   $as_echo_n "(cached) " >&6
4116 fi
4117 ac_res=`eval 'as_val=${'$as_ac_Header'}
4118                  $as_echo "$as_val"'`
4119                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4120 $as_echo "$ac_res" >&6; }
4121 else
4122   # Is the header compilable?
4123 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4124 $as_echo_n "checking $ac_header usability... " >&6; }
4125 cat >conftest.$ac_ext <<_ACEOF
4126 /* confdefs.h.  */
4127 _ACEOF
4128 cat confdefs.h >>conftest.$ac_ext
4129 cat >>conftest.$ac_ext <<_ACEOF
4130 /* end confdefs.h.  */
4131 $ac_includes_default
4132 #include <$ac_header>
4133 _ACEOF
4134 rm -f conftest.$ac_objext
4135 if { (ac_try="$ac_compile"
4136 case "(($ac_try" in
4137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138   *) ac_try_echo=$ac_try;;
4139 esac
4140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4141 $as_echo "$ac_try_echo") >&5
4142   (eval "$ac_compile") 2>conftest.er1
4143   ac_status=$?
4144   grep -v '^ *+' conftest.er1 >conftest.err
4145   rm -f conftest.er1
4146   cat conftest.err >&5
4147   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148   (exit $ac_status); } && {
4149          test -z "$ac_c_werror_flag" ||
4150          test ! -s conftest.err
4151        } && test -s conftest.$ac_objext; then
4152   ac_header_compiler=yes
4153 else
4154   $as_echo "$as_me: failed program was:" >&5
4155 sed 's/^/| /' conftest.$ac_ext >&5
4156
4157         ac_header_compiler=no
4158 fi
4159
4160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4161 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4162 $as_echo "$ac_header_compiler" >&6; }
4163
4164 # Is the header present?
4165 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4166 $as_echo_n "checking $ac_header presence... " >&6; }
4167 cat >conftest.$ac_ext <<_ACEOF
4168 /* confdefs.h.  */
4169 _ACEOF
4170 cat confdefs.h >>conftest.$ac_ext
4171 cat >>conftest.$ac_ext <<_ACEOF
4172 /* end confdefs.h.  */
4173 #include <$ac_header>
4174 _ACEOF
4175 if { (ac_try="$ac_cpp conftest.$ac_ext"
4176 case "(($ac_try" in
4177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4178   *) ac_try_echo=$ac_try;;
4179 esac
4180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4181 $as_echo "$ac_try_echo") >&5
4182   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4183   ac_status=$?
4184   grep -v '^ *+' conftest.er1 >conftest.err
4185   rm -f conftest.er1
4186   cat conftest.err >&5
4187   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188   (exit $ac_status); } >/dev/null && {
4189          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4190          test ! -s conftest.err
4191        }; then
4192   ac_header_preproc=yes
4193 else
4194   $as_echo "$as_me: failed program was:" >&5
4195 sed 's/^/| /' conftest.$ac_ext >&5
4196
4197   ac_header_preproc=no
4198 fi
4199
4200 rm -f conftest.err conftest.$ac_ext
4201 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4202 $as_echo "$ac_header_preproc" >&6; }
4203
4204 # So?  What about this header?
4205 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4206   yes:no: )
4207     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4208 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4209     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4210 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4211     ac_header_preproc=yes
4212     ;;
4213   no:yes:* )
4214     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4215 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4216     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4217 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4218     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4219 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4220     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4221 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4222     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4223 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4224     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4225 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4226
4227     ;;
4228 esac
4229 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4230 $as_echo_n "checking for $ac_header... " >&6; }
4231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4232   $as_echo_n "(cached) " >&6
4233 else
4234   eval "$as_ac_Header=\$ac_header_preproc"
4235 fi
4236 ac_res=`eval 'as_val=${'$as_ac_Header'}
4237                  $as_echo "$as_val"'`
4238                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4239 $as_echo "$ac_res" >&6; }
4240
4241 fi
4242 as_val=`eval 'as_val=${'$as_ac_Header'}
4243                  $as_echo "$as_val"'`
4244    if test "x$as_val" = x""yes; then
4245   cat >>confdefs.h <<_ACEOF
4246 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4247 _ACEOF
4248
4249 else
4250   echo "Windows headers not found - aborting"; exit 1
4251 fi
4252
4253 done
4254
4255 fi
4256
4257 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4258 $as_echo_n "checking for ANSI C header files... " >&6; }
4259 if test "${ac_cv_header_stdc+set}" = set; then
4260   $as_echo_n "(cached) " >&6
4261 else
4262   cat >conftest.$ac_ext <<_ACEOF
4263 /* confdefs.h.  */
4264 _ACEOF
4265 cat confdefs.h >>conftest.$ac_ext
4266 cat >>conftest.$ac_ext <<_ACEOF
4267 /* end confdefs.h.  */
4268 #include <stdlib.h>
4269 #include <stdarg.h>
4270 #include <string.h>
4271 #include <float.h>
4272
4273 int
4274 main ()
4275 {
4276
4277   ;
4278   return 0;
4279 }
4280 _ACEOF
4281 rm -f conftest.$ac_objext
4282 if { (ac_try="$ac_compile"
4283 case "(($ac_try" in
4284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4285   *) ac_try_echo=$ac_try;;
4286 esac
4287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4288 $as_echo "$ac_try_echo") >&5
4289   (eval "$ac_compile") 2>conftest.er1
4290   ac_status=$?
4291   grep -v '^ *+' conftest.er1 >conftest.err
4292   rm -f conftest.er1
4293   cat conftest.err >&5
4294   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295   (exit $ac_status); } && {
4296          test -z "$ac_c_werror_flag" ||
4297          test ! -s conftest.err
4298        } && test -s conftest.$ac_objext; then
4299   ac_cv_header_stdc=yes
4300 else
4301   $as_echo "$as_me: failed program was:" >&5
4302 sed 's/^/| /' conftest.$ac_ext >&5
4303
4304         ac_cv_header_stdc=no
4305 fi
4306
4307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4308
4309 if test $ac_cv_header_stdc = yes; then
4310   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4311   cat >conftest.$ac_ext <<_ACEOF
4312 /* confdefs.h.  */
4313 _ACEOF
4314 cat confdefs.h >>conftest.$ac_ext
4315 cat >>conftest.$ac_ext <<_ACEOF
4316 /* end confdefs.h.  */
4317 #include <string.h>
4318
4319 _ACEOF
4320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4321   $EGREP "memchr" >/dev/null 2>&1; then
4322   :
4323 else
4324   ac_cv_header_stdc=no
4325 fi
4326 rm -f conftest*
4327
4328 fi
4329
4330 if test $ac_cv_header_stdc = yes; then
4331   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4332   cat >conftest.$ac_ext <<_ACEOF
4333 /* confdefs.h.  */
4334 _ACEOF
4335 cat confdefs.h >>conftest.$ac_ext
4336 cat >>conftest.$ac_ext <<_ACEOF
4337 /* end confdefs.h.  */
4338 #include <stdlib.h>
4339
4340 _ACEOF
4341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4342   $EGREP "free" >/dev/null 2>&1; then
4343   :
4344 else
4345   ac_cv_header_stdc=no
4346 fi
4347 rm -f conftest*
4348
4349 fi
4350
4351 if test $ac_cv_header_stdc = yes; then
4352   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4353   if test "$cross_compiling" = yes; then
4354   :
4355 else
4356   cat >conftest.$ac_ext <<_ACEOF
4357 /* confdefs.h.  */
4358 _ACEOF
4359 cat confdefs.h >>conftest.$ac_ext
4360 cat >>conftest.$ac_ext <<_ACEOF
4361 /* end confdefs.h.  */
4362 #include <ctype.h>
4363 #include <stdlib.h>
4364 #if ((' ' & 0x0FF) == 0x020)
4365 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4366 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4367 #else
4368 # define ISLOWER(c) \
4369                    (('a' <= (c) && (c) <= 'i') \
4370                      || ('j' <= (c) && (c) <= 'r') \
4371                      || ('s' <= (c) && (c) <= 'z'))
4372 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4373 #endif
4374
4375 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4376 int
4377 main ()
4378 {
4379   int i;
4380   for (i = 0; i < 256; i++)
4381     if (XOR (islower (i), ISLOWER (i))
4382         || toupper (i) != TOUPPER (i))
4383       return 2;
4384   return 0;
4385 }
4386 _ACEOF
4387 rm -f conftest$ac_exeext
4388 if { (ac_try="$ac_link"
4389 case "(($ac_try" in
4390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4391   *) ac_try_echo=$ac_try;;
4392 esac
4393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4394 $as_echo "$ac_try_echo") >&5
4395   (eval "$ac_link") 2>&5
4396   ac_status=$?
4397   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4399   { (case "(($ac_try" in
4400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4401   *) ac_try_echo=$ac_try;;
4402 esac
4403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4404 $as_echo "$ac_try_echo") >&5
4405   (eval "$ac_try") 2>&5
4406   ac_status=$?
4407   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408   (exit $ac_status); }; }; then
4409   :
4410 else
4411   $as_echo "$as_me: program exited with status $ac_status" >&5
4412 $as_echo "$as_me: failed program was:" >&5
4413 sed 's/^/| /' conftest.$ac_ext >&5
4414
4415 ( exit $ac_status )
4416 ac_cv_header_stdc=no
4417 fi
4418 rm -rf conftest.dSYM
4419 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4420 fi
4421
4422
4423 fi
4424 fi
4425 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4426 $as_echo "$ac_cv_header_stdc" >&6; }
4427 if test $ac_cv_header_stdc = yes; then
4428
4429 cat >>confdefs.h <<\_ACEOF
4430 #define STDC_HEADERS 1
4431 _ACEOF
4432
4433 fi
4434
4435
4436
4437
4438
4439
4440 for ac_header in fcntl.h sys/types.h sys/stat.h limits.h unistd.h
4441 do
4442 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4444   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4445 $as_echo_n "checking for $ac_header... " >&6; }
4446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4447   $as_echo_n "(cached) " >&6
4448 fi
4449 ac_res=`eval 'as_val=${'$as_ac_Header'}
4450                  $as_echo "$as_val"'`
4451                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4452 $as_echo "$ac_res" >&6; }
4453 else
4454   # Is the header compilable?
4455 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4456 $as_echo_n "checking $ac_header usability... " >&6; }
4457 cat >conftest.$ac_ext <<_ACEOF
4458 /* confdefs.h.  */
4459 _ACEOF
4460 cat confdefs.h >>conftest.$ac_ext
4461 cat >>conftest.$ac_ext <<_ACEOF
4462 /* end confdefs.h.  */
4463 $ac_includes_default
4464 #include <$ac_header>
4465 _ACEOF
4466 rm -f conftest.$ac_objext
4467 if { (ac_try="$ac_compile"
4468 case "(($ac_try" in
4469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4470   *) ac_try_echo=$ac_try;;
4471 esac
4472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4473 $as_echo "$ac_try_echo") >&5
4474   (eval "$ac_compile") 2>conftest.er1
4475   ac_status=$?
4476   grep -v '^ *+' conftest.er1 >conftest.err
4477   rm -f conftest.er1
4478   cat conftest.err >&5
4479   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480   (exit $ac_status); } && {
4481          test -z "$ac_c_werror_flag" ||
4482          test ! -s conftest.err
4483        } && test -s conftest.$ac_objext; then
4484   ac_header_compiler=yes
4485 else
4486   $as_echo "$as_me: failed program was:" >&5
4487 sed 's/^/| /' conftest.$ac_ext >&5
4488
4489         ac_header_compiler=no
4490 fi
4491
4492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4493 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4494 $as_echo "$ac_header_compiler" >&6; }
4495
4496 # Is the header present?
4497 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4498 $as_echo_n "checking $ac_header presence... " >&6; }
4499 cat >conftest.$ac_ext <<_ACEOF
4500 /* confdefs.h.  */
4501 _ACEOF
4502 cat confdefs.h >>conftest.$ac_ext
4503 cat >>conftest.$ac_ext <<_ACEOF
4504 /* end confdefs.h.  */
4505 #include <$ac_header>
4506 _ACEOF
4507 if { (ac_try="$ac_cpp conftest.$ac_ext"
4508 case "(($ac_try" in
4509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4510   *) ac_try_echo=$ac_try;;
4511 esac
4512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4513 $as_echo "$ac_try_echo") >&5
4514   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4515   ac_status=$?
4516   grep -v '^ *+' conftest.er1 >conftest.err
4517   rm -f conftest.er1
4518   cat conftest.err >&5
4519   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520   (exit $ac_status); } >/dev/null && {
4521          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4522          test ! -s conftest.err
4523        }; then
4524   ac_header_preproc=yes
4525 else
4526   $as_echo "$as_me: failed program was:" >&5
4527 sed 's/^/| /' conftest.$ac_ext >&5
4528
4529   ac_header_preproc=no
4530 fi
4531
4532 rm -f conftest.err conftest.$ac_ext
4533 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4534 $as_echo "$ac_header_preproc" >&6; }
4535
4536 # So?  What about this header?
4537 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4538   yes:no: )
4539     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4540 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4541     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4542 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4543     ac_header_preproc=yes
4544     ;;
4545   no:yes:* )
4546     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4547 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4548     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4549 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4550     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4551 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4552     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4553 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4554     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4555 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4556     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4557 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4558
4559     ;;
4560 esac
4561 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4562 $as_echo_n "checking for $ac_header... " >&6; }
4563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4564   $as_echo_n "(cached) " >&6
4565 else
4566   eval "$as_ac_Header=\$ac_header_preproc"
4567 fi
4568 ac_res=`eval 'as_val=${'$as_ac_Header'}
4569                  $as_echo "$as_val"'`
4570                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4571 $as_echo "$ac_res" >&6; }
4572
4573 fi
4574 as_val=`eval 'as_val=${'$as_ac_Header'}
4575                  $as_echo "$as_val"'`
4576    if test "x$as_val" = x""yes; then
4577   cat >>confdefs.h <<_ACEOF
4578 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4579 _ACEOF
4580
4581 fi
4582
4583 done
4584
4585
4586 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4587 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4588 if test "${ac_cv_c_const+set}" = set; then
4589   $as_echo_n "(cached) " >&6
4590 else
4591   cat >conftest.$ac_ext <<_ACEOF
4592 /* confdefs.h.  */
4593 _ACEOF
4594 cat confdefs.h >>conftest.$ac_ext
4595 cat >>conftest.$ac_ext <<_ACEOF
4596 /* end confdefs.h.  */
4597
4598 int
4599 main ()
4600 {
4601 /* FIXME: Include the comments suggested by Paul. */
4602 #ifndef __cplusplus
4603   /* Ultrix mips cc rejects this.  */
4604   typedef int charset[2];
4605   const charset cs;
4606   /* SunOS 4.1.1 cc rejects this.  */
4607   char const *const *pcpcc;
4608   char **ppc;
4609   /* NEC SVR4.0.2 mips cc rejects this.  */
4610   struct point {int x, y;};
4611   static struct point const zero = {0,0};
4612   /* AIX XL C 1.02.0.0 rejects this.
4613      It does not let you subtract one const X* pointer from another in
4614      an arm of an if-expression whose if-part is not a constant
4615      expression */
4616   const char *g = "string";
4617   pcpcc = &g + (g ? g-g : 0);
4618   /* HPUX 7.0 cc rejects these. */
4619   ++pcpcc;
4620   ppc = (char**) pcpcc;
4621   pcpcc = (char const *const *) ppc;
4622   { /* SCO 3.2v4 cc rejects this.  */
4623     char *t;
4624     char const *s = 0 ? (char *) 0 : (char const *) 0;
4625
4626     *t++ = 0;
4627     if (s) return 0;
4628   }
4629   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4630     int x[] = {25, 17};
4631     const int *foo = &x[0];
4632     ++foo;
4633   }
4634   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4635     typedef const int *iptr;
4636     iptr p = 0;
4637     ++p;
4638   }
4639   { /* AIX XL C 1.02.0.0 rejects this saying
4640        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4641     struct s { int j; const int *ap[3]; };
4642     struct s *b; b->j = 5;
4643   }
4644   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4645     const int foo = 10;
4646     if (!foo) return 0;
4647   }
4648   return !cs[0] && !zero.x;
4649 #endif
4650
4651   ;
4652   return 0;
4653 }
4654 _ACEOF
4655 rm -f conftest.$ac_objext
4656 if { (ac_try="$ac_compile"
4657 case "(($ac_try" in
4658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4659   *) ac_try_echo=$ac_try;;
4660 esac
4661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4662 $as_echo "$ac_try_echo") >&5
4663   (eval "$ac_compile") 2>conftest.er1
4664   ac_status=$?
4665   grep -v '^ *+' conftest.er1 >conftest.err
4666   rm -f conftest.er1
4667   cat conftest.err >&5
4668   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669   (exit $ac_status); } && {
4670          test -z "$ac_c_werror_flag" ||
4671          test ! -s conftest.err
4672        } && test -s conftest.$ac_objext; then
4673   ac_cv_c_const=yes
4674 else
4675   $as_echo "$as_me: failed program was:" >&5
4676 sed 's/^/| /' conftest.$ac_ext >&5
4677
4678         ac_cv_c_const=no
4679 fi
4680
4681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4682 fi
4683 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4684 $as_echo "$ac_cv_c_const" >&6; }
4685 if test $ac_cv_c_const = no; then
4686
4687 cat >>confdefs.h <<\_ACEOF
4688 #define const /**/
4689 _ACEOF
4690
4691 fi
4692
4693 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
4694 $as_echo_n "checking for mode_t... " >&6; }
4695 if test "${ac_cv_type_mode_t+set}" = set; then
4696   $as_echo_n "(cached) " >&6
4697 else
4698   ac_cv_type_mode_t=no
4699 cat >conftest.$ac_ext <<_ACEOF
4700 /* confdefs.h.  */
4701 _ACEOF
4702 cat confdefs.h >>conftest.$ac_ext
4703 cat >>conftest.$ac_ext <<_ACEOF
4704 /* end confdefs.h.  */
4705 $ac_includes_default
4706 int
4707 main ()
4708 {
4709 if (sizeof (mode_t))
4710        return 0;
4711   ;
4712   return 0;
4713 }
4714 _ACEOF
4715 rm -f conftest.$ac_objext
4716 if { (ac_try="$ac_compile"
4717 case "(($ac_try" in
4718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4719   *) ac_try_echo=$ac_try;;
4720 esac
4721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4722 $as_echo "$ac_try_echo") >&5
4723   (eval "$ac_compile") 2>conftest.er1
4724   ac_status=$?
4725   grep -v '^ *+' conftest.er1 >conftest.err
4726   rm -f conftest.er1
4727   cat conftest.err >&5
4728   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729   (exit $ac_status); } && {
4730          test -z "$ac_c_werror_flag" ||
4731          test ! -s conftest.err
4732        } && test -s conftest.$ac_objext; then
4733   cat >conftest.$ac_ext <<_ACEOF
4734 /* confdefs.h.  */
4735 _ACEOF
4736 cat confdefs.h >>conftest.$ac_ext
4737 cat >>conftest.$ac_ext <<_ACEOF
4738 /* end confdefs.h.  */
4739 $ac_includes_default
4740 int
4741 main ()
4742 {
4743 if (sizeof ((mode_t)))
4744           return 0;
4745   ;
4746   return 0;
4747 }
4748 _ACEOF
4749 rm -f conftest.$ac_objext
4750 if { (ac_try="$ac_compile"
4751 case "(($ac_try" in
4752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4753   *) ac_try_echo=$ac_try;;
4754 esac
4755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4756 $as_echo "$ac_try_echo") >&5
4757   (eval "$ac_compile") 2>conftest.er1
4758   ac_status=$?
4759   grep -v '^ *+' conftest.er1 >conftest.err
4760   rm -f conftest.er1
4761   cat conftest.err >&5
4762   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763   (exit $ac_status); } && {
4764          test -z "$ac_c_werror_flag" ||
4765          test ! -s conftest.err
4766        } && test -s conftest.$ac_objext; then
4767   :
4768 else
4769   $as_echo "$as_me: failed program was:" >&5
4770 sed 's/^/| /' conftest.$ac_ext >&5
4771
4772         ac_cv_type_mode_t=yes
4773 fi
4774
4775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4776 else
4777   $as_echo "$as_me: failed program was:" >&5
4778 sed 's/^/| /' conftest.$ac_ext >&5
4779
4780
4781 fi
4782
4783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4784 fi
4785 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
4786 $as_echo "$ac_cv_type_mode_t" >&6; }
4787 if test "x$ac_cv_type_mode_t" = x""yes; then
4788   :
4789 else
4790
4791 cat >>confdefs.h <<_ACEOF
4792 #define mode_t int
4793 _ACEOF
4794
4795 fi
4796
4797 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
4798 $as_echo_n "checking for off_t... " >&6; }
4799 if test "${ac_cv_type_off_t+set}" = set; then
4800   $as_echo_n "(cached) " >&6
4801 else
4802   ac_cv_type_off_t=no
4803 cat >conftest.$ac_ext <<_ACEOF
4804 /* confdefs.h.  */
4805 _ACEOF
4806 cat confdefs.h >>conftest.$ac_ext
4807 cat >>conftest.$ac_ext <<_ACEOF
4808 /* end confdefs.h.  */
4809 $ac_includes_default
4810 int
4811 main ()
4812 {
4813 if (sizeof (off_t))
4814        return 0;
4815   ;
4816   return 0;
4817 }
4818 _ACEOF
4819 rm -f conftest.$ac_objext
4820 if { (ac_try="$ac_compile"
4821 case "(($ac_try" in
4822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4823   *) ac_try_echo=$ac_try;;
4824 esac
4825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4826 $as_echo "$ac_try_echo") >&5
4827   (eval "$ac_compile") 2>conftest.er1
4828   ac_status=$?
4829   grep -v '^ *+' conftest.er1 >conftest.err
4830   rm -f conftest.er1
4831   cat conftest.err >&5
4832   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833   (exit $ac_status); } && {
4834          test -z "$ac_c_werror_flag" ||
4835          test ! -s conftest.err
4836        } && test -s conftest.$ac_objext; then
4837   cat >conftest.$ac_ext <<_ACEOF
4838 /* confdefs.h.  */
4839 _ACEOF
4840 cat confdefs.h >>conftest.$ac_ext
4841 cat >>conftest.$ac_ext <<_ACEOF
4842 /* end confdefs.h.  */
4843 $ac_includes_default
4844 int
4845 main ()
4846 {
4847 if (sizeof ((off_t)))
4848           return 0;
4849   ;
4850   return 0;
4851 }
4852 _ACEOF
4853 rm -f conftest.$ac_objext
4854 if { (ac_try="$ac_compile"
4855 case "(($ac_try" in
4856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4857   *) ac_try_echo=$ac_try;;
4858 esac
4859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4860 $as_echo "$ac_try_echo") >&5
4861   (eval "$ac_compile") 2>conftest.er1
4862   ac_status=$?
4863   grep -v '^ *+' conftest.er1 >conftest.err
4864   rm -f conftest.er1
4865   cat conftest.err >&5
4866   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867   (exit $ac_status); } && {
4868          test -z "$ac_c_werror_flag" ||
4869          test ! -s conftest.err
4870        } && test -s conftest.$ac_objext; then
4871   :
4872 else
4873   $as_echo "$as_me: failed program was:" >&5
4874 sed 's/^/| /' conftest.$ac_ext >&5
4875
4876         ac_cv_type_off_t=yes
4877 fi
4878
4879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4880 else
4881   $as_echo "$as_me: failed program was:" >&5
4882 sed 's/^/| /' conftest.$ac_ext >&5
4883
4884
4885 fi
4886
4887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4888 fi
4889 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4890 $as_echo "$ac_cv_type_off_t" >&6; }
4891 if test "x$ac_cv_type_off_t" = x""yes; then
4892   :
4893 else
4894
4895 cat >>confdefs.h <<_ACEOF
4896 #define off_t long int
4897 _ACEOF
4898
4899 fi
4900
4901 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
4902 $as_echo_n "checking for pid_t... " >&6; }
4903 if test "${ac_cv_type_pid_t+set}" = set; then
4904   $as_echo_n "(cached) " >&6
4905 else
4906   ac_cv_type_pid_t=no
4907 cat >conftest.$ac_ext <<_ACEOF
4908 /* confdefs.h.  */
4909 _ACEOF
4910 cat confdefs.h >>conftest.$ac_ext
4911 cat >>conftest.$ac_ext <<_ACEOF
4912 /* end confdefs.h.  */
4913 $ac_includes_default
4914 int
4915 main ()
4916 {
4917 if (sizeof (pid_t))
4918        return 0;
4919   ;
4920   return 0;
4921 }
4922 _ACEOF
4923 rm -f conftest.$ac_objext
4924 if { (ac_try="$ac_compile"
4925 case "(($ac_try" in
4926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4927   *) ac_try_echo=$ac_try;;
4928 esac
4929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4930 $as_echo "$ac_try_echo") >&5
4931   (eval "$ac_compile") 2>conftest.er1
4932   ac_status=$?
4933   grep -v '^ *+' conftest.er1 >conftest.err
4934   rm -f conftest.er1
4935   cat conftest.err >&5
4936   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937   (exit $ac_status); } && {
4938          test -z "$ac_c_werror_flag" ||
4939          test ! -s conftest.err
4940        } && test -s conftest.$ac_objext; then
4941   cat >conftest.$ac_ext <<_ACEOF
4942 /* confdefs.h.  */
4943 _ACEOF
4944 cat confdefs.h >>conftest.$ac_ext
4945 cat >>conftest.$ac_ext <<_ACEOF
4946 /* end confdefs.h.  */
4947 $ac_includes_default
4948 int
4949 main ()
4950 {
4951 if (sizeof ((pid_t)))
4952           return 0;
4953   ;
4954   return 0;
4955 }
4956 _ACEOF
4957 rm -f conftest.$ac_objext
4958 if { (ac_try="$ac_compile"
4959 case "(($ac_try" in
4960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4961   *) ac_try_echo=$ac_try;;
4962 esac
4963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4964 $as_echo "$ac_try_echo") >&5
4965   (eval "$ac_compile") 2>conftest.er1
4966   ac_status=$?
4967   grep -v '^ *+' conftest.er1 >conftest.err
4968   rm -f conftest.er1
4969   cat conftest.err >&5
4970   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971   (exit $ac_status); } && {
4972          test -z "$ac_c_werror_flag" ||
4973          test ! -s conftest.err
4974        } && test -s conftest.$ac_objext; then
4975   :
4976 else
4977   $as_echo "$as_me: failed program was:" >&5
4978 sed 's/^/| /' conftest.$ac_ext >&5
4979
4980         ac_cv_type_pid_t=yes
4981 fi
4982
4983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4984 else
4985   $as_echo "$as_me: failed program was:" >&5
4986 sed 's/^/| /' conftest.$ac_ext >&5
4987
4988
4989 fi
4990
4991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4992 fi
4993 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4994 $as_echo "$ac_cv_type_pid_t" >&6; }
4995 if test "x$ac_cv_type_pid_t" = x""yes; then
4996   :
4997 else
4998
4999 cat >>confdefs.h <<_ACEOF
5000 #define pid_t int
5001 _ACEOF
5002
5003 fi
5004
5005 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
5006 $as_echo_n "checking for size_t... " >&6; }
5007 if test "${ac_cv_type_size_t+set}" = set; then
5008   $as_echo_n "(cached) " >&6
5009 else
5010   ac_cv_type_size_t=no
5011 cat >conftest.$ac_ext <<_ACEOF
5012 /* confdefs.h.  */
5013 _ACEOF
5014 cat confdefs.h >>conftest.$ac_ext
5015 cat >>conftest.$ac_ext <<_ACEOF
5016 /* end confdefs.h.  */
5017 $ac_includes_default
5018 int
5019 main ()
5020 {
5021 if (sizeof (size_t))
5022        return 0;
5023   ;
5024   return 0;
5025 }
5026 _ACEOF
5027 rm -f conftest.$ac_objext
5028 if { (ac_try="$ac_compile"
5029 case "(($ac_try" in
5030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5031   *) ac_try_echo=$ac_try;;
5032 esac
5033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5034 $as_echo "$ac_try_echo") >&5
5035   (eval "$ac_compile") 2>conftest.er1
5036   ac_status=$?
5037   grep -v '^ *+' conftest.er1 >conftest.err
5038   rm -f conftest.er1
5039   cat conftest.err >&5
5040   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041   (exit $ac_status); } && {
5042          test -z "$ac_c_werror_flag" ||
5043          test ! -s conftest.err
5044        } && test -s conftest.$ac_objext; then
5045   cat >conftest.$ac_ext <<_ACEOF
5046 /* confdefs.h.  */
5047 _ACEOF
5048 cat confdefs.h >>conftest.$ac_ext
5049 cat >>conftest.$ac_ext <<_ACEOF
5050 /* end confdefs.h.  */
5051 $ac_includes_default
5052 int
5053 main ()
5054 {
5055 if (sizeof ((size_t)))
5056           return 0;
5057   ;
5058   return 0;
5059 }
5060 _ACEOF
5061 rm -f conftest.$ac_objext
5062 if { (ac_try="$ac_compile"
5063 case "(($ac_try" in
5064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5065   *) ac_try_echo=$ac_try;;
5066 esac
5067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5068 $as_echo "$ac_try_echo") >&5
5069   (eval "$ac_compile") 2>conftest.er1
5070   ac_status=$?
5071   grep -v '^ *+' conftest.er1 >conftest.err
5072   rm -f conftest.er1
5073   cat conftest.err >&5
5074   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075   (exit $ac_status); } && {
5076          test -z "$ac_c_werror_flag" ||
5077          test ! -s conftest.err
5078        } && test -s conftest.$ac_objext; then
5079   :
5080 else
5081   $as_echo "$as_me: failed program was:" >&5
5082 sed 's/^/| /' conftest.$ac_ext >&5
5083
5084         ac_cv_type_size_t=yes
5085 fi
5086
5087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5088 else
5089   $as_echo "$as_me: failed program was:" >&5
5090 sed 's/^/| /' conftest.$ac_ext >&5
5091
5092
5093 fi
5094
5095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5096 fi
5097 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5098 $as_echo "$ac_cv_type_size_t" >&6; }
5099 if test "x$ac_cv_type_size_t" = x""yes; then
5100   :
5101 else
5102
5103 cat >>confdefs.h <<_ACEOF
5104 #define size_t unsigned int
5105 _ACEOF
5106
5107 fi
5108
5109 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5110 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5111 if test "${ac_cv_struct_tm+set}" = set; then
5112   $as_echo_n "(cached) " >&6
5113 else
5114   cat >conftest.$ac_ext <<_ACEOF
5115 /* confdefs.h.  */
5116 _ACEOF
5117 cat confdefs.h >>conftest.$ac_ext
5118 cat >>conftest.$ac_ext <<_ACEOF
5119 /* end confdefs.h.  */
5120 #include <sys/types.h>
5121 #include <time.h>
5122
5123 int
5124 main ()
5125 {
5126 struct tm tm;
5127                                      int *p = &tm.tm_sec;
5128                                      return !p;
5129   ;
5130   return 0;
5131 }
5132 _ACEOF
5133 rm -f conftest.$ac_objext
5134 if { (ac_try="$ac_compile"
5135 case "(($ac_try" in
5136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5137   *) ac_try_echo=$ac_try;;
5138 esac
5139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5140 $as_echo "$ac_try_echo") >&5
5141   (eval "$ac_compile") 2>conftest.er1
5142   ac_status=$?
5143   grep -v '^ *+' conftest.er1 >conftest.err
5144   rm -f conftest.er1
5145   cat conftest.err >&5
5146   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147   (exit $ac_status); } && {
5148          test -z "$ac_c_werror_flag" ||
5149          test ! -s conftest.err
5150        } && test -s conftest.$ac_objext; then
5151   ac_cv_struct_tm=time.h
5152 else
5153   $as_echo "$as_me: failed program was:" >&5
5154 sed 's/^/| /' conftest.$ac_ext >&5
5155
5156         ac_cv_struct_tm=sys/time.h
5157 fi
5158
5159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5160 fi
5161 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5162 $as_echo "$ac_cv_struct_tm" >&6; }
5163 if test $ac_cv_struct_tm = sys/time.h; then
5164
5165 cat >>confdefs.h <<\_ACEOF
5166 #define TM_IN_SYS_TIME 1
5167 _ACEOF
5168
5169 fi
5170
5171
5172
5173 # Check whether --enable-largefile was given.
5174 if test "${enable_largefile+set}" = set; then
5175   enableval=$enable_largefile;
5176 fi
5177
5178 if test "$enable_largefile" != no; then
5179
5180   { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5181 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5182 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5183   $as_echo_n "(cached) " >&6
5184 else
5185   ac_cv_sys_largefile_CC=no
5186      if test "$GCC" != yes; then
5187        ac_save_CC=$CC
5188        while :; do
5189          # IRIX 6.2 and later do not support large files by default,
5190          # so use the C compiler's -n32 option if that helps.
5191          cat >conftest.$ac_ext <<_ACEOF
5192 /* confdefs.h.  */
5193 _ACEOF
5194 cat confdefs.h >>conftest.$ac_ext
5195 cat >>conftest.$ac_ext <<_ACEOF
5196 /* end confdefs.h.  */
5197 #include <sys/types.h>
5198  /* Check that off_t can represent 2**63 - 1 correctly.
5199     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5200     since some C++ compilers masquerading as C compilers
5201     incorrectly reject 9223372036854775807.  */
5202 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5203   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5204                        && LARGE_OFF_T % 2147483647 == 1)
5205                       ? 1 : -1];
5206 int
5207 main ()
5208 {
5209
5210   ;
5211   return 0;
5212 }
5213 _ACEOF
5214          rm -f conftest.$ac_objext
5215 if { (ac_try="$ac_compile"
5216 case "(($ac_try" in
5217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5218   *) ac_try_echo=$ac_try;;
5219 esac
5220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5221 $as_echo "$ac_try_echo") >&5
5222   (eval "$ac_compile") 2>conftest.er1
5223   ac_status=$?
5224   grep -v '^ *+' conftest.er1 >conftest.err
5225   rm -f conftest.er1
5226   cat conftest.err >&5
5227   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228   (exit $ac_status); } && {
5229          test -z "$ac_c_werror_flag" ||
5230          test ! -s conftest.err
5231        } && test -s conftest.$ac_objext; then
5232   break
5233 else
5234   $as_echo "$as_me: failed program was:" >&5
5235 sed 's/^/| /' conftest.$ac_ext >&5
5236
5237
5238 fi
5239
5240 rm -f core conftest.err conftest.$ac_objext
5241          CC="$CC -n32"
5242          rm -f conftest.$ac_objext
5243 if { (ac_try="$ac_compile"
5244 case "(($ac_try" in
5245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5246   *) ac_try_echo=$ac_try;;
5247 esac
5248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5249 $as_echo "$ac_try_echo") >&5
5250   (eval "$ac_compile") 2>conftest.er1
5251   ac_status=$?
5252   grep -v '^ *+' conftest.er1 >conftest.err
5253   rm -f conftest.er1
5254   cat conftest.err >&5
5255   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256   (exit $ac_status); } && {
5257          test -z "$ac_c_werror_flag" ||
5258          test ! -s conftest.err
5259        } && test -s conftest.$ac_objext; then
5260   ac_cv_sys_largefile_CC=' -n32'; break
5261 else
5262   $as_echo "$as_me: failed program was:" >&5
5263 sed 's/^/| /' conftest.$ac_ext >&5
5264
5265
5266 fi
5267
5268 rm -f core conftest.err conftest.$ac_objext
5269          break
5270        done
5271        CC=$ac_save_CC
5272        rm -f conftest.$ac_ext
5273     fi
5274 fi
5275 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5276 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5277   if test "$ac_cv_sys_largefile_CC" != no; then
5278     CC=$CC$ac_cv_sys_largefile_CC
5279   fi
5280
5281   { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5282 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5283 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5284   $as_echo_n "(cached) " >&6
5285 else
5286   while :; do
5287   cat >conftest.$ac_ext <<_ACEOF
5288 /* confdefs.h.  */
5289 _ACEOF
5290 cat confdefs.h >>conftest.$ac_ext
5291 cat >>conftest.$ac_ext <<_ACEOF
5292 /* end confdefs.h.  */
5293 #include <sys/types.h>
5294  /* Check that off_t can represent 2**63 - 1 correctly.
5295     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5296     since some C++ compilers masquerading as C compilers
5297     incorrectly reject 9223372036854775807.  */
5298 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5299   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5300                        && LARGE_OFF_T % 2147483647 == 1)
5301                       ? 1 : -1];
5302 int
5303 main ()
5304 {
5305
5306   ;
5307   return 0;
5308 }
5309 _ACEOF
5310 rm -f conftest.$ac_objext
5311 if { (ac_try="$ac_compile"
5312 case "(($ac_try" in
5313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5314   *) ac_try_echo=$ac_try;;
5315 esac
5316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5317 $as_echo "$ac_try_echo") >&5
5318   (eval "$ac_compile") 2>conftest.er1
5319   ac_status=$?
5320   grep -v '^ *+' conftest.er1 >conftest.err
5321   rm -f conftest.er1
5322   cat conftest.err >&5
5323   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324   (exit $ac_status); } && {
5325          test -z "$ac_c_werror_flag" ||
5326          test ! -s conftest.err
5327        } && test -s conftest.$ac_objext; then
5328   ac_cv_sys_file_offset_bits=no; break
5329 else
5330   $as_echo "$as_me: failed program was:" >&5
5331 sed 's/^/| /' conftest.$ac_ext >&5
5332
5333
5334 fi
5335
5336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5337   cat >conftest.$ac_ext <<_ACEOF
5338 /* confdefs.h.  */
5339 _ACEOF
5340 cat confdefs.h >>conftest.$ac_ext
5341 cat >>conftest.$ac_ext <<_ACEOF
5342 /* end confdefs.h.  */
5343 #define _FILE_OFFSET_BITS 64
5344 #include <sys/types.h>
5345  /* Check that off_t can represent 2**63 - 1 correctly.
5346     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5347     since some C++ compilers masquerading as C compilers
5348     incorrectly reject 9223372036854775807.  */
5349 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5350   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5351                        && LARGE_OFF_T % 2147483647 == 1)
5352                       ? 1 : -1];
5353 int
5354 main ()
5355 {
5356
5357   ;
5358   return 0;
5359 }
5360 _ACEOF
5361 rm -f conftest.$ac_objext
5362 if { (ac_try="$ac_compile"
5363 case "(($ac_try" in
5364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5365   *) ac_try_echo=$ac_try;;
5366 esac
5367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5368 $as_echo "$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   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375   (exit $ac_status); } && {
5376          test -z "$ac_c_werror_flag" ||
5377          test ! -s conftest.err
5378        } && test -s conftest.$ac_objext; then
5379   ac_cv_sys_file_offset_bits=64; break
5380 else
5381   $as_echo "$as_me: failed program was:" >&5
5382 sed 's/^/| /' conftest.$ac_ext >&5
5383
5384
5385 fi
5386
5387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5388   ac_cv_sys_file_offset_bits=unknown
5389   break
5390 done
5391 fi
5392 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5393 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5394 case $ac_cv_sys_file_offset_bits in #(
5395   no | unknown) ;;
5396   *)
5397 cat >>confdefs.h <<_ACEOF
5398 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5399 _ACEOF
5400 ;;
5401 esac
5402 rm -rf conftest*
5403   if test $ac_cv_sys_file_offset_bits = unknown; then
5404     { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5405 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5406 if test "${ac_cv_sys_large_files+set}" = set; then
5407   $as_echo_n "(cached) " >&6
5408 else
5409   while :; do
5410   cat >conftest.$ac_ext <<_ACEOF
5411 /* confdefs.h.  */
5412 _ACEOF
5413 cat confdefs.h >>conftest.$ac_ext
5414 cat >>conftest.$ac_ext <<_ACEOF
5415 /* end confdefs.h.  */
5416 #include <sys/types.h>
5417  /* Check that off_t can represent 2**63 - 1 correctly.
5418     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5419     since some C++ compilers masquerading as C compilers
5420     incorrectly reject 9223372036854775807.  */
5421 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5422   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5423                        && LARGE_OFF_T % 2147483647 == 1)
5424                       ? 1 : -1];
5425 int
5426 main ()
5427 {
5428
5429   ;
5430   return 0;
5431 }
5432 _ACEOF
5433 rm -f conftest.$ac_objext
5434 if { (ac_try="$ac_compile"
5435 case "(($ac_try" in
5436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5437   *) ac_try_echo=$ac_try;;
5438 esac
5439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5440 $as_echo "$ac_try_echo") >&5
5441   (eval "$ac_compile") 2>conftest.er1
5442   ac_status=$?
5443   grep -v '^ *+' conftest.er1 >conftest.err
5444   rm -f conftest.er1
5445   cat conftest.err >&5
5446   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447   (exit $ac_status); } && {
5448          test -z "$ac_c_werror_flag" ||
5449          test ! -s conftest.err
5450        } && test -s conftest.$ac_objext; then
5451   ac_cv_sys_large_files=no; break
5452 else
5453   $as_echo "$as_me: failed program was:" >&5
5454 sed 's/^/| /' conftest.$ac_ext >&5
5455
5456
5457 fi
5458
5459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5460   cat >conftest.$ac_ext <<_ACEOF
5461 /* confdefs.h.  */
5462 _ACEOF
5463 cat confdefs.h >>conftest.$ac_ext
5464 cat >>conftest.$ac_ext <<_ACEOF
5465 /* end confdefs.h.  */
5466 #define _LARGE_FILES 1
5467 #include <sys/types.h>
5468  /* Check that off_t can represent 2**63 - 1 correctly.
5469     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5470     since some C++ compilers masquerading as C compilers
5471     incorrectly reject 9223372036854775807.  */
5472 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5473   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5474                        && LARGE_OFF_T % 2147483647 == 1)
5475                       ? 1 : -1];
5476 int
5477 main ()
5478 {
5479
5480   ;
5481   return 0;
5482 }
5483 _ACEOF
5484 rm -f conftest.$ac_objext
5485 if { (ac_try="$ac_compile"
5486 case "(($ac_try" in
5487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5488   *) ac_try_echo=$ac_try;;
5489 esac
5490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5491 $as_echo "$ac_try_echo") >&5
5492   (eval "$ac_compile") 2>conftest.er1
5493   ac_status=$?
5494   grep -v '^ *+' conftest.er1 >conftest.err
5495   rm -f conftest.er1
5496   cat conftest.err >&5
5497   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498   (exit $ac_status); } && {
5499          test -z "$ac_c_werror_flag" ||
5500          test ! -s conftest.err
5501        } && test -s conftest.$ac_objext; then
5502   ac_cv_sys_large_files=1; break
5503 else
5504   $as_echo "$as_me: failed program was:" >&5
5505 sed 's/^/| /' conftest.$ac_ext >&5
5506
5507
5508 fi
5509
5510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5511   ac_cv_sys_large_files=unknown
5512   break
5513 done
5514 fi
5515 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5516 $as_echo "$ac_cv_sys_large_files" >&6; }
5517 case $ac_cv_sys_large_files in #(
5518   no | unknown) ;;
5519   *)
5520 cat >>confdefs.h <<_ACEOF
5521 #define _LARGE_FILES $ac_cv_sys_large_files
5522 _ACEOF
5523 ;;
5524 esac
5525 rm -rf conftest*
5526   fi
5527 fi
5528
5529
5530 if test x"$FSED_CPM" != x""; then
5531   FSED_CPM="$FSED_CPM$EXEEXT"
5532 fi
5533
5534 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
5535 $as_echo_n "checking for working memcmp... " >&6; }
5536 if test "${ac_cv_func_memcmp_working+set}" = set; then
5537   $as_echo_n "(cached) " >&6
5538 else
5539   if test "$cross_compiling" = yes; then
5540   ac_cv_func_memcmp_working=no
5541 else
5542   cat >conftest.$ac_ext <<_ACEOF
5543 /* confdefs.h.  */
5544 _ACEOF
5545 cat confdefs.h >>conftest.$ac_ext
5546 cat >>conftest.$ac_ext <<_ACEOF
5547 /* end confdefs.h.  */
5548 $ac_includes_default
5549 int
5550 main ()
5551 {
5552
5553   /* Some versions of memcmp are not 8-bit clean.  */
5554   char c0 = '\100', c1 = '\200', c2 = '\201';
5555   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
5556     return 1;
5557
5558   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
5559      or more and with at least one buffer not starting on a 4-byte boundary.
5560      William Lewis provided this test program.   */
5561   {
5562     char foo[21];
5563     char bar[21];
5564     int i;
5565     for (i = 0; i < 4; i++)
5566       {
5567         char *a = foo + i;
5568         char *b = bar + i;
5569         strcpy (a, "--------01111111");
5570         strcpy (b, "--------10000000");
5571         if (memcmp (a, b, 16) >= 0)
5572           return 1;
5573       }
5574     return 0;
5575   }
5576
5577   ;
5578   return 0;
5579 }
5580 _ACEOF
5581 rm -f conftest$ac_exeext
5582 if { (ac_try="$ac_link"
5583 case "(($ac_try" in
5584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5585   *) ac_try_echo=$ac_try;;
5586 esac
5587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5588 $as_echo "$ac_try_echo") >&5
5589   (eval "$ac_link") 2>&5
5590   ac_status=$?
5591   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5593   { (case "(($ac_try" in
5594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5595   *) ac_try_echo=$ac_try;;
5596 esac
5597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5598 $as_echo "$ac_try_echo") >&5
5599   (eval "$ac_try") 2>&5
5600   ac_status=$?
5601   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602   (exit $ac_status); }; }; then
5603   ac_cv_func_memcmp_working=yes
5604 else
5605   $as_echo "$as_me: program exited with status $ac_status" >&5
5606 $as_echo "$as_me: failed program was:" >&5
5607 sed 's/^/| /' conftest.$ac_ext >&5
5608
5609 ( exit $ac_status )
5610 ac_cv_func_memcmp_working=no
5611 fi
5612 rm -rf conftest.dSYM
5613 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5614 fi
5615
5616
5617 fi
5618 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
5619 $as_echo "$ac_cv_func_memcmp_working" >&6; }
5620 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
5621   *" memcmp.$ac_objext "* ) ;;
5622   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
5623  ;;
5624 esac
5625
5626
5627
5628 for ac_func in strftime
5629 do
5630 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5631 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
5632 $as_echo_n "checking for $ac_func... " >&6; }
5633 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5634   $as_echo_n "(cached) " >&6
5635 else
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5643    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5644 #define $ac_func innocuous_$ac_func
5645
5646 /* System header to define __stub macros and hopefully few prototypes,
5647     which can conflict with char $ac_func (); below.
5648     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5649     <limits.h> exists even on freestanding compilers.  */
5650
5651 #ifdef __STDC__
5652 # include <limits.h>
5653 #else
5654 # include <assert.h>
5655 #endif
5656
5657 #undef $ac_func
5658
5659 /* Override any GCC internal prototype to avoid an error.
5660    Use char because int might match the return type of a GCC
5661    builtin and then its argument prototype would still apply.  */
5662 #ifdef __cplusplus
5663 extern "C"
5664 #endif
5665 char $ac_func ();
5666 /* The GNU C library defines this for functions which it implements
5667     to always fail with ENOSYS.  Some functions are actually named
5668     something starting with __ and the normal name is an alias.  */
5669 #if defined __stub_$ac_func || defined __stub___$ac_func
5670 choke me
5671 #endif
5672
5673 int
5674 main ()
5675 {
5676 return $ac_func ();
5677   ;
5678   return 0;
5679 }
5680 _ACEOF
5681 rm -f conftest.$ac_objext conftest$ac_exeext
5682 if { (ac_try="$ac_link"
5683 case "(($ac_try" in
5684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5685   *) ac_try_echo=$ac_try;;
5686 esac
5687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5688 $as_echo "$ac_try_echo") >&5
5689   (eval "$ac_link") 2>conftest.er1
5690   ac_status=$?
5691   grep -v '^ *+' conftest.er1 >conftest.err
5692   rm -f conftest.er1
5693   cat conftest.err >&5
5694   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695   (exit $ac_status); } && {
5696          test -z "$ac_c_werror_flag" ||
5697          test ! -s conftest.err
5698        } && test -s conftest$ac_exeext && {
5699          test "$cross_compiling" = yes ||
5700          $as_test_x conftest$ac_exeext
5701        }; then
5702   eval "$as_ac_var=yes"
5703 else
5704   $as_echo "$as_me: failed program was:" >&5
5705 sed 's/^/| /' conftest.$ac_ext >&5
5706
5707         eval "$as_ac_var=no"
5708 fi
5709
5710 rm -rf conftest.dSYM
5711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5712       conftest$ac_exeext conftest.$ac_ext
5713 fi
5714 ac_res=`eval 'as_val=${'$as_ac_var'}
5715                  $as_echo "$as_val"'`
5716                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5717 $as_echo "$ac_res" >&6; }
5718 as_val=`eval 'as_val=${'$as_ac_var'}
5719                  $as_echo "$as_val"'`
5720    if test "x$as_val" = x""yes; then
5721   cat >>confdefs.h <<_ACEOF
5722 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5723 _ACEOF
5724
5725 else
5726   # strftime is in -lintl on SCO UNIX.
5727 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
5728 $as_echo_n "checking for strftime in -lintl... " >&6; }
5729 if test "${ac_cv_lib_intl_strftime+set}" = set; then
5730   $as_echo_n "(cached) " >&6
5731 else
5732   ac_check_lib_save_LIBS=$LIBS
5733 LIBS="-lintl  $LIBS"
5734 cat >conftest.$ac_ext <<_ACEOF
5735 /* confdefs.h.  */
5736 _ACEOF
5737 cat confdefs.h >>conftest.$ac_ext
5738 cat >>conftest.$ac_ext <<_ACEOF
5739 /* end confdefs.h.  */
5740
5741 /* Override any GCC internal prototype to avoid an error.
5742    Use char because int might match the return type of a GCC
5743    builtin and then its argument prototype would still apply.  */
5744 #ifdef __cplusplus
5745 extern "C"
5746 #endif
5747 char strftime ();
5748 int
5749 main ()
5750 {
5751 return strftime ();
5752   ;
5753   return 0;
5754 }
5755 _ACEOF
5756 rm -f conftest.$ac_objext conftest$ac_exeext
5757 if { (ac_try="$ac_link"
5758 case "(($ac_try" in
5759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5760   *) ac_try_echo=$ac_try;;
5761 esac
5762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5763 $as_echo "$ac_try_echo") >&5
5764   (eval "$ac_link") 2>conftest.er1
5765   ac_status=$?
5766   grep -v '^ *+' conftest.er1 >conftest.err
5767   rm -f conftest.er1
5768   cat conftest.err >&5
5769   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770   (exit $ac_status); } && {
5771          test -z "$ac_c_werror_flag" ||
5772          test ! -s conftest.err
5773        } && test -s conftest$ac_exeext && {
5774          test "$cross_compiling" = yes ||
5775          $as_test_x conftest$ac_exeext
5776        }; then
5777   ac_cv_lib_intl_strftime=yes
5778 else
5779   $as_echo "$as_me: failed program was:" >&5
5780 sed 's/^/| /' conftest.$ac_ext >&5
5781
5782         ac_cv_lib_intl_strftime=no
5783 fi
5784
5785 rm -rf conftest.dSYM
5786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5787       conftest$ac_exeext conftest.$ac_ext
5788 LIBS=$ac_check_lib_save_LIBS
5789 fi
5790 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
5791 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
5792 if test "x$ac_cv_lib_intl_strftime" = x""yes; then
5793   cat >>confdefs.h <<\_ACEOF
5794 #define HAVE_STRFTIME 1
5795 _ACEOF
5796
5797 LIBS="-lintl $LIBS"
5798 fi
5799
5800 fi
5801 done
5802
5803
5804
5805 for ac_func in mktime strerror
5806 do
5807 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5808 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
5809 $as_echo_n "checking for $ac_func... " >&6; }
5810 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5811   $as_echo_n "(cached) " >&6
5812 else
5813   cat >conftest.$ac_ext <<_ACEOF
5814 /* confdefs.h.  */
5815 _ACEOF
5816 cat confdefs.h >>conftest.$ac_ext
5817 cat >>conftest.$ac_ext <<_ACEOF
5818 /* end confdefs.h.  */
5819 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5820    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5821 #define $ac_func innocuous_$ac_func
5822
5823 /* System header to define __stub macros and hopefully few prototypes,
5824     which can conflict with char $ac_func (); below.
5825     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5826     <limits.h> exists even on freestanding compilers.  */
5827
5828 #ifdef __STDC__
5829 # include <limits.h>
5830 #else
5831 # include <assert.h>
5832 #endif
5833
5834 #undef $ac_func
5835
5836 /* Override any GCC internal prototype to avoid an error.
5837    Use char because int might match the return type of a GCC
5838    builtin and then its argument prototype would still apply.  */
5839 #ifdef __cplusplus
5840 extern "C"
5841 #endif
5842 char $ac_func ();
5843 /* The GNU C library defines this for functions which it implements
5844     to always fail with ENOSYS.  Some functions are actually named
5845     something starting with __ and the normal name is an alias.  */
5846 #if defined __stub_$ac_func || defined __stub___$ac_func
5847 choke me
5848 #endif
5849
5850 int
5851 main ()
5852 {
5853 return $ac_func ();
5854   ;
5855   return 0;
5856 }
5857 _ACEOF
5858 rm -f conftest.$ac_objext conftest$ac_exeext
5859 if { (ac_try="$ac_link"
5860 case "(($ac_try" in
5861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5862   *) ac_try_echo=$ac_try;;
5863 esac
5864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5865 $as_echo "$ac_try_echo") >&5
5866   (eval "$ac_link") 2>conftest.er1
5867   ac_status=$?
5868   grep -v '^ *+' conftest.er1 >conftest.err
5869   rm -f conftest.er1
5870   cat conftest.err >&5
5871   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872   (exit $ac_status); } && {
5873          test -z "$ac_c_werror_flag" ||
5874          test ! -s conftest.err
5875        } && test -s conftest$ac_exeext && {
5876          test "$cross_compiling" = yes ||
5877          $as_test_x conftest$ac_exeext
5878        }; then
5879   eval "$as_ac_var=yes"
5880 else
5881   $as_echo "$as_me: failed program was:" >&5
5882 sed 's/^/| /' conftest.$ac_ext >&5
5883
5884         eval "$as_ac_var=no"
5885 fi
5886
5887 rm -rf conftest.dSYM
5888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5889       conftest$ac_exeext conftest.$ac_ext
5890 fi
5891 ac_res=`eval 'as_val=${'$as_ac_var'}
5892                  $as_echo "$as_val"'`
5893                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5894 $as_echo "$ac_res" >&6; }
5895 as_val=`eval 'as_val=${'$as_ac_var'}
5896                  $as_echo "$as_val"'`
5897    if test "x$as_val" = x""yes; then
5898   cat >>confdefs.h <<_ACEOF
5899 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5900 _ACEOF
5901
5902 fi
5903 done
5904
5905
5906
5907
5908
5909 eval DATADIR=$datadir
5910
5911
5912
5913
5914
5915 ac_config_files="$ac_config_files Makefile cpm.5 cpmchattr.1 cpmchmod.1 cpmcp.1 cpmls.1 cpmrm.1 fsck.cpm.1 fsed.cpm.1 mkfs.cpm.1"
5916
5917 cat >confcache <<\_ACEOF
5918 # This file is a shell script that caches the results of configure
5919 # tests run on this system so they can be shared between configure
5920 # scripts and configure runs, see configure's option --config-cache.
5921 # It is not useful on other systems.  If it contains results you don't
5922 # want to keep, you may remove or edit it.
5923 #
5924 # config.status only pays attention to the cache file if you give it
5925 # the --recheck option to rerun configure.
5926 #
5927 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5928 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5929 # following values.
5930
5931 _ACEOF
5932
5933 # The following way of writing the cache mishandles newlines in values,
5934 # but we know of no workaround that is simple, portable, and efficient.
5935 # So, we kill variables containing newlines.
5936 # Ultrix sh set writes to stderr and can't be redirected directly,
5937 # and sets the high bit in the cache file unless we assign to the vars.
5938 (
5939   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5940     eval ac_val=\$$ac_var
5941     case $ac_val in #(
5942     *${as_nl}*)
5943       case $ac_var in #(
5944       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
5945 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5946       esac
5947       case $ac_var in #(
5948       _ | IFS | as_nl) ;; #(
5949       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5950       *) $as_unset $ac_var ;;
5951       esac ;;
5952     esac
5953   done
5954
5955   (set) 2>&1 |
5956     case $as_nl`(ac_space=' '; set) 2>&1` in #(
5957     *${as_nl}ac_space=\ *)
5958       # `set' does not quote correctly, so add quotes (double-quote
5959       # substitution turns \\\\ into \\, and sed turns \\ into \).
5960       sed -n \
5961         "s/'/'\\\\''/g;
5962           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5963       ;; #(
5964     *)
5965       # `set' quotes correctly as required by POSIX, so do not add quotes.
5966       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5967       ;;
5968     esac |
5969     sort
5970 ) |
5971   sed '
5972      /^ac_cv_env_/b end
5973      t clear
5974      :clear
5975      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5976      t end
5977      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5978      :end' >>confcache
5979 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5980   if test -w "$cache_file"; then
5981     test "x$cache_file" != "x/dev/null" &&
5982       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
5983 $as_echo "$as_me: updating cache $cache_file" >&6;}
5984     cat confcache >$cache_file
5985   else
5986     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
5987 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5988   fi
5989 fi
5990 rm -f confcache
5991
5992 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5993 # Let make expand exec_prefix.
5994 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5995
5996 DEFS=-DHAVE_CONFIG_H
5997
5998 ac_libobjs=
5999 ac_ltlibobjs=
6000 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6001   # 1. Remove the extension, and $U if already installed.
6002   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6003   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6004   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
6005   #    will be set to the directory where LIBOBJS objects are built.
6006   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6007   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
6008 done
6009 LIBOBJS=$ac_libobjs
6010
6011 LTLIBOBJS=$ac_ltlibobjs
6012
6013
6014
6015 : ${CONFIG_STATUS=./config.status}
6016 ac_write_fail=0
6017 ac_clean_files_save=$ac_clean_files
6018 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6019 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6020 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6021 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6022 #! $SHELL
6023 # Generated by $as_me.
6024 # Run this file to recreate the current configuration.
6025 # Compiler output produced by configure, useful for debugging
6026 # configure, is in config.log if it exists.
6027
6028 debug=false
6029 ac_cs_recheck=false
6030 ac_cs_silent=false
6031 SHELL=\${CONFIG_SHELL-$SHELL}
6032 _ACEOF
6033
6034 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6035 ## --------------------- ##
6036 ## M4sh Initialization.  ##
6037 ## --------------------- ##
6038
6039 # Be more Bourne compatible
6040 DUALCASE=1; export DUALCASE # for MKS sh
6041 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6042   emulate sh
6043   NULLCMD=:
6044   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6045   # is contrary to our usage.  Disable this feature.
6046   alias -g '${1+"$@"}'='"$@"'
6047   setopt NO_GLOB_SUBST
6048 else
6049   case `(set -o) 2>/dev/null` in
6050   *posix*) set -o posix ;;
6051 esac
6052
6053 fi
6054
6055
6056
6057
6058 # PATH needs CR
6059 # Avoid depending upon Character Ranges.
6060 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6061 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6062 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6063 as_cr_digits='0123456789'
6064 as_cr_alnum=$as_cr_Letters$as_cr_digits
6065
6066 as_nl='
6067 '
6068 export as_nl
6069 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6070 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6071 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6072 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6073 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6074   as_echo='printf %s\n'
6075   as_echo_n='printf %s'
6076 else
6077   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6078     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6079     as_echo_n='/usr/ucb/echo -n'
6080   else
6081     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6082     as_echo_n_body='eval
6083       arg=$1;
6084       case $arg in
6085       *"$as_nl"*)
6086         expr "X$arg" : "X\\(.*\\)$as_nl";
6087         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6088       esac;
6089       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6090     '
6091     export as_echo_n_body
6092     as_echo_n='sh -c $as_echo_n_body as_echo'
6093   fi
6094   export as_echo_body
6095   as_echo='sh -c $as_echo_body as_echo'
6096 fi
6097
6098 # The user is always right.
6099 if test "${PATH_SEPARATOR+set}" != set; then
6100   PATH_SEPARATOR=:
6101   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6102     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6103       PATH_SEPARATOR=';'
6104   }
6105 fi
6106
6107 # Support unset when possible.
6108 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6109   as_unset=unset
6110 else
6111   as_unset=false
6112 fi
6113
6114
6115 # IFS
6116 # We need space, tab and new line, in precisely that order.  Quoting is
6117 # there to prevent editors from complaining about space-tab.
6118 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6119 # splitting by setting IFS to empty value.)
6120 IFS=" ""        $as_nl"
6121
6122 # Find who we are.  Look in the path if we contain no directory separator.
6123 case $0 in
6124   *[\\/]* ) as_myself=$0 ;;
6125   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6126 for as_dir in $PATH
6127 do
6128   IFS=$as_save_IFS
6129   test -z "$as_dir" && as_dir=.
6130   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6131 done
6132 IFS=$as_save_IFS
6133
6134      ;;
6135 esac
6136 # We did not find ourselves, most probably we were run as `sh COMMAND'
6137 # in which case we are not to be found in the path.
6138 if test "x$as_myself" = x; then
6139   as_myself=$0
6140 fi
6141 if test ! -f "$as_myself"; then
6142   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6143   { (exit 1); exit 1; }
6144 fi
6145
6146 # Work around bugs in pre-3.0 UWIN ksh.
6147 for as_var in ENV MAIL MAILPATH
6148 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
6149 done
6150 PS1='$ '
6151 PS2='> '
6152 PS4='+ '
6153
6154 # NLS nuisances.
6155 LC_ALL=C
6156 export LC_ALL
6157 LANGUAGE=C
6158 export LANGUAGE
6159
6160 # Required to use basename.
6161 if expr a : '\(a\)' >/dev/null 2>&1 &&
6162    test "X`expr 00001 : '.*\(...\)'`" = X001; then
6163   as_expr=expr
6164 else
6165   as_expr=false
6166 fi
6167
6168 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6169   as_basename=basename
6170 else
6171   as_basename=false
6172 fi
6173
6174
6175 # Name of the executable.
6176 as_me=`$as_basename -- "$0" ||
6177 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6178          X"$0" : 'X\(//\)$' \| \
6179          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6180 $as_echo X/"$0" |
6181     sed '/^.*\/\([^/][^/]*\)\/*$/{
6182             s//\1/
6183             q
6184           }
6185           /^X\/\(\/\/\)$/{
6186             s//\1/
6187             q
6188           }
6189           /^X\/\(\/\).*/{
6190             s//\1/
6191             q
6192           }
6193           s/.*/./; q'`
6194
6195 # CDPATH.
6196 $as_unset CDPATH
6197
6198
6199
6200   as_lineno_1=$LINENO
6201   as_lineno_2=$LINENO
6202   test "x$as_lineno_1" != "x$as_lineno_2" &&
6203   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
6204
6205   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6206   # uniformly replaced by the line number.  The first 'sed' inserts a
6207   # line-number line after each line using $LINENO; the second 'sed'
6208   # does the real work.  The second script uses 'N' to pair each
6209   # line-number line with the line containing $LINENO, and appends
6210   # trailing '-' during substitution so that $LINENO is not a special
6211   # case at line end.
6212   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6213   # scripts with optimization help from Paolo Bonzini.  Blame Lee
6214   # E. McMahon (1931-1989) for sed's syntax.  :-)
6215   sed -n '
6216     p
6217     /[$]LINENO/=
6218   ' <$as_myself |
6219     sed '
6220       s/[$]LINENO.*/&-/
6221       t lineno
6222       b
6223       :lineno
6224       N
6225       :loop
6226       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
6227       t loop
6228       s/-\n.*//
6229     ' >$as_me.lineno &&
6230   chmod +x "$as_me.lineno" ||
6231     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
6232    { (exit 1); exit 1; }; }
6233
6234   # Don't try to exec as it changes $[0], causing all sort of problems
6235   # (the dirname of $[0] is not the place where we might find the
6236   # original and so on.  Autoconf is especially sensitive to this).
6237   . "./$as_me.lineno"
6238   # Exit status is that of the last command.
6239   exit
6240 }
6241
6242
6243 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6244   as_dirname=dirname
6245 else
6246   as_dirname=false
6247 fi
6248
6249 ECHO_C= ECHO_N= ECHO_T=
6250 case `echo -n x` in
6251 -n*)
6252   case `echo 'x\c'` in
6253   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
6254   *)   ECHO_C='\c';;
6255   esac;;
6256 *)
6257   ECHO_N='-n';;
6258 esac
6259 if expr a : '\(a\)' >/dev/null 2>&1 &&
6260    test "X`expr 00001 : '.*\(...\)'`" = X001; then
6261   as_expr=expr
6262 else
6263   as_expr=false
6264 fi
6265
6266 rm -f conf$$ conf$$.exe conf$$.file
6267 if test -d conf$$.dir; then
6268   rm -f conf$$.dir/conf$$.file
6269 else
6270   rm -f conf$$.dir
6271   mkdir conf$$.dir 2>/dev/null
6272 fi
6273 if (echo >conf$$.file) 2>/dev/null; then
6274   if ln -s conf$$.file conf$$ 2>/dev/null; then
6275     as_ln_s='ln -s'
6276     # ... but there are two gotchas:
6277     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6278     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6279     # In both cases, we have to default to `cp -p'.
6280     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6281       as_ln_s='cp -p'
6282   elif ln conf$$.file conf$$ 2>/dev/null; then
6283     as_ln_s=ln
6284   else
6285     as_ln_s='cp -p'
6286   fi
6287 else
6288   as_ln_s='cp -p'
6289 fi
6290 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6291 rmdir conf$$.dir 2>/dev/null
6292
6293 if mkdir -p . 2>/dev/null; then
6294   as_mkdir_p=:
6295 else
6296   test -d ./-p && rmdir ./-p
6297   as_mkdir_p=false
6298 fi
6299
6300 if test -x / >/dev/null 2>&1; then
6301   as_test_x='test -x'
6302 else
6303   if ls -dL / >/dev/null 2>&1; then
6304     as_ls_L_option=L
6305   else
6306     as_ls_L_option=
6307   fi
6308   as_test_x='
6309     eval sh -c '\''
6310       if test -d "$1"; then
6311         test -d "$1/.";
6312       else
6313         case $1 in
6314         -*)set "./$1";;
6315         esac;
6316         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
6317         ???[sx]*):;;*)false;;esac;fi
6318     '\'' sh
6319   '
6320 fi
6321 as_executable_p=$as_test_x
6322
6323 # Sed expression to map a string onto a valid CPP name.
6324 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6325
6326 # Sed expression to map a string onto a valid variable name.
6327 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6328
6329
6330 exec 6>&1
6331
6332 # Save the log message, to keep $[0] and so on meaningful, and to
6333 # report actual input values of CONFIG_FILES etc. instead of their
6334 # values after options handling.
6335 ac_log="
6336 This file was extended by $as_me, which was
6337 generated by GNU Autoconf 2.63.  Invocation command line was
6338
6339   CONFIG_FILES    = $CONFIG_FILES
6340   CONFIG_HEADERS  = $CONFIG_HEADERS
6341   CONFIG_LINKS    = $CONFIG_LINKS
6342   CONFIG_COMMANDS = $CONFIG_COMMANDS
6343   $ $0 $@
6344
6345 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6346 "
6347
6348 _ACEOF
6349
6350 case $ac_config_files in *"
6351 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6352 esac
6353
6354 case $ac_config_headers in *"
6355 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6356 esac
6357
6358
6359 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6360 # Files that config.status was made for.
6361 config_files="$ac_config_files"
6362 config_headers="$ac_config_headers"
6363
6364 _ACEOF
6365
6366 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6367 ac_cs_usage="\
6368 \`$as_me' instantiates files from templates according to the
6369 current configuration.
6370
6371 Usage: $0 [OPTION]... [FILE]...
6372
6373   -h, --help       print this help, then exit
6374   -V, --version    print version number and configuration settings, then exit
6375   -q, --quiet, --silent
6376                    do not print progress messages
6377   -d, --debug      don't remove temporary files
6378       --recheck    update $as_me by reconfiguring in the same conditions
6379       --file=FILE[:TEMPLATE]
6380                    instantiate the configuration file FILE
6381       --header=FILE[:TEMPLATE]
6382                    instantiate the configuration header FILE
6383
6384 Configuration files:
6385 $config_files
6386
6387 Configuration headers:
6388 $config_headers
6389
6390 Report bugs to <bug-autoconf@gnu.org>."
6391
6392 _ACEOF
6393 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6394 ac_cs_version="\\
6395 config.status
6396 configured by $0, generated by GNU Autoconf 2.63,
6397   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6398
6399 Copyright (C) 2008 Free Software Foundation, Inc.
6400 This config.status script is free software; the Free Software Foundation
6401 gives unlimited permission to copy, distribute and modify it."
6402
6403 ac_pwd='$ac_pwd'
6404 srcdir='$srcdir'
6405 INSTALL='$INSTALL'
6406 test -n "\$AWK" || AWK=awk
6407 _ACEOF
6408
6409 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6410 # The default lists apply if the user does not specify any file.
6411 ac_need_defaults=:
6412 while test $# != 0
6413 do
6414   case $1 in
6415   --*=*)
6416     ac_option=`expr "X$1" : 'X\([^=]*\)='`
6417     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6418     ac_shift=:
6419     ;;
6420   *)
6421     ac_option=$1
6422     ac_optarg=$2
6423     ac_shift=shift
6424     ;;
6425   esac
6426
6427   case $ac_option in
6428   # Handling of the options.
6429   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6430     ac_cs_recheck=: ;;
6431   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6432     $as_echo "$ac_cs_version"; exit ;;
6433   --debug | --debu | --deb | --de | --d | -d )
6434     debug=: ;;
6435   --file | --fil | --fi | --f )
6436     $ac_shift
6437     case $ac_optarg in
6438     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6439     esac
6440     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
6441     ac_need_defaults=false;;
6442   --header | --heade | --head | --hea )
6443     $ac_shift
6444     case $ac_optarg in
6445     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6446     esac
6447     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
6448     ac_need_defaults=false;;
6449   --he | --h)
6450     # Conflict between --help and --header
6451     { $as_echo "$as_me: error: ambiguous option: $1
6452 Try \`$0 --help' for more information." >&2
6453    { (exit 1); exit 1; }; };;
6454   --help | --hel | -h )
6455     $as_echo "$ac_cs_usage"; exit ;;
6456   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6457   | -silent | --silent | --silen | --sile | --sil | --si | --s)
6458     ac_cs_silent=: ;;
6459
6460   # This is an error.
6461   -*) { $as_echo "$as_me: error: unrecognized option: $1
6462 Try \`$0 --help' for more information." >&2
6463    { (exit 1); exit 1; }; } ;;
6464
6465   *) ac_config_targets="$ac_config_targets $1"
6466      ac_need_defaults=false ;;
6467
6468   esac
6469   shift
6470 done
6471
6472 ac_configure_extra_args=
6473
6474 if $ac_cs_silent; then
6475   exec 6>/dev/null
6476   ac_configure_extra_args="$ac_configure_extra_args --silent"
6477 fi
6478
6479 _ACEOF
6480 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6481 if \$ac_cs_recheck; then
6482   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6483   shift
6484   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6485   CONFIG_SHELL='$SHELL'
6486   export CONFIG_SHELL
6487   exec "\$@"
6488 fi
6489
6490 _ACEOF
6491 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6492 exec 5>>config.log
6493 {
6494   echo
6495   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6496 ## Running $as_me. ##
6497 _ASBOX
6498   $as_echo "$ac_log"
6499 } >&5
6500
6501 _ACEOF
6502 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6503 _ACEOF
6504
6505 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6506
6507 # Handling of arguments.
6508 for ac_config_target in $ac_config_targets
6509 do
6510   case $ac_config_target in
6511     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6512     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6513     "cpm.5") CONFIG_FILES="$CONFIG_FILES cpm.5" ;;
6514     "cpmchattr.1") CONFIG_FILES="$CONFIG_FILES cpmchattr.1" ;;
6515     "cpmchmod.1") CONFIG_FILES="$CONFIG_FILES cpmchmod.1" ;;
6516     "cpmcp.1") CONFIG_FILES="$CONFIG_FILES cpmcp.1" ;;
6517     "cpmls.1") CONFIG_FILES="$CONFIG_FILES cpmls.1" ;;
6518     "cpmrm.1") CONFIG_FILES="$CONFIG_FILES cpmrm.1" ;;
6519     "fsck.cpm.1") CONFIG_FILES="$CONFIG_FILES fsck.cpm.1" ;;
6520     "fsed.cpm.1") CONFIG_FILES="$CONFIG_FILES fsed.cpm.1" ;;
6521     "mkfs.cpm.1") CONFIG_FILES="$CONFIG_FILES mkfs.cpm.1" ;;
6522
6523   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6524 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6525    { (exit 1); exit 1; }; };;
6526   esac
6527 done
6528
6529
6530 # If the user did not use the arguments to specify the items to instantiate,
6531 # then the envvar interface is used.  Set only those that are not.
6532 # We use the long form for the default assignment because of an extremely
6533 # bizarre bug on SunOS 4.1.3.
6534 if $ac_need_defaults; then
6535   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6536   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6537 fi
6538
6539 # Have a temporary directory for convenience.  Make it in the build tree
6540 # simply because there is no reason against having it here, and in addition,
6541 # creating and moving files from /tmp can sometimes cause problems.
6542 # Hook for its removal unless debugging.
6543 # Note that there is a small window in which the directory will not be cleaned:
6544 # after its creation but before its name has been assigned to `$tmp'.
6545 $debug ||
6546 {
6547   tmp=
6548   trap 'exit_status=$?
6549   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6550 ' 0
6551   trap '{ (exit 1); exit 1; }' 1 2 13 15
6552 }
6553 # Create a (secure) tmp directory for tmp files.
6554
6555 {
6556   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6557   test -n "$tmp" && test -d "$tmp"
6558 }  ||
6559 {
6560   tmp=./conf$$-$RANDOM
6561   (umask 077 && mkdir "$tmp")
6562 } ||
6563 {
6564    $as_echo "$as_me: cannot create a temporary directory in ." >&2
6565    { (exit 1); exit 1; }
6566 }
6567
6568 # Set up the scripts for CONFIG_FILES section.
6569 # No need to generate them if there are no CONFIG_FILES.
6570 # This happens for instance with `./config.status config.h'.
6571 if test -n "$CONFIG_FILES"; then
6572
6573
6574 ac_cr='\r'
6575 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6576 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6577   ac_cs_awk_cr='\\r'
6578 else
6579   ac_cs_awk_cr=$ac_cr
6580 fi
6581
6582 echo 'BEGIN {' >"$tmp/subs1.awk" &&
6583 _ACEOF
6584
6585
6586 {
6587   echo "cat >conf$$subs.awk <<_ACEOF" &&
6588   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6589   echo "_ACEOF"
6590 } >conf$$subs.sh ||
6591   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6592 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6593    { (exit 1); exit 1; }; }
6594 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
6595 ac_delim='%!_!# '
6596 for ac_last_try in false false false false false :; do
6597   . ./conf$$subs.sh ||
6598     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6599 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6600    { (exit 1); exit 1; }; }
6601
6602   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6603   if test $ac_delim_n = $ac_delim_num; then
6604     break
6605   elif $ac_last_try; then
6606     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6607 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6608    { (exit 1); exit 1; }; }
6609   else
6610     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6611   fi
6612 done
6613 rm -f conf$$subs.sh
6614
6615 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6616 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
6617 _ACEOF
6618 sed -n '
6619 h
6620 s/^/S["/; s/!.*/"]=/
6621 p
6622 g
6623 s/^[^!]*!//
6624 :repl
6625 t repl
6626 s/'"$ac_delim"'$//
6627 t delim
6628 :nl
6629 h
6630 s/\(.\{148\}\).*/\1/
6631 t more1
6632 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6633 p
6634 n
6635 b repl
6636 :more1
6637 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6638 p
6639 g
6640 s/.\{148\}//
6641 t nl
6642 :delim
6643 h
6644 s/\(.\{148\}\).*/\1/
6645 t more2
6646 s/["\\]/\\&/g; s/^/"/; s/$/"/
6647 p
6648 b
6649 :more2
6650 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6651 p
6652 g
6653 s/.\{148\}//
6654 t delim
6655 ' <conf$$subs.awk | sed '
6656 /^[^""]/{
6657   N
6658   s/\n//
6659 }
6660 ' >>$CONFIG_STATUS || ac_write_fail=1
6661 rm -f conf$$subs.awk
6662 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6663 _ACAWK
6664 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
6665   for (key in S) S_is_set[key] = 1
6666   FS = "\a"
6667
6668 }
6669 {
6670   line = $ 0
6671   nfields = split(line, field, "@")
6672   substed = 0
6673   len = length(field[1])
6674   for (i = 2; i < nfields; i++) {
6675     key = field[i]
6676     keylen = length(key)
6677     if (S_is_set[key]) {
6678       value = S[key]
6679       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6680       len += length(value) + length(field[++i])
6681       substed = 1
6682     } else
6683       len += 1 + keylen
6684   }
6685
6686   print line
6687 }
6688
6689 _ACAWK
6690 _ACEOF
6691 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6692 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6693   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6694 else
6695   cat
6696 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
6697   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
6698 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
6699    { (exit 1); exit 1; }; }
6700 _ACEOF
6701
6702 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6703 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6704 # trailing colons and then remove the whole line if VPATH becomes empty
6705 # (actually we leave an empty line to preserve line numbers).
6706 if test "x$srcdir" = x.; then
6707   ac_vpsub='/^[  ]*VPATH[        ]*=/{
6708 s/:*\$(srcdir):*/:/
6709 s/:*\${srcdir}:*/:/
6710 s/:*@srcdir@:*/:/
6711 s/^\([^=]*=[     ]*\):*/\1/
6712 s/:*$//
6713 s/^[^=]*=[       ]*$//
6714 }'
6715 fi
6716
6717 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6718 fi # test -n "$CONFIG_FILES"
6719
6720 # Set up the scripts for CONFIG_HEADERS section.
6721 # No need to generate them if there are no CONFIG_HEADERS.
6722 # This happens for instance with `./config.status Makefile'.
6723 if test -n "$CONFIG_HEADERS"; then
6724 cat >"$tmp/defines.awk" <<\_ACAWK ||
6725 BEGIN {
6726 _ACEOF
6727
6728 # Transform confdefs.h into an awk script `defines.awk', embedded as
6729 # here-document in config.status, that substitutes the proper values into
6730 # config.h.in to produce config.h.
6731
6732 # Create a delimiter string that does not exist in confdefs.h, to ease
6733 # handling of long lines.
6734 ac_delim='%!_!# '
6735 for ac_last_try in false false :; do
6736   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
6737   if test -z "$ac_t"; then
6738     break
6739   elif $ac_last_try; then
6740     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
6741 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
6742    { (exit 1); exit 1; }; }
6743   else
6744     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6745   fi
6746 done
6747
6748 # For the awk script, D is an array of macro values keyed by name,
6749 # likewise P contains macro parameters if any.  Preserve backslash
6750 # newline sequences.
6751
6752 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6753 sed -n '
6754 s/.\{148\}/&'"$ac_delim"'/g
6755 t rset
6756 :rset
6757 s/^[     ]*#[    ]*define[       ][      ]*/ /
6758 t def
6759 d
6760 :def
6761 s/\\$//
6762 t bsnl
6763 s/["\\]/\\&/g
6764 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
6765 D["\1"]=" \3"/p
6766 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
6767 d
6768 :bsnl
6769 s/["\\]/\\&/g
6770 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
6771 D["\1"]=" \3\\\\\\n"\\/p
6772 t cont
6773 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6774 t cont
6775 d
6776 :cont
6777 n
6778 s/.\{148\}/&'"$ac_delim"'/g
6779 t clear
6780 :clear
6781 s/\\$//
6782 t bsnlc
6783 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6784 d
6785 :bsnlc
6786 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6787 b cont
6788 ' <confdefs.h | sed '
6789 s/'"$ac_delim"'/"\\\
6790 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6791
6792 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6793   for (key in D) D_is_set[key] = 1
6794   FS = "\a"
6795 }
6796 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6797   line = \$ 0
6798   split(line, arg, " ")
6799   if (arg[1] == "#") {
6800     defundef = arg[2]
6801     mac1 = arg[3]
6802   } else {
6803     defundef = substr(arg[1], 2)
6804     mac1 = arg[2]
6805   }
6806   split(mac1, mac2, "(") #)
6807   macro = mac2[1]
6808   prefix = substr(line, 1, index(line, defundef) - 1)
6809   if (D_is_set[macro]) {
6810     # Preserve the white space surrounding the "#".
6811     print prefix "define", macro P[macro] D[macro]
6812     next
6813   } else {
6814     # Replace #undef with comments.  This is necessary, for example,
6815     # in the case of _POSIX_SOURCE, which is predefined and required
6816     # on some systems where configure will not decide to define it.
6817     if (defundef == "undef") {
6818       print "/*", prefix defundef, macro, "*/"
6819       next
6820     }
6821   }
6822 }
6823 { print }
6824 _ACAWK
6825 _ACEOF
6826 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6827   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
6828 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
6829    { (exit 1); exit 1; }; }
6830 fi # test -n "$CONFIG_HEADERS"
6831
6832
6833 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
6834 shift
6835 for ac_tag
6836 do
6837   case $ac_tag in
6838   :[FHLC]) ac_mode=$ac_tag; continue;;
6839   esac
6840   case $ac_mode$ac_tag in
6841   :[FHL]*:*);;
6842   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
6843 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
6844    { (exit 1); exit 1; }; };;
6845   :[FH]-) ac_tag=-:-;;
6846   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6847   esac
6848   ac_save_IFS=$IFS
6849   IFS=:
6850   set x $ac_tag
6851   IFS=$ac_save_IFS
6852   shift
6853   ac_file=$1
6854   shift
6855
6856   case $ac_mode in
6857   :L) ac_source=$1;;
6858   :[FH])
6859     ac_file_inputs=
6860     for ac_f
6861     do
6862       case $ac_f in
6863       -) ac_f="$tmp/stdin";;
6864       *) # Look for the file first in the build tree, then in the source tree
6865          # (if the path is not absolute).  The absolute path cannot be DOS-style,
6866          # because $ac_f cannot contain `:'.
6867          test -f "$ac_f" ||
6868            case $ac_f in
6869            [\\/$]*) false;;
6870            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6871            esac ||
6872            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
6873 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
6874    { (exit 1); exit 1; }; };;
6875       esac
6876       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6877       ac_file_inputs="$ac_file_inputs '$ac_f'"
6878     done
6879
6880     # Let's still pretend it is `configure' which instantiates (i.e., don't
6881     # use $as_me), people would be surprised to read:
6882     #    /* config.h.  Generated by config.status.  */
6883     configure_input='Generated from '`
6884           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6885         `' by configure.'
6886     if test x"$ac_file" != x-; then
6887       configure_input="$ac_file.  $configure_input"
6888       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
6889 $as_echo "$as_me: creating $ac_file" >&6;}
6890     fi
6891     # Neutralize special characters interpreted by sed in replacement strings.
6892     case $configure_input in #(
6893     *\&* | *\|* | *\\* )
6894        ac_sed_conf_input=`$as_echo "$configure_input" |
6895        sed 's/[\\\\&|]/\\\\&/g'`;; #(
6896     *) ac_sed_conf_input=$configure_input;;
6897     esac
6898
6899     case $ac_tag in
6900     *:-:* | *:-) cat >"$tmp/stdin" \
6901       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6902 $as_echo "$as_me: error: could not create $ac_file" >&2;}
6903    { (exit 1); exit 1; }; } ;;
6904     esac
6905     ;;
6906   esac
6907
6908   ac_dir=`$as_dirname -- "$ac_file" ||
6909 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6910          X"$ac_file" : 'X\(//\)[^/]' \| \
6911          X"$ac_file" : 'X\(//\)$' \| \
6912          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6913 $as_echo X"$ac_file" |
6914     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6915             s//\1/
6916             q
6917           }
6918           /^X\(\/\/\)[^/].*/{
6919             s//\1/
6920             q
6921           }
6922           /^X\(\/\/\)$/{
6923             s//\1/
6924             q
6925           }
6926           /^X\(\/\).*/{
6927             s//\1/
6928             q
6929           }
6930           s/.*/./; q'`
6931   { as_dir="$ac_dir"
6932   case $as_dir in #(
6933   -*) as_dir=./$as_dir;;
6934   esac
6935   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
6936     as_dirs=
6937     while :; do
6938       case $as_dir in #(
6939       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6940       *) as_qdir=$as_dir;;
6941       esac
6942       as_dirs="'$as_qdir' $as_dirs"
6943       as_dir=`$as_dirname -- "$as_dir" ||
6944 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6945          X"$as_dir" : 'X\(//\)[^/]' \| \
6946          X"$as_dir" : 'X\(//\)$' \| \
6947          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6948 $as_echo X"$as_dir" |
6949     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6950             s//\1/
6951             q
6952           }
6953           /^X\(\/\/\)[^/].*/{
6954             s//\1/
6955             q
6956           }
6957           /^X\(\/\/\)$/{
6958             s//\1/
6959             q
6960           }
6961           /^X\(\/\).*/{
6962             s//\1/
6963             q
6964           }
6965           s/.*/./; q'`
6966       test -d "$as_dir" && break
6967     done
6968     test -z "$as_dirs" || eval "mkdir $as_dirs"
6969   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
6970 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
6971    { (exit 1); exit 1; }; }; }
6972   ac_builddir=.
6973
6974 case "$ac_dir" in
6975 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6976 *)
6977   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6978   # A ".." for each directory in $ac_dir_suffix.
6979   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6980   case $ac_top_builddir_sub in
6981   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6982   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6983   esac ;;
6984 esac
6985 ac_abs_top_builddir=$ac_pwd
6986 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6987 # for backward compatibility:
6988 ac_top_builddir=$ac_top_build_prefix
6989
6990 case $srcdir in
6991   .)  # We are building in place.
6992     ac_srcdir=.
6993     ac_top_srcdir=$ac_top_builddir_sub
6994     ac_abs_top_srcdir=$ac_pwd ;;
6995   [\\/]* | ?:[\\/]* )  # Absolute name.
6996     ac_srcdir=$srcdir$ac_dir_suffix;
6997     ac_top_srcdir=$srcdir
6998     ac_abs_top_srcdir=$srcdir ;;
6999   *) # Relative name.
7000     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7001     ac_top_srcdir=$ac_top_build_prefix$srcdir
7002     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7003 esac
7004 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7005
7006
7007   case $ac_mode in
7008   :F)
7009   #
7010   # CONFIG_FILE
7011   #
7012
7013   case $INSTALL in
7014   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7015   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7016   esac
7017 _ACEOF
7018
7019 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7020 # If the template does not know about datarootdir, expand it.
7021 # FIXME: This hack should be removed a few years after 2.60.
7022 ac_datarootdir_hack=; ac_datarootdir_seen=
7023
7024 ac_sed_dataroot='
7025 /datarootdir/ {
7026   p
7027   q
7028 }
7029 /@datadir@/p
7030 /@docdir@/p
7031 /@infodir@/p
7032 /@localedir@/p
7033 /@mandir@/p
7034 '
7035 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7036 *datarootdir*) ac_datarootdir_seen=yes;;
7037 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7038   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7039 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7040 _ACEOF
7041 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7042   ac_datarootdir_hack='
7043   s&@datadir@&$datadir&g
7044   s&@docdir@&$docdir&g
7045   s&@infodir@&$infodir&g
7046   s&@localedir@&$localedir&g
7047   s&@mandir@&$mandir&g
7048     s&\\\${datarootdir}&$datarootdir&g' ;;
7049 esac
7050 _ACEOF
7051
7052 # Neutralize VPATH when `$srcdir' = `.'.
7053 # Shell code in configure.ac might set extrasub.
7054 # FIXME: do we really want to maintain this feature?
7055 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7056 ac_sed_extra="$ac_vpsub
7057 $extrasub
7058 _ACEOF
7059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7060 :t
7061 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7062 s|@configure_input@|$ac_sed_conf_input|;t t
7063 s&@top_builddir@&$ac_top_builddir_sub&;t t
7064 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7065 s&@srcdir@&$ac_srcdir&;t t
7066 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7067 s&@top_srcdir@&$ac_top_srcdir&;t t
7068 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7069 s&@builddir@&$ac_builddir&;t t
7070 s&@abs_builddir@&$ac_abs_builddir&;t t
7071 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7072 s&@INSTALL@&$ac_INSTALL&;t t
7073 $ac_datarootdir_hack
7074 "
7075 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
7076   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
7077 $as_echo "$as_me: error: could not create $ac_file" >&2;}
7078    { (exit 1); exit 1; }; }
7079
7080 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7081   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7082   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7083   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7084 which seems to be undefined.  Please make sure it is defined." >&5
7085 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7086 which seems to be undefined.  Please make sure it is defined." >&2;}
7087
7088   rm -f "$tmp/stdin"
7089   case $ac_file in
7090   -) cat "$tmp/out" && rm -f "$tmp/out";;
7091   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7092   esac \
7093   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
7094 $as_echo "$as_me: error: could not create $ac_file" >&2;}
7095    { (exit 1); exit 1; }; }
7096  ;;
7097   :H)
7098   #
7099   # CONFIG_HEADER
7100   #
7101   if test x"$ac_file" != x-; then
7102     {
7103       $as_echo "/* $configure_input  */" \
7104       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
7105     } >"$tmp/config.h" \
7106       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
7107 $as_echo "$as_me: error: could not create $ac_file" >&2;}
7108    { (exit 1); exit 1; }; }
7109     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
7110       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7111 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7112     else
7113       rm -f "$ac_file"
7114       mv "$tmp/config.h" "$ac_file" \
7115         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
7116 $as_echo "$as_me: error: could not create $ac_file" >&2;}
7117    { (exit 1); exit 1; }; }
7118     fi
7119   else
7120     $as_echo "/* $configure_input  */" \
7121       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
7122       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
7123 $as_echo "$as_me: error: could not create -" >&2;}
7124    { (exit 1); exit 1; }; }
7125   fi
7126  ;;
7127
7128
7129   esac
7130
7131 done # for ac_tag
7132
7133
7134 { (exit 0); exit 0; }
7135 _ACEOF
7136 chmod +x $CONFIG_STATUS
7137 ac_clean_files=$ac_clean_files_save
7138
7139 test $ac_write_fail = 0 ||
7140   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
7141 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
7142    { (exit 1); exit 1; }; }
7143
7144
7145 # configure is writing to config.log, and then calls config.status.
7146 # config.status does its own redirection, appending to config.log.
7147 # Unfortunately, on DOS this fails, as config.log is still kept open
7148 # by configure, so config.status won't be able to write to it; its
7149 # output is simply discarded.  So we exec the FD to /dev/null,
7150 # effectively closing config.log, so it can be properly (re)opened and
7151 # appended to by config.status.  When coming back to configure, we
7152 # need to make the FD available again.
7153 if test "$no_create" != yes; then
7154   ac_cs_success=:
7155   ac_config_status_args=
7156   test "$silent" = yes &&
7157     ac_config_status_args="$ac_config_status_args --quiet"
7158   exec 5>/dev/null
7159   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7160   exec 5>>config.log
7161   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7162   # would make configure fail if this is the last instruction.
7163   $ac_cs_success || { (exit 1); exit 1; }
7164 fi
7165 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7166   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7167 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7168 fi
7169