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