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