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