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