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