add gpm package
[buildroot.git] / package / gpm / gpm-1.99.5-generate-configure.patch
blob1a91ab605177f9c700f6a63936b1c4ac7fdd31ef
1 diff -rduNp gpm-1.99.5.oorig/configure gpm-1.99.5/configure
2 --- gpm-1.99.5.oorig/configure 1970-01-01 01:00:00.000000000 +0100
3 +++ gpm-1.99.5/configure 2008-04-15 13:12:33.000000000 +0200
4 @@ -0,0 +1,6099 @@
5 +#! /bin/sh
6 +# From configure.in configure.in.
7 +# Guess values for system-dependent variables and create Makefiles.
8 +# Generated by GNU Autoconf 2.61.
9 +#
10 +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
11 +# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
12 +# This configure script is free software; the Free Software Foundation
13 +# gives unlimited permission to copy, distribute and modify it.
14 +## --------------------- ##
15 +## M4sh Initialization. ##
16 +## --------------------- ##
18 +# Be more Bourne compatible
19 +DUALCASE=1; export DUALCASE # for MKS sh
20 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 + emulate sh
22 + NULLCMD=:
23 + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24 + # is contrary to our usage. Disable this feature.
25 + alias -g '${1+"$@"}'='"$@"'
26 + setopt NO_GLOB_SUBST
27 +else
28 + case `(set -o) 2>/dev/null` in
29 + *posix*) set -o posix ;;
30 +esac
32 +fi
37 +# PATH needs CR
38 +# Avoid depending upon Character Ranges.
39 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
40 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
42 +as_cr_digits='0123456789'
43 +as_cr_alnum=$as_cr_Letters$as_cr_digits
45 +# The user is always right.
46 +if test "${PATH_SEPARATOR+set}" != set; then
47 + echo "#! /bin/sh" >conf$$.sh
48 + echo "exit 0" >>conf$$.sh
49 + chmod +x conf$$.sh
50 + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
51 + PATH_SEPARATOR=';'
52 + else
53 + PATH_SEPARATOR=:
54 + fi
55 + rm -f conf$$.sh
56 +fi
58 +# Support unset when possible.
59 +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
60 + as_unset=unset
61 +else
62 + as_unset=false
63 +fi
66 +# IFS
67 +# We need space, tab and new line, in precisely that order. Quoting is
68 +# there to prevent editors from complaining about space-tab.
69 +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
70 +# splitting by setting IFS to empty value.)
71 +as_nl='
73 +IFS=" "" $as_nl"
75 +# Find who we are. Look in the path if we contain no directory separator.
76 +case $0 in
77 + *[\\/]* ) as_myself=$0 ;;
78 + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
79 +for as_dir in $PATH
80 +do
81 + IFS=$as_save_IFS
82 + test -z "$as_dir" && as_dir=.
83 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 +done
85 +IFS=$as_save_IFS
87 + ;;
88 +esac
89 +# We did not find ourselves, most probably we were run as `sh COMMAND'
90 +# in which case we are not to be found in the path.
91 +if test "x$as_myself" = x; then
92 + as_myself=$0
93 +fi
94 +if test ! -f "$as_myself"; then
95 + echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96 + { (exit 1); exit 1; }
97 +fi
99 +# Work around bugs in pre-3.0 UWIN ksh.
100 +for as_var in ENV MAIL MAILPATH
101 +do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
102 +done
103 +PS1='$ '
104 +PS2='> '
105 +PS4='+ '
107 +# NLS nuisances.
108 +for as_var in \
109 + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
110 + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
111 + LC_TELEPHONE LC_TIME
113 + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
114 + eval $as_var=C; export $as_var
115 + else
116 + ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
117 + fi
118 +done
120 +# Required to use basename.
121 +if expr a : '\(a\)' >/dev/null 2>&1 &&
122 + test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 + as_expr=expr
124 +else
125 + as_expr=false
128 +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
129 + as_basename=basename
130 +else
131 + as_basename=false
135 +# Name of the executable.
136 +as_me=`$as_basename -- "$0" ||
137 +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
138 + X"$0" : 'X\(//\)$' \| \
139 + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
140 +echo X/"$0" |
141 + sed '/^.*\/\([^/][^/]*\)\/*$/{
142 + s//\1/
145 + /^X\/\(\/\/\)$/{
146 + s//\1/
149 + /^X\/\(\/\).*/{
150 + s//\1/
153 + s/.*/./; q'`
155 +# CDPATH.
156 +$as_unset CDPATH
159 +if test "x$CONFIG_SHELL" = x; then
160 + if (eval ":") 2>/dev/null; then
161 + as_have_required=yes
162 +else
163 + as_have_required=no
166 + if test $as_have_required = yes && (eval ":
167 +(as_func_return () {
168 + (exit \$1)
170 +as_func_success () {
171 + as_func_return 0
173 +as_func_failure () {
174 + as_func_return 1
176 +as_func_ret_success () {
177 + return 0
179 +as_func_ret_failure () {
180 + return 1
183 +exitcode=0
184 +if as_func_success; then
186 +else
187 + exitcode=1
188 + echo as_func_success failed.
191 +if as_func_failure; then
192 + exitcode=1
193 + echo as_func_failure succeeded.
196 +if as_func_ret_success; then
198 +else
199 + exitcode=1
200 + echo as_func_ret_success failed.
203 +if as_func_ret_failure; then
204 + exitcode=1
205 + echo as_func_ret_failure succeeded.
208 +if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
210 +else
211 + exitcode=1
212 + echo positional parameters were not saved.
215 +test \$exitcode = 0) || { (exit 1); exit 1; }
218 + as_lineno_1=\$LINENO
219 + as_lineno_2=\$LINENO
220 + test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
221 + test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
222 +") 2> /dev/null; then
224 +else
225 + as_candidate_shells=
226 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
227 +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
229 + IFS=$as_save_IFS
230 + test -z "$as_dir" && as_dir=.
231 + case $as_dir in
232 + /*)
233 + for as_base in sh bash ksh sh5; do
234 + as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
235 + done;;
236 + esac
237 +done
238 +IFS=$as_save_IFS
241 + for as_shell in $as_candidate_shells $SHELL; do
242 + # Try only shells that exist, to save several forks.
243 + if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
244 + { ("$as_shell") 2> /dev/null <<\_ASEOF
245 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
246 + emulate sh
247 + NULLCMD=:
248 + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
249 + # is contrary to our usage. Disable this feature.
250 + alias -g '${1+"$@"}'='"$@"'
251 + setopt NO_GLOB_SUBST
252 +else
253 + case `(set -o) 2>/dev/null` in
254 + *posix*) set -o posix ;;
255 +esac
261 +_ASEOF
262 +}; then
263 + CONFIG_SHELL=$as_shell
264 + as_have_required=yes
265 + if { "$as_shell" 2> /dev/null <<\_ASEOF
266 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
267 + emulate sh
268 + NULLCMD=:
269 + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
270 + # is contrary to our usage. Disable this feature.
271 + alias -g '${1+"$@"}'='"$@"'
272 + setopt NO_GLOB_SUBST
273 +else
274 + case `(set -o) 2>/dev/null` in
275 + *posix*) set -o posix ;;
276 +esac
282 +(as_func_return () {
283 + (exit $1)
285 +as_func_success () {
286 + as_func_return 0
288 +as_func_failure () {
289 + as_func_return 1
291 +as_func_ret_success () {
292 + return 0
294 +as_func_ret_failure () {
295 + return 1
298 +exitcode=0
299 +if as_func_success; then
301 +else
302 + exitcode=1
303 + echo as_func_success failed.
306 +if as_func_failure; then
307 + exitcode=1
308 + echo as_func_failure succeeded.
311 +if as_func_ret_success; then
313 +else
314 + exitcode=1
315 + echo as_func_ret_success failed.
318 +if as_func_ret_failure; then
319 + exitcode=1
320 + echo as_func_ret_failure succeeded.
323 +if ( set x; as_func_ret_success y && test x = "$1" ); then
325 +else
326 + exitcode=1
327 + echo positional parameters were not saved.
330 +test $exitcode = 0) || { (exit 1); exit 1; }
333 + as_lineno_1=$LINENO
334 + as_lineno_2=$LINENO
335 + test "x$as_lineno_1" != "x$as_lineno_2" &&
336 + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
338 +_ASEOF
339 +}; then
340 + break
345 + done
347 + if test "x$CONFIG_SHELL" != x; then
348 + for as_var in BASH_ENV ENV
349 + do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
350 + done
351 + export CONFIG_SHELL
352 + exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
356 + if test $as_have_required = no; then
357 + echo This script requires a shell more modern than all the
358 + echo shells that I found on your system. Please install a
359 + echo modern shell, or manually run the script under such a
360 + echo shell if you do have one.
361 + { (exit 1); exit 1; }
371 +(eval "as_func_return () {
372 + (exit \$1)
374 +as_func_success () {
375 + as_func_return 0
377 +as_func_failure () {
378 + as_func_return 1
380 +as_func_ret_success () {
381 + return 0
383 +as_func_ret_failure () {
384 + return 1
387 +exitcode=0
388 +if as_func_success; then
390 +else
391 + exitcode=1
392 + echo as_func_success failed.
395 +if as_func_failure; then
396 + exitcode=1
397 + echo as_func_failure succeeded.
400 +if as_func_ret_success; then
402 +else
403 + exitcode=1
404 + echo as_func_ret_success failed.
407 +if as_func_ret_failure; then
408 + exitcode=1
409 + echo as_func_ret_failure succeeded.
412 +if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
414 +else
415 + exitcode=1
416 + echo positional parameters were not saved.
419 +test \$exitcode = 0") || {
420 + echo No shell found that supports shell functions.
421 + echo Please tell autoconf@gnu.org about your system,
422 + echo including any error possibly output before this
423 + echo message
428 + as_lineno_1=$LINENO
429 + as_lineno_2=$LINENO
430 + test "x$as_lineno_1" != "x$as_lineno_2" &&
431 + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
433 + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
434 + # uniformly replaced by the line number. The first 'sed' inserts a
435 + # line-number line after each line using $LINENO; the second 'sed'
436 + # does the real work. The second script uses 'N' to pair each
437 + # line-number line with the line containing $LINENO, and appends
438 + # trailing '-' during substitution so that $LINENO is not a special
439 + # case at line end.
440 + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
441 + # scripts with optimization help from Paolo Bonzini. Blame Lee
442 + # E. McMahon (1931-1989) for sed's syntax. :-)
443 + sed -n '
445 + /[$]LINENO/=
446 + ' <$as_myself |
447 + sed '
448 + s/[$]LINENO.*/&-/
449 + t lineno
451 + :lineno
453 + :loop
454 + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455 + t loop
456 + s/-\n.*//
457 + ' >$as_me.lineno &&
458 + chmod +x "$as_me.lineno" ||
459 + { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
460 + { (exit 1); exit 1; }; }
462 + # Don't try to exec as it changes $[0], causing all sort of problems
463 + # (the dirname of $[0] is not the place where we might find the
464 + # original and so on. Autoconf is especially sensitive to this).
465 + . "./$as_me.lineno"
466 + # Exit status is that of the last command.
467 + exit
471 +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 + as_dirname=dirname
473 +else
474 + as_dirname=false
477 +ECHO_C= ECHO_N= ECHO_T=
478 +case `echo -n x` in
479 +-n*)
480 + case `echo 'x\c'` in
481 + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
482 + *) ECHO_C='\c';;
483 + esac;;
485 + ECHO_N='-n';;
486 +esac
488 +if expr a : '\(a\)' >/dev/null 2>&1 &&
489 + test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 + as_expr=expr
491 +else
492 + as_expr=false
495 +rm -f conf$$ conf$$.exe conf$$.file
496 +if test -d conf$$.dir; then
497 + rm -f conf$$.dir/conf$$.file
498 +else
499 + rm -f conf$$.dir
500 + mkdir conf$$.dir
502 +echo >conf$$.file
503 +if ln -s conf$$.file conf$$ 2>/dev/null; then
504 + as_ln_s='ln -s'
505 + # ... but there are two gotchas:
506 + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
507 + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
508 + # In both cases, we have to default to `cp -p'.
509 + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
510 + as_ln_s='cp -p'
511 +elif ln conf$$.file conf$$ 2>/dev/null; then
512 + as_ln_s=ln
513 +else
514 + as_ln_s='cp -p'
516 +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
517 +rmdir conf$$.dir 2>/dev/null
519 +if mkdir -p . 2>/dev/null; then
520 + as_mkdir_p=:
521 +else
522 + test -d ./-p && rmdir ./-p
523 + as_mkdir_p=false
526 +if test -x / >/dev/null 2>&1; then
527 + as_test_x='test -x'
528 +else
529 + if ls -dL / >/dev/null 2>&1; then
530 + as_ls_L_option=L
531 + else
532 + as_ls_L_option=
533 + fi
534 + as_test_x='
535 + eval sh -c '\''
536 + if test -d "$1"; then
537 + test -d "$1/.";
538 + else
539 + case $1 in
540 + -*)set "./$1";;
541 + esac;
542 + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
543 + ???[sx]*):;;*)false;;esac;fi
544 + '\'' sh
547 +as_executable_p=$as_test_x
549 +# Sed expression to map a string onto a valid CPP name.
550 +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552 +# Sed expression to map a string onto a valid variable name.
553 +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 +exec 7<&0 </dev/null 6>&1
559 +# Name of the host.
560 +# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
561 +# so uname gets run too.
562 +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
565 +# Initializations.
567 +ac_default_prefix=/usr/local
568 +ac_clean_files=
569 +ac_config_libobj_dir=.
570 +LIBOBJS=
571 +cross_compiling=no
572 +subdirs=
573 +MFLAGS=
574 +MAKEFLAGS=
575 +SHELL=${CONFIG_SHELL-/bin/sh}
577 +# Identity of this package.
578 +PACKAGE_NAME=
579 +PACKAGE_TARNAME=
580 +PACKAGE_VERSION=
581 +PACKAGE_STRING=
582 +PACKAGE_BUGREPORT=
584 +ac_unique_file="src/daemon/main.c"
585 +# Factoring default headers for most tests.
586 +ac_includes_default="\
587 +#include <stdio.h>
588 +#ifdef HAVE_SYS_TYPES_H
589 +# include <sys/types.h>
590 +#endif
591 +#ifdef HAVE_SYS_STAT_H
592 +# include <sys/stat.h>
593 +#endif
594 +#ifdef STDC_HEADERS
595 +# include <stdlib.h>
596 +# include <stddef.h>
597 +#else
598 +# ifdef HAVE_STDLIB_H
599 +# include <stdlib.h>
600 +# endif
601 +#endif
602 +#ifdef HAVE_STRING_H
603 +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604 +# include <memory.h>
605 +# endif
606 +# include <string.h>
607 +#endif
608 +#ifdef HAVE_STRINGS_H
609 +# include <strings.h>
610 +#endif
611 +#ifdef HAVE_INTTYPES_H
612 +# include <inttypes.h>
613 +#endif
614 +#ifdef HAVE_STDINT_H
615 +# include <stdint.h>
616 +#endif
617 +#ifdef HAVE_UNISTD_H
618 +# include <unistd.h>
619 +#endif"
621 +ac_subst_vars='SHELL
622 +PATH_SEPARATOR
623 +PACKAGE_NAME
624 +PACKAGE_TARNAME
625 +PACKAGE_VERSION
626 +PACKAGE_STRING
627 +PACKAGE_BUGREPORT
628 +exec_prefix
629 +prefix
630 +program_transform_name
631 +bindir
632 +sbindir
633 +libexecdir
634 +datarootdir
635 +datadir
636 +sysconfdir
637 +sharedstatedir
638 +localstatedir
639 +includedir
640 +oldincludedir
641 +docdir
642 +infodir
643 +htmldir
644 +dvidir
645 +pdfdir
646 +psdir
647 +libdir
648 +localedir
649 +mandir
650 +DEFS
651 +ECHO_C
652 +ECHO_N
653 +ECHO_T
654 +LIBS
655 +build_alias
656 +host_alias
657 +target_alias
659 +CFLAGS
660 +LDFLAGS
661 +CPPFLAGS
662 +ac_ct_CC
663 +EXEEXT
664 +OBJEXT
665 +RANLIB
666 +INSTALL_PROGRAM
667 +INSTALL_SCRIPT
668 +INSTALL_DATA
669 +YACC
670 +YFLAGS
671 +LN_S
672 +DVIPS
673 +TEXI2HTML
674 +TEX
675 +TEXINDEX
676 +MAKEINFO
677 +DIFF
678 +SED
679 +emacs
680 +CPP
681 +GREP
682 +EGREP
683 +ALLOCA
684 +GPMXTERM
685 +release
686 +release_date
687 +abi_lev
688 +abi_full
689 +EMACS
690 +ELISP
691 +SHLIB
692 +PICFLAGS
693 +SOLDFLAGS
694 +CURSES_OBJS
695 +SHARED_LIBS
696 +lispdir
697 +LIBOBJS
698 +LTLIBOBJS'
699 +ac_subst_files=''
700 + ac_precious_vars='build_alias
701 +host_alias
702 +target_alias
704 +CFLAGS
705 +LDFLAGS
706 +LIBS
707 +CPPFLAGS
708 +YACC
709 +YFLAGS
710 +CPP'
713 +# Initialize some variables set by options.
714 +ac_init_help=
715 +ac_init_version=false
716 +# The variables have the same names as the options, with
717 +# dashes changed to underlines.
718 +cache_file=/dev/null
719 +exec_prefix=NONE
720 +no_create=
721 +no_recursion=
722 +prefix=NONE
723 +program_prefix=NONE
724 +program_suffix=NONE
725 +program_transform_name=s,x,x,
726 +silent=
727 +site=
728 +srcdir=
729 +verbose=
730 +x_includes=NONE
731 +x_libraries=NONE
733 +# Installation directory options.
734 +# These are left unexpanded so users can "make install exec_prefix=/foo"
735 +# and all the variables that are supposed to be based on exec_prefix
736 +# by default will actually change.
737 +# Use braces instead of parens because sh, perl, etc. also accept them.
738 +# (The list follows the same order as the GNU Coding Standards.)
739 +bindir='${exec_prefix}/bin'
740 +sbindir='${exec_prefix}/sbin'
741 +libexecdir='${exec_prefix}/libexec'
742 +datarootdir='${prefix}/share'
743 +datadir='${datarootdir}'
744 +sysconfdir='${prefix}/etc'
745 +sharedstatedir='${prefix}/com'
746 +localstatedir='${prefix}/var'
747 +includedir='${prefix}/include'
748 +oldincludedir='/usr/include'
749 +docdir='${datarootdir}/doc/${PACKAGE}'
750 +infodir='${datarootdir}/info'
751 +htmldir='${docdir}'
752 +dvidir='${docdir}'
753 +pdfdir='${docdir}'
754 +psdir='${docdir}'
755 +libdir='${exec_prefix}/lib'
756 +localedir='${datarootdir}/locale'
757 +mandir='${datarootdir}/man'
759 +ac_prev=
760 +ac_dashdash=
761 +for ac_option
763 + # If the previous option needs an argument, assign it.
764 + if test -n "$ac_prev"; then
765 + eval $ac_prev=\$ac_option
766 + ac_prev=
767 + continue
768 + fi
770 + case $ac_option in
771 + *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
772 + *) ac_optarg=yes ;;
773 + esac
775 + # Accept the important Cygnus configure options, so we can diagnose typos.
777 + case $ac_dashdash$ac_option in
778 + --)
779 + ac_dashdash=yes ;;
781 + -bindir | --bindir | --bindi | --bind | --bin | --bi)
782 + ac_prev=bindir ;;
783 + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
784 + bindir=$ac_optarg ;;
786 + -build | --build | --buil | --bui | --bu)
787 + ac_prev=build_alias ;;
788 + -build=* | --build=* | --buil=* | --bui=* | --bu=*)
789 + build_alias=$ac_optarg ;;
791 + -cache-file | --cache-file | --cache-fil | --cache-fi \
792 + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
793 + ac_prev=cache_file ;;
794 + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
795 + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
796 + cache_file=$ac_optarg ;;
798 + --config-cache | -C)
799 + cache_file=config.cache ;;
801 + -datadir | --datadir | --datadi | --datad)
802 + ac_prev=datadir ;;
803 + -datadir=* | --datadir=* | --datadi=* | --datad=*)
804 + datadir=$ac_optarg ;;
806 + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
807 + | --dataroo | --dataro | --datar)
808 + ac_prev=datarootdir ;;
809 + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
810 + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
811 + datarootdir=$ac_optarg ;;
813 + -disable-* | --disable-*)
814 + ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
815 + # Reject names that are not valid shell variable names.
816 + expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
817 + { echo "$as_me: error: invalid feature name: $ac_feature" >&2
818 + { (exit 1); exit 1; }; }
819 + ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
820 + eval enable_$ac_feature=no ;;
822 + -docdir | --docdir | --docdi | --doc | --do)
823 + ac_prev=docdir ;;
824 + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
825 + docdir=$ac_optarg ;;
827 + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
828 + ac_prev=dvidir ;;
829 + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
830 + dvidir=$ac_optarg ;;
832 + -enable-* | --enable-*)
833 + ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
834 + # Reject names that are not valid shell variable names.
835 + expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
836 + { echo "$as_me: error: invalid feature name: $ac_feature" >&2
837 + { (exit 1); exit 1; }; }
838 + ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
839 + eval enable_$ac_feature=\$ac_optarg ;;
841 + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
842 + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
843 + | --exec | --exe | --ex)
844 + ac_prev=exec_prefix ;;
845 + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
846 + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
847 + | --exec=* | --exe=* | --ex=*)
848 + exec_prefix=$ac_optarg ;;
850 + -gas | --gas | --ga | --g)
851 + # Obsolete; use --with-gas.
852 + with_gas=yes ;;
854 + -help | --help | --hel | --he | -h)
855 + ac_init_help=long ;;
856 + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
857 + ac_init_help=recursive ;;
858 + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
859 + ac_init_help=short ;;
861 + -host | --host | --hos | --ho)
862 + ac_prev=host_alias ;;
863 + -host=* | --host=* | --hos=* | --ho=*)
864 + host_alias=$ac_optarg ;;
866 + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
867 + ac_prev=htmldir ;;
868 + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
869 + | --ht=*)
870 + htmldir=$ac_optarg ;;
872 + -includedir | --includedir | --includedi | --included | --include \
873 + | --includ | --inclu | --incl | --inc)
874 + ac_prev=includedir ;;
875 + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
876 + | --includ=* | --inclu=* | --incl=* | --inc=*)
877 + includedir=$ac_optarg ;;
879 + -infodir | --infodir | --infodi | --infod | --info | --inf)
880 + ac_prev=infodir ;;
881 + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
882 + infodir=$ac_optarg ;;
884 + -libdir | --libdir | --libdi | --libd)
885 + ac_prev=libdir ;;
886 + -libdir=* | --libdir=* | --libdi=* | --libd=*)
887 + libdir=$ac_optarg ;;
889 + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
890 + | --libexe | --libex | --libe)
891 + ac_prev=libexecdir ;;
892 + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
893 + | --libexe=* | --libex=* | --libe=*)
894 + libexecdir=$ac_optarg ;;
896 + -localedir | --localedir | --localedi | --localed | --locale)
897 + ac_prev=localedir ;;
898 + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
899 + localedir=$ac_optarg ;;
901 + -localstatedir | --localstatedir | --localstatedi | --localstated \
902 + | --localstate | --localstat | --localsta | --localst | --locals)
903 + ac_prev=localstatedir ;;
904 + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
905 + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
906 + localstatedir=$ac_optarg ;;
908 + -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
909 + ac_prev=mandir ;;
910 + -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
911 + mandir=$ac_optarg ;;
913 + -nfp | --nfp | --nf)
914 + # Obsolete; use --without-fp.
915 + with_fp=no ;;
917 + -no-create | --no-create | --no-creat | --no-crea | --no-cre \
918 + | --no-cr | --no-c | -n)
919 + no_create=yes ;;
921 + -no-recursion | --no-recursion | --no-recursio | --no-recursi \
922 + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
923 + no_recursion=yes ;;
925 + -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
926 + | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
927 + | --oldin | --oldi | --old | --ol | --o)
928 + ac_prev=oldincludedir ;;
929 + -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
930 + | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
931 + | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
932 + oldincludedir=$ac_optarg ;;
934 + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
935 + ac_prev=prefix ;;
936 + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
937 + prefix=$ac_optarg ;;
939 + -program-prefix | --program-prefix | --program-prefi | --program-pref \
940 + | --program-pre | --program-pr | --program-p)
941 + ac_prev=program_prefix ;;
942 + -program-prefix=* | --program-prefix=* | --program-prefi=* \
943 + | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
944 + program_prefix=$ac_optarg ;;
946 + -program-suffix | --program-suffix | --program-suffi | --program-suff \
947 + | --program-suf | --program-su | --program-s)
948 + ac_prev=program_suffix ;;
949 + -program-suffix=* | --program-suffix=* | --program-suffi=* \
950 + | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
951 + program_suffix=$ac_optarg ;;
953 + -program-transform-name | --program-transform-name \
954 + | --program-transform-nam | --program-transform-na \
955 + | --program-transform-n | --program-transform- \
956 + | --program-transform | --program-transfor \
957 + | --program-transfo | --program-transf \
958 + | --program-trans | --program-tran \
959 + | --progr-tra | --program-tr | --program-t)
960 + ac_prev=program_transform_name ;;
961 + -program-transform-name=* | --program-transform-name=* \
962 + | --program-transform-nam=* | --program-transform-na=* \
963 + | --program-transform-n=* | --program-transform-=* \
964 + | --program-transform=* | --program-transfor=* \
965 + | --program-transfo=* | --program-transf=* \
966 + | --program-trans=* | --program-tran=* \
967 + | --progr-tra=* | --program-tr=* | --program-t=*)
968 + program_transform_name=$ac_optarg ;;
970 + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
971 + ac_prev=pdfdir ;;
972 + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
973 + pdfdir=$ac_optarg ;;
975 + -psdir | --psdir | --psdi | --psd | --ps)
976 + ac_prev=psdir ;;
977 + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
978 + psdir=$ac_optarg ;;
980 + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
981 + | -silent | --silent | --silen | --sile | --sil)
982 + silent=yes ;;
984 + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
985 + ac_prev=sbindir ;;
986 + -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
987 + | --sbi=* | --sb=*)
988 + sbindir=$ac_optarg ;;
990 + -sharedstatedir | --sharedstatedir | --sharedstatedi \
991 + | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
992 + | --sharedst | --shareds | --shared | --share | --shar \
993 + | --sha | --sh)
994 + ac_prev=sharedstatedir ;;
995 + -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
996 + | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
997 + | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
998 + | --sha=* | --sh=*)
999 + sharedstatedir=$ac_optarg ;;
1001 + -site | --site | --sit)
1002 + ac_prev=site ;;
1003 + -site=* | --site=* | --sit=*)
1004 + site=$ac_optarg ;;
1006 + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1007 + ac_prev=srcdir ;;
1008 + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1009 + srcdir=$ac_optarg ;;
1011 + -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1012 + | --syscon | --sysco | --sysc | --sys | --sy)
1013 + ac_prev=sysconfdir ;;
1014 + -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1015 + | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1016 + sysconfdir=$ac_optarg ;;
1018 + -target | --target | --targe | --targ | --tar | --ta | --t)
1019 + ac_prev=target_alias ;;
1020 + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1021 + target_alias=$ac_optarg ;;
1023 + -v | -verbose | --verbose | --verbos | --verbo | --verb)
1024 + verbose=yes ;;
1026 + -version | --version | --versio | --versi | --vers | -V)
1027 + ac_init_version=: ;;
1029 + -with-* | --with-*)
1030 + ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1031 + # Reject names that are not valid shell variable names.
1032 + expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1033 + { echo "$as_me: error: invalid package name: $ac_package" >&2
1034 + { (exit 1); exit 1; }; }
1035 + ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1036 + eval with_$ac_package=\$ac_optarg ;;
1038 + -without-* | --without-*)
1039 + ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1040 + # Reject names that are not valid shell variable names.
1041 + expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1042 + { echo "$as_me: error: invalid package name: $ac_package" >&2
1043 + { (exit 1); exit 1; }; }
1044 + ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1045 + eval with_$ac_package=no ;;
1047 + --x)
1048 + # Obsolete; use --with-x.
1049 + with_x=yes ;;
1051 + -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1052 + | --x-incl | --x-inc | --x-in | --x-i)
1053 + ac_prev=x_includes ;;
1054 + -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1055 + | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1056 + x_includes=$ac_optarg ;;
1058 + -x-libraries | --x-libraries | --x-librarie | --x-librari \
1059 + | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1060 + ac_prev=x_libraries ;;
1061 + -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1062 + | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1063 + x_libraries=$ac_optarg ;;
1065 + -*) { echo "$as_me: error: unrecognized option: $ac_option
1066 +Try \`$0 --help' for more information." >&2
1067 + { (exit 1); exit 1; }; }
1068 + ;;
1070 + *=*)
1071 + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1072 + # Reject names that are not valid shell variable names.
1073 + expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1074 + { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1075 + { (exit 1); exit 1; }; }
1076 + eval $ac_envvar=\$ac_optarg
1077 + export $ac_envvar ;;
1079 + *)
1080 + # FIXME: should be removed in autoconf 3.0.
1081 + echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1082 + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1083 + echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1084 + : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1085 + ;;
1087 + esac
1088 +done
1090 +if test -n "$ac_prev"; then
1091 + ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1092 + { echo "$as_me: error: missing argument to $ac_option" >&2
1093 + { (exit 1); exit 1; }; }
1096 +# Be sure to have absolute directory names.
1097 +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1098 + datadir sysconfdir sharedstatedir localstatedir includedir \
1099 + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1100 + libdir localedir mandir
1102 + eval ac_val=\$$ac_var
1103 + case $ac_val in
1104 + [\\/$]* | ?:[\\/]* ) continue;;
1105 + NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1106 + esac
1107 + { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1108 + { (exit 1); exit 1; }; }
1109 +done
1111 +# There might be people who depend on the old broken behavior: `$host'
1112 +# used to hold the argument of --host etc.
1113 +# FIXME: To remove some day.
1114 +build=$build_alias
1115 +host=$host_alias
1116 +target=$target_alias
1118 +# FIXME: To remove some day.
1119 +if test "x$host_alias" != x; then
1120 + if test "x$build_alias" = x; then
1121 + cross_compiling=maybe
1122 + echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1123 + If a cross compiler is detected then cross compile mode will be used." >&2
1124 + elif test "x$build_alias" != "x$host_alias"; then
1125 + cross_compiling=yes
1126 + fi
1129 +ac_tool_prefix=
1130 +test -n "$host_alias" && ac_tool_prefix=$host_alias-
1132 +test "$silent" = yes && exec 6>/dev/null
1135 +ac_pwd=`pwd` && test -n "$ac_pwd" &&
1136 +ac_ls_di=`ls -di .` &&
1137 +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1138 + { echo "$as_me: error: Working directory cannot be determined" >&2
1139 + { (exit 1); exit 1; }; }
1140 +test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1141 + { echo "$as_me: error: pwd does not report name of working directory" >&2
1142 + { (exit 1); exit 1; }; }
1145 +# Find the source files, if location was not specified.
1146 +if test -z "$srcdir"; then
1147 + ac_srcdir_defaulted=yes
1148 + # Try the directory containing this script, then the parent directory.
1149 + ac_confdir=`$as_dirname -- "$0" ||
1150 +$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1151 + X"$0" : 'X\(//\)[^/]' \| \
1152 + X"$0" : 'X\(//\)$' \| \
1153 + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1154 +echo X"$0" |
1155 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1156 + s//\1/
1159 + /^X\(\/\/\)[^/].*/{
1160 + s//\1/
1163 + /^X\(\/\/\)$/{
1164 + s//\1/
1167 + /^X\(\/\).*/{
1168 + s//\1/
1171 + s/.*/./; q'`
1172 + srcdir=$ac_confdir
1173 + if test ! -r "$srcdir/$ac_unique_file"; then
1174 + srcdir=..
1175 + fi
1176 +else
1177 + ac_srcdir_defaulted=no
1179 +if test ! -r "$srcdir/$ac_unique_file"; then
1180 + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1181 + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1182 + { (exit 1); exit 1; }; }
1184 +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1185 +ac_abs_confdir=`(
1186 + cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1187 + { (exit 1); exit 1; }; }
1188 + pwd)`
1189 +# When building in place, set srcdir=.
1190 +if test "$ac_abs_confdir" = "$ac_pwd"; then
1191 + srcdir=.
1193 +# Remove unnecessary trailing slashes from srcdir.
1194 +# Double slashes in file names in object file debugging info
1195 +# mess up M-x gdb in Emacs.
1196 +case $srcdir in
1197 +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1198 +esac
1199 +for ac_var in $ac_precious_vars; do
1200 + eval ac_env_${ac_var}_set=\${${ac_var}+set}
1201 + eval ac_env_${ac_var}_value=\$${ac_var}
1202 + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1203 + eval ac_cv_env_${ac_var}_value=\$${ac_var}
1204 +done
1207 +# Report the --help message.
1209 +if test "$ac_init_help" = "long"; then
1210 + # Omit some internal or obsolete options to make the list less imposing.
1211 + # This message is too long to be a string in the A/UX 3.1 sh.
1212 + cat <<_ACEOF
1213 +\`configure' configures this package to adapt to many kinds of systems.
1215 +Usage: $0 [OPTION]... [VAR=VALUE]...
1217 +To assign environment variables (e.g., CC, CFLAGS...), specify them as
1218 +VAR=VALUE. See below for descriptions of some of the useful variables.
1220 +Defaults for the options are specified in brackets.
1222 +Configuration:
1223 + -h, --help display this help and exit
1224 + --help=short display options specific to this package
1225 + --help=recursive display the short help of all the included packages
1226 + -V, --version display version information and exit
1227 + -q, --quiet, --silent do not print \`checking...' messages
1228 + --cache-file=FILE cache test results in FILE [disabled]
1229 + -C, --config-cache alias for \`--cache-file=config.cache'
1230 + -n, --no-create do not create output files
1231 + --srcdir=DIR find the sources in DIR [configure dir or \`..']
1233 +Installation directories:
1234 + --prefix=PREFIX install architecture-independent files in PREFIX
1235 + [$ac_default_prefix]
1236 + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1237 + [PREFIX]
1239 +By default, \`make install' will install all the files in
1240 +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1241 +an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1242 +for instance \`--prefix=\$HOME'.
1244 +For better control, use the options below.
1246 +Fine tuning of the installation directories:
1247 + --bindir=DIR user executables [EPREFIX/bin]
1248 + --sbindir=DIR system admin executables [EPREFIX/sbin]
1249 + --libexecdir=DIR program executables [EPREFIX/libexec]
1250 + --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1251 + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1252 + --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1253 + --libdir=DIR object code libraries [EPREFIX/lib]
1254 + --includedir=DIR C header files [PREFIX/include]
1255 + --oldincludedir=DIR C header files for non-gcc [/usr/include]
1256 + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1257 + --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1258 + --infodir=DIR info documentation [DATAROOTDIR/info]
1259 + --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1260 + --mandir=DIR man documentation [DATAROOTDIR/man]
1261 + --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1262 + --htmldir=DIR html documentation [DOCDIR]
1263 + --dvidir=DIR dvi documentation [DOCDIR]
1264 + --pdfdir=DIR pdf documentation [DOCDIR]
1265 + --psdir=DIR ps documentation [DOCDIR]
1266 +_ACEOF
1268 + cat <<\_ACEOF
1269 +_ACEOF
1272 +if test -n "$ac_init_help"; then
1274 + cat <<\_ACEOF
1276 +Optional Packages:
1277 + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1278 + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1279 + --without-curses disable curses support even if curses found
1281 +Some influential environment variables:
1282 + CC C compiler command
1283 + CFLAGS C compiler flags
1284 + LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1285 + nonstandard directory <lib dir>
1286 + LIBS libraries to pass to the linker, e.g. -l<library>
1287 + CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1288 + you have headers in a nonstandard directory <include dir>
1289 + YACC The `Yet Another C Compiler' implementation to use. Defaults to
1290 + the first program found out of: `bison -y', `byacc', `yacc'.
1291 + YFLAGS The list of arguments that will be passed by default to $YACC.
1292 + This script will default YFLAGS to the empty string to avoid a
1293 + default value of `-d' given by some make applications.
1294 + CPP C preprocessor
1296 +Use these variables to override the choices made by `configure' or to help
1297 +it to find libraries and programs with nonstandard names/locations.
1299 +_ACEOF
1300 +ac_status=$?
1303 +if test "$ac_init_help" = "recursive"; then
1304 + # If there are subdirs, report their specific --help.
1305 + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1306 + test -d "$ac_dir" || continue
1307 + ac_builddir=.
1309 +case "$ac_dir" in
1310 +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1312 + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1313 + # A ".." for each directory in $ac_dir_suffix.
1314 + ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1315 + case $ac_top_builddir_sub in
1316 + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1317 + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1318 + esac ;;
1319 +esac
1320 +ac_abs_top_builddir=$ac_pwd
1321 +ac_abs_builddir=$ac_pwd$ac_dir_suffix
1322 +# for backward compatibility:
1323 +ac_top_builddir=$ac_top_build_prefix
1325 +case $srcdir in
1326 + .) # We are building in place.
1327 + ac_srcdir=.
1328 + ac_top_srcdir=$ac_top_builddir_sub
1329 + ac_abs_top_srcdir=$ac_pwd ;;
1330 + [\\/]* | ?:[\\/]* ) # Absolute name.
1331 + ac_srcdir=$srcdir$ac_dir_suffix;
1332 + ac_top_srcdir=$srcdir
1333 + ac_abs_top_srcdir=$srcdir ;;
1334 + *) # Relative name.
1335 + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1336 + ac_top_srcdir=$ac_top_build_prefix$srcdir
1337 + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1338 +esac
1339 +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1341 + cd "$ac_dir" || { ac_status=$?; continue; }
1342 + # Check for guested configure.
1343 + if test -f "$ac_srcdir/configure.gnu"; then
1344 + echo &&
1345 + $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1346 + elif test -f "$ac_srcdir/configure"; then
1347 + echo &&
1348 + $SHELL "$ac_srcdir/configure" --help=recursive
1349 + else
1350 + echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1351 + fi || ac_status=$?
1352 + cd "$ac_pwd" || { ac_status=$?; break; }
1353 + done
1356 +test -n "$ac_init_help" && exit $ac_status
1357 +if $ac_init_version; then
1358 + cat <<\_ACEOF
1359 +configure
1360 +generated by GNU Autoconf 2.61
1362 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1363 +2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1364 +This configure script is free software; the Free Software Foundation
1365 +gives unlimited permission to copy, distribute and modify it.
1366 +_ACEOF
1367 + exit
1369 +cat >config.log <<_ACEOF
1370 +This file contains any messages produced by compilers while
1371 +running configure, to aid debugging if configure makes a mistake.
1373 +It was created by $as_me, which was
1374 +generated by GNU Autoconf 2.61. Invocation command line was
1376 + $ $0 $@
1378 +_ACEOF
1379 +exec 5>>config.log
1381 +cat <<_ASUNAME
1382 +## --------- ##
1383 +## Platform. ##
1384 +## --------- ##
1386 +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1387 +uname -m = `(uname -m) 2>/dev/null || echo unknown`
1388 +uname -r = `(uname -r) 2>/dev/null || echo unknown`
1389 +uname -s = `(uname -s) 2>/dev/null || echo unknown`
1390 +uname -v = `(uname -v) 2>/dev/null || echo unknown`
1392 +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1393 +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1395 +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1396 +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1397 +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1398 +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1399 +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1400 +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1401 +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1403 +_ASUNAME
1405 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1406 +for as_dir in $PATH
1408 + IFS=$as_save_IFS
1409 + test -z "$as_dir" && as_dir=.
1410 + echo "PATH: $as_dir"
1411 +done
1412 +IFS=$as_save_IFS
1414 +} >&5
1416 +cat >&5 <<_ACEOF
1419 +## ----------- ##
1420 +## Core tests. ##
1421 +## ----------- ##
1423 +_ACEOF
1426 +# Keep a trace of the command line.
1427 +# Strip out --no-create and --no-recursion so they do not pile up.
1428 +# Strip out --silent because we don't want to record it for future runs.
1429 +# Also quote any args containing shell meta-characters.
1430 +# Make two passes to allow for proper duplicate-argument suppression.
1431 +ac_configure_args=
1432 +ac_configure_args0=
1433 +ac_configure_args1=
1434 +ac_must_keep_next=false
1435 +for ac_pass in 1 2
1437 + for ac_arg
1438 + do
1439 + case $ac_arg in
1440 + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1441 + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1442 + | -silent | --silent | --silen | --sile | --sil)
1443 + continue ;;
1444 + *\'*)
1445 + ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1446 + esac
1447 + case $ac_pass in
1448 + 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1449 + 2)
1450 + ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1451 + if test $ac_must_keep_next = true; then
1452 + ac_must_keep_next=false # Got value, back to normal.
1453 + else
1454 + case $ac_arg in
1455 + *=* | --config-cache | -C | -disable-* | --disable-* \
1456 + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1457 + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1458 + | -with-* | --with-* | -without-* | --without-* | --x)
1459 + case "$ac_configure_args0 " in
1460 + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1461 + esac
1462 + ;;
1463 + -* ) ac_must_keep_next=true ;;
1464 + esac
1465 + fi
1466 + ac_configure_args="$ac_configure_args '$ac_arg'"
1467 + ;;
1468 + esac
1469 + done
1470 +done
1471 +$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1472 +$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1474 +# When interrupted or exit'd, cleanup temporary files, and complete
1475 +# config.log. We remove comments because anyway the quotes in there
1476 +# would cause problems or look ugly.
1477 +# WARNING: Use '\'' to represent an apostrophe within the trap.
1478 +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1479 +trap 'exit_status=$?
1480 + # Save into config.log some information that might help in debugging.
1482 + echo
1484 + cat <<\_ASBOX
1485 +## ---------------- ##
1486 +## Cache variables. ##
1487 +## ---------------- ##
1488 +_ASBOX
1489 + echo
1490 + # The following way of writing the cache mishandles newlines in values,
1492 + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1493 + eval ac_val=\$$ac_var
1494 + case $ac_val in #(
1495 + *${as_nl}*)
1496 + case $ac_var in #(
1497 + *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1498 +echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1499 + esac
1500 + case $ac_var in #(
1501 + _ | IFS | as_nl) ;; #(
1502 + *) $as_unset $ac_var ;;
1503 + esac ;;
1504 + esac
1505 + done
1506 + (set) 2>&1 |
1507 + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1508 + *${as_nl}ac_space=\ *)
1509 + sed -n \
1510 + "s/'\''/'\''\\\\'\'''\''/g;
1511 + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1512 + ;; #(
1513 + *)
1514 + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1515 + ;;
1516 + esac |
1517 + sort
1519 + echo
1521 + cat <<\_ASBOX
1522 +## ----------------- ##
1523 +## Output variables. ##
1524 +## ----------------- ##
1525 +_ASBOX
1526 + echo
1527 + for ac_var in $ac_subst_vars
1528 + do
1529 + eval ac_val=\$$ac_var
1530 + case $ac_val in
1531 + *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1532 + esac
1533 + echo "$ac_var='\''$ac_val'\''"
1534 + done | sort
1535 + echo
1537 + if test -n "$ac_subst_files"; then
1538 + cat <<\_ASBOX
1539 +## ------------------- ##
1540 +## File substitutions. ##
1541 +## ------------------- ##
1542 +_ASBOX
1543 + echo
1544 + for ac_var in $ac_subst_files
1545 + do
1546 + eval ac_val=\$$ac_var
1547 + case $ac_val in
1548 + *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1549 + esac
1550 + echo "$ac_var='\''$ac_val'\''"
1551 + done | sort
1552 + echo
1553 + fi
1555 + if test -s confdefs.h; then
1556 + cat <<\_ASBOX
1557 +## ----------- ##
1558 +## confdefs.h. ##
1559 +## ----------- ##
1560 +_ASBOX
1561 + echo
1562 + cat confdefs.h
1563 + echo
1564 + fi
1565 + test "$ac_signal" != 0 &&
1566 + echo "$as_me: caught signal $ac_signal"
1567 + echo "$as_me: exit $exit_status"
1568 + } >&5
1569 + rm -f core *.core core.conftest.* &&
1570 + rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1571 + exit $exit_status
1572 +' 0
1573 +for ac_signal in 1 2 13 15; do
1574 + trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1575 +done
1576 +ac_signal=0
1578 +# confdefs.h avoids OS command line length limits that DEFS can exceed.
1579 +rm -f -r conftest* confdefs.h
1581 +# Predefined preprocessor variables.
1583 +cat >>confdefs.h <<_ACEOF
1584 +#define PACKAGE_NAME "$PACKAGE_NAME"
1585 +_ACEOF
1588 +cat >>confdefs.h <<_ACEOF
1589 +#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1590 +_ACEOF
1593 +cat >>confdefs.h <<_ACEOF
1594 +#define PACKAGE_VERSION "$PACKAGE_VERSION"
1595 +_ACEOF
1598 +cat >>confdefs.h <<_ACEOF
1599 +#define PACKAGE_STRING "$PACKAGE_STRING"
1600 +_ACEOF
1603 +cat >>confdefs.h <<_ACEOF
1604 +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1605 +_ACEOF
1608 +# Let the site file select an alternate cache file if it wants to.
1609 +# Prefer explicitly selected file to automatically selected ones.
1610 +if test -n "$CONFIG_SITE"; then
1611 + set x "$CONFIG_SITE"
1612 +elif test "x$prefix" != xNONE; then
1613 + set x "$prefix/share/config.site" "$prefix/etc/config.site"
1614 +else
1615 + set x "$ac_default_prefix/share/config.site" \
1616 + "$ac_default_prefix/etc/config.site"
1618 +shift
1619 +for ac_site_file
1621 + if test -r "$ac_site_file"; then
1622 + { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1623 +echo "$as_me: loading site script $ac_site_file" >&6;}
1624 + sed 's/^/| /' "$ac_site_file" >&5
1625 + . "$ac_site_file"
1626 + fi
1627 +done
1629 +if test -r "$cache_file"; then
1630 + # Some versions of bash will fail to source /dev/null (special
1631 + # files actually), so we avoid doing that.
1632 + if test -f "$cache_file"; then
1633 + { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1634 +echo "$as_me: loading cache $cache_file" >&6;}
1635 + case $cache_file in
1636 + [\\/]* | ?:[\\/]* ) . "$cache_file";;
1637 + *) . "./$cache_file";;
1638 + esac
1639 + fi
1640 +else
1641 + { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1642 +echo "$as_me: creating cache $cache_file" >&6;}
1643 + >$cache_file
1646 +# Check that the precious variables saved in the cache have kept the same
1647 +# value.
1648 +ac_cache_corrupted=false
1649 +for ac_var in $ac_precious_vars; do
1650 + eval ac_old_set=\$ac_cv_env_${ac_var}_set
1651 + eval ac_new_set=\$ac_env_${ac_var}_set
1652 + eval ac_old_val=\$ac_cv_env_${ac_var}_value
1653 + eval ac_new_val=\$ac_env_${ac_var}_value
1654 + case $ac_old_set,$ac_new_set in
1655 + set,)
1656 + { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1657 +echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1658 + ac_cache_corrupted=: ;;
1659 + ,set)
1660 + { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1661 +echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1662 + ac_cache_corrupted=: ;;
1663 + ,);;
1664 + *)
1665 + if test "x$ac_old_val" != "x$ac_new_val"; then
1666 + { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1667 +echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1668 + { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1669 +echo "$as_me: former value: $ac_old_val" >&2;}
1670 + { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1671 +echo "$as_me: current value: $ac_new_val" >&2;}
1672 + ac_cache_corrupted=:
1673 + fi;;
1674 + esac
1675 + # Pass precious variables to config.status.
1676 + if test "$ac_new_set" = set; then
1677 + case $ac_new_val in
1678 + *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1679 + *) ac_arg=$ac_var=$ac_new_val ;;
1680 + esac
1681 + case " $ac_configure_args " in
1682 + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1683 + *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1684 + esac
1685 + fi
1686 +done
1687 +if $ac_cache_corrupted; then
1688 + { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1689 +echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1690 + { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1691 +echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1692 + { (exit 1); exit 1; }; }
1711 +ac_ext=c
1712 +ac_cpp='$CPP $CPPFLAGS'
1713 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1714 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1715 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
1719 +ac_config_headers="$ac_config_headers src/headers/config.h"
1722 +release=1.99.5
1723 +release_date="First of April, 1. April 2008"
1724 +cat >>confdefs.h <<_ACEOF
1725 +#define GPM_RELEASE "$release"
1726 +_ACEOF
1728 +cat >>confdefs.h <<_ACEOF
1729 +#define GPM_RELEASE_DATE "$release_date"
1730 +_ACEOF
1733 +abi=20
1734 +abi_age=19
1735 +abi_rev=0
1737 +abi_lev=`expr $abi - $abi_age`
1738 +abi_full=$abi_lev.$abi_age.$abi_rev
1740 +if test x$srcdir = x ; then
1741 + srcdir = `pwd`
1742 +else
1743 + srcdir=`cd $srcdir && pwd`
1746 +ac_ext=c
1747 +ac_cpp='$CPP $CPPFLAGS'
1748 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1749 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1750 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
1751 +if test -n "$ac_tool_prefix"; then
1752 + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1753 +set dummy ${ac_tool_prefix}gcc; ac_word=$2
1754 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1755 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1756 +if test "${ac_cv_prog_CC+set}" = set; then
1757 + echo $ECHO_N "(cached) $ECHO_C" >&6
1758 +else
1759 + if test -n "$CC"; then
1760 + ac_cv_prog_CC="$CC" # Let the user override the test.
1761 +else
1762 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1763 +for as_dir in $PATH
1765 + IFS=$as_save_IFS
1766 + test -z "$as_dir" && as_dir=.
1767 + for ac_exec_ext in '' $ac_executable_extensions; do
1768 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1769 + ac_cv_prog_CC="${ac_tool_prefix}gcc"
1770 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1771 + break 2
1772 + fi
1773 +done
1774 +done
1775 +IFS=$as_save_IFS
1779 +CC=$ac_cv_prog_CC
1780 +if test -n "$CC"; then
1781 + { echo "$as_me:$LINENO: result: $CC" >&5
1782 +echo "${ECHO_T}$CC" >&6; }
1783 +else
1784 + { echo "$as_me:$LINENO: result: no" >&5
1785 +echo "${ECHO_T}no" >&6; }
1790 +if test -z "$ac_cv_prog_CC"; then
1791 + ac_ct_CC=$CC
1792 + # Extract the first word of "gcc", so it can be a program name with args.
1793 +set dummy gcc; ac_word=$2
1794 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1795 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1796 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1797 + echo $ECHO_N "(cached) $ECHO_C" >&6
1798 +else
1799 + if test -n "$ac_ct_CC"; then
1800 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1801 +else
1802 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1803 +for as_dir in $PATH
1805 + IFS=$as_save_IFS
1806 + test -z "$as_dir" && as_dir=.
1807 + for ac_exec_ext in '' $ac_executable_extensions; do
1808 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1809 + ac_cv_prog_ac_ct_CC="gcc"
1810 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1811 + break 2
1812 + fi
1813 +done
1814 +done
1815 +IFS=$as_save_IFS
1819 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
1820 +if test -n "$ac_ct_CC"; then
1821 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1822 +echo "${ECHO_T}$ac_ct_CC" >&6; }
1823 +else
1824 + { echo "$as_me:$LINENO: result: no" >&5
1825 +echo "${ECHO_T}no" >&6; }
1828 + if test "x$ac_ct_CC" = x; then
1829 + CC=""
1830 + else
1831 + case $cross_compiling:$ac_tool_warned in
1832 +yes:)
1833 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1834 +whose name does not start with the host triplet. If you think this
1835 +configuration is useful to you, please write to autoconf@gnu.org." >&5
1836 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1837 +whose name does not start with the host triplet. If you think this
1838 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1839 +ac_tool_warned=yes ;;
1840 +esac
1841 + CC=$ac_ct_CC
1842 + fi
1843 +else
1844 + CC="$ac_cv_prog_CC"
1847 +if test -z "$CC"; then
1848 + if test -n "$ac_tool_prefix"; then
1849 + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1850 +set dummy ${ac_tool_prefix}cc; ac_word=$2
1851 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1852 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1853 +if test "${ac_cv_prog_CC+set}" = set; then
1854 + echo $ECHO_N "(cached) $ECHO_C" >&6
1855 +else
1856 + if test -n "$CC"; then
1857 + ac_cv_prog_CC="$CC" # Let the user override the test.
1858 +else
1859 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1860 +for as_dir in $PATH
1862 + IFS=$as_save_IFS
1863 + test -z "$as_dir" && as_dir=.
1864 + for ac_exec_ext in '' $ac_executable_extensions; do
1865 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1866 + ac_cv_prog_CC="${ac_tool_prefix}cc"
1867 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1868 + break 2
1869 + fi
1870 +done
1871 +done
1872 +IFS=$as_save_IFS
1876 +CC=$ac_cv_prog_CC
1877 +if test -n "$CC"; then
1878 + { echo "$as_me:$LINENO: result: $CC" >&5
1879 +echo "${ECHO_T}$CC" >&6; }
1880 +else
1881 + { echo "$as_me:$LINENO: result: no" >&5
1882 +echo "${ECHO_T}no" >&6; }
1886 + fi
1888 +if test -z "$CC"; then
1889 + # Extract the first word of "cc", so it can be a program name with args.
1890 +set dummy cc; ac_word=$2
1891 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1892 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1893 +if test "${ac_cv_prog_CC+set}" = set; then
1894 + echo $ECHO_N "(cached) $ECHO_C" >&6
1895 +else
1896 + if test -n "$CC"; then
1897 + ac_cv_prog_CC="$CC" # Let the user override the test.
1898 +else
1899 + ac_prog_rejected=no
1900 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1901 +for as_dir in $PATH
1903 + IFS=$as_save_IFS
1904 + test -z "$as_dir" && as_dir=.
1905 + for ac_exec_ext in '' $ac_executable_extensions; do
1906 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1907 + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1908 + ac_prog_rejected=yes
1909 + continue
1910 + fi
1911 + ac_cv_prog_CC="cc"
1912 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1913 + break 2
1914 + fi
1915 +done
1916 +done
1917 +IFS=$as_save_IFS
1919 +if test $ac_prog_rejected = yes; then
1920 + # We found a bogon in the path, so make sure we never use it.
1921 + set dummy $ac_cv_prog_CC
1922 + shift
1923 + if test $# != 0; then
1924 + # We chose a different compiler from the bogus one.
1925 + # However, it has the same basename, so the bogon will be chosen
1926 + # first if we set CC to just the basename; use the full file name.
1927 + shift
1928 + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1929 + fi
1933 +CC=$ac_cv_prog_CC
1934 +if test -n "$CC"; then
1935 + { echo "$as_me:$LINENO: result: $CC" >&5
1936 +echo "${ECHO_T}$CC" >&6; }
1937 +else
1938 + { echo "$as_me:$LINENO: result: no" >&5
1939 +echo "${ECHO_T}no" >&6; }
1944 +if test -z "$CC"; then
1945 + if test -n "$ac_tool_prefix"; then
1946 + for ac_prog in cl.exe
1947 + do
1948 + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1949 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1950 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1951 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1952 +if test "${ac_cv_prog_CC+set}" = set; then
1953 + echo $ECHO_N "(cached) $ECHO_C" >&6
1954 +else
1955 + if test -n "$CC"; then
1956 + ac_cv_prog_CC="$CC" # Let the user override the test.
1957 +else
1958 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1959 +for as_dir in $PATH
1961 + IFS=$as_save_IFS
1962 + test -z "$as_dir" && as_dir=.
1963 + for ac_exec_ext in '' $ac_executable_extensions; do
1964 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1965 + ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1966 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1967 + break 2
1968 + fi
1969 +done
1970 +done
1971 +IFS=$as_save_IFS
1975 +CC=$ac_cv_prog_CC
1976 +if test -n "$CC"; then
1977 + { echo "$as_me:$LINENO: result: $CC" >&5
1978 +echo "${ECHO_T}$CC" >&6; }
1979 +else
1980 + { echo "$as_me:$LINENO: result: no" >&5
1981 +echo "${ECHO_T}no" >&6; }
1985 + test -n "$CC" && break
1986 + done
1988 +if test -z "$CC"; then
1989 + ac_ct_CC=$CC
1990 + for ac_prog in cl.exe
1992 + # Extract the first word of "$ac_prog", so it can be a program name with args.
1993 +set dummy $ac_prog; ac_word=$2
1994 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1995 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1996 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1997 + echo $ECHO_N "(cached) $ECHO_C" >&6
1998 +else
1999 + if test -n "$ac_ct_CC"; then
2000 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2001 +else
2002 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2003 +for as_dir in $PATH
2005 + IFS=$as_save_IFS
2006 + test -z "$as_dir" && as_dir=.
2007 + for ac_exec_ext in '' $ac_executable_extensions; do
2008 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2009 + ac_cv_prog_ac_ct_CC="$ac_prog"
2010 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2011 + break 2
2012 + fi
2013 +done
2014 +done
2015 +IFS=$as_save_IFS
2019 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
2020 +if test -n "$ac_ct_CC"; then
2021 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2022 +echo "${ECHO_T}$ac_ct_CC" >&6; }
2023 +else
2024 + { echo "$as_me:$LINENO: result: no" >&5
2025 +echo "${ECHO_T}no" >&6; }
2029 + test -n "$ac_ct_CC" && break
2030 +done
2032 + if test "x$ac_ct_CC" = x; then
2033 + CC=""
2034 + else
2035 + case $cross_compiling:$ac_tool_warned in
2036 +yes:)
2037 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2038 +whose name does not start with the host triplet. If you think this
2039 +configuration is useful to you, please write to autoconf@gnu.org." >&5
2040 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2041 +whose name does not start with the host triplet. If you think this
2042 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2043 +ac_tool_warned=yes ;;
2044 +esac
2045 + CC=$ac_ct_CC
2046 + fi
2052 +test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2053 +See \`config.log' for more details." >&5
2054 +echo "$as_me: error: no acceptable C compiler found in \$PATH
2055 +See \`config.log' for more details." >&2;}
2056 + { (exit 1); exit 1; }; }
2058 +# Provide some information about the compiler.
2059 +echo "$as_me:$LINENO: checking for C compiler version" >&5
2060 +ac_compiler=`set X $ac_compile; echo $2`
2061 +{ (ac_try="$ac_compiler --version >&5"
2062 +case "(($ac_try" in
2063 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2064 + *) ac_try_echo=$ac_try;;
2065 +esac
2066 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2067 + (eval "$ac_compiler --version >&5") 2>&5
2068 + ac_status=$?
2069 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2070 + (exit $ac_status); }
2071 +{ (ac_try="$ac_compiler -v >&5"
2072 +case "(($ac_try" in
2073 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2074 + *) ac_try_echo=$ac_try;;
2075 +esac
2076 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2077 + (eval "$ac_compiler -v >&5") 2>&5
2078 + ac_status=$?
2079 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2080 + (exit $ac_status); }
2081 +{ (ac_try="$ac_compiler -V >&5"
2082 +case "(($ac_try" in
2083 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2084 + *) ac_try_echo=$ac_try;;
2085 +esac
2086 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2087 + (eval "$ac_compiler -V >&5") 2>&5
2088 + ac_status=$?
2089 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090 + (exit $ac_status); }
2092 +cat >conftest.$ac_ext <<_ACEOF
2093 +/* confdefs.h. */
2094 +_ACEOF
2095 +cat confdefs.h >>conftest.$ac_ext
2096 +cat >>conftest.$ac_ext <<_ACEOF
2097 +/* end confdefs.h. */
2099 +int
2100 +main ()
2104 + return 0;
2106 +_ACEOF
2107 +ac_clean_files_save=$ac_clean_files
2108 +ac_clean_files="$ac_clean_files a.out a.exe b.out"
2109 +# Try to create an executable without -o first, disregard a.out.
2110 +# It will help us diagnose broken compilers, and finding out an intuition
2111 +# of exeext.
2112 +{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2113 +echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2114 +ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2116 +# List of possible output files, starting from the most likely.
2117 +# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2118 +# only as a last resort. b.out is created by i960 compilers.
2119 +ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2121 +# The IRIX 6 linker writes into existing files which may not be
2122 +# executable, retaining their permissions. Remove them first so a
2123 +# subsequent execution test works.
2124 +ac_rmfiles=
2125 +for ac_file in $ac_files
2127 + case $ac_file in
2128 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2129 + * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2130 + esac
2131 +done
2132 +rm -f $ac_rmfiles
2134 +if { (ac_try="$ac_link_default"
2135 +case "(($ac_try" in
2136 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2137 + *) ac_try_echo=$ac_try;;
2138 +esac
2139 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2140 + (eval "$ac_link_default") 2>&5
2141 + ac_status=$?
2142 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143 + (exit $ac_status); }; then
2144 + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2145 +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2146 +# in a Makefile. We should not override ac_cv_exeext if it was cached,
2147 +# so that the user can short-circuit this test for compilers unknown to
2148 +# Autoconf.
2149 +for ac_file in $ac_files ''
2151 + test -f "$ac_file" || continue
2152 + case $ac_file in
2153 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2154 + ;;
2155 + [ab].out )
2156 + # We found the default executable, but exeext='' is most
2157 + # certainly right.
2158 + break;;
2159 + *.* )
2160 + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2161 + then :; else
2162 + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2163 + fi
2164 + # We set ac_cv_exeext here because the later test for it is not
2165 + # safe: cross compilers may not add the suffix if given an `-o'
2166 + # argument, so we may need to know it at that point already.
2167 + # Even if this section looks crufty: it has the advantage of
2168 + # actually working.
2169 + break;;
2170 + * )
2171 + break;;
2172 + esac
2173 +done
2174 +test "$ac_cv_exeext" = no && ac_cv_exeext=
2176 +else
2177 + ac_file=''
2180 +{ echo "$as_me:$LINENO: result: $ac_file" >&5
2181 +echo "${ECHO_T}$ac_file" >&6; }
2182 +if test -z "$ac_file"; then
2183 + echo "$as_me: failed program was:" >&5
2184 +sed 's/^/| /' conftest.$ac_ext >&5
2186 +{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2187 +See \`config.log' for more details." >&5
2188 +echo "$as_me: error: C compiler cannot create executables
2189 +See \`config.log' for more details." >&2;}
2190 + { (exit 77); exit 77; }; }
2193 +ac_exeext=$ac_cv_exeext
2195 +# Check that the compiler produces executables we can run. If not, either
2196 +# the compiler is broken, or we cross compile.
2197 +{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2198 +echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2199 +# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2200 +# If not cross compiling, check that we can run a simple program.
2201 +if test "$cross_compiling" != yes; then
2202 + if { ac_try='./$ac_file'
2203 + { (case "(($ac_try" in
2204 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2205 + *) ac_try_echo=$ac_try;;
2206 +esac
2207 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2208 + (eval "$ac_try") 2>&5
2209 + ac_status=$?
2210 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211 + (exit $ac_status); }; }; then
2212 + cross_compiling=no
2213 + else
2214 + if test "$cross_compiling" = maybe; then
2215 + cross_compiling=yes
2216 + else
2217 + { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2218 +If you meant to cross compile, use \`--host'.
2219 +See \`config.log' for more details." >&5
2220 +echo "$as_me: error: cannot run C compiled programs.
2221 +If you meant to cross compile, use \`--host'.
2222 +See \`config.log' for more details." >&2;}
2223 + { (exit 1); exit 1; }; }
2224 + fi
2225 + fi
2227 +{ echo "$as_me:$LINENO: result: yes" >&5
2228 +echo "${ECHO_T}yes" >&6; }
2230 +rm -f a.out a.exe conftest$ac_cv_exeext b.out
2231 +ac_clean_files=$ac_clean_files_save
2232 +# Check that the compiler produces executables we can run. If not, either
2233 +# the compiler is broken, or we cross compile.
2234 +{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2235 +echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2236 +{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2237 +echo "${ECHO_T}$cross_compiling" >&6; }
2239 +{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2240 +echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2241 +if { (ac_try="$ac_link"
2242 +case "(($ac_try" in
2243 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2244 + *) ac_try_echo=$ac_try;;
2245 +esac
2246 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2247 + (eval "$ac_link") 2>&5
2248 + ac_status=$?
2249 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250 + (exit $ac_status); }; then
2251 + # If both `conftest.exe' and `conftest' are `present' (well, observable)
2252 +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2253 +# work properly (i.e., refer to `conftest.exe'), while it won't with
2254 +# `rm'.
2255 +for ac_file in conftest.exe conftest conftest.*; do
2256 + test -f "$ac_file" || continue
2257 + case $ac_file in
2258 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2259 + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2260 + break;;
2261 + * ) break;;
2262 + esac
2263 +done
2264 +else
2265 + { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2266 +See \`config.log' for more details." >&5
2267 +echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2268 +See \`config.log' for more details." >&2;}
2269 + { (exit 1); exit 1; }; }
2272 +rm -f conftest$ac_cv_exeext
2273 +{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2274 +echo "${ECHO_T}$ac_cv_exeext" >&6; }
2276 +rm -f conftest.$ac_ext
2277 +EXEEXT=$ac_cv_exeext
2278 +ac_exeext=$EXEEXT
2279 +{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2280 +echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2281 +if test "${ac_cv_objext+set}" = set; then
2282 + echo $ECHO_N "(cached) $ECHO_C" >&6
2283 +else
2284 + cat >conftest.$ac_ext <<_ACEOF
2285 +/* confdefs.h. */
2286 +_ACEOF
2287 +cat confdefs.h >>conftest.$ac_ext
2288 +cat >>conftest.$ac_ext <<_ACEOF
2289 +/* end confdefs.h. */
2291 +int
2292 +main ()
2296 + return 0;
2298 +_ACEOF
2299 +rm -f conftest.o conftest.obj
2300 +if { (ac_try="$ac_compile"
2301 +case "(($ac_try" in
2302 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2303 + *) ac_try_echo=$ac_try;;
2304 +esac
2305 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2306 + (eval "$ac_compile") 2>&5
2307 + ac_status=$?
2308 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 + (exit $ac_status); }; then
2310 + for ac_file in conftest.o conftest.obj conftest.*; do
2311 + test -f "$ac_file" || continue;
2312 + case $ac_file in
2313 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2314 + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2315 + break;;
2316 + esac
2317 +done
2318 +else
2319 + echo "$as_me: failed program was:" >&5
2320 +sed 's/^/| /' conftest.$ac_ext >&5
2322 +{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2323 +See \`config.log' for more details." >&5
2324 +echo "$as_me: error: cannot compute suffix of object files: cannot compile
2325 +See \`config.log' for more details." >&2;}
2326 + { (exit 1); exit 1; }; }
2329 +rm -f conftest.$ac_cv_objext conftest.$ac_ext
2331 +{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2332 +echo "${ECHO_T}$ac_cv_objext" >&6; }
2333 +OBJEXT=$ac_cv_objext
2334 +ac_objext=$OBJEXT
2335 +{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2336 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2337 +if test "${ac_cv_c_compiler_gnu+set}" = set; then
2338 + echo $ECHO_N "(cached) $ECHO_C" >&6
2339 +else
2340 + cat >conftest.$ac_ext <<_ACEOF
2341 +/* confdefs.h. */
2342 +_ACEOF
2343 +cat confdefs.h >>conftest.$ac_ext
2344 +cat >>conftest.$ac_ext <<_ACEOF
2345 +/* end confdefs.h. */
2347 +int
2348 +main ()
2350 +#ifndef __GNUC__
2351 + choke me
2352 +#endif
2355 + return 0;
2357 +_ACEOF
2358 +rm -f conftest.$ac_objext
2359 +if { (ac_try="$ac_compile"
2360 +case "(($ac_try" in
2361 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2362 + *) ac_try_echo=$ac_try;;
2363 +esac
2364 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2365 + (eval "$ac_compile") 2>conftest.er1
2366 + ac_status=$?
2367 + grep -v '^ *+' conftest.er1 >conftest.err
2368 + rm -f conftest.er1
2369 + cat conftest.err >&5
2370 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371 + (exit $ac_status); } && {
2372 + test -z "$ac_c_werror_flag" ||
2373 + test ! -s conftest.err
2374 + } && test -s conftest.$ac_objext; then
2375 + ac_compiler_gnu=yes
2376 +else
2377 + echo "$as_me: failed program was:" >&5
2378 +sed 's/^/| /' conftest.$ac_ext >&5
2380 + ac_compiler_gnu=no
2383 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2384 +ac_cv_c_compiler_gnu=$ac_compiler_gnu
2387 +{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2388 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2389 +GCC=`test $ac_compiler_gnu = yes && echo yes`
2390 +ac_test_CFLAGS=${CFLAGS+set}
2391 +ac_save_CFLAGS=$CFLAGS
2392 +{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2393 +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2394 +if test "${ac_cv_prog_cc_g+set}" = set; then
2395 + echo $ECHO_N "(cached) $ECHO_C" >&6
2396 +else
2397 + ac_save_c_werror_flag=$ac_c_werror_flag
2398 + ac_c_werror_flag=yes
2399 + ac_cv_prog_cc_g=no
2400 + CFLAGS="-g"
2401 + cat >conftest.$ac_ext <<_ACEOF
2402 +/* confdefs.h. */
2403 +_ACEOF
2404 +cat confdefs.h >>conftest.$ac_ext
2405 +cat >>conftest.$ac_ext <<_ACEOF
2406 +/* end confdefs.h. */
2408 +int
2409 +main ()
2413 + return 0;
2415 +_ACEOF
2416 +rm -f conftest.$ac_objext
2417 +if { (ac_try="$ac_compile"
2418 +case "(($ac_try" in
2419 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2420 + *) ac_try_echo=$ac_try;;
2421 +esac
2422 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2423 + (eval "$ac_compile") 2>conftest.er1
2424 + ac_status=$?
2425 + grep -v '^ *+' conftest.er1 >conftest.err
2426 + rm -f conftest.er1
2427 + cat conftest.err >&5
2428 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 + (exit $ac_status); } && {
2430 + test -z "$ac_c_werror_flag" ||
2431 + test ! -s conftest.err
2432 + } && test -s conftest.$ac_objext; then
2433 + ac_cv_prog_cc_g=yes
2434 +else
2435 + echo "$as_me: failed program was:" >&5
2436 +sed 's/^/| /' conftest.$ac_ext >&5
2438 + CFLAGS=""
2439 + cat >conftest.$ac_ext <<_ACEOF
2440 +/* confdefs.h. */
2441 +_ACEOF
2442 +cat confdefs.h >>conftest.$ac_ext
2443 +cat >>conftest.$ac_ext <<_ACEOF
2444 +/* end confdefs.h. */
2446 +int
2447 +main ()
2451 + return 0;
2453 +_ACEOF
2454 +rm -f conftest.$ac_objext
2455 +if { (ac_try="$ac_compile"
2456 +case "(($ac_try" in
2457 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2458 + *) ac_try_echo=$ac_try;;
2459 +esac
2460 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2461 + (eval "$ac_compile") 2>conftest.er1
2462 + ac_status=$?
2463 + grep -v '^ *+' conftest.er1 >conftest.err
2464 + rm -f conftest.er1
2465 + cat conftest.err >&5
2466 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 + (exit $ac_status); } && {
2468 + test -z "$ac_c_werror_flag" ||
2469 + test ! -s conftest.err
2470 + } && test -s conftest.$ac_objext; then
2472 +else
2473 + echo "$as_me: failed program was:" >&5
2474 +sed 's/^/| /' conftest.$ac_ext >&5
2476 + ac_c_werror_flag=$ac_save_c_werror_flag
2477 + CFLAGS="-g"
2478 + cat >conftest.$ac_ext <<_ACEOF
2479 +/* confdefs.h. */
2480 +_ACEOF
2481 +cat confdefs.h >>conftest.$ac_ext
2482 +cat >>conftest.$ac_ext <<_ACEOF
2483 +/* end confdefs.h. */
2485 +int
2486 +main ()
2490 + return 0;
2492 +_ACEOF
2493 +rm -f conftest.$ac_objext
2494 +if { (ac_try="$ac_compile"
2495 +case "(($ac_try" in
2496 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2497 + *) ac_try_echo=$ac_try;;
2498 +esac
2499 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2500 + (eval "$ac_compile") 2>conftest.er1
2501 + ac_status=$?
2502 + grep -v '^ *+' conftest.er1 >conftest.err
2503 + rm -f conftest.er1
2504 + cat conftest.err >&5
2505 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 + (exit $ac_status); } && {
2507 + test -z "$ac_c_werror_flag" ||
2508 + test ! -s conftest.err
2509 + } && test -s conftest.$ac_objext; then
2510 + ac_cv_prog_cc_g=yes
2511 +else
2512 + echo "$as_me: failed program was:" >&5
2513 +sed 's/^/| /' conftest.$ac_ext >&5
2518 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2521 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2524 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2525 + ac_c_werror_flag=$ac_save_c_werror_flag
2527 +{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2528 +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2529 +if test "$ac_test_CFLAGS" = set; then
2530 + CFLAGS=$ac_save_CFLAGS
2531 +elif test $ac_cv_prog_cc_g = yes; then
2532 + if test "$GCC" = yes; then
2533 + CFLAGS="-g -O2"
2534 + else
2535 + CFLAGS="-g"
2536 + fi
2537 +else
2538 + if test "$GCC" = yes; then
2539 + CFLAGS="-O2"
2540 + else
2541 + CFLAGS=
2542 + fi
2544 +{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2545 +echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2546 +if test "${ac_cv_prog_cc_c89+set}" = set; then
2547 + echo $ECHO_N "(cached) $ECHO_C" >&6
2548 +else
2549 + ac_cv_prog_cc_c89=no
2550 +ac_save_CC=$CC
2551 +cat >conftest.$ac_ext <<_ACEOF
2552 +/* confdefs.h. */
2553 +_ACEOF
2554 +cat confdefs.h >>conftest.$ac_ext
2555 +cat >>conftest.$ac_ext <<_ACEOF
2556 +/* end confdefs.h. */
2557 +#include <stdarg.h>
2558 +#include <stdio.h>
2559 +#include <sys/types.h>
2560 +#include <sys/stat.h>
2561 +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2562 +struct buf { int x; };
2563 +FILE * (*rcsopen) (struct buf *, struct stat *, int);
2564 +static char *e (p, i)
2565 + char **p;
2566 + int i;
2568 + return p[i];
2570 +static char *f (char * (*g) (char **, int), char **p, ...)
2572 + char *s;
2573 + va_list v;
2574 + va_start (v,p);
2575 + s = g (p, va_arg (v,int));
2576 + va_end (v);
2577 + return s;
2580 +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2581 + function prototypes and stuff, but not '\xHH' hex character constants.
2582 + These don't provoke an error unfortunately, instead are silently treated
2583 + as 'x'. The following induces an error, until -std is added to get
2584 + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2585 + array size at least. It's necessary to write '\x00'==0 to get something
2586 + that's true only with -std. */
2587 +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2589 +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2590 + inside strings and character constants. */
2591 +#define FOO(x) 'x'
2592 +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2594 +int test (int i, double x);
2595 +struct s1 {int (*f) (int a);};
2596 +struct s2 {int (*f) (double a);};
2597 +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2598 +int argc;
2599 +char **argv;
2600 +int
2601 +main ()
2603 +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2605 + return 0;
2607 +_ACEOF
2608 +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2609 + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2611 + CC="$ac_save_CC $ac_arg"
2612 + rm -f conftest.$ac_objext
2613 +if { (ac_try="$ac_compile"
2614 +case "(($ac_try" in
2615 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2616 + *) ac_try_echo=$ac_try;;
2617 +esac
2618 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2619 + (eval "$ac_compile") 2>conftest.er1
2620 + ac_status=$?
2621 + grep -v '^ *+' conftest.er1 >conftest.err
2622 + rm -f conftest.er1
2623 + cat conftest.err >&5
2624 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 + (exit $ac_status); } && {
2626 + test -z "$ac_c_werror_flag" ||
2627 + test ! -s conftest.err
2628 + } && test -s conftest.$ac_objext; then
2629 + ac_cv_prog_cc_c89=$ac_arg
2630 +else
2631 + echo "$as_me: failed program was:" >&5
2632 +sed 's/^/| /' conftest.$ac_ext >&5
2637 +rm -f core conftest.err conftest.$ac_objext
2638 + test "x$ac_cv_prog_cc_c89" != "xno" && break
2639 +done
2640 +rm -f conftest.$ac_ext
2641 +CC=$ac_save_CC
2644 +# AC_CACHE_VAL
2645 +case "x$ac_cv_prog_cc_c89" in
2646 + x)
2647 + { echo "$as_me:$LINENO: result: none needed" >&5
2648 +echo "${ECHO_T}none needed" >&6; } ;;
2649 + xno)
2650 + { echo "$as_me:$LINENO: result: unsupported" >&5
2651 +echo "${ECHO_T}unsupported" >&6; } ;;
2652 + *)
2653 + CC="$CC $ac_cv_prog_cc_c89"
2654 + { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2655 +echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2656 +esac
2659 +ac_ext=c
2660 +ac_cpp='$CPP $CPPFLAGS'
2661 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2662 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2663 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
2665 +if test -n "$ac_tool_prefix"; then
2666 + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2667 +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2668 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2669 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2670 +if test "${ac_cv_prog_RANLIB+set}" = set; then
2671 + echo $ECHO_N "(cached) $ECHO_C" >&6
2672 +else
2673 + if test -n "$RANLIB"; then
2674 + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2675 +else
2676 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2677 +for as_dir in $PATH
2679 + IFS=$as_save_IFS
2680 + test -z "$as_dir" && as_dir=.
2681 + for ac_exec_ext in '' $ac_executable_extensions; do
2682 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2683 + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2684 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2685 + break 2
2686 + fi
2687 +done
2688 +done
2689 +IFS=$as_save_IFS
2693 +RANLIB=$ac_cv_prog_RANLIB
2694 +if test -n "$RANLIB"; then
2695 + { echo "$as_me:$LINENO: result: $RANLIB" >&5
2696 +echo "${ECHO_T}$RANLIB" >&6; }
2697 +else
2698 + { echo "$as_me:$LINENO: result: no" >&5
2699 +echo "${ECHO_T}no" >&6; }
2704 +if test -z "$ac_cv_prog_RANLIB"; then
2705 + ac_ct_RANLIB=$RANLIB
2706 + # Extract the first word of "ranlib", so it can be a program name with args.
2707 +set dummy ranlib; ac_word=$2
2708 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2709 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2710 +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2711 + echo $ECHO_N "(cached) $ECHO_C" >&6
2712 +else
2713 + if test -n "$ac_ct_RANLIB"; then
2714 + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2715 +else
2716 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2717 +for as_dir in $PATH
2719 + IFS=$as_save_IFS
2720 + test -z "$as_dir" && as_dir=.
2721 + for ac_exec_ext in '' $ac_executable_extensions; do
2722 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2723 + ac_cv_prog_ac_ct_RANLIB="ranlib"
2724 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2725 + break 2
2726 + fi
2727 +done
2728 +done
2729 +IFS=$as_save_IFS
2733 +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2734 +if test -n "$ac_ct_RANLIB"; then
2735 + { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2736 +echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
2737 +else
2738 + { echo "$as_me:$LINENO: result: no" >&5
2739 +echo "${ECHO_T}no" >&6; }
2742 + if test "x$ac_ct_RANLIB" = x; then
2743 + RANLIB=":"
2744 + else
2745 + case $cross_compiling:$ac_tool_warned in
2746 +yes:)
2747 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2748 +whose name does not start with the host triplet. If you think this
2749 +configuration is useful to you, please write to autoconf@gnu.org." >&5
2750 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2751 +whose name does not start with the host triplet. If you think this
2752 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2753 +ac_tool_warned=yes ;;
2754 +esac
2755 + RANLIB=$ac_ct_RANLIB
2756 + fi
2757 +else
2758 + RANLIB="$ac_cv_prog_RANLIB"
2761 +ac_aux_dir=
2762 +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2763 + if test -f "$ac_dir/install-sh"; then
2764 + ac_aux_dir=$ac_dir
2765 + ac_install_sh="$ac_aux_dir/install-sh -c"
2766 + break
2767 + elif test -f "$ac_dir/install.sh"; then
2768 + ac_aux_dir=$ac_dir
2769 + ac_install_sh="$ac_aux_dir/install.sh -c"
2770 + break
2771 + elif test -f "$ac_dir/shtool"; then
2772 + ac_aux_dir=$ac_dir
2773 + ac_install_sh="$ac_aux_dir/shtool install -c"
2774 + break
2775 + fi
2776 +done
2777 +if test -z "$ac_aux_dir"; then
2778 + { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2779 +echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2780 + { (exit 1); exit 1; }; }
2783 +# These three variables are undocumented and unsupported,
2784 +# and are intended to be withdrawn in a future Autoconf release.
2785 +# They can cause serious problems if a builder's source tree is in a directory
2786 +# whose full name contains unusual characters.
2787 +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2788 +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2789 +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2792 +# Find a good install program. We prefer a C program (faster),
2793 +# so one script is as good as another. But avoid the broken or
2794 +# incompatible versions:
2795 +# SysV /etc/install, /usr/sbin/install
2796 +# SunOS /usr/etc/install
2797 +# IRIX /sbin/install
2798 +# AIX /bin/install
2799 +# AmigaOS /C/install, which installs bootblocks on floppy discs
2800 +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2801 +# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2802 +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2803 +# OS/2's system install, which has a completely different semantic
2804 +# ./install, which can be erroneously created by make from ./install.sh.
2805 +{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2806 +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2807 +if test -z "$INSTALL"; then
2808 +if test "${ac_cv_path_install+set}" = set; then
2809 + echo $ECHO_N "(cached) $ECHO_C" >&6
2810 +else
2811 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812 +for as_dir in $PATH
2814 + IFS=$as_save_IFS
2815 + test -z "$as_dir" && as_dir=.
2816 + # Account for people who put trailing slashes in PATH elements.
2817 +case $as_dir/ in
2818 + ./ | .// | /cC/* | \
2819 + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2820 + ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2821 + /usr/ucb/* ) ;;
2822 + *)
2823 + # OSF1 and SCO ODT 3.0 have their own names for install.
2824 + # Don't use installbsd from OSF since it installs stuff as root
2825 + # by default.
2826 + for ac_prog in ginstall scoinst install; do
2827 + for ac_exec_ext in '' $ac_executable_extensions; do
2828 + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2829 + if test $ac_prog = install &&
2830 + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2831 + # AIX install. It has an incompatible calling convention.
2833 + elif test $ac_prog = install &&
2834 + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2835 + # program-specific install script used by HP pwplus--don't use.
2837 + else
2838 + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2839 + break 3
2840 + fi
2841 + fi
2842 + done
2843 + done
2844 + ;;
2845 +esac
2846 +done
2847 +IFS=$as_save_IFS
2851 + if test "${ac_cv_path_install+set}" = set; then
2852 + INSTALL=$ac_cv_path_install
2853 + else
2854 + # As a last resort, use the slow shell script. Don't cache a
2855 + # value for INSTALL within a source directory, because that will
2856 + # break other packages using the cache if that directory is
2857 + # removed, or if the value is a relative name.
2858 + INSTALL=$ac_install_sh
2859 + fi
2861 +{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2862 +echo "${ECHO_T}$INSTALL" >&6; }
2864 +# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2865 +# It thinks the first close brace ends the variable substitution.
2866 +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2868 +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2870 +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2872 +for ac_prog in 'bison -y' byacc
2874 + # Extract the first word of "$ac_prog", so it can be a program name with args.
2875 +set dummy $ac_prog; ac_word=$2
2876 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2877 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2878 +if test "${ac_cv_prog_YACC+set}" = set; then
2879 + echo $ECHO_N "(cached) $ECHO_C" >&6
2880 +else
2881 + if test -n "$YACC"; then
2882 + ac_cv_prog_YACC="$YACC" # Let the user override the test.
2883 +else
2884 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885 +for as_dir in $PATH
2887 + IFS=$as_save_IFS
2888 + test -z "$as_dir" && as_dir=.
2889 + for ac_exec_ext in '' $ac_executable_extensions; do
2890 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2891 + ac_cv_prog_YACC="$ac_prog"
2892 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2893 + break 2
2894 + fi
2895 +done
2896 +done
2897 +IFS=$as_save_IFS
2901 +YACC=$ac_cv_prog_YACC
2902 +if test -n "$YACC"; then
2903 + { echo "$as_me:$LINENO: result: $YACC" >&5
2904 +echo "${ECHO_T}$YACC" >&6; }
2905 +else
2906 + { echo "$as_me:$LINENO: result: no" >&5
2907 +echo "${ECHO_T}no" >&6; }
2911 + test -n "$YACC" && break
2912 +done
2913 +test -n "$YACC" || YACC="yacc"
2915 +{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
2916 +echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
2917 +LN_S=$as_ln_s
2918 +if test "$LN_S" = "ln -s"; then
2919 + { echo "$as_me:$LINENO: result: yes" >&5
2920 +echo "${ECHO_T}yes" >&6; }
2921 +else
2922 + { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2923 +echo "${ECHO_T}no, using $LN_S" >&6; }
2927 +# check for programs.
2928 +# Extract the first word of "dvips", so it can be a program name with args.
2929 +set dummy dvips; ac_word=$2
2930 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2931 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2932 +if test "${ac_cv_path_DVIPS+set}" = set; then
2933 + echo $ECHO_N "(cached) $ECHO_C" >&6
2934 +else
2935 + case $DVIPS in
2936 + [\\/]* | ?:[\\/]*)
2937 + ac_cv_path_DVIPS="$DVIPS" # Let the user override the test with a path.
2938 + ;;
2939 + *)
2940 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941 +for as_dir in $PATH
2943 + IFS=$as_save_IFS
2944 + test -z "$as_dir" && as_dir=.
2945 + for ac_exec_ext in '' $ac_executable_extensions; do
2946 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2947 + ac_cv_path_DVIPS="$as_dir/$ac_word$ac_exec_ext"
2948 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2949 + break 2
2950 + fi
2951 +done
2952 +done
2953 +IFS=$as_save_IFS
2955 + test -z "$ac_cv_path_DVIPS" && ac_cv_path_DVIPS="no"
2956 + ;;
2957 +esac
2959 +DVIPS=$ac_cv_path_DVIPS
2960 +if test -n "$DVIPS"; then
2961 + { echo "$as_me:$LINENO: result: $DVIPS" >&5
2962 +echo "${ECHO_T}$DVIPS" >&6; }
2963 +else
2964 + { echo "$as_me:$LINENO: result: no" >&5
2965 +echo "${ECHO_T}no" >&6; }
2969 +# Extract the first word of "texi2html", so it can be a program name with args.
2970 +set dummy texi2html; ac_word=$2
2971 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2972 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2973 +if test "${ac_cv_path_TEXI2HTML+set}" = set; then
2974 + echo $ECHO_N "(cached) $ECHO_C" >&6
2975 +else
2976 + case $TEXI2HTML in
2977 + [\\/]* | ?:[\\/]*)
2978 + ac_cv_path_TEXI2HTML="$TEXI2HTML" # Let the user override the test with a path.
2979 + ;;
2980 + *)
2981 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2982 +for as_dir in $PATH
2984 + IFS=$as_save_IFS
2985 + test -z "$as_dir" && as_dir=.
2986 + for ac_exec_ext in '' $ac_executable_extensions; do
2987 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2988 + ac_cv_path_TEXI2HTML="$as_dir/$ac_word$ac_exec_ext"
2989 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2990 + break 2
2991 + fi
2992 +done
2993 +done
2994 +IFS=$as_save_IFS
2996 + test -z "$ac_cv_path_TEXI2HTML" && ac_cv_path_TEXI2HTML="no"
2997 + ;;
2998 +esac
3000 +TEXI2HTML=$ac_cv_path_TEXI2HTML
3001 +if test -n "$TEXI2HTML"; then
3002 + { echo "$as_me:$LINENO: result: $TEXI2HTML" >&5
3003 +echo "${ECHO_T}$TEXI2HTML" >&6; }
3004 +else
3005 + { echo "$as_me:$LINENO: result: no" >&5
3006 +echo "${ECHO_T}no" >&6; }
3010 +# Extract the first word of "tex", so it can be a program name with args.
3011 +set dummy tex; ac_word=$2
3012 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3013 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3014 +if test "${ac_cv_path_TEX+set}" = set; then
3015 + echo $ECHO_N "(cached) $ECHO_C" >&6
3016 +else
3017 + case $TEX in
3018 + [\\/]* | ?:[\\/]*)
3019 + ac_cv_path_TEX="$TEX" # Let the user override the test with a path.
3020 + ;;
3021 + *)
3022 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3023 +for as_dir in $PATH
3025 + IFS=$as_save_IFS
3026 + test -z "$as_dir" && as_dir=.
3027 + for ac_exec_ext in '' $ac_executable_extensions; do
3028 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3029 + ac_cv_path_TEX="$as_dir/$ac_word$ac_exec_ext"
3030 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3031 + break 2
3032 + fi
3033 +done
3034 +done
3035 +IFS=$as_save_IFS
3037 + test -z "$ac_cv_path_TEX" && ac_cv_path_TEX="no"
3038 + ;;
3039 +esac
3041 +TEX=$ac_cv_path_TEX
3042 +if test -n "$TEX"; then
3043 + { echo "$as_me:$LINENO: result: $TEX" >&5
3044 +echo "${ECHO_T}$TEX" >&6; }
3045 +else
3046 + { echo "$as_me:$LINENO: result: no" >&5
3047 +echo "${ECHO_T}no" >&6; }
3051 +# Extract the first word of "texindex", so it can be a program name with args.
3052 +set dummy texindex; ac_word=$2
3053 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3054 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3055 +if test "${ac_cv_path_TEXINDEX+set}" = set; then
3056 + echo $ECHO_N "(cached) $ECHO_C" >&6
3057 +else
3058 + case $TEXINDEX in
3059 + [\\/]* | ?:[\\/]*)
3060 + ac_cv_path_TEXINDEX="$TEXINDEX" # Let the user override the test with a path.
3061 + ;;
3062 + *)
3063 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3064 +for as_dir in $PATH
3066 + IFS=$as_save_IFS
3067 + test -z "$as_dir" && as_dir=.
3068 + for ac_exec_ext in '' $ac_executable_extensions; do
3069 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3070 + ac_cv_path_TEXINDEX="$as_dir/$ac_word$ac_exec_ext"
3071 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3072 + break 2
3073 + fi
3074 +done
3075 +done
3076 +IFS=$as_save_IFS
3078 + test -z "$ac_cv_path_TEXINDEX" && ac_cv_path_TEXINDEX="no"
3079 + ;;
3080 +esac
3082 +TEXINDEX=$ac_cv_path_TEXINDEX
3083 +if test -n "$TEXINDEX"; then
3084 + { echo "$as_me:$LINENO: result: $TEXINDEX" >&5
3085 +echo "${ECHO_T}$TEXINDEX" >&6; }
3086 +else
3087 + { echo "$as_me:$LINENO: result: no" >&5
3088 +echo "${ECHO_T}no" >&6; }
3092 +# Extract the first word of "makeinfo", so it can be a program name with args.
3093 +set dummy makeinfo; ac_word=$2
3094 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3095 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3096 +if test "${ac_cv_path_MAKEINFO+set}" = set; then
3097 + echo $ECHO_N "(cached) $ECHO_C" >&6
3098 +else
3099 + case $MAKEINFO in
3100 + [\\/]* | ?:[\\/]*)
3101 + ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
3102 + ;;
3103 + *)
3104 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105 +for as_dir in $PATH
3107 + IFS=$as_save_IFS
3108 + test -z "$as_dir" && as_dir=.
3109 + for ac_exec_ext in '' $ac_executable_extensions; do
3110 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3111 + ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
3112 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3113 + break 2
3114 + fi
3115 +done
3116 +done
3117 +IFS=$as_save_IFS
3119 + test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
3120 + ;;
3121 +esac
3123 +MAKEINFO=$ac_cv_path_MAKEINFO
3124 +if test -n "$MAKEINFO"; then
3125 + { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
3126 +echo "${ECHO_T}$MAKEINFO" >&6; }
3127 +else
3128 + { echo "$as_me:$LINENO: result: no" >&5
3129 +echo "${ECHO_T}no" >&6; }
3133 +# Extract the first word of "diff", so it can be a program name with args.
3134 +set dummy diff; ac_word=$2
3135 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3136 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3137 +if test "${ac_cv_path_DIFF+set}" = set; then
3138 + echo $ECHO_N "(cached) $ECHO_C" >&6
3139 +else
3140 + case $DIFF in
3141 + [\\/]* | ?:[\\/]*)
3142 + ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
3143 + ;;
3144 + *)
3145 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146 +for as_dir in $PATH
3148 + IFS=$as_save_IFS
3149 + test -z "$as_dir" && as_dir=.
3150 + for ac_exec_ext in '' $ac_executable_extensions; do
3151 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3152 + ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
3153 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3154 + break 2
3155 + fi
3156 +done
3157 +done
3158 +IFS=$as_save_IFS
3160 + test -z "$ac_cv_path_DIFF" && ac_cv_path_DIFF="no"
3161 + ;;
3162 +esac
3164 +DIFF=$ac_cv_path_DIFF
3165 +if test -n "$DIFF"; then
3166 + { echo "$as_me:$LINENO: result: $DIFF" >&5
3167 +echo "${ECHO_T}$DIFF" >&6; }
3168 +else
3169 + { echo "$as_me:$LINENO: result: no" >&5
3170 +echo "${ECHO_T}no" >&6; }
3174 +# Extract the first word of "sed", so it can be a program name with args.
3175 +set dummy sed; ac_word=$2
3176 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3177 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3178 +if test "${ac_cv_path_SED+set}" = set; then
3179 + echo $ECHO_N "(cached) $ECHO_C" >&6
3180 +else
3181 + case $SED in
3182 + [\\/]* | ?:[\\/]*)
3183 + ac_cv_path_SED="$SED" # Let the user override the test with a path.
3184 + ;;
3185 + *)
3186 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3187 +for as_dir in $PATH
3189 + IFS=$as_save_IFS
3190 + test -z "$as_dir" && as_dir=.
3191 + for ac_exec_ext in '' $ac_executable_extensions; do
3192 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3193 + ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3194 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3195 + break 2
3196 + fi
3197 +done
3198 +done
3199 +IFS=$as_save_IFS
3201 + test -z "$ac_cv_path_SED" && ac_cv_path_SED="no"
3202 + ;;
3203 +esac
3205 +SED=$ac_cv_path_SED
3206 +if test -n "$SED"; then
3207 + { echo "$as_me:$LINENO: result: $SED" >&5
3208 +echo "${ECHO_T}$SED" >&6; }
3209 +else
3210 + { echo "$as_me:$LINENO: result: no" >&5
3211 +echo "${ECHO_T}no" >&6; }
3215 +# Extract the first word of "emacs", so it can be a program name with args.
3216 +set dummy emacs; ac_word=$2
3217 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3218 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3219 +if test "${ac_cv_path_emacs+set}" = set; then
3220 + echo $ECHO_N "(cached) $ECHO_C" >&6
3221 +else
3222 + case $emacs in
3223 + [\\/]* | ?:[\\/]*)
3224 + ac_cv_path_emacs="$emacs" # Let the user override the test with a path.
3225 + ;;
3226 + *)
3227 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3228 +for as_dir in $PATH
3230 + IFS=$as_save_IFS
3231 + test -z "$as_dir" && as_dir=.
3232 + for ac_exec_ext in '' $ac_executable_extensions; do
3233 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3234 + ac_cv_path_emacs="$as_dir/$ac_word$ac_exec_ext"
3235 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3236 + break 2
3237 + fi
3238 +done
3239 +done
3240 +IFS=$as_save_IFS
3242 + test -z "$ac_cv_path_emacs" && ac_cv_path_emacs="no"
3243 + ;;
3244 +esac
3246 +emacs=$ac_cv_path_emacs
3247 +if test -n "$emacs"; then
3248 + { echo "$as_me:$LINENO: result: $emacs" >&5
3249 +echo "${ECHO_T}$emacs" >&6; }
3250 +else
3251 + { echo "$as_me:$LINENO: result: no" >&5
3252 +echo "${ECHO_T}no" >&6; }
3257 +if test ${ac_cv_path_emacs} = no ; then
3258 + EMACS=:
3259 + ELISP=
3260 +else
3261 + EMACS=${ac_cv_path_emacs}
3262 + ELISP="emacs/t-mouse.el emacs/t-mouse.elc"
3265 +if test $EMACS != : ; then
3266 + { echo "$as_me:$LINENO: checking where to install Emacs Lisp files" >&5
3267 +echo $ECHO_N "checking where to install Emacs Lisp files... $ECHO_C" >&6; }
3268 +if test "${itz_cv_path_site_lisp+set}" = set; then
3269 + echo $ECHO_N "(cached) $ECHO_C" >&6
3270 +else
3271 + eval itz_cv_path_site_lisp=`${EMACS} -batch -l ${srcdir}/exec.el -exec "(mapcar 'print load-path)" 2>/dev/null |
3272 +sed -e '/^$/d' | sed -n -e 2p`
3273 +case x${itz_cv_path_site_lisp} in
3274 +x*site-lisp*) ;;
3275 +x*) itz_cv_path_site_lisp='${datadir}/emacs/site-lisp' ;;
3276 +esac
3278 +{ echo "$as_me:$LINENO: result: $itz_cv_path_site_lisp" >&5
3279 +echo "${ECHO_T}$itz_cv_path_site_lisp" >&6; }
3281 + lispdir=${itz_cv_path_site_lisp}
3282 +else
3283 + lispdir='${datadir}/emacs/site-lisp'
3287 +ac_ext=c
3288 +ac_cpp='$CPP $CPPFLAGS'
3289 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3290 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3291 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
3292 +{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3293 +echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3294 +# On Suns, sometimes $CPP names a directory.
3295 +if test -n "$CPP" && test -d "$CPP"; then
3296 + CPP=
3298 +if test -z "$CPP"; then
3299 + if test "${ac_cv_prog_CPP+set}" = set; then
3300 + echo $ECHO_N "(cached) $ECHO_C" >&6
3301 +else
3302 + # Double quotes because CPP needs to be expanded
3303 + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3304 + do
3305 + ac_preproc_ok=false
3306 +for ac_c_preproc_warn_flag in '' yes
3308 + # Use a header file that comes with gcc, so configuring glibc
3309 + # with a fresh cross-compiler works.
3310 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3311 + # <limits.h> exists even on freestanding compilers.
3312 + # On the NeXT, cc -E runs the code through the compiler's parser,
3313 + # not just through cpp. "Syntax error" is here to catch this case.
3314 + cat >conftest.$ac_ext <<_ACEOF
3315 +/* confdefs.h. */
3316 +_ACEOF
3317 +cat confdefs.h >>conftest.$ac_ext
3318 +cat >>conftest.$ac_ext <<_ACEOF
3319 +/* end confdefs.h. */
3320 +#ifdef __STDC__
3321 +# include <limits.h>
3322 +#else
3323 +# include <assert.h>
3324 +#endif
3325 + Syntax error
3326 +_ACEOF
3327 +if { (ac_try="$ac_cpp conftest.$ac_ext"
3328 +case "(($ac_try" in
3329 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3330 + *) ac_try_echo=$ac_try;;
3331 +esac
3332 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3333 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3334 + ac_status=$?
3335 + grep -v '^ *+' conftest.er1 >conftest.err
3336 + rm -f conftest.er1
3337 + cat conftest.err >&5
3338 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 + (exit $ac_status); } >/dev/null && {
3340 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3341 + test ! -s conftest.err
3342 + }; then
3344 +else
3345 + echo "$as_me: failed program was:" >&5
3346 +sed 's/^/| /' conftest.$ac_ext >&5
3348 + # Broken: fails on valid input.
3349 +continue
3352 +rm -f conftest.err conftest.$ac_ext
3354 + # OK, works on sane cases. Now check whether nonexistent headers
3355 + # can be detected and how.
3356 + cat >conftest.$ac_ext <<_ACEOF
3357 +/* confdefs.h. */
3358 +_ACEOF
3359 +cat confdefs.h >>conftest.$ac_ext
3360 +cat >>conftest.$ac_ext <<_ACEOF
3361 +/* end confdefs.h. */
3362 +#include <ac_nonexistent.h>
3363 +_ACEOF
3364 +if { (ac_try="$ac_cpp conftest.$ac_ext"
3365 +case "(($ac_try" in
3366 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367 + *) ac_try_echo=$ac_try;;
3368 +esac
3369 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3370 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3371 + ac_status=$?
3372 + grep -v '^ *+' conftest.er1 >conftest.err
3373 + rm -f conftest.er1
3374 + cat conftest.err >&5
3375 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 + (exit $ac_status); } >/dev/null && {
3377 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3378 + test ! -s conftest.err
3379 + }; then
3380 + # Broken: success on invalid input.
3381 +continue
3382 +else
3383 + echo "$as_me: failed program was:" >&5
3384 +sed 's/^/| /' conftest.$ac_ext >&5
3386 + # Passes both tests.
3387 +ac_preproc_ok=:
3388 +break
3391 +rm -f conftest.err conftest.$ac_ext
3393 +done
3394 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3395 +rm -f conftest.err conftest.$ac_ext
3396 +if $ac_preproc_ok; then
3397 + break
3400 + done
3401 + ac_cv_prog_CPP=$CPP
3404 + CPP=$ac_cv_prog_CPP
3405 +else
3406 + ac_cv_prog_CPP=$CPP
3408 +{ echo "$as_me:$LINENO: result: $CPP" >&5
3409 +echo "${ECHO_T}$CPP" >&6; }
3410 +ac_preproc_ok=false
3411 +for ac_c_preproc_warn_flag in '' yes
3413 + # Use a header file that comes with gcc, so configuring glibc
3414 + # with a fresh cross-compiler works.
3415 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3416 + # <limits.h> exists even on freestanding compilers.
3417 + # On the NeXT, cc -E runs the code through the compiler's parser,
3418 + # not just through cpp. "Syntax error" is here to catch this case.
3419 + cat >conftest.$ac_ext <<_ACEOF
3420 +/* confdefs.h. */
3421 +_ACEOF
3422 +cat confdefs.h >>conftest.$ac_ext
3423 +cat >>conftest.$ac_ext <<_ACEOF
3424 +/* end confdefs.h. */
3425 +#ifdef __STDC__
3426 +# include <limits.h>
3427 +#else
3428 +# include <assert.h>
3429 +#endif
3430 + Syntax error
3431 +_ACEOF
3432 +if { (ac_try="$ac_cpp conftest.$ac_ext"
3433 +case "(($ac_try" in
3434 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435 + *) ac_try_echo=$ac_try;;
3436 +esac
3437 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3438 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3439 + ac_status=$?
3440 + grep -v '^ *+' conftest.er1 >conftest.err
3441 + rm -f conftest.er1
3442 + cat conftest.err >&5
3443 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 + (exit $ac_status); } >/dev/null && {
3445 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3446 + test ! -s conftest.err
3447 + }; then
3449 +else
3450 + echo "$as_me: failed program was:" >&5
3451 +sed 's/^/| /' conftest.$ac_ext >&5
3453 + # Broken: fails on valid input.
3454 +continue
3457 +rm -f conftest.err conftest.$ac_ext
3459 + # OK, works on sane cases. Now check whether nonexistent headers
3460 + # can be detected and how.
3461 + cat >conftest.$ac_ext <<_ACEOF
3462 +/* confdefs.h. */
3463 +_ACEOF
3464 +cat confdefs.h >>conftest.$ac_ext
3465 +cat >>conftest.$ac_ext <<_ACEOF
3466 +/* end confdefs.h. */
3467 +#include <ac_nonexistent.h>
3468 +_ACEOF
3469 +if { (ac_try="$ac_cpp conftest.$ac_ext"
3470 +case "(($ac_try" in
3471 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3472 + *) ac_try_echo=$ac_try;;
3473 +esac
3474 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3475 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3476 + ac_status=$?
3477 + grep -v '^ *+' conftest.er1 >conftest.err
3478 + rm -f conftest.er1
3479 + cat conftest.err >&5
3480 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481 + (exit $ac_status); } >/dev/null && {
3482 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3483 + test ! -s conftest.err
3484 + }; then
3485 + # Broken: success on invalid input.
3486 +continue
3487 +else
3488 + echo "$as_me: failed program was:" >&5
3489 +sed 's/^/| /' conftest.$ac_ext >&5
3491 + # Passes both tests.
3492 +ac_preproc_ok=:
3493 +break
3496 +rm -f conftest.err conftest.$ac_ext
3498 +done
3499 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3500 +rm -f conftest.err conftest.$ac_ext
3501 +if $ac_preproc_ok; then
3503 +else
3504 + { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3505 +See \`config.log' for more details." >&5
3506 +echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3507 +See \`config.log' for more details." >&2;}
3508 + { (exit 1); exit 1; }; }
3511 +ac_ext=c
3512 +ac_cpp='$CPP $CPPFLAGS'
3513 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3514 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3515 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
3518 +{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3519 +echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3520 +if test "${ac_cv_path_GREP+set}" = set; then
3521 + echo $ECHO_N "(cached) $ECHO_C" >&6
3522 +else
3523 + # Extract the first word of "grep ggrep" to use in msg output
3524 +if test -z "$GREP"; then
3525 +set dummy grep ggrep; ac_prog_name=$2
3526 +if test "${ac_cv_path_GREP+set}" = set; then
3527 + echo $ECHO_N "(cached) $ECHO_C" >&6
3528 +else
3529 + ac_path_GREP_found=false
3530 +# Loop through the user's path and test for each of PROGNAME-LIST
3531 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3532 +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3534 + IFS=$as_save_IFS
3535 + test -z "$as_dir" && as_dir=.
3536 + for ac_prog in grep ggrep; do
3537 + for ac_exec_ext in '' $ac_executable_extensions; do
3538 + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3539 + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3540 + # Check for GNU ac_path_GREP and select it if it is found.
3541 + # Check for GNU $ac_path_GREP
3542 +case `"$ac_path_GREP" --version 2>&1` in
3543 +*GNU*)
3544 + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3546 + ac_count=0
3547 + echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3548 + while :
3549 + do
3550 + cat "conftest.in" "conftest.in" >"conftest.tmp"
3551 + mv "conftest.tmp" "conftest.in"
3552 + cp "conftest.in" "conftest.nl"
3553 + echo 'GREP' >> "conftest.nl"
3554 + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3555 + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3556 + ac_count=`expr $ac_count + 1`
3557 + if test $ac_count -gt ${ac_path_GREP_max-0}; then
3558 + # Best one so far, save it but keep looking for a better one
3559 + ac_cv_path_GREP="$ac_path_GREP"
3560 + ac_path_GREP_max=$ac_count
3561 + fi
3562 + # 10*(2^10) chars as input seems more than enough
3563 + test $ac_count -gt 10 && break
3564 + done
3565 + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3566 +esac
3569 + $ac_path_GREP_found && break 3
3570 + done
3571 +done
3573 +done
3574 +IFS=$as_save_IFS
3579 +GREP="$ac_cv_path_GREP"
3580 +if test -z "$GREP"; then
3581 + { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3582 +echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3583 + { (exit 1); exit 1; }; }
3586 +else
3587 + ac_cv_path_GREP=$GREP
3592 +{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3593 +echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3594 + GREP="$ac_cv_path_GREP"
3597 +{ echo "$as_me:$LINENO: checking for egrep" >&5
3598 +echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3599 +if test "${ac_cv_path_EGREP+set}" = set; then
3600 + echo $ECHO_N "(cached) $ECHO_C" >&6
3601 +else
3602 + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3603 + then ac_cv_path_EGREP="$GREP -E"
3604 + else
3605 + # Extract the first word of "egrep" to use in msg output
3606 +if test -z "$EGREP"; then
3607 +set dummy egrep; ac_prog_name=$2
3608 +if test "${ac_cv_path_EGREP+set}" = set; then
3609 + echo $ECHO_N "(cached) $ECHO_C" >&6
3610 +else
3611 + ac_path_EGREP_found=false
3612 +# Loop through the user's path and test for each of PROGNAME-LIST
3613 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3614 +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3616 + IFS=$as_save_IFS
3617 + test -z "$as_dir" && as_dir=.
3618 + for ac_prog in egrep; do
3619 + for ac_exec_ext in '' $ac_executable_extensions; do
3620 + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3621 + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3622 + # Check for GNU ac_path_EGREP and select it if it is found.
3623 + # Check for GNU $ac_path_EGREP
3624 +case `"$ac_path_EGREP" --version 2>&1` in
3625 +*GNU*)
3626 + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3628 + ac_count=0
3629 + echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3630 + while :
3631 + do
3632 + cat "conftest.in" "conftest.in" >"conftest.tmp"
3633 + mv "conftest.tmp" "conftest.in"
3634 + cp "conftest.in" "conftest.nl"
3635 + echo 'EGREP' >> "conftest.nl"
3636 + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3637 + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3638 + ac_count=`expr $ac_count + 1`
3639 + if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3640 + # Best one so far, save it but keep looking for a better one
3641 + ac_cv_path_EGREP="$ac_path_EGREP"
3642 + ac_path_EGREP_max=$ac_count
3643 + fi
3644 + # 10*(2^10) chars as input seems more than enough
3645 + test $ac_count -gt 10 && break
3646 + done
3647 + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3648 +esac
3651 + $ac_path_EGREP_found && break 3
3652 + done
3653 +done
3655 +done
3656 +IFS=$as_save_IFS
3661 +EGREP="$ac_cv_path_EGREP"
3662 +if test -z "$EGREP"; then
3663 + { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3664 +echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3665 + { (exit 1); exit 1; }; }
3668 +else
3669 + ac_cv_path_EGREP=$EGREP
3673 + fi
3675 +{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3676 +echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3677 + EGREP="$ac_cv_path_EGREP"
3680 +{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3681 +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3682 +if test "${ac_cv_header_stdc+set}" = set; then
3683 + echo $ECHO_N "(cached) $ECHO_C" >&6
3684 +else
3685 + cat >conftest.$ac_ext <<_ACEOF
3686 +/* confdefs.h. */
3687 +_ACEOF
3688 +cat confdefs.h >>conftest.$ac_ext
3689 +cat >>conftest.$ac_ext <<_ACEOF
3690 +/* end confdefs.h. */
3691 +#include <stdlib.h>
3692 +#include <stdarg.h>
3693 +#include <string.h>
3694 +#include <float.h>
3696 +int
3697 +main ()
3701 + return 0;
3703 +_ACEOF
3704 +rm -f conftest.$ac_objext
3705 +if { (ac_try="$ac_compile"
3706 +case "(($ac_try" in
3707 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3708 + *) ac_try_echo=$ac_try;;
3709 +esac
3710 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3711 + (eval "$ac_compile") 2>conftest.er1
3712 + ac_status=$?
3713 + grep -v '^ *+' conftest.er1 >conftest.err
3714 + rm -f conftest.er1
3715 + cat conftest.err >&5
3716 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 + (exit $ac_status); } && {
3718 + test -z "$ac_c_werror_flag" ||
3719 + test ! -s conftest.err
3720 + } && test -s conftest.$ac_objext; then
3721 + ac_cv_header_stdc=yes
3722 +else
3723 + echo "$as_me: failed program was:" >&5
3724 +sed 's/^/| /' conftest.$ac_ext >&5
3726 + ac_cv_header_stdc=no
3729 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3731 +if test $ac_cv_header_stdc = yes; then
3732 + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3733 + cat >conftest.$ac_ext <<_ACEOF
3734 +/* confdefs.h. */
3735 +_ACEOF
3736 +cat confdefs.h >>conftest.$ac_ext
3737 +cat >>conftest.$ac_ext <<_ACEOF
3738 +/* end confdefs.h. */
3739 +#include <string.h>
3741 +_ACEOF
3742 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3743 + $EGREP "memchr" >/dev/null 2>&1; then
3745 +else
3746 + ac_cv_header_stdc=no
3748 +rm -f conftest*
3752 +if test $ac_cv_header_stdc = yes; then
3753 + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3754 + cat >conftest.$ac_ext <<_ACEOF
3755 +/* confdefs.h. */
3756 +_ACEOF
3757 +cat confdefs.h >>conftest.$ac_ext
3758 +cat >>conftest.$ac_ext <<_ACEOF
3759 +/* end confdefs.h. */
3760 +#include <stdlib.h>
3762 +_ACEOF
3763 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3764 + $EGREP "free" >/dev/null 2>&1; then
3766 +else
3767 + ac_cv_header_stdc=no
3769 +rm -f conftest*
3773 +if test $ac_cv_header_stdc = yes; then
3774 + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3775 + if test "$cross_compiling" = yes; then
3777 +else
3778 + cat >conftest.$ac_ext <<_ACEOF
3779 +/* confdefs.h. */
3780 +_ACEOF
3781 +cat confdefs.h >>conftest.$ac_ext
3782 +cat >>conftest.$ac_ext <<_ACEOF
3783 +/* end confdefs.h. */
3784 +#include <ctype.h>
3785 +#include <stdlib.h>
3786 +#if ((' ' & 0x0FF) == 0x020)
3787 +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3788 +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3789 +#else
3790 +# define ISLOWER(c) \
3791 + (('a' <= (c) && (c) <= 'i') \
3792 + || ('j' <= (c) && (c) <= 'r') \
3793 + || ('s' <= (c) && (c) <= 'z'))
3794 +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3795 +#endif
3797 +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3798 +int
3799 +main ()
3801 + int i;
3802 + for (i = 0; i < 256; i++)
3803 + if (XOR (islower (i), ISLOWER (i))
3804 + || toupper (i) != TOUPPER (i))
3805 + return 2;
3806 + return 0;
3808 +_ACEOF
3809 +rm -f conftest$ac_exeext
3810 +if { (ac_try="$ac_link"
3811 +case "(($ac_try" in
3812 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3813 + *) ac_try_echo=$ac_try;;
3814 +esac
3815 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3816 + (eval "$ac_link") 2>&5
3817 + ac_status=$?
3818 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3820 + { (case "(($ac_try" in
3821 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3822 + *) ac_try_echo=$ac_try;;
3823 +esac
3824 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3825 + (eval "$ac_try") 2>&5
3826 + ac_status=$?
3827 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828 + (exit $ac_status); }; }; then
3830 +else
3831 + echo "$as_me: program exited with status $ac_status" >&5
3832 +echo "$as_me: failed program was:" >&5
3833 +sed 's/^/| /' conftest.$ac_ext >&5
3835 +( exit $ac_status )
3836 +ac_cv_header_stdc=no
3838 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3844 +{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3845 +echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3846 +if test $ac_cv_header_stdc = yes; then
3848 +cat >>confdefs.h <<\_ACEOF
3849 +#define STDC_HEADERS 1
3850 +_ACEOF
3854 +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3864 +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3865 + inttypes.h stdint.h unistd.h
3867 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3868 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3869 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3870 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3871 + echo $ECHO_N "(cached) $ECHO_C" >&6
3872 +else
3873 + cat >conftest.$ac_ext <<_ACEOF
3874 +/* confdefs.h. */
3875 +_ACEOF
3876 +cat confdefs.h >>conftest.$ac_ext
3877 +cat >>conftest.$ac_ext <<_ACEOF
3878 +/* end confdefs.h. */
3879 +$ac_includes_default
3881 +#include <$ac_header>
3882 +_ACEOF
3883 +rm -f conftest.$ac_objext
3884 +if { (ac_try="$ac_compile"
3885 +case "(($ac_try" in
3886 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3887 + *) ac_try_echo=$ac_try;;
3888 +esac
3889 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3890 + (eval "$ac_compile") 2>conftest.er1
3891 + ac_status=$?
3892 + grep -v '^ *+' conftest.er1 >conftest.err
3893 + rm -f conftest.er1
3894 + cat conftest.err >&5
3895 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896 + (exit $ac_status); } && {
3897 + test -z "$ac_c_werror_flag" ||
3898 + test ! -s conftest.err
3899 + } && test -s conftest.$ac_objext; then
3900 + eval "$as_ac_Header=yes"
3901 +else
3902 + echo "$as_me: failed program was:" >&5
3903 +sed 's/^/| /' conftest.$ac_ext >&5
3905 + eval "$as_ac_Header=no"
3908 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3910 +ac_res=`eval echo '${'$as_ac_Header'}'`
3911 + { echo "$as_me:$LINENO: result: $ac_res" >&5
3912 +echo "${ECHO_T}$ac_res" >&6; }
3913 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
3914 + cat >>confdefs.h <<_ACEOF
3915 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3916 +_ACEOF
3920 +done
3929 +for ac_header in syslog.h linux/input.h linux/joystick.h ncurses.h ncurses/curses.h curses.h
3931 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3932 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3933 + { echo "$as_me:$LINENO: checking for $ac_header" >&5
3934 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3935 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3936 + echo $ECHO_N "(cached) $ECHO_C" >&6
3938 +ac_res=`eval echo '${'$as_ac_Header'}'`
3939 + { echo "$as_me:$LINENO: result: $ac_res" >&5
3940 +echo "${ECHO_T}$ac_res" >&6; }
3941 +else
3942 + # Is the header compilable?
3943 +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
3944 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
3945 +cat >conftest.$ac_ext <<_ACEOF
3946 +/* confdefs.h. */
3947 +_ACEOF
3948 +cat confdefs.h >>conftest.$ac_ext
3949 +cat >>conftest.$ac_ext <<_ACEOF
3950 +/* end confdefs.h. */
3951 +$ac_includes_default
3952 +#include <$ac_header>
3953 +_ACEOF
3954 +rm -f conftest.$ac_objext
3955 +if { (ac_try="$ac_compile"
3956 +case "(($ac_try" in
3957 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3958 + *) ac_try_echo=$ac_try;;
3959 +esac
3960 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3961 + (eval "$ac_compile") 2>conftest.er1
3962 + ac_status=$?
3963 + grep -v '^ *+' conftest.er1 >conftest.err
3964 + rm -f conftest.er1
3965 + cat conftest.err >&5
3966 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967 + (exit $ac_status); } && {
3968 + test -z "$ac_c_werror_flag" ||
3969 + test ! -s conftest.err
3970 + } && test -s conftest.$ac_objext; then
3971 + ac_header_compiler=yes
3972 +else
3973 + echo "$as_me: failed program was:" >&5
3974 +sed 's/^/| /' conftest.$ac_ext >&5
3976 + ac_header_compiler=no
3979 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3980 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3981 +echo "${ECHO_T}$ac_header_compiler" >&6; }
3983 +# Is the header present?
3984 +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
3985 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
3986 +cat >conftest.$ac_ext <<_ACEOF
3987 +/* confdefs.h. */
3988 +_ACEOF
3989 +cat confdefs.h >>conftest.$ac_ext
3990 +cat >>conftest.$ac_ext <<_ACEOF
3991 +/* end confdefs.h. */
3992 +#include <$ac_header>
3993 +_ACEOF
3994 +if { (ac_try="$ac_cpp conftest.$ac_ext"
3995 +case "(($ac_try" in
3996 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3997 + *) ac_try_echo=$ac_try;;
3998 +esac
3999 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4000 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4001 + ac_status=$?
4002 + grep -v '^ *+' conftest.er1 >conftest.err
4003 + rm -f conftest.er1
4004 + cat conftest.err >&5
4005 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 + (exit $ac_status); } >/dev/null && {
4007 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4008 + test ! -s conftest.err
4009 + }; then
4010 + ac_header_preproc=yes
4011 +else
4012 + echo "$as_me: failed program was:" >&5
4013 +sed 's/^/| /' conftest.$ac_ext >&5
4015 + ac_header_preproc=no
4018 +rm -f conftest.err conftest.$ac_ext
4019 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4020 +echo "${ECHO_T}$ac_header_preproc" >&6; }
4022 +# So? What about this header?
4023 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4024 + yes:no: )
4025 + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4026 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4027 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4028 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4029 + ac_header_preproc=yes
4030 + ;;
4031 + no:yes:* )
4032 + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4033 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4034 + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4035 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4036 + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4037 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4038 + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4039 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4040 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4041 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4042 + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4043 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4045 + ;;
4046 +esac
4047 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4048 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4049 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4050 + echo $ECHO_N "(cached) $ECHO_C" >&6
4051 +else
4052 + eval "$as_ac_Header=\$ac_header_preproc"
4054 +ac_res=`eval echo '${'$as_ac_Header'}'`
4055 + { echo "$as_me:$LINENO: result: $ac_res" >&5
4056 +echo "${ECHO_T}$ac_res" >&6; }
4059 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
4060 + cat >>confdefs.h <<_ACEOF
4061 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4062 +_ACEOF
4066 +done
4070 +# Check whether --with-curses was given.
4071 +if test "${with_curses+set}" = set; then
4072 + withval=$with_curses;
4076 +CURSES_OBJS=
4078 +case $with_curses in
4079 +No|no|N|n) : ;;
4080 + *) if test ${ac_cv_header_ncurses_h} = yes ||
4081 + test ${ac_cv_header_ncurses_curses_h} = yes ||
4082 + test ${ac_cv_header_curses_h} = yes ; then
4083 + CURSES_OBJS=lib/libcurses.o ; fi ;;
4084 +esac
4089 +for ac_header in sys/sysmacros.h linux/major.h linux/tty.h
4091 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4092 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4093 + { echo "$as_me:$LINENO: checking for $ac_header" >&5
4094 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4095 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4096 + echo $ECHO_N "(cached) $ECHO_C" >&6
4098 +ac_res=`eval echo '${'$as_ac_Header'}'`
4099 + { echo "$as_me:$LINENO: result: $ac_res" >&5
4100 +echo "${ECHO_T}$ac_res" >&6; }
4101 +else
4102 + # Is the header compilable?
4103 +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4104 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4105 +cat >conftest.$ac_ext <<_ACEOF
4106 +/* confdefs.h. */
4107 +_ACEOF
4108 +cat confdefs.h >>conftest.$ac_ext
4109 +cat >>conftest.$ac_ext <<_ACEOF
4110 +/* end confdefs.h. */
4111 +$ac_includes_default
4112 +#include <$ac_header>
4113 +_ACEOF
4114 +rm -f conftest.$ac_objext
4115 +if { (ac_try="$ac_compile"
4116 +case "(($ac_try" in
4117 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4118 + *) ac_try_echo=$ac_try;;
4119 +esac
4120 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4121 + (eval "$ac_compile") 2>conftest.er1
4122 + ac_status=$?
4123 + grep -v '^ *+' conftest.er1 >conftest.err
4124 + rm -f conftest.er1
4125 + cat conftest.err >&5
4126 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 + (exit $ac_status); } && {
4128 + test -z "$ac_c_werror_flag" ||
4129 + test ! -s conftest.err
4130 + } && test -s conftest.$ac_objext; then
4131 + ac_header_compiler=yes
4132 +else
4133 + echo "$as_me: failed program was:" >&5
4134 +sed 's/^/| /' conftest.$ac_ext >&5
4136 + ac_header_compiler=no
4139 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4140 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4141 +echo "${ECHO_T}$ac_header_compiler" >&6; }
4143 +# Is the header present?
4144 +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4145 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4146 +cat >conftest.$ac_ext <<_ACEOF
4147 +/* confdefs.h. */
4148 +_ACEOF
4149 +cat confdefs.h >>conftest.$ac_ext
4150 +cat >>conftest.$ac_ext <<_ACEOF
4151 +/* end confdefs.h. */
4152 +#include <$ac_header>
4153 +_ACEOF
4154 +if { (ac_try="$ac_cpp conftest.$ac_ext"
4155 +case "(($ac_try" in
4156 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157 + *) ac_try_echo=$ac_try;;
4158 +esac
4159 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4160 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4161 + ac_status=$?
4162 + grep -v '^ *+' conftest.er1 >conftest.err
4163 + rm -f conftest.er1
4164 + cat conftest.err >&5
4165 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 + (exit $ac_status); } >/dev/null && {
4167 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4168 + test ! -s conftest.err
4169 + }; then
4170 + ac_header_preproc=yes
4171 +else
4172 + echo "$as_me: failed program was:" >&5
4173 +sed 's/^/| /' conftest.$ac_ext >&5
4175 + ac_header_preproc=no
4178 +rm -f conftest.err conftest.$ac_ext
4179 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4180 +echo "${ECHO_T}$ac_header_preproc" >&6; }
4182 +# So? What about this header?
4183 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4184 + yes:no: )
4185 + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4186 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4187 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4188 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4189 + ac_header_preproc=yes
4190 + ;;
4191 + no:yes:* )
4192 + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4193 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4194 + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4195 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4196 + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4197 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4198 + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4199 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4200 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4201 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4202 + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4203 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4205 + ;;
4206 +esac
4207 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4208 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4209 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4210 + echo $ECHO_N "(cached) $ECHO_C" >&6
4211 +else
4212 + eval "$as_ac_Header=\$ac_header_preproc"
4214 +ac_res=`eval echo '${'$as_ac_Header'}'`
4215 + { echo "$as_me:$LINENO: result: $ac_res" >&5
4216 +echo "${ECHO_T}$ac_res" >&6; }
4219 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
4220 + cat >>confdefs.h <<_ACEOF
4221 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4222 +_ACEOF
4226 +done
4229 +{ echo "$as_me:$LINENO: checking for __u32" >&5
4230 +echo $ECHO_N "checking for __u32... $ECHO_C" >&6; }
4231 +if test "${itz_cv_type___u32+set}" = set; then
4232 + echo $ECHO_N "(cached) $ECHO_C" >&6
4233 +else
4234 + cat >conftest.$ac_ext <<_ACEOF
4235 +/* confdefs.h. */
4236 +_ACEOF
4237 +cat confdefs.h >>conftest.$ac_ext
4238 +cat >>conftest.$ac_ext <<_ACEOF
4239 +/* end confdefs.h. */
4241 +#include <linux/types.h>
4243 +int
4244 +main ()
4247 +__u32 dummy;
4248 +return 0;
4251 + return 0;
4253 +_ACEOF
4254 +rm -f conftest.$ac_objext
4255 +if { (ac_try="$ac_compile"
4256 +case "(($ac_try" in
4257 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4258 + *) ac_try_echo=$ac_try;;
4259 +esac
4260 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4261 + (eval "$ac_compile") 2>conftest.er1
4262 + ac_status=$?
4263 + grep -v '^ *+' conftest.er1 >conftest.err
4264 + rm -f conftest.er1
4265 + cat conftest.err >&5
4266 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 + (exit $ac_status); } && {
4268 + test -z "$ac_c_werror_flag" ||
4269 + test ! -s conftest.err
4270 + } && test -s conftest.$ac_objext; then
4271 + itz_cv_type___u32=yes
4272 +else
4273 + echo "$as_me: failed program was:" >&5
4274 +sed 's/^/| /' conftest.$ac_ext >&5
4276 + itz_cv_type___u32=no
4279 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4281 +{ echo "$as_me:$LINENO: result: $itz_cv_type___u32" >&5
4282 +echo "${ECHO_T}$itz_cv_type___u32" >&6; }
4284 +if test ${itz_cv_type___u32} = yes || test ${ac_cv_type___u32} = yes ; then
4285 + cat >>confdefs.h <<\_ACEOF
4286 +#define HAVE___U32 1
4287 +_ACEOF
4291 +{ echo "$as_me:$LINENO: checking whether system is ELF" >&5
4292 +echo $ECHO_N "checking whether system is ELF... $ECHO_C" >&6; }
4293 +if test "${itz_cv_sys_elf+set}" = set; then
4294 + echo $ECHO_N "(cached) $ECHO_C" >&6
4295 +else
4296 + cat >conftest.$ac_ext <<_ACEOF
4297 +/* confdefs.h. */
4298 +_ACEOF
4299 +cat confdefs.h >>conftest.$ac_ext
4300 +cat >>conftest.$ac_ext <<_ACEOF
4301 +/* end confdefs.h. */
4302 +#ifdef __ELF__
4303 +win
4304 +#else
4305 +lose
4306 +#endif
4308 +_ACEOF
4309 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4310 + $EGREP "win" >/dev/null 2>&1; then
4311 + itz_cv_sys_elf=yes
4312 +else
4313 + itz_cv_sys_elf=no
4315 +rm -f conftest*
4318 +{ echo "$as_me:$LINENO: result: $itz_cv_sys_elf" >&5
4319 +echo "${ECHO_T}$itz_cv_sys_elf" >&6; }
4320 +if test ${itz_cv_sys_elf} = yes && test x${ac_cv_c_compiler_gnu} = xyes ; then
4321 + PICFLAGS="-DPIC -fPIC"
4322 + SOLDFLAGS="-fPIC -shared -Wl,-soname,"
4323 +else
4324 + PICFLAGS=
4325 + SOLDFLAGS=
4328 +if test ${itz_cv_sys_elf} = yes && test x${ac_cv_c_compiler_gnu} = xyes ; then
4329 + SHLIB=libgpm.so
4330 +else
4331 + SHLIB=
4336 +for ac_func in vsyslog syslog
4338 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4339 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
4340 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4341 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4342 + echo $ECHO_N "(cached) $ECHO_C" >&6
4343 +else
4344 + cat >conftest.$ac_ext <<_ACEOF
4345 +/* confdefs.h. */
4346 +_ACEOF
4347 +cat confdefs.h >>conftest.$ac_ext
4348 +cat >>conftest.$ac_ext <<_ACEOF
4349 +/* end confdefs.h. */
4350 +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4351 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
4352 +#define $ac_func innocuous_$ac_func
4354 +/* System header to define __stub macros and hopefully few prototypes,
4355 + which can conflict with char $ac_func (); below.
4356 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4357 + <limits.h> exists even on freestanding compilers. */
4359 +#ifdef __STDC__
4360 +# include <limits.h>
4361 +#else
4362 +# include <assert.h>
4363 +#endif
4365 +#undef $ac_func
4367 +/* Override any GCC internal prototype to avoid an error.
4368 + Use char because int might match the return type of a GCC
4369 + builtin and then its argument prototype would still apply. */
4370 +#ifdef __cplusplus
4371 +extern "C"
4372 +#endif
4373 +char $ac_func ();
4374 +/* The GNU C library defines this for functions which it implements
4375 + to always fail with ENOSYS. Some functions are actually named
4376 + something starting with __ and the normal name is an alias. */
4377 +#if defined __stub_$ac_func || defined __stub___$ac_func
4378 +choke me
4379 +#endif
4381 +int
4382 +main ()
4384 +return $ac_func ();
4386 + return 0;
4388 +_ACEOF
4389 +rm -f conftest.$ac_objext conftest$ac_exeext
4390 +if { (ac_try="$ac_link"
4391 +case "(($ac_try" in
4392 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4393 + *) ac_try_echo=$ac_try;;
4394 +esac
4395 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4396 + (eval "$ac_link") 2>conftest.er1
4397 + ac_status=$?
4398 + grep -v '^ *+' conftest.er1 >conftest.err
4399 + rm -f conftest.er1
4400 + cat conftest.err >&5
4401 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402 + (exit $ac_status); } && {
4403 + test -z "$ac_c_werror_flag" ||
4404 + test ! -s conftest.err
4405 + } && test -s conftest$ac_exeext &&
4406 + $as_test_x conftest$ac_exeext; then
4407 + eval "$as_ac_var=yes"
4408 +else
4409 + echo "$as_me: failed program was:" >&5
4410 +sed 's/^/| /' conftest.$ac_ext >&5
4412 + eval "$as_ac_var=no"
4415 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4416 + conftest$ac_exeext conftest.$ac_ext
4418 +ac_res=`eval echo '${'$as_ac_var'}'`
4419 + { echo "$as_me:$LINENO: result: $ac_res" >&5
4420 +echo "${ECHO_T}$ac_res" >&6; }
4421 +if test `eval echo '${'$as_ac_var'}'` = yes; then
4422 + cat >>confdefs.h <<_ACEOF
4423 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4424 +_ACEOF
4427 +done
4429 +# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4430 +# for constant arguments. Useless!
4431 +{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
4432 +echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
4433 +if test "${ac_cv_working_alloca_h+set}" = set; then
4434 + echo $ECHO_N "(cached) $ECHO_C" >&6
4435 +else
4436 + cat >conftest.$ac_ext <<_ACEOF
4437 +/* confdefs.h. */
4438 +_ACEOF
4439 +cat confdefs.h >>conftest.$ac_ext
4440 +cat >>conftest.$ac_ext <<_ACEOF
4441 +/* end confdefs.h. */
4442 +#include <alloca.h>
4443 +int
4444 +main ()
4446 +char *p = (char *) alloca (2 * sizeof (int));
4447 + if (p) return 0;
4449 + return 0;
4451 +_ACEOF
4452 +rm -f conftest.$ac_objext conftest$ac_exeext
4453 +if { (ac_try="$ac_link"
4454 +case "(($ac_try" in
4455 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4456 + *) ac_try_echo=$ac_try;;
4457 +esac
4458 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4459 + (eval "$ac_link") 2>conftest.er1
4460 + ac_status=$?
4461 + grep -v '^ *+' conftest.er1 >conftest.err
4462 + rm -f conftest.er1
4463 + cat conftest.err >&5
4464 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 + (exit $ac_status); } && {
4466 + test -z "$ac_c_werror_flag" ||
4467 + test ! -s conftest.err
4468 + } && test -s conftest$ac_exeext &&
4469 + $as_test_x conftest$ac_exeext; then
4470 + ac_cv_working_alloca_h=yes
4471 +else
4472 + echo "$as_me: failed program was:" >&5
4473 +sed 's/^/| /' conftest.$ac_ext >&5
4475 + ac_cv_working_alloca_h=no
4478 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4479 + conftest$ac_exeext conftest.$ac_ext
4481 +{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
4482 +echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
4483 +if test $ac_cv_working_alloca_h = yes; then
4485 +cat >>confdefs.h <<\_ACEOF
4486 +#define HAVE_ALLOCA_H 1
4487 +_ACEOF
4491 +{ echo "$as_me:$LINENO: checking for alloca" >&5
4492 +echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
4493 +if test "${ac_cv_func_alloca_works+set}" = set; then
4494 + echo $ECHO_N "(cached) $ECHO_C" >&6
4495 +else
4496 + cat >conftest.$ac_ext <<_ACEOF
4497 +/* confdefs.h. */
4498 +_ACEOF
4499 +cat confdefs.h >>conftest.$ac_ext
4500 +cat >>conftest.$ac_ext <<_ACEOF
4501 +/* end confdefs.h. */
4502 +#ifdef __GNUC__
4503 +# define alloca __builtin_alloca
4504 +#else
4505 +# ifdef _MSC_VER
4506 +# include <malloc.h>
4507 +# define alloca _alloca
4508 +# else
4509 +# ifdef HAVE_ALLOCA_H
4510 +# include <alloca.h>
4511 +# else
4512 +# ifdef _AIX
4513 + #pragma alloca
4514 +# else
4515 +# ifndef alloca /* predefined by HP cc +Olibcalls */
4516 +char *alloca ();
4517 +# endif
4518 +# endif
4519 +# endif
4520 +# endif
4521 +#endif
4523 +int
4524 +main ()
4526 +char *p = (char *) alloca (1);
4527 + if (p) return 0;
4529 + return 0;
4531 +_ACEOF
4532 +rm -f conftest.$ac_objext conftest$ac_exeext
4533 +if { (ac_try="$ac_link"
4534 +case "(($ac_try" in
4535 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4536 + *) ac_try_echo=$ac_try;;
4537 +esac
4538 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4539 + (eval "$ac_link") 2>conftest.er1
4540 + ac_status=$?
4541 + grep -v '^ *+' conftest.er1 >conftest.err
4542 + rm -f conftest.er1
4543 + cat conftest.err >&5
4544 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 + (exit $ac_status); } && {
4546 + test -z "$ac_c_werror_flag" ||
4547 + test ! -s conftest.err
4548 + } && test -s conftest$ac_exeext &&
4549 + $as_test_x conftest$ac_exeext; then
4550 + ac_cv_func_alloca_works=yes
4551 +else
4552 + echo "$as_me: failed program was:" >&5
4553 +sed 's/^/| /' conftest.$ac_ext >&5
4555 + ac_cv_func_alloca_works=no
4558 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4559 + conftest$ac_exeext conftest.$ac_ext
4561 +{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
4562 +echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
4564 +if test $ac_cv_func_alloca_works = yes; then
4566 +cat >>confdefs.h <<\_ACEOF
4567 +#define HAVE_ALLOCA 1
4568 +_ACEOF
4570 +else
4571 + # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4572 +# that cause trouble. Some versions do not even contain alloca or
4573 +# contain a buggy version. If you still want to use their alloca,
4574 +# use ar to extract alloca.o from them instead of compiling alloca.c.
4576 +ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
4578 +cat >>confdefs.h <<\_ACEOF
4579 +#define C_ALLOCA 1
4580 +_ACEOF
4583 +{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
4584 +echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
4585 +if test "${ac_cv_os_cray+set}" = set; then
4586 + echo $ECHO_N "(cached) $ECHO_C" >&6
4587 +else
4588 + cat >conftest.$ac_ext <<_ACEOF
4589 +/* confdefs.h. */
4590 +_ACEOF
4591 +cat confdefs.h >>conftest.$ac_ext
4592 +cat >>conftest.$ac_ext <<_ACEOF
4593 +/* end confdefs.h. */
4594 +#if defined CRAY && ! defined CRAY2
4595 +webecray
4596 +#else
4597 +wenotbecray
4598 +#endif
4600 +_ACEOF
4601 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4602 + $EGREP "webecray" >/dev/null 2>&1; then
4603 + ac_cv_os_cray=yes
4604 +else
4605 + ac_cv_os_cray=no
4607 +rm -f conftest*
4610 +{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
4611 +echo "${ECHO_T}$ac_cv_os_cray" >&6; }
4612 +if test $ac_cv_os_cray = yes; then
4613 + for ac_func in _getb67 GETB67 getb67; do
4614 + as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4615 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
4616 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4617 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4618 + echo $ECHO_N "(cached) $ECHO_C" >&6
4619 +else
4620 + cat >conftest.$ac_ext <<_ACEOF
4621 +/* confdefs.h. */
4622 +_ACEOF
4623 +cat confdefs.h >>conftest.$ac_ext
4624 +cat >>conftest.$ac_ext <<_ACEOF
4625 +/* end confdefs.h. */
4626 +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4627 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
4628 +#define $ac_func innocuous_$ac_func
4630 +/* System header to define __stub macros and hopefully few prototypes,
4631 + which can conflict with char $ac_func (); below.
4632 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4633 + <limits.h> exists even on freestanding compilers. */
4635 +#ifdef __STDC__
4636 +# include <limits.h>
4637 +#else
4638 +# include <assert.h>
4639 +#endif
4641 +#undef $ac_func
4643 +/* Override any GCC internal prototype to avoid an error.
4644 + Use char because int might match the return type of a GCC
4645 + builtin and then its argument prototype would still apply. */
4646 +#ifdef __cplusplus
4647 +extern "C"
4648 +#endif
4649 +char $ac_func ();
4650 +/* The GNU C library defines this for functions which it implements
4651 + to always fail with ENOSYS. Some functions are actually named
4652 + something starting with __ and the normal name is an alias. */
4653 +#if defined __stub_$ac_func || defined __stub___$ac_func
4654 +choke me
4655 +#endif
4657 +int
4658 +main ()
4660 +return $ac_func ();
4662 + return 0;
4664 +_ACEOF
4665 +rm -f conftest.$ac_objext conftest$ac_exeext
4666 +if { (ac_try="$ac_link"
4667 +case "(($ac_try" in
4668 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4669 + *) ac_try_echo=$ac_try;;
4670 +esac
4671 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4672 + (eval "$ac_link") 2>conftest.er1
4673 + ac_status=$?
4674 + grep -v '^ *+' conftest.er1 >conftest.err
4675 + rm -f conftest.er1
4676 + cat conftest.err >&5
4677 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678 + (exit $ac_status); } && {
4679 + test -z "$ac_c_werror_flag" ||
4680 + test ! -s conftest.err
4681 + } && test -s conftest$ac_exeext &&
4682 + $as_test_x conftest$ac_exeext; then
4683 + eval "$as_ac_var=yes"
4684 +else
4685 + echo "$as_me: failed program was:" >&5
4686 +sed 's/^/| /' conftest.$ac_ext >&5
4688 + eval "$as_ac_var=no"
4691 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4692 + conftest$ac_exeext conftest.$ac_ext
4694 +ac_res=`eval echo '${'$as_ac_var'}'`
4695 + { echo "$as_me:$LINENO: result: $ac_res" >&5
4696 +echo "${ECHO_T}$ac_res" >&6; }
4697 +if test `eval echo '${'$as_ac_var'}'` = yes; then
4699 +cat >>confdefs.h <<_ACEOF
4700 +#define CRAY_STACKSEG_END $ac_func
4701 +_ACEOF
4703 + break
4706 + done
4709 +{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
4710 +echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
4711 +if test "${ac_cv_c_stack_direction+set}" = set; then
4712 + echo $ECHO_N "(cached) $ECHO_C" >&6
4713 +else
4714 + if test "$cross_compiling" = yes; then
4715 + ac_cv_c_stack_direction=0
4716 +else
4717 + cat >conftest.$ac_ext <<_ACEOF
4718 +/* confdefs.h. */
4719 +_ACEOF
4720 +cat confdefs.h >>conftest.$ac_ext
4721 +cat >>conftest.$ac_ext <<_ACEOF
4722 +/* end confdefs.h. */
4723 +$ac_includes_default
4724 +int
4725 +find_stack_direction ()
4727 + static char *addr = 0;
4728 + auto char dummy;
4729 + if (addr == 0)
4731 + addr = &dummy;
4732 + return find_stack_direction ();
4734 + else
4735 + return (&dummy > addr) ? 1 : -1;
4738 +int
4739 +main ()
4741 + return find_stack_direction () < 0;
4743 +_ACEOF
4744 +rm -f conftest$ac_exeext
4745 +if { (ac_try="$ac_link"
4746 +case "(($ac_try" in
4747 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4748 + *) ac_try_echo=$ac_try;;
4749 +esac
4750 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4751 + (eval "$ac_link") 2>&5
4752 + ac_status=$?
4753 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4755 + { (case "(($ac_try" in
4756 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4757 + *) ac_try_echo=$ac_try;;
4758 +esac
4759 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4760 + (eval "$ac_try") 2>&5
4761 + ac_status=$?
4762 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 + (exit $ac_status); }; }; then
4764 + ac_cv_c_stack_direction=1
4765 +else
4766 + echo "$as_me: program exited with status $ac_status" >&5
4767 +echo "$as_me: failed program was:" >&5
4768 +sed 's/^/| /' conftest.$ac_ext >&5
4770 +( exit $ac_status )
4771 +ac_cv_c_stack_direction=-1
4773 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4778 +{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4779 +echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
4781 +cat >>confdefs.h <<_ACEOF
4782 +#define STACK_DIRECTION $ac_cv_c_stack_direction
4783 +_ACEOF
4789 +case $with_curses in
4790 +No|no|N|n) SHARED_LIBS=-lc ;;
4792 + SAVELIBS=$LIBS
4793 + LIBS=
4794 + for i in tinfo ncurses termcap termlib; do
4795 + if test x$LIBS = x; then
4797 +as_ac_Lib=`echo "ac_cv_lib_$i''_tputs" | $as_tr_sh`
4798 +{ echo "$as_me:$LINENO: checking for tputs in -l$i" >&5
4799 +echo $ECHO_N "checking for tputs in -l$i... $ECHO_C" >&6; }
4800 +if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
4801 + echo $ECHO_N "(cached) $ECHO_C" >&6
4802 +else
4803 + ac_check_lib_save_LIBS=$LIBS
4804 +LIBS="-l$i $LIBS"
4805 +cat >conftest.$ac_ext <<_ACEOF
4806 +/* confdefs.h. */
4807 +_ACEOF
4808 +cat confdefs.h >>conftest.$ac_ext
4809 +cat >>conftest.$ac_ext <<_ACEOF
4810 +/* end confdefs.h. */
4812 +/* Override any GCC internal prototype to avoid an error.
4813 + Use char because int might match the return type of a GCC
4814 + builtin and then its argument prototype would still apply. */
4815 +#ifdef __cplusplus
4816 +extern "C"
4817 +#endif
4818 +char tputs ();
4819 +int
4820 +main ()
4822 +return tputs ();
4824 + return 0;
4826 +_ACEOF
4827 +rm -f conftest.$ac_objext conftest$ac_exeext
4828 +if { (ac_try="$ac_link"
4829 +case "(($ac_try" in
4830 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4831 + *) ac_try_echo=$ac_try;;
4832 +esac
4833 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4834 + (eval "$ac_link") 2>conftest.er1
4835 + ac_status=$?
4836 + grep -v '^ *+' conftest.er1 >conftest.err
4837 + rm -f conftest.er1
4838 + cat conftest.err >&5
4839 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840 + (exit $ac_status); } && {
4841 + test -z "$ac_c_werror_flag" ||
4842 + test ! -s conftest.err
4843 + } && test -s conftest$ac_exeext &&
4844 + $as_test_x conftest$ac_exeext; then
4845 + eval "$as_ac_Lib=yes"
4846 +else
4847 + echo "$as_me: failed program was:" >&5
4848 +sed 's/^/| /' conftest.$ac_ext >&5
4850 + eval "$as_ac_Lib=no"
4853 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4854 + conftest$ac_exeext conftest.$ac_ext
4855 +LIBS=$ac_check_lib_save_LIBS
4857 +ac_res=`eval echo '${'$as_ac_Lib'}'`
4858 + { echo "$as_me:$LINENO: result: $ac_res" >&5
4859 +echo "${ECHO_T}$ac_res" >&6; }
4860 +if test `eval echo '${'$as_ac_Lib'}'` = yes; then
4861 + cat >>confdefs.h <<_ACEOF
4862 +#define `echo "HAVE_LIB$i" | $as_tr_cpp` 1
4863 +_ACEOF
4865 + LIBS="-l$i $LIBS"
4869 + else :; fi
4870 + done
4871 + TERMLIBS=$LIBS
4872 + LIBS=
4873 + for i in ncurses curses; do
4874 + if test x$LIBS = x; then
4876 +as_ac_Lib=`echo "ac_cv_lib_$i''_wgetch" | $as_tr_sh`
4877 +{ echo "$as_me:$LINENO: checking for wgetch in -l$i" >&5
4878 +echo $ECHO_N "checking for wgetch in -l$i... $ECHO_C" >&6; }
4879 +if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
4880 + echo $ECHO_N "(cached) $ECHO_C" >&6
4881 +else
4882 + ac_check_lib_save_LIBS=$LIBS
4883 +LIBS="-l$i $TERMLIBS $LIBS"
4884 +cat >conftest.$ac_ext <<_ACEOF
4885 +/* confdefs.h. */
4886 +_ACEOF
4887 +cat confdefs.h >>conftest.$ac_ext
4888 +cat >>conftest.$ac_ext <<_ACEOF
4889 +/* end confdefs.h. */
4891 +/* Override any GCC internal prototype to avoid an error.
4892 + Use char because int might match the return type of a GCC
4893 + builtin and then its argument prototype would still apply. */
4894 +#ifdef __cplusplus
4895 +extern "C"
4896 +#endif
4897 +char wgetch ();
4898 +int
4899 +main ()
4901 +return wgetch ();
4903 + return 0;
4905 +_ACEOF
4906 +rm -f conftest.$ac_objext conftest$ac_exeext
4907 +if { (ac_try="$ac_link"
4908 +case "(($ac_try" in
4909 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4910 + *) ac_try_echo=$ac_try;;
4911 +esac
4912 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4913 + (eval "$ac_link") 2>conftest.er1
4914 + ac_status=$?
4915 + grep -v '^ *+' conftest.er1 >conftest.err
4916 + rm -f conftest.er1
4917 + cat conftest.err >&5
4918 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919 + (exit $ac_status); } && {
4920 + test -z "$ac_c_werror_flag" ||
4921 + test ! -s conftest.err
4922 + } && test -s conftest$ac_exeext &&
4923 + $as_test_x conftest$ac_exeext; then
4924 + eval "$as_ac_Lib=yes"
4925 +else
4926 + echo "$as_me: failed program was:" >&5
4927 +sed 's/^/| /' conftest.$ac_ext >&5
4929 + eval "$as_ac_Lib=no"
4932 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4933 + conftest$ac_exeext conftest.$ac_ext
4934 +LIBS=$ac_check_lib_save_LIBS
4936 +ac_res=`eval echo '${'$as_ac_Lib'}'`
4937 + { echo "$as_me:$LINENO: result: $ac_res" >&5
4938 +echo "${ECHO_T}$ac_res" >&6; }
4939 +if test `eval echo '${'$as_ac_Lib'}'` = yes; then
4940 + cat >>confdefs.h <<_ACEOF
4941 +#define `echo "HAVE_LIB$i" | $as_tr_cpp` 1
4942 +_ACEOF
4944 + LIBS="-l$i $LIBS"
4948 + else :; fi
4949 + done
4950 + SHARED_LIBS="$LIBS $TERMLIBS -lc"
4951 + LIBS=$SAVELIBS ;;
4952 +esac
4954 +GPMXTERM=
4969 +CPPFLAGS='-I$(srcdir)/headers $(DEFS) -include headers/config.h -Wall -DSYSCONFDIR="\"$(sysconfdir)\"" -DSBINDIR="\"$(sbindir)\""'
4970 +LDFLAGS='-L$(srcdir)'
4972 +ac_config_files="$ac_config_files Makefile.include Makefile doc/Makefile src/Makefile contrib/Makefile doc/doc.gpm"
4974 +cat >confcache <<\_ACEOF
4975 +# This file is a shell script that caches the results of configure
4976 +# tests run on this system so they can be shared between configure
4977 +# scripts and configure runs, see configure's option --config-cache.
4978 +# It is not useful on other systems. If it contains results you don't
4979 +# want to keep, you may remove or edit it.
4981 +# config.status only pays attention to the cache file if you give it
4982 +# the --recheck option to rerun configure.
4984 +# `ac_cv_env_foo' variables (set or unset) will be overridden when
4985 +# loading this file, other *unset* `ac_cv_foo' will be assigned the
4986 +# following values.
4988 +_ACEOF
4990 +# The following way of writing the cache mishandles newlines in values,
4991 +# but we know of no workaround that is simple, portable, and efficient.
4992 +# So, we kill variables containing newlines.
4993 +# Ultrix sh set writes to stderr and can't be redirected directly,
4994 +# and sets the high bit in the cache file unless we assign to the vars.
4996 + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4997 + eval ac_val=\$$ac_var
4998 + case $ac_val in #(
4999 + *${as_nl}*)
5000 + case $ac_var in #(
5001 + *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
5002 +echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
5003 + esac
5004 + case $ac_var in #(
5005 + _ | IFS | as_nl) ;; #(
5006 + *) $as_unset $ac_var ;;
5007 + esac ;;
5008 + esac
5009 + done
5011 + (set) 2>&1 |
5012 + case $as_nl`(ac_space=' '; set) 2>&1` in #(
5013 + *${as_nl}ac_space=\ *)
5014 + # `set' does not quote correctly, so add quotes (double-quote
5015 + # substitution turns \\\\ into \\, and sed turns \\ into \).
5016 + sed -n \
5017 + "s/'/'\\\\''/g;
5018 + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5019 + ;; #(
5020 + *)
5021 + # `set' quotes correctly as required by POSIX, so do not add quotes.
5022 + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5023 + ;;
5024 + esac |
5025 + sort
5026 +) |
5027 + sed '
5028 + /^ac_cv_env_/b end
5029 + t clear
5030 + :clear
5031 + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5032 + t end
5033 + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5034 + :end' >>confcache
5035 +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5036 + if test -w "$cache_file"; then
5037 + test "x$cache_file" != "x/dev/null" &&
5038 + { echo "$as_me:$LINENO: updating cache $cache_file" >&5
5039 +echo "$as_me: updating cache $cache_file" >&6;}
5040 + cat confcache >$cache_file
5041 + else
5042 + { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
5043 +echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5044 + fi
5046 +rm -f confcache
5048 +test "x$prefix" = xNONE && prefix=$ac_default_prefix
5049 +# Let make expand exec_prefix.
5050 +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5052 +DEFS=-DHAVE_CONFIG_H
5054 +ac_libobjs=
5055 +ac_ltlibobjs=
5056 +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5057 + # 1. Remove the extension, and $U if already installed.
5058 + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5059 + ac_i=`echo "$ac_i" | sed "$ac_script"`
5060 + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5061 + # will be set to the directory where LIBOBJS objects are built.
5062 + ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5063 + ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
5064 +done
5065 +LIBOBJS=$ac_libobjs
5067 +LTLIBOBJS=$ac_ltlibobjs
5071 +: ${CONFIG_STATUS=./config.status}
5072 +ac_clean_files_save=$ac_clean_files
5073 +ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5074 +{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5075 +echo "$as_me: creating $CONFIG_STATUS" >&6;}
5076 +cat >$CONFIG_STATUS <<_ACEOF
5077 +#! $SHELL
5078 +# Generated by $as_me.
5079 +# Run this file to recreate the current configuration.
5080 +# Compiler output produced by configure, useful for debugging
5081 +# configure, is in config.log if it exists.
5083 +debug=false
5084 +ac_cs_recheck=false
5085 +ac_cs_silent=false
5086 +SHELL=\${CONFIG_SHELL-$SHELL}
5087 +_ACEOF
5089 +cat >>$CONFIG_STATUS <<\_ACEOF
5090 +## --------------------- ##
5091 +## M4sh Initialization. ##
5092 +## --------------------- ##
5094 +# Be more Bourne compatible
5095 +DUALCASE=1; export DUALCASE # for MKS sh
5096 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5097 + emulate sh
5098 + NULLCMD=:
5099 + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5100 + # is contrary to our usage. Disable this feature.
5101 + alias -g '${1+"$@"}'='"$@"'
5102 + setopt NO_GLOB_SUBST
5103 +else
5104 + case `(set -o) 2>/dev/null` in
5105 + *posix*) set -o posix ;;
5106 +esac
5113 +# PATH needs CR
5114 +# Avoid depending upon Character Ranges.
5115 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5116 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5117 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5118 +as_cr_digits='0123456789'
5119 +as_cr_alnum=$as_cr_Letters$as_cr_digits
5121 +# The user is always right.
5122 +if test "${PATH_SEPARATOR+set}" != set; then
5123 + echo "#! /bin/sh" >conf$$.sh
5124 + echo "exit 0" >>conf$$.sh
5125 + chmod +x conf$$.sh
5126 + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5127 + PATH_SEPARATOR=';'
5128 + else
5129 + PATH_SEPARATOR=:
5130 + fi
5131 + rm -f conf$$.sh
5134 +# Support unset when possible.
5135 +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5136 + as_unset=unset
5137 +else
5138 + as_unset=false
5142 +# IFS
5143 +# We need space, tab and new line, in precisely that order. Quoting is
5144 +# there to prevent editors from complaining about space-tab.
5145 +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5146 +# splitting by setting IFS to empty value.)
5147 +as_nl='
5149 +IFS=" "" $as_nl"
5151 +# Find who we are. Look in the path if we contain no directory separator.
5152 +case $0 in
5153 + *[\\/]* ) as_myself=$0 ;;
5154 + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5155 +for as_dir in $PATH
5157 + IFS=$as_save_IFS
5158 + test -z "$as_dir" && as_dir=.
5159 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5160 +done
5161 +IFS=$as_save_IFS
5163 + ;;
5164 +esac
5165 +# We did not find ourselves, most probably we were run as `sh COMMAND'
5166 +# in which case we are not to be found in the path.
5167 +if test "x$as_myself" = x; then
5168 + as_myself=$0
5170 +if test ! -f "$as_myself"; then
5171 + echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5172 + { (exit 1); exit 1; }
5175 +# Work around bugs in pre-3.0 UWIN ksh.
5176 +for as_var in ENV MAIL MAILPATH
5177 +do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5178 +done
5179 +PS1='$ '
5180 +PS2='> '
5181 +PS4='+ '
5183 +# NLS nuisances.
5184 +for as_var in \
5185 + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5186 + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5187 + LC_TELEPHONE LC_TIME
5189 + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5190 + eval $as_var=C; export $as_var
5191 + else
5192 + ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5193 + fi
5194 +done
5196 +# Required to use basename.
5197 +if expr a : '\(a\)' >/dev/null 2>&1 &&
5198 + test "X`expr 00001 : '.*\(...\)'`" = X001; then
5199 + as_expr=expr
5200 +else
5201 + as_expr=false
5204 +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5205 + as_basename=basename
5206 +else
5207 + as_basename=false
5211 +# Name of the executable.
5212 +as_me=`$as_basename -- "$0" ||
5213 +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5214 + X"$0" : 'X\(//\)$' \| \
5215 + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5216 +echo X/"$0" |
5217 + sed '/^.*\/\([^/][^/]*\)\/*$/{
5218 + s//\1/
5221 + /^X\/\(\/\/\)$/{
5222 + s//\1/
5225 + /^X\/\(\/\).*/{
5226 + s//\1/
5229 + s/.*/./; q'`
5231 +# CDPATH.
5232 +$as_unset CDPATH
5236 + as_lineno_1=$LINENO
5237 + as_lineno_2=$LINENO
5238 + test "x$as_lineno_1" != "x$as_lineno_2" &&
5239 + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
5241 + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5242 + # uniformly replaced by the line number. The first 'sed' inserts a
5243 + # line-number line after each line using $LINENO; the second 'sed'
5244 + # does the real work. The second script uses 'N' to pair each
5245 + # line-number line with the line containing $LINENO, and appends
5246 + # trailing '-' during substitution so that $LINENO is not a special
5247 + # case at line end.
5248 + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5249 + # scripts with optimization help from Paolo Bonzini. Blame Lee
5250 + # E. McMahon (1931-1989) for sed's syntax. :-)
5251 + sed -n '
5253 + /[$]LINENO/=
5254 + ' <$as_myself |
5255 + sed '
5256 + s/[$]LINENO.*/&-/
5257 + t lineno
5259 + :lineno
5261 + :loop
5262 + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
5263 + t loop
5264 + s/-\n.*//
5265 + ' >$as_me.lineno &&
5266 + chmod +x "$as_me.lineno" ||
5267 + { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
5268 + { (exit 1); exit 1; }; }
5270 + # Don't try to exec as it changes $[0], causing all sort of problems
5271 + # (the dirname of $[0] is not the place where we might find the
5272 + # original and so on. Autoconf is especially sensitive to this).
5273 + . "./$as_me.lineno"
5274 + # Exit status is that of the last command.
5275 + exit
5279 +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5280 + as_dirname=dirname
5281 +else
5282 + as_dirname=false
5285 +ECHO_C= ECHO_N= ECHO_T=
5286 +case `echo -n x` in
5287 +-n*)
5288 + case `echo 'x\c'` in
5289 + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5290 + *) ECHO_C='\c';;
5291 + esac;;
5293 + ECHO_N='-n';;
5294 +esac
5296 +if expr a : '\(a\)' >/dev/null 2>&1 &&
5297 + test "X`expr 00001 : '.*\(...\)'`" = X001; then
5298 + as_expr=expr
5299 +else
5300 + as_expr=false
5303 +rm -f conf$$ conf$$.exe conf$$.file
5304 +if test -d conf$$.dir; then
5305 + rm -f conf$$.dir/conf$$.file
5306 +else
5307 + rm -f conf$$.dir
5308 + mkdir conf$$.dir
5310 +echo >conf$$.file
5311 +if ln -s conf$$.file conf$$ 2>/dev/null; then
5312 + as_ln_s='ln -s'
5313 + # ... but there are two gotchas:
5314 + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5315 + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5316 + # In both cases, we have to default to `cp -p'.
5317 + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5318 + as_ln_s='cp -p'
5319 +elif ln conf$$.file conf$$ 2>/dev/null; then
5320 + as_ln_s=ln
5321 +else
5322 + as_ln_s='cp -p'
5324 +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5325 +rmdir conf$$.dir 2>/dev/null
5327 +if mkdir -p . 2>/dev/null; then
5328 + as_mkdir_p=:
5329 +else
5330 + test -d ./-p && rmdir ./-p
5331 + as_mkdir_p=false
5334 +if test -x / >/dev/null 2>&1; then
5335 + as_test_x='test -x'
5336 +else
5337 + if ls -dL / >/dev/null 2>&1; then
5338 + as_ls_L_option=L
5339 + else
5340 + as_ls_L_option=
5341 + fi
5342 + as_test_x='
5343 + eval sh -c '\''
5344 + if test -d "$1"; then
5345 + test -d "$1/.";
5346 + else
5347 + case $1 in
5348 + -*)set "./$1";;
5349 + esac;
5350 + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
5351 + ???[sx]*):;;*)false;;esac;fi
5352 + '\'' sh
5355 +as_executable_p=$as_test_x
5357 +# Sed expression to map a string onto a valid CPP name.
5358 +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5360 +# Sed expression to map a string onto a valid variable name.
5361 +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5364 +exec 6>&1
5366 +# Save the log message, to keep $[0] and so on meaningful, and to
5367 +# report actual input values of CONFIG_FILES etc. instead of their
5368 +# values after options handling.
5369 +ac_log="
5370 +This file was extended by $as_me, which was
5371 +generated by GNU Autoconf 2.61. Invocation command line was
5373 + CONFIG_FILES = $CONFIG_FILES
5374 + CONFIG_HEADERS = $CONFIG_HEADERS
5375 + CONFIG_LINKS = $CONFIG_LINKS
5376 + CONFIG_COMMANDS = $CONFIG_COMMANDS
5377 + $ $0 $@
5379 +on `(hostname || uname -n) 2>/dev/null | sed 1q`
5382 +_ACEOF
5384 +cat >>$CONFIG_STATUS <<_ACEOF
5385 +# Files that config.status was made for.
5386 +config_files="$ac_config_files"
5387 +config_headers="$ac_config_headers"
5389 +_ACEOF
5391 +cat >>$CONFIG_STATUS <<\_ACEOF
5392 +ac_cs_usage="\
5393 +\`$as_me' instantiates files from templates according to the
5394 +current configuration.
5396 +Usage: $0 [OPTIONS] [FILE]...
5398 + -h, --help print this help, then exit
5399 + -V, --version print version number and configuration settings, then exit
5400 + -q, --quiet do not print progress messages
5401 + -d, --debug don't remove temporary files
5402 + --recheck update $as_me by reconfiguring in the same conditions
5403 + --file=FILE[:TEMPLATE]
5404 + instantiate the configuration file FILE
5405 + --header=FILE[:TEMPLATE]
5406 + instantiate the configuration header FILE
5408 +Configuration files:
5409 +$config_files
5411 +Configuration headers:
5412 +$config_headers
5414 +Report bugs to <bug-autoconf@gnu.org>."
5416 +_ACEOF
5417 +cat >>$CONFIG_STATUS <<_ACEOF
5418 +ac_cs_version="\\
5419 +config.status
5420 +configured by $0, generated by GNU Autoconf 2.61,
5421 + with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
5423 +Copyright (C) 2006 Free Software Foundation, Inc.
5424 +This config.status script is free software; the Free Software Foundation
5425 +gives unlimited permission to copy, distribute and modify it."
5427 +ac_pwd='$ac_pwd'
5428 +srcdir='$srcdir'
5429 +INSTALL='$INSTALL'
5430 +_ACEOF
5432 +cat >>$CONFIG_STATUS <<\_ACEOF
5433 +# If no file are specified by the user, then we need to provide default
5434 +# value. By we need to know if files were specified by the user.
5435 +ac_need_defaults=:
5436 +while test $# != 0
5438 + case $1 in
5439 + --*=*)
5440 + ac_option=`expr "X$1" : 'X\([^=]*\)='`
5441 + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5442 + ac_shift=:
5443 + ;;
5444 + *)
5445 + ac_option=$1
5446 + ac_optarg=$2
5447 + ac_shift=shift
5448 + ;;
5449 + esac
5451 + case $ac_option in
5452 + # Handling of the options.
5453 + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5454 + ac_cs_recheck=: ;;
5455 + --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5456 + echo "$ac_cs_version"; exit ;;
5457 + --debug | --debu | --deb | --de | --d | -d )
5458 + debug=: ;;
5459 + --file | --fil | --fi | --f )
5460 + $ac_shift
5461 + CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5462 + ac_need_defaults=false;;
5463 + --header | --heade | --head | --hea )
5464 + $ac_shift
5465 + CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5466 + ac_need_defaults=false;;
5467 + --he | --h)
5468 + # Conflict between --help and --header
5469 + { echo "$as_me: error: ambiguous option: $1
5470 +Try \`$0 --help' for more information." >&2
5471 + { (exit 1); exit 1; }; };;
5472 + --help | --hel | -h )
5473 + echo "$ac_cs_usage"; exit ;;
5474 + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5475 + | -silent | --silent | --silen | --sile | --sil | --si | --s)
5476 + ac_cs_silent=: ;;
5478 + # This is an error.
5479 + -*) { echo "$as_me: error: unrecognized option: $1
5480 +Try \`$0 --help' for more information." >&2
5481 + { (exit 1); exit 1; }; } ;;
5483 + *) ac_config_targets="$ac_config_targets $1"
5484 + ac_need_defaults=false ;;
5486 + esac
5487 + shift
5488 +done
5490 +ac_configure_extra_args=
5492 +if $ac_cs_silent; then
5493 + exec 6>/dev/null
5494 + ac_configure_extra_args="$ac_configure_extra_args --silent"
5497 +_ACEOF
5498 +cat >>$CONFIG_STATUS <<_ACEOF
5499 +if \$ac_cs_recheck; then
5500 + echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5501 + CONFIG_SHELL=$SHELL
5502 + export CONFIG_SHELL
5503 + exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5506 +_ACEOF
5507 +cat >>$CONFIG_STATUS <<\_ACEOF
5508 +exec 5>>config.log
5510 + echo
5511 + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5512 +## Running $as_me. ##
5513 +_ASBOX
5514 + echo "$ac_log"
5515 +} >&5
5517 +_ACEOF
5518 +cat >>$CONFIG_STATUS <<_ACEOF
5519 +_ACEOF
5521 +cat >>$CONFIG_STATUS <<\_ACEOF
5523 +# Handling of arguments.
5524 +for ac_config_target in $ac_config_targets
5526 + case $ac_config_target in
5527 + "src/headers/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/headers/config.h" ;;
5528 + "Makefile.include") CONFIG_FILES="$CONFIG_FILES Makefile.include" ;;
5529 + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5530 + "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
5531 + "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
5532 + "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
5533 + "doc/doc.gpm") CONFIG_FILES="$CONFIG_FILES doc/doc.gpm" ;;
5535 + *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5536 +echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5537 + { (exit 1); exit 1; }; };;
5538 + esac
5539 +done
5542 +# If the user did not use the arguments to specify the items to instantiate,
5543 +# then the envvar interface is used. Set only those that are not.
5544 +# We use the long form for the default assignment because of an extremely
5545 +# bizarre bug on SunOS 4.1.3.
5546 +if $ac_need_defaults; then
5547 + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5548 + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5551 +# Have a temporary directory for convenience. Make it in the build tree
5552 +# simply because there is no reason against having it here, and in addition,
5553 +# creating and moving files from /tmp can sometimes cause problems.
5554 +# Hook for its removal unless debugging.
5555 +# Note that there is a small window in which the directory will not be cleaned:
5556 +# after its creation but before its name has been assigned to `$tmp'.
5557 +$debug ||
5559 + tmp=
5560 + trap 'exit_status=$?
5561 + { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5562 +' 0
5563 + trap '{ (exit 1); exit 1; }' 1 2 13 15
5565 +# Create a (secure) tmp directory for tmp files.
5568 + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5569 + test -n "$tmp" && test -d "$tmp"
5570 +} ||
5572 + tmp=./conf$$-$RANDOM
5573 + (umask 077 && mkdir "$tmp")
5574 +} ||
5576 + echo "$me: cannot create a temporary directory in ." >&2
5577 + { (exit 1); exit 1; }
5581 +# Set up the sed scripts for CONFIG_FILES section.
5584 +# No need to generate the scripts if there are no CONFIG_FILES.
5585 +# This happens for instance when ./config.status config.h
5586 +if test -n "$CONFIG_FILES"; then
5588 +_ACEOF
5592 +ac_delim='%!_!# '
5593 +for ac_last_try in false false false false false :; do
5594 + cat >conf$$subs.sed <<_ACEOF
5595 +SHELL!$SHELL$ac_delim
5596 +PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
5597 +PACKAGE_NAME!$PACKAGE_NAME$ac_delim
5598 +PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
5599 +PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
5600 +PACKAGE_STRING!$PACKAGE_STRING$ac_delim
5601 +PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
5602 +exec_prefix!$exec_prefix$ac_delim
5603 +prefix!$prefix$ac_delim
5604 +program_transform_name!$program_transform_name$ac_delim
5605 +bindir!$bindir$ac_delim
5606 +sbindir!$sbindir$ac_delim
5607 +libexecdir!$libexecdir$ac_delim
5608 +datarootdir!$datarootdir$ac_delim
5609 +datadir!$datadir$ac_delim
5610 +sysconfdir!$sysconfdir$ac_delim
5611 +sharedstatedir!$sharedstatedir$ac_delim
5612 +localstatedir!$localstatedir$ac_delim
5613 +includedir!$includedir$ac_delim
5614 +oldincludedir!$oldincludedir$ac_delim
5615 +docdir!$docdir$ac_delim
5616 +infodir!$infodir$ac_delim
5617 +htmldir!$htmldir$ac_delim
5618 +dvidir!$dvidir$ac_delim
5619 +pdfdir!$pdfdir$ac_delim
5620 +psdir!$psdir$ac_delim
5621 +libdir!$libdir$ac_delim
5622 +localedir!$localedir$ac_delim
5623 +mandir!$mandir$ac_delim
5624 +DEFS!$DEFS$ac_delim
5625 +ECHO_C!$ECHO_C$ac_delim
5626 +ECHO_N!$ECHO_N$ac_delim
5627 +ECHO_T!$ECHO_T$ac_delim
5628 +LIBS!$LIBS$ac_delim
5629 +build_alias!$build_alias$ac_delim
5630 +host_alias!$host_alias$ac_delim
5631 +target_alias!$target_alias$ac_delim
5632 +CC!$CC$ac_delim
5633 +CFLAGS!$CFLAGS$ac_delim
5634 +LDFLAGS!$LDFLAGS$ac_delim
5635 +CPPFLAGS!$CPPFLAGS$ac_delim
5636 +ac_ct_CC!$ac_ct_CC$ac_delim
5637 +EXEEXT!$EXEEXT$ac_delim
5638 +OBJEXT!$OBJEXT$ac_delim
5639 +RANLIB!$RANLIB$ac_delim
5640 +INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
5641 +INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
5642 +INSTALL_DATA!$INSTALL_DATA$ac_delim
5643 +YACC!$YACC$ac_delim
5644 +YFLAGS!$YFLAGS$ac_delim
5645 +LN_S!$LN_S$ac_delim
5646 +DVIPS!$DVIPS$ac_delim
5647 +TEXI2HTML!$TEXI2HTML$ac_delim
5648 +TEX!$TEX$ac_delim
5649 +TEXINDEX!$TEXINDEX$ac_delim
5650 +MAKEINFO!$MAKEINFO$ac_delim
5651 +DIFF!$DIFF$ac_delim
5652 +SED!$SED$ac_delim
5653 +emacs!$emacs$ac_delim
5654 +CPP!$CPP$ac_delim
5655 +GREP!$GREP$ac_delim
5656 +EGREP!$EGREP$ac_delim
5657 +ALLOCA!$ALLOCA$ac_delim
5658 +GPMXTERM!$GPMXTERM$ac_delim
5659 +release!$release$ac_delim
5660 +release_date!$release_date$ac_delim
5661 +abi_lev!$abi_lev$ac_delim
5662 +abi_full!$abi_full$ac_delim
5663 +EMACS!$EMACS$ac_delim
5664 +ELISP!$ELISP$ac_delim
5665 +SHLIB!$SHLIB$ac_delim
5666 +PICFLAGS!$PICFLAGS$ac_delim
5667 +SOLDFLAGS!$SOLDFLAGS$ac_delim
5668 +CURSES_OBJS!$CURSES_OBJS$ac_delim
5669 +SHARED_LIBS!$SHARED_LIBS$ac_delim
5670 +lispdir!$lispdir$ac_delim
5671 +LIBOBJS!$LIBOBJS$ac_delim
5672 +LTLIBOBJS!$LTLIBOBJS$ac_delim
5673 +_ACEOF
5675 + if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 78; then
5676 + break
5677 + elif $ac_last_try; then
5678 + { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
5679 +echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
5680 + { (exit 1); exit 1; }; }
5681 + else
5682 + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5683 + fi
5684 +done
5686 +ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
5687 +if test -n "$ac_eof"; then
5688 + ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
5689 + ac_eof=`expr $ac_eof + 1`
5692 +cat >>$CONFIG_STATUS <<_ACEOF
5693 +cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
5694 +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
5695 +_ACEOF
5696 +sed '
5697 +s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
5698 +s/^/s,@/; s/!/@,|#_!!_#|/
5700 +t n
5701 +s/'"$ac_delim"'$/,g/; t
5702 +s/$/\\/; p
5703 +N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
5704 +' >>$CONFIG_STATUS <conf$$subs.sed
5705 +rm -f conf$$subs.sed
5706 +cat >>$CONFIG_STATUS <<_ACEOF
5707 +:end
5708 +s/|#_!!_#|//g
5709 +CEOF$ac_eof
5710 +_ACEOF
5713 +# VPATH may cause trouble with some makes, so we remove $(srcdir),
5714 +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5715 +# trailing colons and then remove the whole line if VPATH becomes empty
5716 +# (actually we leave an empty line to preserve line numbers).
5717 +if test "x$srcdir" = x.; then
5718 + ac_vpsub='/^[ ]*VPATH[ ]*=/{
5719 +s/:*\$(srcdir):*/:/
5720 +s/:*\${srcdir}:*/:/
5721 +s/:*@srcdir@:*/:/
5722 +s/^\([^=]*=[ ]*\):*/\1/
5723 +s/:*$//
5724 +s/^[^=]*=[ ]*$//
5728 +cat >>$CONFIG_STATUS <<\_ACEOF
5729 +fi # test -n "$CONFIG_FILES"
5732 +for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
5734 + case $ac_tag in
5735 + :[FHLC]) ac_mode=$ac_tag; continue;;
5736 + esac
5737 + case $ac_mode$ac_tag in
5738 + :[FHL]*:*);;
5739 + :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
5740 +echo "$as_me: error: Invalid tag $ac_tag." >&2;}
5741 + { (exit 1); exit 1; }; };;
5742 + :[FH]-) ac_tag=-:-;;
5743 + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5744 + esac
5745 + ac_save_IFS=$IFS
5746 + IFS=:
5747 + set x $ac_tag
5748 + IFS=$ac_save_IFS
5749 + shift
5750 + ac_file=$1
5751 + shift
5753 + case $ac_mode in
5754 + :L) ac_source=$1;;
5755 + :[FH])
5756 + ac_file_inputs=
5757 + for ac_f
5758 + do
5759 + case $ac_f in
5760 + -) ac_f="$tmp/stdin";;
5761 + *) # Look for the file first in the build tree, then in the source tree
5762 + # (if the path is not absolute). The absolute path cannot be DOS-style,
5763 + # because $ac_f cannot contain `:'.
5764 + test -f "$ac_f" ||
5765 + case $ac_f in
5766 + [\\/$]*) false;;
5767 + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5768 + esac ||
5769 + { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
5770 +echo "$as_me: error: cannot find input file: $ac_f" >&2;}
5771 + { (exit 1); exit 1; }; };;
5772 + esac
5773 + ac_file_inputs="$ac_file_inputs $ac_f"
5774 + done
5776 + # Let's still pretend it is `configure' which instantiates (i.e., don't
5777 + # use $as_me), people would be surprised to read:
5778 + # /* config.h. Generated by config.status. */
5779 + configure_input="Generated from "`IFS=:
5780 + echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
5781 + if test x"$ac_file" != x-; then
5782 + configure_input="$ac_file. $configure_input"
5783 + { echo "$as_me:$LINENO: creating $ac_file" >&5
5784 +echo "$as_me: creating $ac_file" >&6;}
5785 + fi
5787 + case $ac_tag in
5788 + *:-:* | *:-) cat >"$tmp/stdin";;
5789 + esac
5790 + ;;
5791 + esac
5793 + ac_dir=`$as_dirname -- "$ac_file" ||
5794 +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5795 + X"$ac_file" : 'X\(//\)[^/]' \| \
5796 + X"$ac_file" : 'X\(//\)$' \| \
5797 + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5798 +echo X"$ac_file" |
5799 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5800 + s//\1/
5803 + /^X\(\/\/\)[^/].*/{
5804 + s//\1/
5807 + /^X\(\/\/\)$/{
5808 + s//\1/
5811 + /^X\(\/\).*/{
5812 + s//\1/
5815 + s/.*/./; q'`
5816 + { as_dir="$ac_dir"
5817 + case $as_dir in #(
5818 + -*) as_dir=./$as_dir;;
5819 + esac
5820 + test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
5821 + as_dirs=
5822 + while :; do
5823 + case $as_dir in #(
5824 + *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
5825 + *) as_qdir=$as_dir;;
5826 + esac
5827 + as_dirs="'$as_qdir' $as_dirs"
5828 + as_dir=`$as_dirname -- "$as_dir" ||
5829 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5830 + X"$as_dir" : 'X\(//\)[^/]' \| \
5831 + X"$as_dir" : 'X\(//\)$' \| \
5832 + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5833 +echo X"$as_dir" |
5834 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5835 + s//\1/
5838 + /^X\(\/\/\)[^/].*/{
5839 + s//\1/
5842 + /^X\(\/\/\)$/{
5843 + s//\1/
5846 + /^X\(\/\).*/{
5847 + s//\1/
5850 + s/.*/./; q'`
5851 + test -d "$as_dir" && break
5852 + done
5853 + test -z "$as_dirs" || eval "mkdir $as_dirs"
5854 + } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
5855 +echo "$as_me: error: cannot create directory $as_dir" >&2;}
5856 + { (exit 1); exit 1; }; }; }
5857 + ac_builddir=.
5859 +case "$ac_dir" in
5860 +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5862 + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5863 + # A ".." for each directory in $ac_dir_suffix.
5864 + ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
5865 + case $ac_top_builddir_sub in
5866 + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5867 + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5868 + esac ;;
5869 +esac
5870 +ac_abs_top_builddir=$ac_pwd
5871 +ac_abs_builddir=$ac_pwd$ac_dir_suffix
5872 +# for backward compatibility:
5873 +ac_top_builddir=$ac_top_build_prefix
5875 +case $srcdir in
5876 + .) # We are building in place.
5877 + ac_srcdir=.
5878 + ac_top_srcdir=$ac_top_builddir_sub
5879 + ac_abs_top_srcdir=$ac_pwd ;;
5880 + [\\/]* | ?:[\\/]* ) # Absolute name.
5881 + ac_srcdir=$srcdir$ac_dir_suffix;
5882 + ac_top_srcdir=$srcdir
5883 + ac_abs_top_srcdir=$srcdir ;;
5884 + *) # Relative name.
5885 + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5886 + ac_top_srcdir=$ac_top_build_prefix$srcdir
5887 + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5888 +esac
5889 +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5892 + case $ac_mode in
5893 + :F)
5895 + # CONFIG_FILE
5898 + case $INSTALL in
5899 + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5900 + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5901 + esac
5902 +_ACEOF
5904 +cat >>$CONFIG_STATUS <<\_ACEOF
5905 +# If the template does not know about datarootdir, expand it.
5906 +# FIXME: This hack should be removed a few years after 2.60.
5907 +ac_datarootdir_hack=; ac_datarootdir_seen=
5909 +case `sed -n '/datarootdir/ {
5913 +/@datadir@/p
5914 +/@docdir@/p
5915 +/@infodir@/p
5916 +/@localedir@/p
5917 +/@mandir@/p
5918 +' $ac_file_inputs` in
5919 +*datarootdir*) ac_datarootdir_seen=yes;;
5920 +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5921 + { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5922 +echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5923 +_ACEOF
5924 +cat >>$CONFIG_STATUS <<_ACEOF
5925 + ac_datarootdir_hack='
5926 + s&@datadir@&$datadir&g
5927 + s&@docdir@&$docdir&g
5928 + s&@infodir@&$infodir&g
5929 + s&@localedir@&$localedir&g
5930 + s&@mandir@&$mandir&g
5931 + s&\\\${datarootdir}&$datarootdir&g' ;;
5932 +esac
5933 +_ACEOF
5935 +# Neutralize VPATH when `$srcdir' = `.'.
5936 +# Shell code in configure.ac might set extrasub.
5937 +# FIXME: do we really want to maintain this feature?
5938 +cat >>$CONFIG_STATUS <<_ACEOF
5939 + sed "$ac_vpsub
5940 +$extrasub
5941 +_ACEOF
5942 +cat >>$CONFIG_STATUS <<\_ACEOF
5944 +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5945 +s&@configure_input@&$configure_input&;t t
5946 +s&@top_builddir@&$ac_top_builddir_sub&;t t
5947 +s&@srcdir@&$ac_srcdir&;t t
5948 +s&@abs_srcdir@&$ac_abs_srcdir&;t t
5949 +s&@top_srcdir@&$ac_top_srcdir&;t t
5950 +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5951 +s&@builddir@&$ac_builddir&;t t
5952 +s&@abs_builddir@&$ac_abs_builddir&;t t
5953 +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5954 +s&@INSTALL@&$ac_INSTALL&;t t
5955 +$ac_datarootdir_hack
5956 +" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
5958 +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5959 + { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
5960 + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
5961 + { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5962 +which seems to be undefined. Please make sure it is defined." >&5
5963 +echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5964 +which seems to be undefined. Please make sure it is defined." >&2;}
5966 + rm -f "$tmp/stdin"
5967 + case $ac_file in
5968 + -) cat "$tmp/out"; rm -f "$tmp/out";;
5969 + *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
5970 + esac
5971 + ;;
5972 + :H)
5974 + # CONFIG_HEADER
5976 +_ACEOF
5978 +# Transform confdefs.h into a sed script `conftest.defines', that
5979 +# substitutes the proper values into config.h.in to produce config.h.
5980 +rm -f conftest.defines conftest.tail
5981 +# First, append a space to every undef/define line, to ease matching.
5982 +echo 's/$/ /' >conftest.defines
5983 +# Then, protect against being on the right side of a sed subst, or in
5984 +# an unquoted here document, in config.status. If some macros were
5985 +# called several times there might be several #defines for the same
5986 +# symbol, which is useless. But do not sort them, since the last
5987 +# AC_DEFINE must be honored.
5988 +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5989 +# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
5990 +# NAME is the cpp macro being defined, VALUE is the value it is being given.
5991 +# PARAMS is the parameter list in the macro definition--in most cases, it's
5992 +# just an empty string.
5993 +ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
5994 +ac_dB='\\)[ (].*,\\1define\\2'
5995 +ac_dC=' '
5996 +ac_dD=' ,'
5998 +uniq confdefs.h |
5999 + sed -n '
6000 + t rset
6001 + :rset
6002 + s/^[ ]*#[ ]*define[ ][ ]*//
6003 + t ok
6005 + :ok
6006 + s/[\\&,]/\\&/g
6007 + s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
6008 + s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
6009 + ' >>conftest.defines
6011 +# Remove the space that was appended to ease matching.
6012 +# Then replace #undef with comments. This is necessary, for
6013 +# example, in the case of _POSIX_SOURCE, which is predefined and required
6014 +# on some systems where configure will not decide to define it.
6015 +# (The regexp can be short, since the line contains either #define or #undef.)
6016 +echo 's/ $//
6017 +s,^[ #]*u.*,/* & */,' >>conftest.defines
6019 +# Break up conftest.defines:
6020 +ac_max_sed_lines=50
6022 +# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
6023 +# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
6024 +# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
6025 +# et cetera.
6026 +ac_in='$ac_file_inputs'
6027 +ac_out='"$tmp/out1"'
6028 +ac_nxt='"$tmp/out2"'
6030 +while :
6032 + # Write a here document:
6033 + cat >>$CONFIG_STATUS <<_ACEOF
6034 + # First, check the format of the line:
6035 + cat >"\$tmp/defines.sed" <<\\CEOF
6036 +/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
6037 +/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
6039 +:def
6040 +_ACEOF
6041 + sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
6042 + echo 'CEOF
6043 + sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
6044 + ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
6045 + sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
6046 + grep . conftest.tail >/dev/null || break
6047 + rm -f conftest.defines
6048 + mv conftest.tail conftest.defines
6049 +done
6050 +rm -f conftest.defines conftest.tail
6052 +echo "ac_result=$ac_in" >>$CONFIG_STATUS
6053 +cat >>$CONFIG_STATUS <<\_ACEOF
6054 + if test x"$ac_file" != x-; then
6055 + echo "/* $configure_input */" >"$tmp/config.h"
6056 + cat "$ac_result" >>"$tmp/config.h"
6057 + if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
6058 + { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6059 +echo "$as_me: $ac_file is unchanged" >&6;}
6060 + else
6061 + rm -f $ac_file
6062 + mv "$tmp/config.h" $ac_file
6063 + fi
6064 + else
6065 + echo "/* $configure_input */"
6066 + cat "$ac_result"
6067 + fi
6068 + rm -f "$tmp/out12"
6069 + ;;
6072 + esac
6074 +done # for ac_tag
6077 +{ (exit 0); exit 0; }
6078 +_ACEOF
6079 +chmod +x $CONFIG_STATUS
6080 +ac_clean_files=$ac_clean_files_save
6083 +# configure is writing to config.log, and then calls config.status.
6084 +# config.status does its own redirection, appending to config.log.
6085 +# Unfortunately, on DOS this fails, as config.log is still kept open
6086 +# by configure, so config.status won't be able to write to it; its
6087 +# output is simply discarded. So we exec the FD to /dev/null,
6088 +# effectively closing config.log, so it can be properly (re)opened and
6089 +# appended to by config.status. When coming back to configure, we
6090 +# need to make the FD available again.
6091 +if test "$no_create" != yes; then
6092 + ac_cs_success=:
6093 + ac_config_status_args=
6094 + test "$silent" = yes &&
6095 + ac_config_status_args="$ac_config_status_args --quiet"
6096 + exec 5>/dev/null
6097 + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6098 + exec 5>>config.log
6099 + # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6100 + # would make configure fail if this is the last instruction.
6101 + $ac_cs_success || { (exit 1); exit 1; }
6104 diff -rduNp gpm-1.99.5.oorig/src/headers/config.h.in gpm-1.99.5/src/headers/config.h.in
6105 --- gpm-1.99.5.oorig/src/headers/config.h.in 1970-01-01 01:00:00.000000000 +0100
6106 +++ gpm-1.99.5/src/headers/config.h.in 2008-04-15 13:12:30.000000000 +0200
6107 @@ -0,0 +1,114 @@
6108 +/* src/headers/config.h.in. Generated from configure.in by autoheader. */
6109 +/* Copyright (C) 1998 Ian Zimmerman <itz@transbay.net> */
6110 +/* Copyright (C) 2002 Nico Schottelius <nico@schottelius.org> */
6113 +/* GPM release number as a string. */
6114 +#define GPM_RELEASE ""
6116 +/* release date as a string. */
6117 +#define GPM_RELEASE_DATE ""
6119 +/* define if the __u32 type exists either in sys/types.h or in linux/types.h */
6120 +#undef HAVE___U32
6122 +/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
6123 + systems. This function is required for `alloca.c' support on those systems.
6124 + */
6125 +#undef CRAY_STACKSEG_END
6127 +/* Define to 1 if using `alloca.c'. */
6128 +#undef C_ALLOCA
6130 +/* Define to 1 if you have `alloca', as a function or macro. */
6131 +#undef HAVE_ALLOCA
6133 +/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
6134 + */
6135 +#undef HAVE_ALLOCA_H
6137 +/* Define to 1 if you have the <curses.h> header file. */
6138 +#undef HAVE_CURSES_H
6140 +/* Define to 1 if you have the <inttypes.h> header file. */
6141 +#undef HAVE_INTTYPES_H
6143 +/* Define to 1 if you have the <linux/input.h> header file. */
6144 +#undef HAVE_LINUX_INPUT_H
6146 +/* Define to 1 if you have the <linux/joystick.h> header file. */
6147 +#undef HAVE_LINUX_JOYSTICK_H
6149 +/* Define to 1 if you have the <linux/major.h> header file. */
6150 +#undef HAVE_LINUX_MAJOR_H
6152 +/* Define to 1 if you have the <linux/tty.h> header file. */
6153 +#undef HAVE_LINUX_TTY_H
6155 +/* Define to 1 if you have the <memory.h> header file. */
6156 +#undef HAVE_MEMORY_H
6158 +/* Define to 1 if you have the <ncurses/curses.h> header file. */
6159 +#undef HAVE_NCURSES_CURSES_H
6161 +/* Define to 1 if you have the <ncurses.h> header file. */
6162 +#undef HAVE_NCURSES_H
6164 +/* Define to 1 if you have the <stdint.h> header file. */
6165 +#undef HAVE_STDINT_H
6167 +/* Define to 1 if you have the <stdlib.h> header file. */
6168 +#undef HAVE_STDLIB_H
6170 +/* Define to 1 if you have the <strings.h> header file. */
6171 +#undef HAVE_STRINGS_H
6173 +/* Define to 1 if you have the <string.h> header file. */
6174 +#undef HAVE_STRING_H
6176 +/* Define to 1 if you have the `syslog' function. */
6177 +#undef HAVE_SYSLOG
6179 +/* Define to 1 if you have the <syslog.h> header file. */
6180 +#undef HAVE_SYSLOG_H
6182 +/* Define to 1 if you have the <sys/stat.h> header file. */
6183 +#undef HAVE_SYS_STAT_H
6185 +/* Define to 1 if you have the <sys/sysmacros.h> header file. */
6186 +#undef HAVE_SYS_SYSMACROS_H
6188 +/* Define to 1 if you have the <sys/types.h> header file. */
6189 +#undef HAVE_SYS_TYPES_H
6191 +/* Define to 1 if you have the <unistd.h> header file. */
6192 +#undef HAVE_UNISTD_H
6194 +/* Define to 1 if you have the `vsyslog' function. */
6195 +#undef HAVE_VSYSLOG
6197 +/* Define to the address where bug reports for this package should be sent. */
6198 +#undef PACKAGE_BUGREPORT
6200 +/* Define to the full name of this package. */
6201 +#undef PACKAGE_NAME
6203 +/* Define to the full name and version of this package. */
6204 +#undef PACKAGE_STRING
6206 +/* Define to the one symbol short name of this package. */
6207 +#undef PACKAGE_TARNAME
6209 +/* Define to the version of this package. */
6210 +#undef PACKAGE_VERSION
6212 +/* If using the C implementation of alloca, define if you know the
6213 + direction of stack growth for your system; otherwise it will be
6214 + automatically deduced at runtime.
6215 + STACK_DIRECTION > 0 => grows toward higher addresses
6216 + STACK_DIRECTION < 0 => grows toward lower addresses
6217 + STACK_DIRECTION = 0 => direction of growth unknown */
6218 +#undef STACK_DIRECTION
6220 +/* Define to 1 if you have the ANSI C header files. */
6221 +#undef STDC_HEADERS