comparison configure @ 44493:dc864bb90c6c

Regenerate.
author Colin Walters <walters@gnu.org>
date Wed, 10 Apr 2002 22:14:09 +0000
parents 343a3a52107d
children 01399b2a0c1e
comparison
equal deleted inserted replaced
44492:1e3af4fc0409 44493:dc864bb90c6c
1 #! /bin/sh 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles. 2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52. 3 # Generated by GNU Autoconf 2.53.
4 # 4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc. 6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation 7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it. 8 # gives unlimited permission to copy, distribute and modify it.
9 9
10 if expr a : '\(a\)' >/dev/null 2>&1; then
11 as_expr=expr
12 else
13 as_expr=false
14 fi
15
16
17 ## --------------------- ##
18 ## M4sh Initialization. ##
19 ## --------------------- ##
20
21 # Be Bourne compatible
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23 emulate sh
24 NULLCMD=:
25 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 set -o posix
27 fi
28
29 # NLS nuisances.
30 # Support unset when possible.
31 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 as_unset=unset
33 else
34 as_unset=false
35 fi
36
37 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
38 { $as_unset LANG || test "${LANG+set}" != set; } ||
39 { LANG=C; export LANG; }
40 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
41 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
42 { LC_ALL=C; export LC_ALL; }
43 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
44 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
45 { LC_TIME=C; export LC_TIME; }
46 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
47 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
48 { LC_CTYPE=C; export LC_CTYPE; }
49 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
50 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
51 { LANGUAGE=C; export LANGUAGE; }
52 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
53 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
54 { LC_COLLATE=C; export LC_COLLATE; }
55 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
56 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
57 { LC_NUMERIC=C; export LC_NUMERIC; }
58 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
59 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
60 { LC_MESSAGES=C; export LC_MESSAGES; }
61
62
63 # Name of the executable.
64 as_me=`(basename "$0") 2>/dev/null ||
65 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66 X"$0" : 'X\(//\)$' \| \
67 X"$0" : 'X\(/\)$' \| \
68 . : '\(.\)' 2>/dev/null ||
69 echo X/"$0" |
70 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71 /^X\/\(\/\/\)$/{ s//\1/; q; }
72 /^X\/\(\/\).*/{ s//\1/; q; }
73 s/.*/./; q'`
74
75 # PATH needs CR, and LINENO needs CR and PATH.
10 # Avoid depending upon Character Ranges. 76 # Avoid depending upon Character Ranges.
11 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14 as_cr_digits='0123456789' 80 as_cr_digits='0123456789'
15 as_cr_alnum=$as_cr_Letters$as_cr_digits 81 as_cr_alnum=$as_cr_Letters$as_cr_digits
16 82
17 # Sed expression to map a string onto a valid variable name. 83 # The user is always right.
18 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 84 if test "${PATH_SEPARATOR+set}" != set; then
19 85 echo "#! /bin/sh" >conftest.sh
20 # Sed expression to map a string onto a valid CPP name. 86 echo "exit 0" >>conftest.sh
21 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 87 chmod +x conftest.sh
22 88 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
23 # Be Bourne compatible 89 PATH_SEPARATOR=';'
24 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 90 else
25 emulate sh 91 PATH_SEPARATOR=:
26 NULLCMD=: 92 fi
27 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 93 rm -f conftest.sh
28 set -o posix 94 fi
29 fi 95
30 96
31 # Name of the executable. 97 as_lineno_1=$LINENO
32 as_me=`echo "$0" |sed 's,.*[\\/],,'` 98 as_lineno_2=$LINENO
99 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100 test "x$as_lineno_1" != "x$as_lineno_2" &&
101 test "x$as_lineno_3" = "x$as_lineno_2" || {
102 # Find who we are. Look in the path if we contain no path at all
103 # relative or not.
104 case $0 in
105 *[\\/]* ) as_myself=$0 ;;
106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107 for as_dir in $PATH
108 do
109 IFS=$as_save_IFS
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 done
113
114 ;;
115 esac
116 # We did not find ourselves, most probably we were run as `sh COMMAND'
117 # in which case we are not to be found in the path.
118 if test "x$as_myself" = x; then
119 as_myself=$0
120 fi
121 if test ! -f "$as_myself"; then
122 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123 { (exit 1); exit 1; }; }
124 fi
125 case $CONFIG_SHELL in
126 '')
127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
129 do
130 IFS=$as_save_IFS
131 test -z "$as_dir" && as_dir=.
132 for as_base in sh bash ksh sh5; do
133 case $as_dir in
134 /*)
135 if ("$as_dir/$as_base" -c '
136 as_lineno_1=$LINENO
137 as_lineno_2=$LINENO
138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139 test "x$as_lineno_1" != "x$as_lineno_2" &&
140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
141 CONFIG_SHELL=$as_dir/$as_base
142 export CONFIG_SHELL
143 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
144 fi;;
145 esac
146 done
147 done
148 ;;
149 esac
150
151 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
152 # uniformly replaced by the line number. The first 'sed' inserts a
153 # line-number line before each line; the second 'sed' does the real
154 # work. The second script uses 'N' to pair each line-number line
155 # with the numbered line, and appends trailing '-' during
156 # substitution so that $LINENO is not a special case at line end.
157 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
158 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
159 sed '=' <$as_myself |
160 sed '
161 N
162 s,$,-,
163 : loop
164 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
165 t loop
166 s,-$,,
167 s,^['$as_cr_digits']*\n,,
168 ' >$as_me.lineno &&
169 chmod +x $as_me.lineno ||
170 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
171 { (exit 1); exit 1; }; }
172
173 # Don't try to exec as it changes $[0], causing all sort of problems
174 # (the dirname of $[0] is not the place where we might find the
175 # original and so on. Autoconf is especially sensible to this).
176 . ./$as_me.lineno
177 # Exit status is that of the last command.
178 exit
179 }
180
181
182 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183 *c*,-n*) ECHO_N= ECHO_C='
184 ' ECHO_T=' ' ;;
185 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
187 esac
33 188
34 if expr a : '\(a\)' >/dev/null 2>&1; then 189 if expr a : '\(a\)' >/dev/null 2>&1; then
35 as_expr=expr 190 as_expr=expr
36 else 191 else
37 as_expr=false 192 as_expr=false
55 fi 210 fi
56 rm -f conf$$ conf$$.exe conf$$.file 211 rm -f conf$$ conf$$.exe conf$$.file
57 212
58 as_executable_p="test -f" 213 as_executable_p="test -f"
59 214
60 # Support unset when possible. 215 # Sed expression to map a string onto a valid CPP name.
61 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 216 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
62 as_unset=unset 217
63 else 218 # Sed expression to map a string onto a valid variable name.
64 as_unset=false 219 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
65 fi 220
66
67 # NLS nuisances.
68 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
69 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
70 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
71 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
72 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
73 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
74 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
75 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
76 221
77 # IFS 222 # IFS
78 # We need space, tab and new line, in precisely that order. 223 # We need space, tab and new line, in precisely that order.
79 as_nl=' 224 as_nl='
80 ' 225 '
81 IFS=" $as_nl" 226 IFS=" $as_nl"
82 227
83 # CDPATH. 228 # CDPATH.
84 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } 229 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
230
85 231
86 # Name of the host. 232 # Name of the host.
87 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 233 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
88 # so uname gets run too. 234 # so uname gets run too.
89 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 235 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
94 # Initializations. 240 # Initializations.
95 # 241 #
96 ac_default_prefix=/usr/local 242 ac_default_prefix=/usr/local
97 cross_compiling=no 243 cross_compiling=no
98 subdirs= 244 subdirs=
99 MFLAGS= MAKEFLAGS= 245 MFLAGS=
246 MAKEFLAGS=
100 SHELL=${CONFIG_SHELL-/bin/sh} 247 SHELL=${CONFIG_SHELL-/bin/sh}
101 248
102 # Maximum number of lines to put in a shell here document. 249 # Maximum number of lines to put in a shell here document.
103 # This variable seems obsolete. It should probably be removed, and 250 # This variable seems obsolete. It should probably be removed, and
104 # only ac_max_sed_lines should be used. 251 # only ac_max_sed_lines should be used.
105 : ${ac_max_here_lines=38} 252 : ${ac_max_here_lines=38}
253
254 # Identity of this package.
255 PACKAGE_NAME=
256 PACKAGE_TARNAME=
257 PACKAGE_VERSION=
258 PACKAGE_STRING=
259 PACKAGE_BUGREPORT=
106 260
107 ac_unique_file="src/lisp.h" 261 ac_unique_file="src/lisp.h"
108 # Factoring default headers for most tests. 262 # Factoring default headers for most tests.
109 ac_includes_default="\ 263 ac_includes_default="\
110 #include <stdio.h> 264 #include <stdio.h>
139 # endif 293 # endif
140 #endif 294 #endif
141 #if HAVE_UNISTD_H 295 #if HAVE_UNISTD_H
142 # include <unistd.h> 296 # include <unistd.h>
143 #endif" 297 #endif"
298
144 299
145 # Initialize some variables set by options. 300 # Initialize some variables set by options.
146 ac_init_help= 301 ac_init_help=
147 ac_init_version=false 302 ac_init_version=false
148 # The variables have the same names as the options, with 303 # The variables have the same names as the options, with
178 includedir='${prefix}/include' 333 includedir='${prefix}/include'
179 oldincludedir='/usr/include' 334 oldincludedir='/usr/include'
180 infodir='${prefix}/info' 335 infodir='${prefix}/info'
181 mandir='${prefix}/man' 336 mandir='${prefix}/man'
182 337
183 # Identity of this package.
184 PACKAGE_NAME=
185 PACKAGE_TARNAME=
186 PACKAGE_VERSION=
187 PACKAGE_STRING=
188 PACKAGE_BUGREPORT=
189
190 ac_prev= 338 ac_prev=
191 for ac_option 339 for ac_option
192 do 340 do
193 # If the previous option needs an argument, assign it. 341 # If the previous option needs an argument, assign it.
194 if test -n "$ac_prev"; then 342 if test -n "$ac_prev"; then
317 -nfp | --nfp | --nf) 465 -nfp | --nfp | --nf)
318 # Obsolete; use --without-fp. 466 # Obsolete; use --without-fp.
319 with_fp=no ;; 467 with_fp=no ;;
320 468
321 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 469 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
322 | --no-cr | --no-c) 470 | --no-cr | --no-c | -n)
323 no_create=yes ;; 471 no_create=yes ;;
324 472
325 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 473 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
326 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 474 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
327 no_recursion=yes ;; 475 no_recursion=yes ;;
496 for ac_var in exec_prefix prefix 644 for ac_var in exec_prefix prefix
497 do 645 do
498 eval ac_val=$`echo $ac_var` 646 eval ac_val=$`echo $ac_var`
499 case $ac_val in 647 case $ac_val in
500 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 648 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
501 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 649 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
502 { (exit 1); exit 1; }; };; 650 { (exit 1); exit 1; }; };;
503 esac 651 esac
504 done 652 done
505 653
506 # Be sure to have absolute paths. 654 # Be sure to have absolute paths.
508 localstatedir libdir includedir oldincludedir infodir mandir 656 localstatedir libdir includedir oldincludedir infodir mandir
509 do 657 do
510 eval ac_val=$`echo $ac_var` 658 eval ac_val=$`echo $ac_var`
511 case $ac_val in 659 case $ac_val in
512 [\\/$]* | ?:[\\/]* ) ;; 660 [\\/$]* | ?:[\\/]* ) ;;
513 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 661 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
514 { (exit 1); exit 1; }; };; 662 { (exit 1); exit 1; }; };;
515 esac 663 esac
516 done 664 done
517 665
518 # There might be people who depend on the old broken behavior: `$host' 666 # There might be people who depend on the old broken behavior: `$host'
519 # used to hold the argument of --host etc. 667 # used to hold the argument of --host etc.
668 # FIXME: To remove some day.
520 build=$build_alias 669 build=$build_alias
521 host=$host_alias 670 host=$host_alias
522 target=$target_alias 671 target=$target_alias
523 672
524 # FIXME: should be removed in autoconf 3.0. 673 # FIXME: To remove some day.
525 if test "x$host_alias" != x; then 674 if test "x$host_alias" != x; then
526 if test "x$build_alias" = x; then 675 if test "x$build_alias" = x; then
527 cross_compiling=maybe 676 cross_compiling=maybe
528 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 677 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
529 If a cross compiler is detected then cross compile mode will be used." >&2 678 If a cross compiler is detected then cross compile mode will be used." >&2
535 ac_tool_prefix= 684 ac_tool_prefix=
536 test -n "$host_alias" && ac_tool_prefix=$host_alias- 685 test -n "$host_alias" && ac_tool_prefix=$host_alias-
537 686
538 test "$silent" = yes && exec 6>/dev/null 687 test "$silent" = yes && exec 6>/dev/null
539 688
689
540 # Find the source files, if location was not specified. 690 # Find the source files, if location was not specified.
541 if test -z "$srcdir"; then 691 if test -z "$srcdir"; then
542 ac_srcdir_defaulted=yes 692 ac_srcdir_defaulted=yes
543 # Try the directory containing this script, then its parent. 693 # Try the directory containing this script, then its parent.
544 ac_prog=$0 694 ac_confdir=`(dirname "$0") 2>/dev/null ||
545 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'` 695 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
546 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 696 X"$0" : 'X\(//\)[^/]' \| \
697 X"$0" : 'X\(//\)$' \| \
698 X"$0" : 'X\(/\)' \| \
699 . : '\(.\)' 2>/dev/null ||
700 echo X"$0" |
701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
703 /^X\(\/\/\)$/{ s//\1/; q; }
704 /^X\(\/\).*/{ s//\1/; q; }
705 s/.*/./; q'`
547 srcdir=$ac_confdir 706 srcdir=$ac_confdir
548 if test ! -r $srcdir/$ac_unique_file; then 707 if test ! -r $srcdir/$ac_unique_file; then
549 srcdir=.. 708 srcdir=..
550 fi 709 fi
551 else 710 else
552 ac_srcdir_defaulted=no 711 ac_srcdir_defaulted=no
553 fi 712 fi
554 if test ! -r $srcdir/$ac_unique_file; then 713 if test ! -r $srcdir/$ac_unique_file; then
555 if test "$ac_srcdir_defaulted" = yes; then 714 if test "$ac_srcdir_defaulted" = yes; then
556 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2 715 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
557 { (exit 1); exit 1; }; } 716 { (exit 1); exit 1; }; }
558 else 717 else
559 { echo "$as_me: error: cannot find sources in $srcdir" >&2 718 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
560 { (exit 1); exit 1; }; } 719 { (exit 1); exit 1; }; }
561 fi 720 fi
562 fi 721 fi
563 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 722 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
564 ac_env_build_alias_set=${build_alias+set} 723 ac_env_build_alias_set=${build_alias+set}
598 # Report the --help message. 757 # Report the --help message.
599 # 758 #
600 if test "$ac_init_help" = "long"; then 759 if test "$ac_init_help" = "long"; then
601 # Omit some internal or obsolete options to make the list less imposing. 760 # Omit some internal or obsolete options to make the list less imposing.
602 # This message is too long to be a string in the A/UX 3.1 sh. 761 # This message is too long to be a string in the A/UX 3.1 sh.
603 cat <<EOF 762 cat <<_ACEOF
604 \`configure' configures this package to adapt to many kinds of systems. 763 \`configure' configures this package to adapt to many kinds of systems.
605 764
606 Usage: $0 [OPTION]... [VAR=VALUE]... 765 Usage: $0 [OPTION]... [VAR=VALUE]...
607 766
608 To assign environment variables (e.g., CC, CFLAGS...), specify them as 767 To assign environment variables (e.g., CC, CFLAGS...), specify them as
619 --cache-file=FILE cache test results in FILE [disabled] 778 --cache-file=FILE cache test results in FILE [disabled]
620 -C, --config-cache alias for \`--cache-file=config.cache' 779 -C, --config-cache alias for \`--cache-file=config.cache'
621 -n, --no-create do not create output files 780 -n, --no-create do not create output files
622 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 781 --srcdir=DIR find the sources in DIR [configure dir or \`..']
623 782
624 EOF 783 _ACEOF
625 784
626 cat <<EOF 785 cat <<_ACEOF
627 Installation directories: 786 Installation directories:
628 --prefix=PREFIX install architecture-independent files in PREFIX 787 --prefix=PREFIX install architecture-independent files in PREFIX
629 [$ac_default_prefix] 788 [$ac_default_prefix]
630 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 789 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
631 [PREFIX] 790 [PREFIX]
648 --libdir=DIR object code libraries [EPREFIX/lib] 807 --libdir=DIR object code libraries [EPREFIX/lib]
649 --includedir=DIR C header files [PREFIX/include] 808 --includedir=DIR C header files [PREFIX/include]
650 --oldincludedir=DIR C header files for non-gcc [/usr/include] 809 --oldincludedir=DIR C header files for non-gcc [/usr/include]
651 --infodir=DIR info documentation [PREFIX/info] 810 --infodir=DIR info documentation [PREFIX/info]
652 --mandir=DIR man documentation [PREFIX/man] 811 --mandir=DIR man documentation [PREFIX/man]
653 EOF 812 _ACEOF
654 813
655 cat <<\EOF 814 cat <<\_ACEOF
656 815
657 Program names: 816 Program names:
658 --program-prefix=PREFIX prepend PREFIX to installed program names 817 --program-prefix=PREFIX prepend PREFIX to installed program names
659 --program-suffix=SUFFIX append SUFFIX to installed program names 818 --program-suffix=SUFFIX append SUFFIX to installed program names
660 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 819 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
663 --x-includes=DIR X include files are in DIR 822 --x-includes=DIR X include files are in DIR
664 --x-libraries=DIR X library files are in DIR 823 --x-libraries=DIR X library files are in DIR
665 824
666 System types: 825 System types:
667 --build=BUILD configure for building on BUILD [guessed] 826 --build=BUILD configure for building on BUILD [guessed]
668 --host=HOST build programs to run on HOST [BUILD] 827 --host=HOST cross-compile to build programs to run on HOST [BUILD]
669 EOF 828 _ACEOF
670 fi 829 fi
671 830
672 if test -n "$ac_init_help"; then 831 if test -n "$ac_init_help"; then
673 832
674 cat <<\EOF 833 cat <<\_ACEOF
675 834
676 Optional Features: 835 Optional Features:
677 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 836 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
678 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 837 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
679 --disable-largefile omit support for large files 838 --disable-largefile omit support for large files
680 839
681 Optional Packages: 840 Optional Packages:
682 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 841 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
683 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 842 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
843 --with-game-dir use a shared game directory if possible
844 --with-game-user use specified user for game directory
684 --without-gcc don't use GCC to compile Emacs if GCC is found 845 --without-gcc don't use GCC to compile Emacs if GCC is found
685 --without-pop don't support POP mail retrieval with movemail 846 --without-pop don't support POP mail retrieval with movemail
686 --with-kerberos support Kerberos-authenticated POP 847 --with-kerberos support Kerberos-authenticated POP
687 --with-kerberos5 support Kerberos version 5 authenticated POP 848 --with-kerberos5 support Kerberos version 5 authenticated POP
688 --with-hesiod support Hesiod to get the POP server host 849 --with-hesiod support Hesiod to get the POP server host
708 CPP C preprocessor 869 CPP C preprocessor
709 870
710 Use these variables to override the choices made by `configure' or to help 871 Use these variables to override the choices made by `configure' or to help
711 it to find libraries and programs with nonstandard names/locations. 872 it to find libraries and programs with nonstandard names/locations.
712 873
713 EOF 874 _ACEOF
714 fi 875 fi
715 876
716 if test "$ac_init_help" = "recursive"; then 877 if test "$ac_init_help" = "recursive"; then
717 # If there are subdirs, report their specific --help. 878 # If there are subdirs, report their specific --help.
718 ac_popdir=`pwd` 879 ac_popdir=`pwd`
719 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue 880 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
720 cd $ac_subdir 881 test -d $ac_dir || continue
721 # A "../" for each directory in /$ac_subdir. 882 ac_builddir=.
722 ac_dots=`echo $ac_subdir | 883
723 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` 884 if test "$ac_dir" != .; then
724 885 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
725 case $srcdir in 886 # A "../" for each directory in $ac_dir_suffix.
726 .) # No --srcdir option. We are building in place. 887 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
727 ac_sub_srcdir=$srcdir ;; 888 else
728 [\\/]* | ?:[\\/]* ) # Absolute path. 889 ac_dir_suffix= ac_top_builddir=
729 ac_sub_srcdir=$srcdir/$ac_subdir ;; 890 fi
730 *) # Relative path. 891
731 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; 892 case $srcdir in
732 esac 893 .) # No --srcdir option. We are building in place.
733 894 ac_srcdir=.
895 if test -z "$ac_top_builddir"; then
896 ac_top_srcdir=.
897 else
898 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
899 fi ;;
900 [\\/]* | ?:[\\/]* ) # Absolute path.
901 ac_srcdir=$srcdir$ac_dir_suffix;
902 ac_top_srcdir=$srcdir ;;
903 *) # Relative path.
904 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
905 ac_top_srcdir=$ac_top_builddir$srcdir ;;
906 esac
907 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
908 # absolute.
909 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
910 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
911 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
912 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
913
914 cd $ac_dir
734 # Check for guested configure; otherwise get Cygnus style configure. 915 # Check for guested configure; otherwise get Cygnus style configure.
735 if test -f $ac_sub_srcdir/configure.gnu; then 916 if test -f $ac_srcdir/configure.gnu; then
736 echo 917 echo
737 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive 918 $SHELL $ac_srcdir/configure.gnu --help=recursive
738 elif test -f $ac_sub_srcdir/configure; then 919 elif test -f $ac_srcdir/configure; then
739 echo 920 echo
740 $SHELL $ac_sub_srcdir/configure --help=recursive 921 $SHELL $ac_srcdir/configure --help=recursive
741 elif test -f $ac_sub_srcdir/configure.ac || 922 elif test -f $ac_srcdir/configure.ac ||
742 test -f $ac_sub_srcdir/configure.in; then 923 test -f $ac_srcdir/configure.in; then
743 echo 924 echo
744 $ac_configure --help 925 $ac_configure --help
745 else 926 else
746 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2 927 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
747 fi 928 fi
748 cd $ac_popdir 929 cd $ac_popdir
749 done 930 done
750 fi 931 fi
751 932
752 test -n "$ac_init_help" && exit 0 933 test -n "$ac_init_help" && exit 0
753 if $ac_init_version; then 934 if $ac_init_version; then
754 cat <<\EOF 935 cat <<\_ACEOF
755 936
756 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 937 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
757 Free Software Foundation, Inc. 938 Free Software Foundation, Inc.
758 This configure script is free software; the Free Software Foundation 939 This configure script is free software; the Free Software Foundation
759 gives unlimited permission to copy, distribute and modify it. 940 gives unlimited permission to copy, distribute and modify it.
760 EOF 941 _ACEOF
761 exit 0 942 exit 0
762 fi 943 fi
763 exec 5>config.log 944 exec 5>config.log
764 cat >&5 <<EOF 945 cat >&5 <<_ACEOF
765 This file contains any messages produced by compilers while 946 This file contains any messages produced by compilers while
766 running configure, to aid debugging if configure makes a mistake. 947 running configure, to aid debugging if configure makes a mistake.
767 948
768 It was created by $as_me, which was 949 It was created by $as_me, which was
769 generated by GNU Autoconf 2.52. Invocation command line was 950 generated by GNU Autoconf 2.53. Invocation command line was
770 951
771 $ $0 $@ 952 $ $0 $@
772 953
773 EOF 954 _ACEOF
774 { 955 {
775 cat <<_ASUNAME 956 cat <<_ASUNAME
776 ## ---------- ## 957 ## --------- ##
777 ## Platform. ## 958 ## Platform. ##
778 ## ---------- ## 959 ## --------- ##
779 960
780 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 961 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
781 uname -m = `(uname -m) 2>/dev/null || echo unknown` 962 uname -m = `(uname -m) 2>/dev/null || echo unknown`
782 uname -r = `(uname -r) 2>/dev/null || echo unknown` 963 uname -r = `(uname -r) 2>/dev/null || echo unknown`
783 uname -s = `(uname -s) 2>/dev/null || echo unknown` 964 uname -s = `(uname -s) 2>/dev/null || echo unknown`
792 hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 973 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
793 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 974 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
794 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 975 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
795 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 976 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
796 977
797 PATH = $PATH
798
799 _ASUNAME 978 _ASUNAME
979
980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
981 for as_dir in $PATH
982 do
983 IFS=$as_save_IFS
984 test -z "$as_dir" && as_dir=.
985 echo "PATH: $as_dir"
986 done
987
800 } >&5 988 } >&5
801 989
802 cat >&5 <<EOF 990 cat >&5 <<_ACEOF
803 ## ------------ ## 991
804 ## Core tests. ## 992
805 ## ------------ ## 993 ## ----------- ##
806 994 ## Core tests. ##
807 EOF 995 ## ----------- ##
996
997 _ACEOF
998
808 999
809 # Keep a trace of the command line. 1000 # Keep a trace of the command line.
810 # Strip out --no-create and --no-recursion so they do not pile up. 1001 # Strip out --no-create and --no-recursion so they do not pile up.
811 # Also quote any args containing shell meta-characters. 1002 # Also quote any args containing shell meta-characters.
812 ac_configure_args= 1003 ac_configure_args=
813 ac_sep= 1004 ac_sep=
814 for ac_arg 1005 for ac_arg
815 do 1006 do
816 case $ac_arg in 1007 case $ac_arg in
817 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1008 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
818 | --no-cr | --no-c) ;; 1009 | --no-cr | --no-c | -n ) continue ;;
819 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1010 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
820 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 1011 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1012 continue ;;
821 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1013 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
822 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` 1014 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
823 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1015 esac
824 ac_sep=" " ;; 1016 case " $ac_configure_args " in
825 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" 1017 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
826 ac_sep=" " ;; 1018 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1019 ac_sep=" " ;;
827 esac 1020 esac
828 # Get rid of the leading space. 1021 # Get rid of the leading space.
829 done 1022 done
830 1023
831 # When interrupted or exit'd, cleanup temporary files, and complete 1024 # When interrupted or exit'd, cleanup temporary files, and complete
832 # config.log. We remove comments because anyway the quotes in there 1025 # config.log. We remove comments because anyway the quotes in there
833 # would cause problems or look ugly. 1026 # would cause problems or look ugly.
1027 # WARNING: Be sure not to use single quotes in there, as some shells,
1028 # such as our DU 5.0 friend, will then `close' the trap.
834 trap 'exit_status=$? 1029 trap 'exit_status=$?
835 # Save into config.log some information that might help in debugging. 1030 # Save into config.log some information that might help in debugging.
836 echo >&5 1031 {
837 echo "## ----------------- ##" >&5 1032 echo
838 echo "## Cache variables. ##" >&5 1033 cat <<\_ASBOX
839 echo "## ----------------- ##" >&5 1034 ## ---------------- ##
840 echo >&5 1035 ## Cache variables. ##
841 # The following way of writing the cache mishandles newlines in values, 1036 ## ---------------- ##
1037 _ASBOX
1038 echo
1039 # The following way of writing the cache mishandles newlines in values,
842 { 1040 {
843 (set) 2>&1 | 1041 (set) 2>&1 |
844 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1042 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
845 *ac_space=\ *) 1043 *ac_space=\ *)
846 sed -n \ 1044 sed -n \
850 *) 1048 *)
851 sed -n \ 1049 sed -n \
852 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1050 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
853 ;; 1051 ;;
854 esac; 1052 esac;
855 } >&5 1053 }
856 sed "/^$/d" confdefs.h >conftest.log 1054 echo
857 if test -s conftest.log; then 1055 if test -s confdefs.h; then
858 echo >&5 1056 cat <<\_ASBOX
859 echo "## ------------ ##" >&5 1057 ## ----------- ##
860 echo "## confdefs.h. ##" >&5 1058 ## confdefs.h. ##
861 echo "## ------------ ##" >&5 1059 ## ----------- ##
862 echo >&5 1060 _ASBOX
863 cat conftest.log >&5 1061 echo
864 fi 1062 sed "/^$/d" confdefs.h
865 (echo; echo) >&5 1063 echo
866 test "$ac_signal" != 0 && 1064 fi
867 echo "$as_me: caught signal $ac_signal" >&5 1065 test "$ac_signal" != 0 &&
868 echo "$as_me: exit $exit_status" >&5 1066 echo "$as_me: caught signal $ac_signal"
869 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && 1067 echo "$as_me: exit $exit_status"
1068 } >&5
1069 rm -f core core.* *.core &&
1070 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
870 exit $exit_status 1071 exit $exit_status
871 ' 0 1072 ' 0
872 for ac_signal in 1 2 13 15; do 1073 for ac_signal in 1 2 13 15; do
873 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1074 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
874 done 1075 done
876 1077
877 # confdefs.h avoids OS command line length limits that DEFS can exceed. 1078 # confdefs.h avoids OS command line length limits that DEFS can exceed.
878 rm -rf conftest* confdefs.h 1079 rm -rf conftest* confdefs.h
879 # AIX cpp loses on an empty file, so make sure it contains at least a newline. 1080 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
880 echo >confdefs.h 1081 echo >confdefs.h
1082
1083 # Predefined preprocessor variables.
1084
1085 cat >>confdefs.h <<_ACEOF
1086 #define PACKAGE_NAME "$PACKAGE_NAME"
1087 _ACEOF
1088
1089
1090 cat >>confdefs.h <<_ACEOF
1091 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1092 _ACEOF
1093
1094
1095 cat >>confdefs.h <<_ACEOF
1096 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1097 _ACEOF
1098
1099
1100 cat >>confdefs.h <<_ACEOF
1101 #define PACKAGE_STRING "$PACKAGE_STRING"
1102 _ACEOF
1103
1104
1105 cat >>confdefs.h <<_ACEOF
1106 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1107 _ACEOF
1108
881 1109
882 # Let the site file select an alternate cache file if it wants to. 1110 # Let the site file select an alternate cache file if it wants to.
883 # Prefer explicitly selected file to automatically selected ones. 1111 # Prefer explicitly selected file to automatically selected ones.
884 if test -z "$CONFIG_SITE"; then 1112 if test -z "$CONFIG_SITE"; then
885 if test "x$prefix" != xNONE; then 1113 if test "x$prefix" != xNONE; then
888 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1116 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
889 fi 1117 fi
890 fi 1118 fi
891 for ac_site_file in $CONFIG_SITE; do 1119 for ac_site_file in $CONFIG_SITE; do
892 if test -r "$ac_site_file"; then 1120 if test -r "$ac_site_file"; then
893 { echo "$as_me:893: loading site script $ac_site_file" >&5 1121 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
894 echo "$as_me: loading site script $ac_site_file" >&6;} 1122 echo "$as_me: loading site script $ac_site_file" >&6;}
895 cat "$ac_site_file" >&5 1123 sed 's/^/| /' "$ac_site_file" >&5
896 . "$ac_site_file" 1124 . "$ac_site_file"
897 fi 1125 fi
898 done 1126 done
899 1127
900 if test -r "$cache_file"; then 1128 if test -r "$cache_file"; then
901 # Some versions of bash will fail to source /dev/null (special 1129 # Some versions of bash will fail to source /dev/null (special
902 # files actually), so we avoid doing that. 1130 # files actually), so we avoid doing that.
903 if test -f "$cache_file"; then 1131 if test -f "$cache_file"; then
904 { echo "$as_me:904: loading cache $cache_file" >&5 1132 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
905 echo "$as_me: loading cache $cache_file" >&6;} 1133 echo "$as_me: loading cache $cache_file" >&6;}
906 case $cache_file in 1134 case $cache_file in
907 [\\/]* | ?:[\\/]* ) . $cache_file;; 1135 [\\/]* | ?:[\\/]* ) . $cache_file;;
908 *) . ./$cache_file;; 1136 *) . ./$cache_file;;
909 esac 1137 esac
910 fi 1138 fi
911 else 1139 else
912 { echo "$as_me:912: creating cache $cache_file" >&5 1140 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
913 echo "$as_me: creating cache $cache_file" >&6;} 1141 echo "$as_me: creating cache $cache_file" >&6;}
914 >$cache_file 1142 >$cache_file
915 fi 1143 fi
916 1144
917 # Check that the precious variables saved in the cache have kept the same 1145 # Check that the precious variables saved in the cache have kept the same
923 eval ac_new_set=\$ac_env_${ac_var}_set 1151 eval ac_new_set=\$ac_env_${ac_var}_set
924 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1152 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
925 eval ac_new_val="\$ac_env_${ac_var}_value" 1153 eval ac_new_val="\$ac_env_${ac_var}_value"
926 case $ac_old_set,$ac_new_set in 1154 case $ac_old_set,$ac_new_set in
927 set,) 1155 set,)
928 { echo "$as_me:928: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1156 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
929 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1157 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
930 ac_cache_corrupted=: ;; 1158 ac_cache_corrupted=: ;;
931 ,set) 1159 ,set)
932 { echo "$as_me:932: error: \`$ac_var' was not set in the previous run" >&5 1160 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
933 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1161 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
934 ac_cache_corrupted=: ;; 1162 ac_cache_corrupted=: ;;
935 ,);; 1163 ,);;
936 *) 1164 *)
937 if test "x$ac_old_val" != "x$ac_new_val"; then 1165 if test "x$ac_old_val" != "x$ac_new_val"; then
938 { echo "$as_me:938: error: \`$ac_var' has changed since the previous run:" >&5 1166 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
939 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1167 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
940 { echo "$as_me:940: former value: $ac_old_val" >&5 1168 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
941 echo "$as_me: former value: $ac_old_val" >&2;} 1169 echo "$as_me: former value: $ac_old_val" >&2;}
942 { echo "$as_me:942: current value: $ac_new_val" >&5 1170 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
943 echo "$as_me: current value: $ac_new_val" >&2;} 1171 echo "$as_me: current value: $ac_new_val" >&2;}
944 ac_cache_corrupted=: 1172 ac_cache_corrupted=:
945 fi;; 1173 fi;;
946 esac 1174 esac
947 # Pass precious variables to config.status. It doesn't matter if 1175 # Pass precious variables to config.status.
948 # we pass some twice (in addition to the command line arguments).
949 if test "$ac_new_set" = set; then 1176 if test "$ac_new_set" = set; then
950 case $ac_new_val in 1177 case $ac_new_val in
951 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1178 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
952 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` 1179 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
953 ac_configure_args="$ac_configure_args '$ac_arg'" 1180 *) ac_arg=$ac_var=$ac_new_val ;;
954 ;; 1181 esac
955 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val" 1182 case " $ac_configure_args " in
956 ;; 1183 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1184 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
957 esac 1185 esac
958 fi 1186 fi
959 done 1187 done
960 if $ac_cache_corrupted; then 1188 if $ac_cache_corrupted; then
961 { echo "$as_me:961: error: changes in the environment can compromise the build" >&5 1189 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
962 echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1190 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
963 { { echo "$as_me:963: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1191 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
964 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1192 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
965 { (exit 1); exit 1; }; } 1193 { (exit 1); exit 1; }; }
966 fi 1194 fi
967 1195
968 ac_ext=c 1196 ac_ext=c
969 ac_cpp='$CPP $CPPFLAGS' 1197 ac_cpp='$CPP $CPPFLAGS'
970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
972 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
973 1201
974 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 1202
975 *c*,-n*) ECHO_N= ECHO_C=' 1203
976 ' ECHO_T=' ' ;; 1204
977 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 1205
978 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 1206
979 esac 1207
980 echo "#! $SHELL" >conftest.sh 1208
981 echo "exit 0" >>conftest.sh 1209
982 chmod +x conftest.sh 1210
983 if { (echo "$as_me:983: PATH=\".;.\"; conftest.sh") >&5 1211
984 (PATH=".;."; conftest.sh) 2>&5 1212
985 ac_status=$? 1213
986 echo "$as_me:986: \$? = $ac_status" >&5 1214
987 (exit $ac_status); }; then 1215
988 ac_path_separator=';' 1216
989 else 1217
990 ac_path_separator=:
991 fi
992 PATH_SEPARATOR="$ac_path_separator"
993 rm -f conftest.sh
994 1218
995 ac_config_headers="$ac_config_headers src/config.h:src/config.in" 1219 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1220
996 1221
997 test "$program_prefix" != NONE && 1222 test "$program_prefix" != NONE &&
998 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1223 program_transform_name="s,^,$program_prefix,;$program_transform_name"
999 # Use a double $ so make ignores it. 1224 # Use a double $ so make ignores it.
1000 test "$program_suffix" != NONE && 1225 test "$program_suffix" != NONE &&
1005 s/[\\$]/&&/g;s/;s,x,x,$// 1230 s/[\\$]/&&/g;s/;s,x,x,$//
1006 _ACEOF 1231 _ACEOF
1007 program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1232 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1008 rm conftest.sed 1233 rm conftest.sed
1009 1234
1235
1010 lispdir='${datadir}/emacs/${version}/lisp' 1236 lispdir='${datadir}/emacs/${version}/lisp'
1011 locallisppath='${datadir}/emacs/${version}/site-lisp:'\ 1237 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1012 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim' 1238 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1013 lisppath='${locallisppath}:${lispdir}' 1239 lisppath='${locallisppath}:${lispdir}'
1014 etcdir='${datadir}/emacs/${version}/etc' 1240 etcdir='${datadir}/emacs/${version}/etc'
1015 archlibdir='${libexecdir}/emacs/${version}/${configuration}' 1241 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1016 docdir='${datadir}/emacs/${version}/etc' 1242 docdir='${datadir}/emacs/${version}/etc'
1243 gamedir=yes
1244
1245
1246 # Check whether --with-game-dir or --without-game-dir was given.
1247 if test "${with_game_dir+set}" = set; then
1248 withval="$with_game_dir"
1249 if test "$withval" = yes; then
1250 gamedir="${localstatedir}/games/emacs"
1251 else
1252 if test "$withval" = no; then
1253 gamedir=no
1254 else
1255 gamedir="$withval"
1256 fi
1257 fi
1258
1259 fi;
1260
1261 gameuser=games
1262
1263 # Check whether --with-game-user or --without-game-user was given.
1264 if test "${with_game_user+set}" = set; then
1265 withval="$with_game_user"
1266 gameuser="$withval"
1267 fi;
1268
1017 1269
1018 # Check whether --with-gcc or --without-gcc was given. 1270 # Check whether --with-gcc or --without-gcc was given.
1019 if test "${with_gcc+set}" = set; then 1271 if test "${with_gcc+set}" = set; then
1020 withval="$with_gcc" 1272 withval="$with_gcc"
1021 1273
1023 1275
1024 # Check whether --with-pop or --without-pop was given. 1276 # Check whether --with-pop or --without-pop was given.
1025 if test "${with_pop+set}" = set; then 1277 if test "${with_pop+set}" = set; then
1026 withval="$with_pop" 1278 withval="$with_pop"
1027 if test "$withval" = yes; then 1279 if test "$withval" = yes; then
1028 cat >>confdefs.h <<\EOF 1280 cat >>confdefs.h <<\_ACEOF
1029 #define MAIL_USE_POP 1 1281 #define MAIL_USE_POP 1
1030 EOF 1282 _ACEOF
1031 1283
1032 else : 1284 else :
1033 fi 1285 fi
1034 else 1286 else
1035 cat >>confdefs.h <<\EOF 1287 cat >>confdefs.h <<\_ACEOF
1036 #define MAIL_USE_POP 1 1288 #define MAIL_USE_POP 1
1037 EOF 1289 _ACEOF
1038 1290
1039 fi; 1291 fi;
1040 1292
1041 # Check whether --with-kerberos or --without-kerberos was given. 1293 # Check whether --with-kerberos or --without-kerberos was given.
1042 if test "${with_kerberos+set}" = set; then 1294 if test "${with_kerberos+set}" = set; then
1043 withval="$with_kerberos" 1295 withval="$with_kerberos"
1044 cat >>confdefs.h <<\EOF 1296 cat >>confdefs.h <<\_ACEOF
1045 #define KERBEROS 1 1297 #define KERBEROS 1
1046 EOF 1298 _ACEOF
1047 1299
1048 fi; 1300 fi;
1049 1301
1050 # Check whether --with-kerberos5 or --without-kerberos5 was given. 1302 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1051 if test "${with_kerberos5+set}" = set; then 1303 if test "${with_kerberos5+set}" = set; then
1052 withval="$with_kerberos5" 1304 withval="$with_kerberos5"
1053 if test "${with_kerberos5+set}" = set; then 1305 if test "${with_kerberos5+set}" = set; then
1054 if test "${with_kerberos+set}" != set; then 1306 if test "${with_kerberos+set}" != set; then
1055 with_kerberos=yes 1307 with_kerberos=yes
1056 cat >>confdefs.h <<\EOF 1308 cat >>confdefs.h <<\_ACEOF
1057 #define KERBEROS 1 1309 #define KERBEROS 1
1058 EOF 1310 _ACEOF
1059 1311
1060 fi 1312 fi
1061 fi 1313 fi
1062 cat >>confdefs.h <<\EOF 1314 cat >>confdefs.h <<\_ACEOF
1063 #define KERBEROS5 1 1315 #define KERBEROS5 1
1064 EOF 1316 _ACEOF
1065 1317
1066 fi; 1318 fi;
1067 1319
1068 # Check whether --with-hesiod or --without-hesiod was given. 1320 # Check whether --with-hesiod or --without-hesiod was given.
1069 if test "${with_hesiod+set}" = set; then 1321 if test "${with_hesiod+set}" = set; then
1070 withval="$with_hesiod" 1322 withval="$with_hesiod"
1071 cat >>confdefs.h <<\EOF 1323 cat >>confdefs.h <<\_ACEOF
1072 #define HESIOD 1 1324 #define HESIOD 1
1073 EOF 1325 _ACEOF
1074 1326
1075 fi; 1327 fi;
1328
1076 1329
1077 # Check whether --with-sound or --without-sound was given. 1330 # Check whether --with-sound or --without-sound was given.
1078 if test "${with_sound+set}" = set; then 1331 if test "${with_sound+set}" = set; then
1079 withval="$with_sound" 1332 withval="$with_sound"
1080 1333
1081 fi; 1334 fi;
1335
1082 1336
1083 # Check whether --with-x-toolkit or --without-x-toolkit was given. 1337 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1084 if test "${with_x_toolkit+set}" = set; then 1338 if test "${with_x_toolkit+set}" = set; then
1085 withval="$with_x_toolkit" 1339 withval="$with_x_toolkit"
1086 case "${withval}" in 1340 case "${withval}" in
1088 n | no ) val=no ;; 1342 n | no ) val=no ;;
1089 l | lu | luc | luci | lucid ) val=lucid ;; 1343 l | lu | luc | luci | lucid ) val=lucid ;;
1090 a | at | ath | athe | athen | athena ) val=athena ;; 1344 a | at | ath | athe | athen | athena ) val=athena ;;
1091 m | mo | mot | moti | motif ) val=motif ;; 1345 m | mo | mot | moti | motif ) val=motif ;;
1092 * ) 1346 * )
1093 { { echo "$as_me:1093: error: \`--with-x-toolkit=$withval' is invalid\; 1347 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1094 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'. 1348 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
1095 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5 1349 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1096 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\; 1350 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1097 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'. 1351 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
1098 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;} 1352 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1170 esac 1424 esac
1171 1425
1172 #### Check if the source directory already has a configured system in it. 1426 #### Check if the source directory already has a configured system in it.
1173 if test `pwd` != `(cd ${srcdir} && pwd)` \ 1427 if test `pwd` != `(cd ${srcdir} && pwd)` \
1174 && test -f "${srcdir}/src/config.h" ; then 1428 && test -f "${srcdir}/src/config.h" ; then
1175 { echo "$as_me:1175: WARNING: The directory tree \`${srcdir}' is being used 1429 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1176 as a build directory right now; it has been configured in its own 1430 as a build directory right now; it has been configured in its own
1177 right. To configure in another directory as well, you MUST 1431 right. To configure in another directory as well, you MUST
1178 use GNU make. If you do not have GNU make, then you must 1432 use GNU make. If you do not have GNU make, then you must
1179 now do \`make distclean' in ${srcdir}, 1433 now do \`make distclean' in ${srcdir},
1180 and then run $0 again." >&5 1434 and then run $0 again." >&5
1215 ac_install_sh="$ac_aux_dir/shtool install -c" 1469 ac_install_sh="$ac_aux_dir/shtool install -c"
1216 break 1470 break
1217 fi 1471 fi
1218 done 1472 done
1219 if test -z "$ac_aux_dir"; then 1473 if test -z "$ac_aux_dir"; then
1220 { { echo "$as_me:1220: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1474 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1221 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1475 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1222 { (exit 1); exit 1; }; } 1476 { (exit 1); exit 1; }; }
1223 fi 1477 fi
1224 ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1478 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1225 ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1479 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1226 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1480 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1227 1481
1228 # Make sure we can run config.sub. 1482 # Make sure we can run config.sub.
1229 $ac_config_sub sun4 >/dev/null 2>&1 || 1483 $ac_config_sub sun4 >/dev/null 2>&1 ||
1230 { { echo "$as_me:1230: error: cannot run $ac_config_sub" >&5 1484 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1231 echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1485 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1232 { (exit 1); exit 1; }; } 1486 { (exit 1); exit 1; }; }
1233 1487
1234 echo "$as_me:1234: checking build system type" >&5 1488 echo "$as_me:$LINENO: checking build system type" >&5
1235 echo $ECHO_N "checking build system type... $ECHO_C" >&6 1489 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1236 if test "${ac_cv_build+set}" = set; then 1490 if test "${ac_cv_build+set}" = set; then
1237 echo $ECHO_N "(cached) $ECHO_C" >&6 1491 echo $ECHO_N "(cached) $ECHO_C" >&6
1238 else 1492 else
1239 ac_cv_build_alias=$build_alias 1493 ac_cv_build_alias=$build_alias
1240 test -z "$ac_cv_build_alias" && 1494 test -z "$ac_cv_build_alias" &&
1241 ac_cv_build_alias=`$ac_config_guess` 1495 ac_cv_build_alias=`$ac_config_guess`
1242 test -z "$ac_cv_build_alias" && 1496 test -z "$ac_cv_build_alias" &&
1243 { { echo "$as_me:1243: error: cannot guess build type; you must specify one" >&5 1497 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1244 echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1498 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1245 { (exit 1); exit 1; }; } 1499 { (exit 1); exit 1; }; }
1246 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1500 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1247 { { echo "$as_me:1247: error: $ac_config_sub $ac_cv_build_alias failed." >&5 1501 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1248 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;} 1502 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1249 { (exit 1); exit 1; }; } 1503 { (exit 1); exit 1; }; }
1250 1504
1251 fi 1505 fi
1252 echo "$as_me:1252: result: $ac_cv_build" >&5 1506 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1253 echo "${ECHO_T}$ac_cv_build" >&6 1507 echo "${ECHO_T}$ac_cv_build" >&6
1254 build=$ac_cv_build 1508 build=$ac_cv_build
1255 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1509 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1256 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1510 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1257 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1511 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1258 1512
1259 test -z "$build_alias" && 1513
1260 build_alias=$ac_cv_build 1514 echo "$as_me:$LINENO: checking host system type" >&5
1261
1262 echo "$as_me:1262: checking host system type" >&5
1263 echo $ECHO_N "checking host system type... $ECHO_C" >&6 1515 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1264 if test "${ac_cv_host+set}" = set; then 1516 if test "${ac_cv_host+set}" = set; then
1265 echo $ECHO_N "(cached) $ECHO_C" >&6 1517 echo $ECHO_N "(cached) $ECHO_C" >&6
1266 else 1518 else
1267 ac_cv_host_alias=$host_alias 1519 ac_cv_host_alias=$host_alias
1268 test -z "$ac_cv_host_alias" && 1520 test -z "$ac_cv_host_alias" &&
1269 ac_cv_host_alias=$ac_cv_build_alias 1521 ac_cv_host_alias=$ac_cv_build_alias
1270 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 1522 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1271 { { echo "$as_me:1271: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1523 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1272 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1524 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1273 { (exit 1); exit 1; }; } 1525 { (exit 1); exit 1; }; }
1274 1526
1275 fi 1527 fi
1276 echo "$as_me:1276: result: $ac_cv_host" >&5 1528 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1277 echo "${ECHO_T}$ac_cv_host" >&6 1529 echo "${ECHO_T}$ac_cv_host" >&6
1278 host=$ac_cv_host 1530 host=$ac_cv_host
1279 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1531 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1280 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1532 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1281 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1533 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1282 1534
1283 test -z "$host_alias" &&
1284 host_alias=$ac_cv_host
1285 1535
1286 canonical=$host 1536 canonical=$host
1287 configuration=${host_alias-$host} 1537 configuration=${host_alias-$host}
1538
1288 1539
1289 ### If you add support for a new configuration, add code to this 1540 ### If you add support for a new configuration, add code to this
1290 ### switch statement to recognize your configuration name and select 1541 ### switch statement to recognize your configuration name and select
1291 ### the appropriate operating system and machine description files. 1542 ### the appropriate operating system and machine description files.
1292 1543
2243 unported=yes 2494 unported=yes
2244 ;; 2495 ;;
2245 esac 2496 esac
2246 fi 2497 fi
2247 2498
2499
2248 if test $unported = yes; then 2500 if test $unported = yes; then
2249 { { echo "$as_me:2249: error: Emacs hasn't been ported to \`${canonical}' systems. 2501 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2250 Check \`etc/MACHINES' for recognized configuration names." >&5 2502 Check \`etc/MACHINES' for recognized configuration names." >&5
2251 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems. 2503 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2252 Check \`etc/MACHINES' for recognized configuration names." >&2;} 2504 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2253 { (exit 1); exit 1; }; } 2505 { (exit 1); exit 1; }; }
2254 fi 2506 fi
2255 2507
2256 machfile="m/${machine}.h" 2508 machfile="m/${machine}.h"
2257 opsysfile="s/${opsys}.h" 2509 opsysfile="s/${opsys}.h"
2510
2258 2511
2259 #### Choose a compiler. 2512 #### Choose a compiler.
2260 test -n "$CC" && cc_specified=yes 2513 test -n "$CC" && cc_specified=yes
2261 2514
2262 # Save the value of CFLAGS that the user specified. 2515 # Save the value of CFLAGS that the user specified.
2273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2274 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2275 if test -n "$ac_tool_prefix"; then 2528 if test -n "$ac_tool_prefix"; then
2276 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2529 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2277 set dummy ${ac_tool_prefix}gcc; ac_word=$2 2530 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2278 echo "$as_me:2278: checking for $ac_word" >&5 2531 echo "$as_me:$LINENO: checking for $ac_word" >&5
2279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2280 if test "${ac_cv_prog_CC+set}" = set; then 2533 if test "${ac_cv_prog_CC+set}" = set; then
2281 echo $ECHO_N "(cached) $ECHO_C" >&6 2534 echo $ECHO_N "(cached) $ECHO_C" >&6
2282 else 2535 else
2283 if test -n "$CC"; then 2536 if test -n "$CC"; then
2284 ac_cv_prog_CC="$CC" # Let the user override the test. 2537 ac_cv_prog_CC="$CC" # Let the user override the test.
2285 else 2538 else
2286 ac_save_IFS=$IFS; IFS=$ac_path_separator 2539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2287 ac_dummy="$PATH" 2540 for as_dir in $PATH
2288 for ac_dir in $ac_dummy; do 2541 do
2289 IFS=$ac_save_IFS 2542 IFS=$as_save_IFS
2290 test -z "$ac_dir" && ac_dir=. 2543 test -z "$as_dir" && as_dir=.
2291 $as_executable_p "$ac_dir/$ac_word" || continue 2544 for ac_exec_ext in '' $ac_executable_extensions; do
2292 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2293 echo "$as_me:2293: found $ac_dir/$ac_word" >&5 2546 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2294 break 2547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2548 break 2
2549 fi
2550 done
2295 done 2551 done
2296 2552
2297 fi 2553 fi
2298 fi 2554 fi
2299 CC=$ac_cv_prog_CC 2555 CC=$ac_cv_prog_CC
2300 if test -n "$CC"; then 2556 if test -n "$CC"; then
2301 echo "$as_me:2301: result: $CC" >&5 2557 echo "$as_me:$LINENO: result: $CC" >&5
2302 echo "${ECHO_T}$CC" >&6 2558 echo "${ECHO_T}$CC" >&6
2303 else 2559 else
2304 echo "$as_me:2304: result: no" >&5 2560 echo "$as_me:$LINENO: result: no" >&5
2305 echo "${ECHO_T}no" >&6 2561 echo "${ECHO_T}no" >&6
2306 fi 2562 fi
2307 2563
2308 fi 2564 fi
2309 if test -z "$ac_cv_prog_CC"; then 2565 if test -z "$ac_cv_prog_CC"; then
2310 ac_ct_CC=$CC 2566 ac_ct_CC=$CC
2311 # Extract the first word of "gcc", so it can be a program name with args. 2567 # Extract the first word of "gcc", so it can be a program name with args.
2312 set dummy gcc; ac_word=$2 2568 set dummy gcc; ac_word=$2
2313 echo "$as_me:2313: checking for $ac_word" >&5 2569 echo "$as_me:$LINENO: checking for $ac_word" >&5
2314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2315 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2571 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2316 echo $ECHO_N "(cached) $ECHO_C" >&6 2572 echo $ECHO_N "(cached) $ECHO_C" >&6
2317 else 2573 else
2318 if test -n "$ac_ct_CC"; then 2574 if test -n "$ac_ct_CC"; then
2319 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2575 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2320 else 2576 else
2321 ac_save_IFS=$IFS; IFS=$ac_path_separator 2577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2322 ac_dummy="$PATH" 2578 for as_dir in $PATH
2323 for ac_dir in $ac_dummy; do 2579 do
2324 IFS=$ac_save_IFS 2580 IFS=$as_save_IFS
2325 test -z "$ac_dir" && ac_dir=. 2581 test -z "$as_dir" && as_dir=.
2326 $as_executable_p "$ac_dir/$ac_word" || continue 2582 for ac_exec_ext in '' $ac_executable_extensions; do
2327 ac_cv_prog_ac_ct_CC="gcc" 2583 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2328 echo "$as_me:2328: found $ac_dir/$ac_word" >&5 2584 ac_cv_prog_ac_ct_CC="gcc"
2329 break 2585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2586 break 2
2587 fi
2588 done
2330 done 2589 done
2331 2590
2332 fi 2591 fi
2333 fi 2592 fi
2334 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2593 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2335 if test -n "$ac_ct_CC"; then 2594 if test -n "$ac_ct_CC"; then
2336 echo "$as_me:2336: result: $ac_ct_CC" >&5 2595 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2337 echo "${ECHO_T}$ac_ct_CC" >&6 2596 echo "${ECHO_T}$ac_ct_CC" >&6
2338 else 2597 else
2339 echo "$as_me:2339: result: no" >&5 2598 echo "$as_me:$LINENO: result: no" >&5
2340 echo "${ECHO_T}no" >&6 2599 echo "${ECHO_T}no" >&6
2341 fi 2600 fi
2342 2601
2343 CC=$ac_ct_CC 2602 CC=$ac_ct_CC
2344 else 2603 else
2347 2606
2348 if test -z "$CC"; then 2607 if test -z "$CC"; then
2349 if test -n "$ac_tool_prefix"; then 2608 if test -n "$ac_tool_prefix"; then
2350 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2609 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2351 set dummy ${ac_tool_prefix}cc; ac_word=$2 2610 set dummy ${ac_tool_prefix}cc; ac_word=$2
2352 echo "$as_me:2352: checking for $ac_word" >&5 2611 echo "$as_me:$LINENO: checking for $ac_word" >&5
2353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2354 if test "${ac_cv_prog_CC+set}" = set; then 2613 if test "${ac_cv_prog_CC+set}" = set; then
2355 echo $ECHO_N "(cached) $ECHO_C" >&6 2614 echo $ECHO_N "(cached) $ECHO_C" >&6
2356 else 2615 else
2357 if test -n "$CC"; then 2616 if test -n "$CC"; then
2358 ac_cv_prog_CC="$CC" # Let the user override the test. 2617 ac_cv_prog_CC="$CC" # Let the user override the test.
2359 else 2618 else
2360 ac_save_IFS=$IFS; IFS=$ac_path_separator 2619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2361 ac_dummy="$PATH" 2620 for as_dir in $PATH
2362 for ac_dir in $ac_dummy; do 2621 do
2363 IFS=$ac_save_IFS 2622 IFS=$as_save_IFS
2364 test -z "$ac_dir" && ac_dir=. 2623 test -z "$as_dir" && as_dir=.
2365 $as_executable_p "$ac_dir/$ac_word" || continue 2624 for ac_exec_ext in '' $ac_executable_extensions; do
2366 ac_cv_prog_CC="${ac_tool_prefix}cc" 2625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2367 echo "$as_me:2367: found $ac_dir/$ac_word" >&5 2626 ac_cv_prog_CC="${ac_tool_prefix}cc"
2368 break 2627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2628 break 2
2629 fi
2630 done
2369 done 2631 done
2370 2632
2371 fi 2633 fi
2372 fi 2634 fi
2373 CC=$ac_cv_prog_CC 2635 CC=$ac_cv_prog_CC
2374 if test -n "$CC"; then 2636 if test -n "$CC"; then
2375 echo "$as_me:2375: result: $CC" >&5 2637 echo "$as_me:$LINENO: result: $CC" >&5
2376 echo "${ECHO_T}$CC" >&6 2638 echo "${ECHO_T}$CC" >&6
2377 else 2639 else
2378 echo "$as_me:2378: result: no" >&5 2640 echo "$as_me:$LINENO: result: no" >&5
2379 echo "${ECHO_T}no" >&6 2641 echo "${ECHO_T}no" >&6
2380 fi 2642 fi
2381 2643
2382 fi 2644 fi
2383 if test -z "$ac_cv_prog_CC"; then 2645 if test -z "$ac_cv_prog_CC"; then
2384 ac_ct_CC=$CC 2646 ac_ct_CC=$CC
2385 # Extract the first word of "cc", so it can be a program name with args. 2647 # Extract the first word of "cc", so it can be a program name with args.
2386 set dummy cc; ac_word=$2 2648 set dummy cc; ac_word=$2
2387 echo "$as_me:2387: checking for $ac_word" >&5 2649 echo "$as_me:$LINENO: checking for $ac_word" >&5
2388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2389 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2651 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2390 echo $ECHO_N "(cached) $ECHO_C" >&6 2652 echo $ECHO_N "(cached) $ECHO_C" >&6
2391 else 2653 else
2392 if test -n "$ac_ct_CC"; then 2654 if test -n "$ac_ct_CC"; then
2393 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2655 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2394 else 2656 else
2395 ac_save_IFS=$IFS; IFS=$ac_path_separator 2657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2396 ac_dummy="$PATH" 2658 for as_dir in $PATH
2397 for ac_dir in $ac_dummy; do 2659 do
2398 IFS=$ac_save_IFS 2660 IFS=$as_save_IFS
2399 test -z "$ac_dir" && ac_dir=. 2661 test -z "$as_dir" && as_dir=.
2400 $as_executable_p "$ac_dir/$ac_word" || continue 2662 for ac_exec_ext in '' $ac_executable_extensions; do
2401 ac_cv_prog_ac_ct_CC="cc" 2663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2402 echo "$as_me:2402: found $ac_dir/$ac_word" >&5 2664 ac_cv_prog_ac_ct_CC="cc"
2403 break 2665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2666 break 2
2667 fi
2668 done
2404 done 2669 done
2405 2670
2406 fi 2671 fi
2407 fi 2672 fi
2408 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2673 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2409 if test -n "$ac_ct_CC"; then 2674 if test -n "$ac_ct_CC"; then
2410 echo "$as_me:2410: result: $ac_ct_CC" >&5 2675 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2411 echo "${ECHO_T}$ac_ct_CC" >&6 2676 echo "${ECHO_T}$ac_ct_CC" >&6
2412 else 2677 else
2413 echo "$as_me:2413: result: no" >&5 2678 echo "$as_me:$LINENO: result: no" >&5
2414 echo "${ECHO_T}no" >&6 2679 echo "${ECHO_T}no" >&6
2415 fi 2680 fi
2416 2681
2417 CC=$ac_ct_CC 2682 CC=$ac_ct_CC
2418 else 2683 else
2421 2686
2422 fi 2687 fi
2423 if test -z "$CC"; then 2688 if test -z "$CC"; then
2424 # Extract the first word of "cc", so it can be a program name with args. 2689 # Extract the first word of "cc", so it can be a program name with args.
2425 set dummy cc; ac_word=$2 2690 set dummy cc; ac_word=$2
2426 echo "$as_me:2426: checking for $ac_word" >&5 2691 echo "$as_me:$LINENO: checking for $ac_word" >&5
2427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2428 if test "${ac_cv_prog_CC+set}" = set; then 2693 if test "${ac_cv_prog_CC+set}" = set; then
2429 echo $ECHO_N "(cached) $ECHO_C" >&6 2694 echo $ECHO_N "(cached) $ECHO_C" >&6
2430 else 2695 else
2431 if test -n "$CC"; then 2696 if test -n "$CC"; then
2432 ac_cv_prog_CC="$CC" # Let the user override the test. 2697 ac_cv_prog_CC="$CC" # Let the user override the test.
2433 else 2698 else
2434 ac_prog_rejected=no 2699 ac_prog_rejected=no
2435 ac_save_IFS=$IFS; IFS=$ac_path_separator 2700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2436 ac_dummy="$PATH" 2701 for as_dir in $PATH
2437 for ac_dir in $ac_dummy; do 2702 do
2438 IFS=$ac_save_IFS 2703 IFS=$as_save_IFS
2439 test -z "$ac_dir" && ac_dir=. 2704 test -z "$as_dir" && as_dir=.
2440 $as_executable_p "$ac_dir/$ac_word" || continue 2705 for ac_exec_ext in '' $ac_executable_extensions; do
2441 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 2706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2442 ac_prog_rejected=yes 2707 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2443 continue 2708 ac_prog_rejected=yes
2444 fi 2709 continue
2445 ac_cv_prog_CC="cc" 2710 fi
2446 echo "$as_me:2446: found $ac_dir/$ac_word" >&5 2711 ac_cv_prog_CC="cc"
2447 break 2712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2713 break 2
2714 fi
2715 done
2448 done 2716 done
2449 2717
2450 if test $ac_prog_rejected = yes; then 2718 if test $ac_prog_rejected = yes; then
2451 # We found a bogon in the path, so make sure we never use it. 2719 # We found a bogon in the path, so make sure we never use it.
2452 set dummy $ac_cv_prog_CC 2720 set dummy $ac_cv_prog_CC
2454 if test $# != 0; then 2722 if test $# != 0; then
2455 # We chose a different compiler from the bogus one. 2723 # We chose a different compiler from the bogus one.
2456 # However, it has the same basename, so the bogon will be chosen 2724 # However, it has the same basename, so the bogon will be chosen
2457 # first if we set CC to just the basename; use the full file name. 2725 # first if we set CC to just the basename; use the full file name.
2458 shift 2726 shift
2459 set dummy "$ac_dir/$ac_word" ${1+"$@"} 2727 set dummy "$as_dir/$ac_word" ${1+"$@"}
2460 shift 2728 shift
2461 ac_cv_prog_CC="$@" 2729 ac_cv_prog_CC="$@"
2462 fi 2730 fi
2463 fi 2731 fi
2464 fi 2732 fi
2465 fi 2733 fi
2466 CC=$ac_cv_prog_CC 2734 CC=$ac_cv_prog_CC
2467 if test -n "$CC"; then 2735 if test -n "$CC"; then
2468 echo "$as_me:2468: result: $CC" >&5 2736 echo "$as_me:$LINENO: result: $CC" >&5
2469 echo "${ECHO_T}$CC" >&6 2737 echo "${ECHO_T}$CC" >&6
2470 else 2738 else
2471 echo "$as_me:2471: result: no" >&5 2739 echo "$as_me:$LINENO: result: no" >&5
2472 echo "${ECHO_T}no" >&6 2740 echo "${ECHO_T}no" >&6
2473 fi 2741 fi
2474 2742
2475 fi 2743 fi
2476 if test -z "$CC"; then 2744 if test -z "$CC"; then
2477 if test -n "$ac_tool_prefix"; then 2745 if test -n "$ac_tool_prefix"; then
2478 for ac_prog in cl 2746 for ac_prog in cl
2479 do 2747 do
2480 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2748 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2481 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2749 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2482 echo "$as_me:2482: checking for $ac_word" >&5 2750 echo "$as_me:$LINENO: checking for $ac_word" >&5
2483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2484 if test "${ac_cv_prog_CC+set}" = set; then 2752 if test "${ac_cv_prog_CC+set}" = set; then
2485 echo $ECHO_N "(cached) $ECHO_C" >&6 2753 echo $ECHO_N "(cached) $ECHO_C" >&6
2486 else 2754 else
2487 if test -n "$CC"; then 2755 if test -n "$CC"; then
2488 ac_cv_prog_CC="$CC" # Let the user override the test. 2756 ac_cv_prog_CC="$CC" # Let the user override the test.
2489 else 2757 else
2490 ac_save_IFS=$IFS; IFS=$ac_path_separator 2758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491 ac_dummy="$PATH" 2759 for as_dir in $PATH
2492 for ac_dir in $ac_dummy; do 2760 do
2493 IFS=$ac_save_IFS 2761 IFS=$as_save_IFS
2494 test -z "$ac_dir" && ac_dir=. 2762 test -z "$as_dir" && as_dir=.
2495 $as_executable_p "$ac_dir/$ac_word" || continue 2763 for ac_exec_ext in '' $ac_executable_extensions; do
2496 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2497 echo "$as_me:2497: found $ac_dir/$ac_word" >&5 2765 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2498 break 2766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2767 break 2
2768 fi
2769 done
2499 done 2770 done
2500 2771
2501 fi 2772 fi
2502 fi 2773 fi
2503 CC=$ac_cv_prog_CC 2774 CC=$ac_cv_prog_CC
2504 if test -n "$CC"; then 2775 if test -n "$CC"; then
2505 echo "$as_me:2505: result: $CC" >&5 2776 echo "$as_me:$LINENO: result: $CC" >&5
2506 echo "${ECHO_T}$CC" >&6 2777 echo "${ECHO_T}$CC" >&6
2507 else 2778 else
2508 echo "$as_me:2508: result: no" >&5 2779 echo "$as_me:$LINENO: result: no" >&5
2509 echo "${ECHO_T}no" >&6 2780 echo "${ECHO_T}no" >&6
2510 fi 2781 fi
2511 2782
2512 test -n "$CC" && break 2783 test -n "$CC" && break
2513 done 2784 done
2516 ac_ct_CC=$CC 2787 ac_ct_CC=$CC
2517 for ac_prog in cl 2788 for ac_prog in cl
2518 do 2789 do
2519 # Extract the first word of "$ac_prog", so it can be a program name with args. 2790 # Extract the first word of "$ac_prog", so it can be a program name with args.
2520 set dummy $ac_prog; ac_word=$2 2791 set dummy $ac_prog; ac_word=$2
2521 echo "$as_me:2521: checking for $ac_word" >&5 2792 echo "$as_me:$LINENO: checking for $ac_word" >&5
2522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2523 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2794 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2524 echo $ECHO_N "(cached) $ECHO_C" >&6 2795 echo $ECHO_N "(cached) $ECHO_C" >&6
2525 else 2796 else
2526 if test -n "$ac_ct_CC"; then 2797 if test -n "$ac_ct_CC"; then
2527 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2798 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2528 else 2799 else
2529 ac_save_IFS=$IFS; IFS=$ac_path_separator 2800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2530 ac_dummy="$PATH" 2801 for as_dir in $PATH
2531 for ac_dir in $ac_dummy; do 2802 do
2532 IFS=$ac_save_IFS 2803 IFS=$as_save_IFS
2533 test -z "$ac_dir" && ac_dir=. 2804 test -z "$as_dir" && as_dir=.
2534 $as_executable_p "$ac_dir/$ac_word" || continue 2805 for ac_exec_ext in '' $ac_executable_extensions; do
2535 ac_cv_prog_ac_ct_CC="$ac_prog" 2806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2536 echo "$as_me:2536: found $ac_dir/$ac_word" >&5 2807 ac_cv_prog_ac_ct_CC="$ac_prog"
2537 break 2808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2809 break 2
2810 fi
2811 done
2538 done 2812 done
2539 2813
2540 fi 2814 fi
2541 fi 2815 fi
2542 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2816 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2543 if test -n "$ac_ct_CC"; then 2817 if test -n "$ac_ct_CC"; then
2544 echo "$as_me:2544: result: $ac_ct_CC" >&5 2818 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2545 echo "${ECHO_T}$ac_ct_CC" >&6 2819 echo "${ECHO_T}$ac_ct_CC" >&6
2546 else 2820 else
2547 echo "$as_me:2547: result: no" >&5 2821 echo "$as_me:$LINENO: result: no" >&5
2548 echo "${ECHO_T}no" >&6 2822 echo "${ECHO_T}no" >&6
2549 fi 2823 fi
2550 2824
2551 test -n "$ac_ct_CC" && break 2825 test -n "$ac_ct_CC" && break
2552 done 2826 done
2554 CC=$ac_ct_CC 2828 CC=$ac_ct_CC
2555 fi 2829 fi
2556 2830
2557 fi 2831 fi
2558 2832
2559 test -z "$CC" && { { echo "$as_me:2559: error: no acceptable cc found in \$PATH" >&5 2833
2560 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} 2834 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2835 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2561 { (exit 1); exit 1; }; } 2836 { (exit 1); exit 1; }; }
2562 2837
2563 # Provide some information about the compiler. 2838 # Provide some information about the compiler.
2564 echo "$as_me:2564:" \ 2839 echo "$as_me:$LINENO:" \
2565 "checking for C compiler version" >&5 2840 "checking for C compiler version" >&5
2566 ac_compiler=`set X $ac_compile; echo $2` 2841 ac_compiler=`set X $ac_compile; echo $2`
2567 { (eval echo "$as_me:2567: \"$ac_compiler --version </dev/null >&5\"") >&5 2842 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2568 (eval $ac_compiler --version </dev/null >&5) 2>&5 2843 (eval $ac_compiler --version </dev/null >&5) 2>&5
2569 ac_status=$? 2844 ac_status=$?
2570 echo "$as_me:2570: \$? = $ac_status" >&5 2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); } 2846 (exit $ac_status); }
2572 { (eval echo "$as_me:2572: \"$ac_compiler -v </dev/null >&5\"") >&5 2847 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2573 (eval $ac_compiler -v </dev/null >&5) 2>&5 2848 (eval $ac_compiler -v </dev/null >&5) 2>&5
2574 ac_status=$? 2849 ac_status=$?
2575 echo "$as_me:2575: \$? = $ac_status" >&5 2850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); } 2851 (exit $ac_status); }
2577 { (eval echo "$as_me:2577: \"$ac_compiler -V </dev/null >&5\"") >&5 2852 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2578 (eval $ac_compiler -V </dev/null >&5) 2>&5 2853 (eval $ac_compiler -V </dev/null >&5) 2>&5
2579 ac_status=$? 2854 ac_status=$?
2580 echo "$as_me:2580: \$? = $ac_status" >&5 2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); } 2856 (exit $ac_status); }
2582 2857
2583 cat >conftest.$ac_ext <<_ACEOF 2858 cat >conftest.$ac_ext <<_ACEOF
2584 #line 2584 "configure" 2859 #line $LINENO "configure"
2585 #include "confdefs.h" 2860 #include "confdefs.h"
2586 2861
2862 #ifdef F77_DUMMY_MAIN
2863 # ifdef __cplusplus
2864 extern "C"
2865 # endif
2866 int F77_DUMMY_MAIN() { return 1; }
2867 #endif
2587 int 2868 int
2588 main () 2869 main ()
2589 { 2870 {
2590 2871
2591 ; 2872 ;
2595 ac_clean_files_save=$ac_clean_files 2876 ac_clean_files_save=$ac_clean_files
2596 ac_clean_files="$ac_clean_files a.out a.exe" 2877 ac_clean_files="$ac_clean_files a.out a.exe"
2597 # Try to create an executable without -o first, disregard a.out. 2878 # Try to create an executable without -o first, disregard a.out.
2598 # It will help us diagnose broken compilers, and finding out an intuition 2879 # It will help us diagnose broken compilers, and finding out an intuition
2599 # of exeext. 2880 # of exeext.
2600 echo "$as_me:2600: checking for C compiler default output" >&5 2881 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2601 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 2882 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2602 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2883 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2603 if { (eval echo "$as_me:2603: \"$ac_link_default\"") >&5 2884 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2604 (eval $ac_link_default) 2>&5 2885 (eval $ac_link_default) 2>&5
2605 ac_status=$? 2886 ac_status=$?
2606 echo "$as_me:2606: \$? = $ac_status" >&5 2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); }; then 2888 (exit $ac_status); }; then
2608 # Find the output, starting from the most likely. This scheme is 2889 # Find the output, starting from the most likely. This scheme is
2609 # not robust to junk in `.', hence go to wildcards (a.*) only as a last 2890 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2610 # resort. 2891 # resort.
2611 for ac_file in `ls a.exe conftest.exe 2>/dev/null; 2892
2893 # Be careful to initialize this variable, since it used to be cached.
2894 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2895 ac_cv_exeext=
2896 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2612 ls a.out conftest 2>/dev/null; 2897 ls a.out conftest 2>/dev/null;
2613 ls a.* conftest.* 2>/dev/null`; do 2898 ls a.* conftest.* 2>/dev/null`; do
2614 case $ac_file in 2899 case $ac_file in
2615 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; 2900 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2616 a.out ) # We found the default executable, but exeext='' is most 2901 a.out ) # We found the default executable, but exeext='' is most
2617 # certainly right. 2902 # certainly right.
2618 break;; 2903 break;;
2619 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2904 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2620 # FIXME: I believe we export ac_cv_exeext for Libtool --akim. 2905 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2624 esac 2909 esac
2625 done 2910 done
2626 else 2911 else
2627 echo "$as_me: failed program was:" >&5 2912 echo "$as_me: failed program was:" >&5
2628 cat conftest.$ac_ext >&5 2913 cat conftest.$ac_ext >&5
2629 { { echo "$as_me:2629: error: C compiler cannot create executables" >&5 2914 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2630 echo "$as_me: error: C compiler cannot create executables" >&2;} 2915 echo "$as_me: error: C compiler cannot create executables" >&2;}
2631 { (exit 77); exit 77; }; } 2916 { (exit 77); exit 77; }; }
2632 fi 2917 fi
2633 2918
2634 ac_exeext=$ac_cv_exeext 2919 ac_exeext=$ac_cv_exeext
2635 echo "$as_me:2635: result: $ac_file" >&5 2920 echo "$as_me:$LINENO: result: $ac_file" >&5
2636 echo "${ECHO_T}$ac_file" >&6 2921 echo "${ECHO_T}$ac_file" >&6
2637 2922
2638 # Check the compiler produces executables we can run. If not, either 2923 # Check the compiler produces executables we can run. If not, either
2639 # the compiler is broken, or we cross compile. 2924 # the compiler is broken, or we cross compile.
2640 echo "$as_me:2640: checking whether the C compiler works" >&5 2925 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2641 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2926 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2642 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2927 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2643 # If not cross compiling, check that we can run a simple program. 2928 # If not cross compiling, check that we can run a simple program.
2644 if test "$cross_compiling" != yes; then 2929 if test "$cross_compiling" != yes; then
2645 if { ac_try='./$ac_file' 2930 if { ac_try='./$ac_file'
2646 { (eval echo "$as_me:2646: \"$ac_try\"") >&5 2931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2647 (eval $ac_try) 2>&5 2932 (eval $ac_try) 2>&5
2648 ac_status=$? 2933 ac_status=$?
2649 echo "$as_me:2649: \$? = $ac_status" >&5 2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650 (exit $ac_status); }; }; then 2935 (exit $ac_status); }; }; then
2651 cross_compiling=no 2936 cross_compiling=no
2652 else 2937 else
2653 if test "$cross_compiling" = maybe; then 2938 if test "$cross_compiling" = maybe; then
2654 cross_compiling=yes 2939 cross_compiling=yes
2655 else 2940 else
2656 { { echo "$as_me:2656: error: cannot run C compiled programs. 2941 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2657 If you meant to cross compile, use \`--host'." >&5 2942 If you meant to cross compile, use \`--host'." >&5
2658 echo "$as_me: error: cannot run C compiled programs. 2943 echo "$as_me: error: cannot run C compiled programs.
2659 If you meant to cross compile, use \`--host'." >&2;} 2944 If you meant to cross compile, use \`--host'." >&2;}
2660 { (exit 1); exit 1; }; } 2945 { (exit 1); exit 1; }; }
2661 fi 2946 fi
2662 fi 2947 fi
2663 fi 2948 fi
2664 echo "$as_me:2664: result: yes" >&5 2949 echo "$as_me:$LINENO: result: yes" >&5
2665 echo "${ECHO_T}yes" >&6 2950 echo "${ECHO_T}yes" >&6
2666 2951
2667 rm -f a.out a.exe conftest$ac_cv_exeext 2952 rm -f a.out a.exe conftest$ac_cv_exeext
2668 ac_clean_files=$ac_clean_files_save 2953 ac_clean_files=$ac_clean_files_save
2669 # Check the compiler produces executables we can run. If not, either 2954 # Check the compiler produces executables we can run. If not, either
2670 # the compiler is broken, or we cross compile. 2955 # the compiler is broken, or we cross compile.
2671 echo "$as_me:2671: checking whether we are cross compiling" >&5 2956 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2672 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2957 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2673 echo "$as_me:2673: result: $cross_compiling" >&5 2958 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2674 echo "${ECHO_T}$cross_compiling" >&6 2959 echo "${ECHO_T}$cross_compiling" >&6
2675 2960
2676 echo "$as_me:2676: checking for executable suffix" >&5 2961 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2677 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 2962 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2678 if { (eval echo "$as_me:2678: \"$ac_link\"") >&5 2963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2679 (eval $ac_link) 2>&5 2964 (eval $ac_link) 2>&5
2680 ac_status=$? 2965 ac_status=$?
2681 echo "$as_me:2681: \$? = $ac_status" >&5 2966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682 (exit $ac_status); }; then 2967 (exit $ac_status); }; then
2683 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2968 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2684 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2969 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2685 # work properly (i.e., refer to `conftest.exe'), while it won't with 2970 # work properly (i.e., refer to `conftest.exe'), while it won't with
2686 # `rm'. 2971 # `rm'.
2692 break;; 2977 break;;
2693 * ) break;; 2978 * ) break;;
2694 esac 2979 esac
2695 done 2980 done
2696 else 2981 else
2697 { { echo "$as_me:2697: error: cannot compute EXEEXT: cannot compile and link" >&5 2982 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2698 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} 2983 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2699 { (exit 1); exit 1; }; } 2984 { (exit 1); exit 1; }; }
2700 fi 2985 fi
2701 2986
2702 rm -f conftest$ac_cv_exeext 2987 rm -f conftest$ac_cv_exeext
2703 echo "$as_me:2703: result: $ac_cv_exeext" >&5 2988 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2704 echo "${ECHO_T}$ac_cv_exeext" >&6 2989 echo "${ECHO_T}$ac_cv_exeext" >&6
2705 2990
2706 rm -f conftest.$ac_ext 2991 rm -f conftest.$ac_ext
2707 EXEEXT=$ac_cv_exeext 2992 EXEEXT=$ac_cv_exeext
2708 ac_exeext=$EXEEXT 2993 ac_exeext=$EXEEXT
2709 echo "$as_me:2709: checking for object suffix" >&5 2994 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2710 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 2995 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2711 if test "${ac_cv_objext+set}" = set; then 2996 if test "${ac_cv_objext+set}" = set; then
2712 echo $ECHO_N "(cached) $ECHO_C" >&6 2997 echo $ECHO_N "(cached) $ECHO_C" >&6
2713 else 2998 else
2714 cat >conftest.$ac_ext <<_ACEOF 2999 cat >conftest.$ac_ext <<_ACEOF
2715 #line 2715 "configure" 3000 #line $LINENO "configure"
2716 #include "confdefs.h" 3001 #include "confdefs.h"
2717 3002
3003 #ifdef F77_DUMMY_MAIN
3004 # ifdef __cplusplus
3005 extern "C"
3006 # endif
3007 int F77_DUMMY_MAIN() { return 1; }
3008 #endif
2718 int 3009 int
2719 main () 3010 main ()
2720 { 3011 {
2721 3012
2722 ; 3013 ;
2723 return 0; 3014 return 0;
2724 } 3015 }
2725 _ACEOF 3016 _ACEOF
2726 rm -f conftest.o conftest.obj 3017 rm -f conftest.o conftest.obj
2727 if { (eval echo "$as_me:2727: \"$ac_compile\"") >&5 3018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2728 (eval $ac_compile) 2>&5 3019 (eval $ac_compile) 2>&5
2729 ac_status=$? 3020 ac_status=$?
2730 echo "$as_me:2730: \$? = $ac_status" >&5 3021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }; then 3022 (exit $ac_status); }; then
2732 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 3023 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2733 case $ac_file in 3024 case $ac_file in
2734 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; 3025 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2735 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3026 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2737 esac 3028 esac
2738 done 3029 done
2739 else 3030 else
2740 echo "$as_me: failed program was:" >&5 3031 echo "$as_me: failed program was:" >&5
2741 cat conftest.$ac_ext >&5 3032 cat conftest.$ac_ext >&5
2742 { { echo "$as_me:2742: error: cannot compute OBJEXT: cannot compile" >&5 3033 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2743 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} 3034 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2744 { (exit 1); exit 1; }; } 3035 { (exit 1); exit 1; }; }
2745 fi 3036 fi
2746 3037
2747 rm -f conftest.$ac_cv_objext conftest.$ac_ext 3038 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2748 fi 3039 fi
2749 echo "$as_me:2749: result: $ac_cv_objext" >&5 3040 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2750 echo "${ECHO_T}$ac_cv_objext" >&6 3041 echo "${ECHO_T}$ac_cv_objext" >&6
2751 OBJEXT=$ac_cv_objext 3042 OBJEXT=$ac_cv_objext
2752 ac_objext=$OBJEXT 3043 ac_objext=$OBJEXT
2753 echo "$as_me:2753: checking whether we are using the GNU C compiler" >&5 3044 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2754 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 3045 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2755 if test "${ac_cv_c_compiler_gnu+set}" = set; then 3046 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2756 echo $ECHO_N "(cached) $ECHO_C" >&6 3047 echo $ECHO_N "(cached) $ECHO_C" >&6
2757 else 3048 else
2758 cat >conftest.$ac_ext <<_ACEOF 3049 cat >conftest.$ac_ext <<_ACEOF
2759 #line 2759 "configure" 3050 #line $LINENO "configure"
2760 #include "confdefs.h" 3051 #include "confdefs.h"
2761 3052
3053 #ifdef F77_DUMMY_MAIN
3054 # ifdef __cplusplus
3055 extern "C"
3056 # endif
3057 int F77_DUMMY_MAIN() { return 1; }
3058 #endif
2762 int 3059 int
2763 main () 3060 main ()
2764 { 3061 {
2765 #ifndef __GNUC__ 3062 #ifndef __GNUC__
2766 choke me 3063 choke me
2769 ; 3066 ;
2770 return 0; 3067 return 0;
2771 } 3068 }
2772 _ACEOF 3069 _ACEOF
2773 rm -f conftest.$ac_objext 3070 rm -f conftest.$ac_objext
2774 if { (eval echo "$as_me:2774: \"$ac_compile\"") >&5 3071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2775 (eval $ac_compile) 2>&5 3072 (eval $ac_compile) 2>&5
2776 ac_status=$? 3073 ac_status=$?
2777 echo "$as_me:2777: \$? = $ac_status" >&5 3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); } && 3075 (exit $ac_status); } &&
2779 { ac_try='test -s conftest.$ac_objext' 3076 { ac_try='test -s conftest.$ac_objext'
2780 { (eval echo "$as_me:2780: \"$ac_try\"") >&5 3077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2781 (eval $ac_try) 2>&5 3078 (eval $ac_try) 2>&5
2782 ac_status=$? 3079 ac_status=$?
2783 echo "$as_me:2783: \$? = $ac_status" >&5 3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); }; }; then 3081 (exit $ac_status); }; }; then
2785 ac_compiler_gnu=yes 3082 ac_compiler_gnu=yes
2786 else 3083 else
2787 echo "$as_me: failed program was:" >&5 3084 echo "$as_me: failed program was:" >&5
2788 cat conftest.$ac_ext >&5 3085 cat conftest.$ac_ext >&5
2790 fi 3087 fi
2791 rm -f conftest.$ac_objext conftest.$ac_ext 3088 rm -f conftest.$ac_objext conftest.$ac_ext
2792 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3089 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2793 3090
2794 fi 3091 fi
2795 echo "$as_me:2795: result: $ac_cv_c_compiler_gnu" >&5 3092 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2796 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 3093 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2797 GCC=`test $ac_compiler_gnu = yes && echo yes` 3094 GCC=`test $ac_compiler_gnu = yes && echo yes`
2798 ac_test_CFLAGS=${CFLAGS+set} 3095 ac_test_CFLAGS=${CFLAGS+set}
2799 ac_save_CFLAGS=$CFLAGS 3096 ac_save_CFLAGS=$CFLAGS
2800 CFLAGS="-g" 3097 CFLAGS="-g"
2801 echo "$as_me:2801: checking whether $CC accepts -g" >&5 3098 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2802 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 3099 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2803 if test "${ac_cv_prog_cc_g+set}" = set; then 3100 if test "${ac_cv_prog_cc_g+set}" = set; then
2804 echo $ECHO_N "(cached) $ECHO_C" >&6 3101 echo $ECHO_N "(cached) $ECHO_C" >&6
2805 else 3102 else
2806 cat >conftest.$ac_ext <<_ACEOF 3103 cat >conftest.$ac_ext <<_ACEOF
2807 #line 2807 "configure" 3104 #line $LINENO "configure"
2808 #include "confdefs.h" 3105 #include "confdefs.h"
2809 3106
3107 #ifdef F77_DUMMY_MAIN
3108 # ifdef __cplusplus
3109 extern "C"
3110 # endif
3111 int F77_DUMMY_MAIN() { return 1; }
3112 #endif
2810 int 3113 int
2811 main () 3114 main ()
2812 { 3115 {
2813 3116
2814 ; 3117 ;
2815 return 0; 3118 return 0;
2816 } 3119 }
2817 _ACEOF 3120 _ACEOF
2818 rm -f conftest.$ac_objext 3121 rm -f conftest.$ac_objext
2819 if { (eval echo "$as_me:2819: \"$ac_compile\"") >&5 3122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2820 (eval $ac_compile) 2>&5 3123 (eval $ac_compile) 2>&5
2821 ac_status=$? 3124 ac_status=$?
2822 echo "$as_me:2822: \$? = $ac_status" >&5 3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); } && 3126 (exit $ac_status); } &&
2824 { ac_try='test -s conftest.$ac_objext' 3127 { ac_try='test -s conftest.$ac_objext'
2825 { (eval echo "$as_me:2825: \"$ac_try\"") >&5 3128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2826 (eval $ac_try) 2>&5 3129 (eval $ac_try) 2>&5
2827 ac_status=$? 3130 ac_status=$?
2828 echo "$as_me:2828: \$? = $ac_status" >&5 3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); }; }; then 3132 (exit $ac_status); }; }; then
2830 ac_cv_prog_cc_g=yes 3133 ac_cv_prog_cc_g=yes
2831 else 3134 else
2832 echo "$as_me: failed program was:" >&5 3135 echo "$as_me: failed program was:" >&5
2833 cat conftest.$ac_ext >&5 3136 cat conftest.$ac_ext >&5
2834 ac_cv_prog_cc_g=no 3137 ac_cv_prog_cc_g=no
2835 fi 3138 fi
2836 rm -f conftest.$ac_objext conftest.$ac_ext 3139 rm -f conftest.$ac_objext conftest.$ac_ext
2837 fi 3140 fi
2838 echo "$as_me:2838: result: $ac_cv_prog_cc_g" >&5 3141 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2839 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 3142 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2840 if test "$ac_test_CFLAGS" = set; then 3143 if test "$ac_test_CFLAGS" = set; then
2841 CFLAGS=$ac_save_CFLAGS 3144 CFLAGS=$ac_save_CFLAGS
2842 elif test $ac_cv_prog_cc_g = yes; then 3145 elif test $ac_cv_prog_cc_g = yes; then
2843 if test "$GCC" = yes; then 3146 if test "$GCC" = yes; then
2860 #ifndef __cplusplus 3163 #ifndef __cplusplus
2861 choke me 3164 choke me
2862 #endif 3165 #endif
2863 _ACEOF 3166 _ACEOF
2864 rm -f conftest.$ac_objext 3167 rm -f conftest.$ac_objext
2865 if { (eval echo "$as_me:2865: \"$ac_compile\"") >&5 3168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2866 (eval $ac_compile) 2>&5 3169 (eval $ac_compile) 2>&5
2867 ac_status=$? 3170 ac_status=$?
2868 echo "$as_me:2868: \$? = $ac_status" >&5 3171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); } && 3172 (exit $ac_status); } &&
2870 { ac_try='test -s conftest.$ac_objext' 3173 { ac_try='test -s conftest.$ac_objext'
2871 { (eval echo "$as_me:2871: \"$ac_try\"") >&5 3174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872 (eval $ac_try) 2>&5 3175 (eval $ac_try) 2>&5
2873 ac_status=$? 3176 ac_status=$?
2874 echo "$as_me:2874: \$? = $ac_status" >&5 3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); }; }; then 3178 (exit $ac_status); }; }; then
2876 for ac_declaration in \ 3179 for ac_declaration in \
2877 ''\ 3180 ''\
2878 '#include <stdlib.h>' \ 3181 '#include <stdlib.h>' \
2879 'extern "C" void std::exit (int) throw (); using std::exit;' \ 3182 'extern "C" void std::exit (int) throw (); using std::exit;' \
2881 'extern "C" void exit (int) throw ();' \ 3184 'extern "C" void exit (int) throw ();' \
2882 'extern "C" void exit (int);' \ 3185 'extern "C" void exit (int);' \
2883 'void exit (int);' 3186 'void exit (int);'
2884 do 3187 do
2885 cat >conftest.$ac_ext <<_ACEOF 3188 cat >conftest.$ac_ext <<_ACEOF
2886 #line 2886 "configure" 3189 #line $LINENO "configure"
2887 #include "confdefs.h" 3190 #include "confdefs.h"
2888 #include <stdlib.h> 3191 #include <stdlib.h>
2889 $ac_declaration 3192 $ac_declaration
3193 #ifdef F77_DUMMY_MAIN
3194 # ifdef __cplusplus
3195 extern "C"
3196 # endif
3197 int F77_DUMMY_MAIN() { return 1; }
3198 #endif
2890 int 3199 int
2891 main () 3200 main ()
2892 { 3201 {
2893 exit (42); 3202 exit (42);
2894 ; 3203 ;
2895 return 0; 3204 return 0;
2896 } 3205 }
2897 _ACEOF 3206 _ACEOF
2898 rm -f conftest.$ac_objext 3207 rm -f conftest.$ac_objext
2899 if { (eval echo "$as_me:2899: \"$ac_compile\"") >&5 3208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2900 (eval $ac_compile) 2>&5 3209 (eval $ac_compile) 2>&5
2901 ac_status=$? 3210 ac_status=$?
2902 echo "$as_me:2902: \$? = $ac_status" >&5 3211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); } && 3212 (exit $ac_status); } &&
2904 { ac_try='test -s conftest.$ac_objext' 3213 { ac_try='test -s conftest.$ac_objext'
2905 { (eval echo "$as_me:2905: \"$ac_try\"") >&5 3214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2906 (eval $ac_try) 2>&5 3215 (eval $ac_try) 2>&5
2907 ac_status=$? 3216 ac_status=$?
2908 echo "$as_me:2908: \$? = $ac_status" >&5 3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); }; }; then 3218 (exit $ac_status); }; }; then
2910 : 3219 :
2911 else 3220 else
2912 echo "$as_me: failed program was:" >&5 3221 echo "$as_me: failed program was:" >&5
2913 cat conftest.$ac_ext >&5 3222 cat conftest.$ac_ext >&5
2914 continue 3223 continue
2915 fi 3224 fi
2916 rm -f conftest.$ac_objext conftest.$ac_ext 3225 rm -f conftest.$ac_objext conftest.$ac_ext
2917 cat >conftest.$ac_ext <<_ACEOF 3226 cat >conftest.$ac_ext <<_ACEOF
2918 #line 2918 "configure" 3227 #line $LINENO "configure"
2919 #include "confdefs.h" 3228 #include "confdefs.h"
2920 $ac_declaration 3229 $ac_declaration
3230 #ifdef F77_DUMMY_MAIN
3231 # ifdef __cplusplus
3232 extern "C"
3233 # endif
3234 int F77_DUMMY_MAIN() { return 1; }
3235 #endif
2921 int 3236 int
2922 main () 3237 main ()
2923 { 3238 {
2924 exit (42); 3239 exit (42);
2925 ; 3240 ;
2926 return 0; 3241 return 0;
2927 } 3242 }
2928 _ACEOF 3243 _ACEOF
2929 rm -f conftest.$ac_objext 3244 rm -f conftest.$ac_objext
2930 if { (eval echo "$as_me:2930: \"$ac_compile\"") >&5 3245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2931 (eval $ac_compile) 2>&5 3246 (eval $ac_compile) 2>&5
2932 ac_status=$? 3247 ac_status=$?
2933 echo "$as_me:2933: \$? = $ac_status" >&5 3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); } && 3249 (exit $ac_status); } &&
2935 { ac_try='test -s conftest.$ac_objext' 3250 { ac_try='test -s conftest.$ac_objext'
2936 { (eval echo "$as_me:2936: \"$ac_try\"") >&5 3251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2937 (eval $ac_try) 2>&5 3252 (eval $ac_try) 2>&5
2938 ac_status=$? 3253 ac_status=$?
2939 echo "$as_me:2939: \$? = $ac_status" >&5 3254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); }; }; then 3255 (exit $ac_status); }; }; then
2941 break 3256 break
2942 else 3257 else
2943 echo "$as_me: failed program was:" >&5 3258 echo "$as_me: failed program was:" >&5
2944 cat conftest.$ac_ext >&5 3259 cat conftest.$ac_ext >&5
2961 ac_cpp='$CPP $CPPFLAGS' 3276 ac_cpp='$CPP $CPPFLAGS'
2962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2964 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2965 3280
3281
2966 # On Suns, sometimes $CPP names a directory. 3282 # On Suns, sometimes $CPP names a directory.
2967 if test -n "$CPP" && test -d "$CPP"; then 3283 if test -n "$CPP" && test -d "$CPP"; then
2968 CPP= 3284 CPP=
2969 fi 3285 fi
2970 3286
3007 3323
3008 #### Some other nice autoconf tests. If you add a test here which 3324 #### Some other nice autoconf tests. If you add a test here which
3009 #### should make an entry in src/config.h, don't forget to add an 3325 #### should make an entry in src/config.h, don't forget to add an
3010 #### #undef clause to src/config.h.in for autoconf to modify. 3326 #### #undef clause to src/config.h.in for autoconf to modify.
3011 3327
3012 echo "$as_me:3012: checking whether ln -s works" >&5 3328 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3013 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 3329 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3014 LN_S=$as_ln_s 3330 LN_S=$as_ln_s
3015 if test "$LN_S" = "ln -s"; then 3331 if test "$LN_S" = "ln -s"; then
3016 echo "$as_me:3016: result: yes" >&5 3332 echo "$as_me:$LINENO: result: yes" >&5
3017 echo "${ECHO_T}yes" >&6 3333 echo "${ECHO_T}yes" >&6
3018 else 3334 else
3019 echo "$as_me:3019: result: no, using $LN_S" >&5 3335 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3020 echo "${ECHO_T}no, using $LN_S" >&6 3336 echo "${ECHO_T}no, using $LN_S" >&6
3021 fi 3337 fi
3022 3338
3023 ac_ext=c 3339 ac_ext=c
3024 ac_cpp='$CPP $CPPFLAGS' 3340 ac_cpp='$CPP $CPPFLAGS'
3025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3027 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3028 echo "$as_me:3028: checking how to run the C preprocessor" >&5 3344 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3029 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 3345 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3030 # On Suns, sometimes $CPP names a directory. 3346 # On Suns, sometimes $CPP names a directory.
3031 if test -n "$CPP" && test -d "$CPP"; then 3347 if test -n "$CPP" && test -d "$CPP"; then
3032 CPP= 3348 CPP=
3033 fi 3349 fi
3044 # Use a header file that comes with gcc, so configuring glibc 3360 # Use a header file that comes with gcc, so configuring glibc
3045 # with a fresh cross-compiler works. 3361 # with a fresh cross-compiler works.
3046 # On the NeXT, cc -E runs the code through the compiler's parser, 3362 # On the NeXT, cc -E runs the code through the compiler's parser,
3047 # not just through cpp. "Syntax error" is here to catch this case. 3363 # not just through cpp. "Syntax error" is here to catch this case.
3048 cat >conftest.$ac_ext <<_ACEOF 3364 cat >conftest.$ac_ext <<_ACEOF
3049 #line 3049 "configure" 3365 #line $LINENO "configure"
3050 #include "confdefs.h" 3366 #include "confdefs.h"
3051 #include <assert.h> 3367 #include <assert.h>
3052 Syntax error 3368 Syntax error
3053 _ACEOF 3369 _ACEOF
3054 if { (eval echo "$as_me:3054: \"$ac_cpp conftest.$ac_ext\"") >&5 3370 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3055 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3371 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3056 ac_status=$? 3372 ac_status=$?
3057 egrep -v '^ *\+' conftest.er1 >conftest.err 3373 egrep -v '^ *\+' conftest.er1 >conftest.err
3058 rm -f conftest.er1 3374 rm -f conftest.er1
3059 cat conftest.err >&5 3375 cat conftest.err >&5
3060 echo "$as_me:3060: \$? = $ac_status" >&5 3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061 (exit $ac_status); } >/dev/null; then 3377 (exit $ac_status); } >/dev/null; then
3062 if test -s conftest.err; then 3378 if test -s conftest.err; then
3063 ac_cpp_err=$ac_c_preproc_warn_flag 3379 ac_cpp_err=$ac_c_preproc_warn_flag
3064 else 3380 else
3065 ac_cpp_err= 3381 ac_cpp_err=
3078 rm -f conftest.err conftest.$ac_ext 3394 rm -f conftest.err conftest.$ac_ext
3079 3395
3080 # OK, works on sane cases. Now check whether non-existent headers 3396 # OK, works on sane cases. Now check whether non-existent headers
3081 # can be detected and how. 3397 # can be detected and how.
3082 cat >conftest.$ac_ext <<_ACEOF 3398 cat >conftest.$ac_ext <<_ACEOF
3083 #line 3083 "configure" 3399 #line $LINENO "configure"
3084 #include "confdefs.h" 3400 #include "confdefs.h"
3085 #include <ac_nonexistent.h> 3401 #include <ac_nonexistent.h>
3086 _ACEOF 3402 _ACEOF
3087 if { (eval echo "$as_me:3087: \"$ac_cpp conftest.$ac_ext\"") >&5 3403 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3088 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3404 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3089 ac_status=$? 3405 ac_status=$?
3090 egrep -v '^ *\+' conftest.er1 >conftest.err 3406 egrep -v '^ *\+' conftest.er1 >conftest.err
3091 rm -f conftest.er1 3407 rm -f conftest.er1
3092 cat conftest.err >&5 3408 cat conftest.err >&5
3093 echo "$as_me:3093: \$? = $ac_status" >&5 3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); } >/dev/null; then 3410 (exit $ac_status); } >/dev/null; then
3095 if test -s conftest.err; then 3411 if test -s conftest.err; then
3096 ac_cpp_err=$ac_c_preproc_warn_flag 3412 ac_cpp_err=$ac_c_preproc_warn_flag
3097 else 3413 else
3098 ac_cpp_err= 3414 ac_cpp_err=
3125 fi 3441 fi
3126 CPP=$ac_cv_prog_CPP 3442 CPP=$ac_cv_prog_CPP
3127 else 3443 else
3128 ac_cv_prog_CPP=$CPP 3444 ac_cv_prog_CPP=$CPP
3129 fi 3445 fi
3130 echo "$as_me:3130: result: $CPP" >&5 3446 echo "$as_me:$LINENO: result: $CPP" >&5
3131 echo "${ECHO_T}$CPP" >&6 3447 echo "${ECHO_T}$CPP" >&6
3132 ac_preproc_ok=false 3448 ac_preproc_ok=false
3133 for ac_c_preproc_warn_flag in '' yes 3449 for ac_c_preproc_warn_flag in '' yes
3134 do 3450 do
3135 # Use a header file that comes with gcc, so configuring glibc 3451 # Use a header file that comes with gcc, so configuring glibc
3136 # with a fresh cross-compiler works. 3452 # with a fresh cross-compiler works.
3137 # On the NeXT, cc -E runs the code through the compiler's parser, 3453 # On the NeXT, cc -E runs the code through the compiler's parser,
3138 # not just through cpp. "Syntax error" is here to catch this case. 3454 # not just through cpp. "Syntax error" is here to catch this case.
3139 cat >conftest.$ac_ext <<_ACEOF 3455 cat >conftest.$ac_ext <<_ACEOF
3140 #line 3140 "configure" 3456 #line $LINENO "configure"
3141 #include "confdefs.h" 3457 #include "confdefs.h"
3142 #include <assert.h> 3458 #include <assert.h>
3143 Syntax error 3459 Syntax error
3144 _ACEOF 3460 _ACEOF
3145 if { (eval echo "$as_me:3145: \"$ac_cpp conftest.$ac_ext\"") >&5 3461 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3146 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3462 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3147 ac_status=$? 3463 ac_status=$?
3148 egrep -v '^ *\+' conftest.er1 >conftest.err 3464 egrep -v '^ *\+' conftest.er1 >conftest.err
3149 rm -f conftest.er1 3465 rm -f conftest.er1
3150 cat conftest.err >&5 3466 cat conftest.err >&5
3151 echo "$as_me:3151: \$? = $ac_status" >&5 3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); } >/dev/null; then 3468 (exit $ac_status); } >/dev/null; then
3153 if test -s conftest.err; then 3469 if test -s conftest.err; then
3154 ac_cpp_err=$ac_c_preproc_warn_flag 3470 ac_cpp_err=$ac_c_preproc_warn_flag
3155 else 3471 else
3156 ac_cpp_err= 3472 ac_cpp_err=
3169 rm -f conftest.err conftest.$ac_ext 3485 rm -f conftest.err conftest.$ac_ext
3170 3486
3171 # OK, works on sane cases. Now check whether non-existent headers 3487 # OK, works on sane cases. Now check whether non-existent headers
3172 # can be detected and how. 3488 # can be detected and how.
3173 cat >conftest.$ac_ext <<_ACEOF 3489 cat >conftest.$ac_ext <<_ACEOF
3174 #line 3174 "configure" 3490 #line $LINENO "configure"
3175 #include "confdefs.h" 3491 #include "confdefs.h"
3176 #include <ac_nonexistent.h> 3492 #include <ac_nonexistent.h>
3177 _ACEOF 3493 _ACEOF
3178 if { (eval echo "$as_me:3178: \"$ac_cpp conftest.$ac_ext\"") >&5 3494 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3179 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3495 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3180 ac_status=$? 3496 ac_status=$?
3181 egrep -v '^ *\+' conftest.er1 >conftest.err 3497 egrep -v '^ *\+' conftest.er1 >conftest.err
3182 rm -f conftest.er1 3498 rm -f conftest.er1
3183 cat conftest.err >&5 3499 cat conftest.err >&5
3184 echo "$as_me:3184: \$? = $ac_status" >&5 3500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); } >/dev/null; then 3501 (exit $ac_status); } >/dev/null; then
3186 if test -s conftest.err; then 3502 if test -s conftest.err; then
3187 ac_cpp_err=$ac_c_preproc_warn_flag 3503 ac_cpp_err=$ac_c_preproc_warn_flag
3188 else 3504 else
3189 ac_cpp_err= 3505 ac_cpp_err=
3207 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3523 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3208 rm -f conftest.err conftest.$ac_ext 3524 rm -f conftest.err conftest.$ac_ext
3209 if $ac_preproc_ok; then 3525 if $ac_preproc_ok; then
3210 : 3526 :
3211 else 3527 else
3212 { { echo "$as_me:3212: error: C preprocessor \"$CPP\" fails sanity check" >&5 3528 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3213 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} 3529 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3214 { (exit 1); exit 1; }; } 3530 { (exit 1); exit 1; }; }
3215 fi 3531 fi
3216 3532
3217 ac_ext=c 3533 ac_ext=c
3230 # AmigaOS /C/install, which installs bootblocks on floppy discs 3546 # AmigaOS /C/install, which installs bootblocks on floppy discs
3231 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3547 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3232 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 3548 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3233 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3549 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3234 # ./install, which can be erroneously created by make from ./install.sh. 3550 # ./install, which can be erroneously created by make from ./install.sh.
3235 echo "$as_me:3235: checking for a BSD compatible install" >&5 3551 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3236 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 3552 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3237 if test -z "$INSTALL"; then 3553 if test -z "$INSTALL"; then
3238 if test "${ac_cv_path_install+set}" = set; then 3554 if test "${ac_cv_path_install+set}" = set; then
3239 echo $ECHO_N "(cached) $ECHO_C" >&6 3555 echo $ECHO_N "(cached) $ECHO_C" >&6
3240 else 3556 else
3241 ac_save_IFS=$IFS; IFS=$ac_path_separator 3557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242 for ac_dir in $PATH; do 3558 for as_dir in $PATH
3243 IFS=$ac_save_IFS 3559 do
3244 # Account for people who put trailing slashes in PATH elements. 3560 IFS=$as_save_IFS
3245 case $ac_dir/ in 3561 test -z "$as_dir" && as_dir=.
3246 / | ./ | .// | /cC/* \ 3562 # Account for people who put trailing slashes in PATH elements.
3247 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ 3563 case $as_dir/ in
3248 | /usr/ucb/* ) ;; 3564 ./ | .// | /cC/* | \
3249 *) 3565 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3250 # OSF1 and SCO ODT 3.0 have their own names for install. 3566 /usr/ucb/* ) ;;
3251 # Don't use installbsd from OSF since it installs stuff as root 3567 *)
3252 # by default. 3568 # OSF1 and SCO ODT 3.0 have their own names for install.
3253 for ac_prog in ginstall scoinst install; do 3569 # Don't use installbsd from OSF since it installs stuff as root
3254 if $as_executable_p "$ac_dir/$ac_prog"; then 3570 # by default.
3255 if test $ac_prog = install && 3571 for ac_prog in ginstall scoinst install; do
3256 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then 3572 for ac_exec_ext in '' $ac_executable_extensions; do
3257 # AIX install. It has an incompatible calling convention. 3573 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3258 : 3574 if test $ac_prog = install &&
3259 elif test $ac_prog = install && 3575 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3260 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then 3576 # AIX install. It has an incompatible calling convention.
3261 # program-specific install script used by HP pwplus--don't use. 3577 :
3262 : 3578 elif test $ac_prog = install &&
3263 else 3579 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3264 ac_cv_path_install="$ac_dir/$ac_prog -c" 3580 # program-specific install script used by HP pwplus--don't use.
3265 break 2 3581 :
3266 fi 3582 else
3267 fi 3583 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3584 break 3
3585 fi
3586 fi
3268 done 3587 done
3269 ;; 3588 done
3270 esac 3589 ;;
3271 done 3590 esac
3591 done
3592
3272 3593
3273 fi 3594 fi
3274 if test "${ac_cv_path_install+set}" = set; then 3595 if test "${ac_cv_path_install+set}" = set; then
3275 INSTALL=$ac_cv_path_install 3596 INSTALL=$ac_cv_path_install
3276 else 3597 else
3279 # break other packages using the cache if that directory is 3600 # break other packages using the cache if that directory is
3280 # removed, or if the path is relative. 3601 # removed, or if the path is relative.
3281 INSTALL=$ac_install_sh 3602 INSTALL=$ac_install_sh
3282 fi 3603 fi
3283 fi 3604 fi
3284 echo "$as_me:3284: result: $INSTALL" >&5 3605 echo "$as_me:$LINENO: result: $INSTALL" >&5
3285 echo "${ECHO_T}$INSTALL" >&6 3606 echo "${ECHO_T}$INSTALL" >&6
3286 3607
3287 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3608 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3288 # It thinks the first close brace ends the variable substitution. 3609 # It thinks the first close brace ends the variable substitution.
3289 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3610 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3294 3615
3295 for ac_prog in 'bison -y' byacc 3616 for ac_prog in 'bison -y' byacc
3296 do 3617 do
3297 # Extract the first word of "$ac_prog", so it can be a program name with args. 3618 # Extract the first word of "$ac_prog", so it can be a program name with args.
3298 set dummy $ac_prog; ac_word=$2 3619 set dummy $ac_prog; ac_word=$2
3299 echo "$as_me:3299: checking for $ac_word" >&5 3620 echo "$as_me:$LINENO: checking for $ac_word" >&5
3300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3301 if test "${ac_cv_prog_YACC+set}" = set; then 3622 if test "${ac_cv_prog_YACC+set}" = set; then
3302 echo $ECHO_N "(cached) $ECHO_C" >&6 3623 echo $ECHO_N "(cached) $ECHO_C" >&6
3303 else 3624 else
3304 if test -n "$YACC"; then 3625 if test -n "$YACC"; then
3305 ac_cv_prog_YACC="$YACC" # Let the user override the test. 3626 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3306 else 3627 else
3307 ac_save_IFS=$IFS; IFS=$ac_path_separator 3628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3308 ac_dummy="$PATH" 3629 for as_dir in $PATH
3309 for ac_dir in $ac_dummy; do 3630 do
3310 IFS=$ac_save_IFS 3631 IFS=$as_save_IFS
3311 test -z "$ac_dir" && ac_dir=. 3632 test -z "$as_dir" && as_dir=.
3312 $as_executable_p "$ac_dir/$ac_word" || continue 3633 for ac_exec_ext in '' $ac_executable_extensions; do
3313 ac_cv_prog_YACC="$ac_prog" 3634 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3314 echo "$as_me:3314: found $ac_dir/$ac_word" >&5 3635 ac_cv_prog_YACC="$ac_prog"
3315 break 3636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3637 break 2
3638 fi
3639 done
3316 done 3640 done
3317 3641
3318 fi 3642 fi
3319 fi 3643 fi
3320 YACC=$ac_cv_prog_YACC 3644 YACC=$ac_cv_prog_YACC
3321 if test -n "$YACC"; then 3645 if test -n "$YACC"; then
3322 echo "$as_me:3322: result: $YACC" >&5 3646 echo "$as_me:$LINENO: result: $YACC" >&5
3323 echo "${ECHO_T}$YACC" >&6 3647 echo "${ECHO_T}$YACC" >&6
3324 else 3648 else
3325 echo "$as_me:3325: result: no" >&5 3649 echo "$as_me:$LINENO: result: no" >&5
3326 echo "${ECHO_T}no" >&6 3650 echo "${ECHO_T}no" >&6
3327 fi 3651 fi
3328 3652
3329 test -n "$YACC" && break 3653 test -n "$YACC" && break
3330 done 3654 done
3332 3656
3333 if test "x$RANLIB" = x; then 3657 if test "x$RANLIB" = x; then
3334 if test -n "$ac_tool_prefix"; then 3658 if test -n "$ac_tool_prefix"; then
3335 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3659 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3336 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3660 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3337 echo "$as_me:3337: checking for $ac_word" >&5 3661 echo "$as_me:$LINENO: checking for $ac_word" >&5
3338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3339 if test "${ac_cv_prog_RANLIB+set}" = set; then 3663 if test "${ac_cv_prog_RANLIB+set}" = set; then
3340 echo $ECHO_N "(cached) $ECHO_C" >&6 3664 echo $ECHO_N "(cached) $ECHO_C" >&6
3341 else 3665 else
3342 if test -n "$RANLIB"; then 3666 if test -n "$RANLIB"; then
3343 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3667 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3344 else 3668 else
3345 ac_save_IFS=$IFS; IFS=$ac_path_separator 3669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3346 ac_dummy="$PATH" 3670 for as_dir in $PATH
3347 for ac_dir in $ac_dummy; do 3671 do
3348 IFS=$ac_save_IFS 3672 IFS=$as_save_IFS
3349 test -z "$ac_dir" && ac_dir=. 3673 test -z "$as_dir" && as_dir=.
3350 $as_executable_p "$ac_dir/$ac_word" || continue 3674 for ac_exec_ext in '' $ac_executable_extensions; do
3351 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3352 echo "$as_me:3352: found $ac_dir/$ac_word" >&5 3676 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3353 break 3677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3678 break 2
3679 fi
3680 done
3354 done 3681 done
3355 3682
3356 fi 3683 fi
3357 fi 3684 fi
3358 RANLIB=$ac_cv_prog_RANLIB 3685 RANLIB=$ac_cv_prog_RANLIB
3359 if test -n "$RANLIB"; then 3686 if test -n "$RANLIB"; then
3360 echo "$as_me:3360: result: $RANLIB" >&5 3687 echo "$as_me:$LINENO: result: $RANLIB" >&5
3361 echo "${ECHO_T}$RANLIB" >&6 3688 echo "${ECHO_T}$RANLIB" >&6
3362 else 3689 else
3363 echo "$as_me:3363: result: no" >&5 3690 echo "$as_me:$LINENO: result: no" >&5
3364 echo "${ECHO_T}no" >&6 3691 echo "${ECHO_T}no" >&6
3365 fi 3692 fi
3366 3693
3367 fi 3694 fi
3368 if test -z "$ac_cv_prog_RANLIB"; then 3695 if test -z "$ac_cv_prog_RANLIB"; then
3369 ac_ct_RANLIB=$RANLIB 3696 ac_ct_RANLIB=$RANLIB
3370 # Extract the first word of "ranlib", so it can be a program name with args. 3697 # Extract the first word of "ranlib", so it can be a program name with args.
3371 set dummy ranlib; ac_word=$2 3698 set dummy ranlib; ac_word=$2
3372 echo "$as_me:3372: checking for $ac_word" >&5 3699 echo "$as_me:$LINENO: checking for $ac_word" >&5
3373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3374 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3701 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3375 echo $ECHO_N "(cached) $ECHO_C" >&6 3702 echo $ECHO_N "(cached) $ECHO_C" >&6
3376 else 3703 else
3377 if test -n "$ac_ct_RANLIB"; then 3704 if test -n "$ac_ct_RANLIB"; then
3378 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3705 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3379 else 3706 else
3380 ac_save_IFS=$IFS; IFS=$ac_path_separator 3707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3381 ac_dummy="$PATH" 3708 for as_dir in $PATH
3382 for ac_dir in $ac_dummy; do 3709 do
3383 IFS=$ac_save_IFS 3710 IFS=$as_save_IFS
3384 test -z "$ac_dir" && ac_dir=. 3711 test -z "$as_dir" && as_dir=.
3385 $as_executable_p "$ac_dir/$ac_word" || continue 3712 for ac_exec_ext in '' $ac_executable_extensions; do
3386 ac_cv_prog_ac_ct_RANLIB="ranlib" 3713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3387 echo "$as_me:3387: found $ac_dir/$ac_word" >&5 3714 ac_cv_prog_ac_ct_RANLIB="ranlib"
3388 break 3715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3716 break 2
3717 fi
3718 done
3389 done 3719 done
3390 3720
3391 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 3721 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3392 fi 3722 fi
3393 fi 3723 fi
3394 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3724 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3395 if test -n "$ac_ct_RANLIB"; then 3725 if test -n "$ac_ct_RANLIB"; then
3396 echo "$as_me:3396: result: $ac_ct_RANLIB" >&5 3726 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3397 echo "${ECHO_T}$ac_ct_RANLIB" >&6 3727 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3398 else 3728 else
3399 echo "$as_me:3399: result: no" >&5 3729 echo "$as_me:$LINENO: result: no" >&5
3400 echo "${ECHO_T}no" >&6 3730 echo "${ECHO_T}no" >&6
3401 fi 3731 fi
3402 3732
3403 RANLIB=$ac_ct_RANLIB 3733 RANLIB=$ac_ct_RANLIB
3404 else 3734 else
3405 RANLIB="$ac_cv_prog_RANLIB" 3735 RANLIB="$ac_cv_prog_RANLIB"
3406 fi 3736 fi
3407 3737
3408 fi 3738 fi
3409 3739
3410 echo "$as_me:3410: checking for AIX" >&5 3740
3741
3742
3743 echo "$as_me:$LINENO: checking for AIX" >&5
3411 echo $ECHO_N "checking for AIX... $ECHO_C" >&6 3744 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3412 cat >conftest.$ac_ext <<_ACEOF 3745 cat >conftest.$ac_ext <<_ACEOF
3413 #line 3413 "configure" 3746 #line $LINENO "configure"
3414 #include "confdefs.h" 3747 #include "confdefs.h"
3415 #ifdef _AIX 3748 #ifdef _AIX
3416 yes 3749 yes
3417 #endif 3750 #endif
3418 3751
3419 _ACEOF 3752 _ACEOF
3420 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3421 egrep "yes" >/dev/null 2>&1; then 3754 egrep "yes" >/dev/null 2>&1; then
3422 echo "$as_me:3422: result: yes" >&5 3755 echo "$as_me:$LINENO: result: yes" >&5
3423 echo "${ECHO_T}yes" >&6 3756 echo "${ECHO_T}yes" >&6
3424 cat >>confdefs.h <<\EOF 3757 cat >>confdefs.h <<\_ACEOF
3425 #define _ALL_SOURCE 1 3758 #define _ALL_SOURCE 1
3426 EOF 3759 _ACEOF
3427 3760
3428 else 3761 else
3429 echo "$as_me:3429: result: no" >&5 3762 echo "$as_me:$LINENO: result: no" >&5
3430 echo "${ECHO_T}no" >&6 3763 echo "${ECHO_T}no" >&6
3431 fi 3764 fi
3432 rm -f conftest* 3765 rm -f conftest*
3433 3766
3767
3768
3434 #### Extract some information from the operating system and machine files. 3769 #### Extract some information from the operating system and machine files.
3435 3770
3436 { echo "$as_me:3436: checking the machine- and system-dependent files to find out 3771 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
3437 - which libraries the lib-src programs will want, and 3772 - which libraries the lib-src programs will want, and
3438 - whether the GNU malloc routines are usable..." >&5 3773 - whether the GNU malloc routines are usable..." >&5
3439 echo "$as_me: checking the machine- and system-dependent files to find out 3774 echo "$as_me: checking the machine- and system-dependent files to find out
3440 - which libraries the lib-src programs will want, and 3775 - which libraries the lib-src programs will want, and
3441 - whether the GNU malloc routines are usable..." >&6;} 3776 - whether the GNU malloc routines are usable..." >&6;}
3581 enableval="$enable_largefile" 3916 enableval="$enable_largefile"
3582 3917
3583 fi; 3918 fi;
3584 if test "$enable_largefile" != no; then 3919 if test "$enable_largefile" != no; then
3585 3920
3586 echo "$as_me:3586: checking for special C compiler options needed for large files" >&5 3921 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3587 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 3922 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3588 if test "${ac_cv_sys_largefile_CC+set}" = set; then 3923 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3589 echo $ECHO_N "(cached) $ECHO_C" >&6 3924 echo $ECHO_N "(cached) $ECHO_C" >&6
3590 else 3925 else
3591 ac_cv_sys_largefile_CC=no 3926 ac_cv_sys_largefile_CC=no
3593 ac_save_CC=$CC 3928 ac_save_CC=$CC
3594 while :; do 3929 while :; do
3595 # IRIX 6.2 and later do not support large files by default, 3930 # IRIX 6.2 and later do not support large files by default,
3596 # so use the C compiler's -n32 option if that helps. 3931 # so use the C compiler's -n32 option if that helps.
3597 cat >conftest.$ac_ext <<_ACEOF 3932 cat >conftest.$ac_ext <<_ACEOF
3598 #line 3598 "configure" 3933 #line $LINENO "configure"
3599 #include "confdefs.h" 3934 #include "confdefs.h"
3600 #include <sys/types.h> 3935 #include <sys/types.h>
3601 /* Check that off_t can represent 2**63 - 1 correctly. 3936 /* Check that off_t can represent 2**63 - 1 correctly.
3602 We can't simply define LARGE_OFF_T to be 9223372036854775807, 3937 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3603 since some C++ compilers masquerading as C compilers 3938 since some C++ compilers masquerading as C compilers
3604 incorrectly reject 9223372036854775807. */ 3939 incorrectly reject 9223372036854775807. */
3605 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3940 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3606 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3941 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3607 && LARGE_OFF_T % 2147483647 == 1) 3942 && LARGE_OFF_T % 2147483647 == 1)
3608 ? 1 : -1]; 3943 ? 1 : -1];
3944 #ifdef F77_DUMMY_MAIN
3945 # ifdef __cplusplus
3946 extern "C"
3947 # endif
3948 int F77_DUMMY_MAIN() { return 1; }
3949 #endif
3609 int 3950 int
3610 main () 3951 main ()
3611 { 3952 {
3612 3953
3613 ; 3954 ;
3614 return 0; 3955 return 0;
3615 } 3956 }
3616 _ACEOF 3957 _ACEOF
3617 rm -f conftest.$ac_objext 3958 rm -f conftest.$ac_objext
3618 if { (eval echo "$as_me:3618: \"$ac_compile\"") >&5 3959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3619 (eval $ac_compile) 2>&5 3960 (eval $ac_compile) 2>&5
3620 ac_status=$? 3961 ac_status=$?
3621 echo "$as_me:3621: \$? = $ac_status" >&5 3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); } && 3963 (exit $ac_status); } &&
3623 { ac_try='test -s conftest.$ac_objext' 3964 { ac_try='test -s conftest.$ac_objext'
3624 { (eval echo "$as_me:3624: \"$ac_try\"") >&5 3965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3625 (eval $ac_try) 2>&5 3966 (eval $ac_try) 2>&5
3626 ac_status=$? 3967 ac_status=$?
3627 echo "$as_me:3627: \$? = $ac_status" >&5 3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); }; }; then 3969 (exit $ac_status); }; }; then
3629 break 3970 break
3630 else 3971 else
3631 echo "$as_me: failed program was:" >&5 3972 echo "$as_me: failed program was:" >&5
3632 cat conftest.$ac_ext >&5 3973 cat conftest.$ac_ext >&5
3633 fi 3974 fi
3634 rm -f conftest.$ac_objext 3975 rm -f conftest.$ac_objext
3635 CC="$CC -n32" 3976 CC="$CC -n32"
3636 rm -f conftest.$ac_objext 3977 rm -f conftest.$ac_objext
3637 if { (eval echo "$as_me:3637: \"$ac_compile\"") >&5 3978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3638 (eval $ac_compile) 2>&5 3979 (eval $ac_compile) 2>&5
3639 ac_status=$? 3980 ac_status=$?
3640 echo "$as_me:3640: \$? = $ac_status" >&5 3981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); } && 3982 (exit $ac_status); } &&
3642 { ac_try='test -s conftest.$ac_objext' 3983 { ac_try='test -s conftest.$ac_objext'
3643 { (eval echo "$as_me:3643: \"$ac_try\"") >&5 3984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3644 (eval $ac_try) 2>&5 3985 (eval $ac_try) 2>&5
3645 ac_status=$? 3986 ac_status=$?
3646 echo "$as_me:3646: \$? = $ac_status" >&5 3987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647 (exit $ac_status); }; }; then 3988 (exit $ac_status); }; }; then
3648 ac_cv_sys_largefile_CC=' -n32'; break 3989 ac_cv_sys_largefile_CC=' -n32'; break
3649 else 3990 else
3650 echo "$as_me: failed program was:" >&5 3991 echo "$as_me: failed program was:" >&5
3651 cat conftest.$ac_ext >&5 3992 cat conftest.$ac_ext >&5
3655 done 3996 done
3656 CC=$ac_save_CC 3997 CC=$ac_save_CC
3657 rm -f conftest.$ac_ext 3998 rm -f conftest.$ac_ext
3658 fi 3999 fi
3659 fi 4000 fi
3660 echo "$as_me:3660: result: $ac_cv_sys_largefile_CC" >&5 4001 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3661 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 4002 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3662 if test "$ac_cv_sys_largefile_CC" != no; then 4003 if test "$ac_cv_sys_largefile_CC" != no; then
3663 CC=$CC$ac_cv_sys_largefile_CC 4004 CC=$CC$ac_cv_sys_largefile_CC
3664 fi 4005 fi
3665 4006
3666 echo "$as_me:3666: checking for _FILE_OFFSET_BITS value needed for large files" >&5 4007 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3667 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 4008 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3668 if test "${ac_cv_sys_file_offset_bits+set}" = set; then 4009 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3669 echo $ECHO_N "(cached) $ECHO_C" >&6 4010 echo $ECHO_N "(cached) $ECHO_C" >&6
3670 else 4011 else
3671 while :; do 4012 while :; do
3672 ac_cv_sys_file_offset_bits=no 4013 ac_cv_sys_file_offset_bits=no
3673 cat >conftest.$ac_ext <<_ACEOF 4014 cat >conftest.$ac_ext <<_ACEOF
3674 #line 3674 "configure" 4015 #line $LINENO "configure"
3675 #include "confdefs.h" 4016 #include "confdefs.h"
3676 #include <sys/types.h> 4017 #include <sys/types.h>
3677 /* Check that off_t can represent 2**63 - 1 correctly. 4018 /* Check that off_t can represent 2**63 - 1 correctly.
3678 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4019 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3679 since some C++ compilers masquerading as C compilers 4020 since some C++ compilers masquerading as C compilers
3680 incorrectly reject 9223372036854775807. */ 4021 incorrectly reject 9223372036854775807. */
3681 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4022 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3682 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4023 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3683 && LARGE_OFF_T % 2147483647 == 1) 4024 && LARGE_OFF_T % 2147483647 == 1)
3684 ? 1 : -1]; 4025 ? 1 : -1];
4026 #ifdef F77_DUMMY_MAIN
4027 # ifdef __cplusplus
4028 extern "C"
4029 # endif
4030 int F77_DUMMY_MAIN() { return 1; }
4031 #endif
3685 int 4032 int
3686 main () 4033 main ()
3687 { 4034 {
3688 4035
3689 ; 4036 ;
3690 return 0; 4037 return 0;
3691 } 4038 }
3692 _ACEOF 4039 _ACEOF
3693 rm -f conftest.$ac_objext 4040 rm -f conftest.$ac_objext
3694 if { (eval echo "$as_me:3694: \"$ac_compile\"") >&5 4041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3695 (eval $ac_compile) 2>&5 4042 (eval $ac_compile) 2>&5
3696 ac_status=$? 4043 ac_status=$?
3697 echo "$as_me:3697: \$? = $ac_status" >&5 4044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698 (exit $ac_status); } && 4045 (exit $ac_status); } &&
3699 { ac_try='test -s conftest.$ac_objext' 4046 { ac_try='test -s conftest.$ac_objext'
3700 { (eval echo "$as_me:3700: \"$ac_try\"") >&5 4047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3701 (eval $ac_try) 2>&5 4048 (eval $ac_try) 2>&5
3702 ac_status=$? 4049 ac_status=$?
3703 echo "$as_me:3703: \$? = $ac_status" >&5 4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704 (exit $ac_status); }; }; then 4051 (exit $ac_status); }; }; then
3705 break 4052 break
3706 else 4053 else
3707 echo "$as_me: failed program was:" >&5 4054 echo "$as_me: failed program was:" >&5
3708 cat conftest.$ac_ext >&5 4055 cat conftest.$ac_ext >&5
3709 fi 4056 fi
3710 rm -f conftest.$ac_objext conftest.$ac_ext 4057 rm -f conftest.$ac_objext conftest.$ac_ext
3711 cat >conftest.$ac_ext <<_ACEOF 4058 cat >conftest.$ac_ext <<_ACEOF
3712 #line 3712 "configure" 4059 #line $LINENO "configure"
3713 #include "confdefs.h" 4060 #include "confdefs.h"
3714 #define _FILE_OFFSET_BITS 64 4061 #define _FILE_OFFSET_BITS 64
3715 #include <sys/types.h> 4062 #include <sys/types.h>
3716 /* Check that off_t can represent 2**63 - 1 correctly. 4063 /* Check that off_t can represent 2**63 - 1 correctly.
3717 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4064 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3719 incorrectly reject 9223372036854775807. */ 4066 incorrectly reject 9223372036854775807. */
3720 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4067 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3721 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4068 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3722 && LARGE_OFF_T % 2147483647 == 1) 4069 && LARGE_OFF_T % 2147483647 == 1)
3723 ? 1 : -1]; 4070 ? 1 : -1];
4071 #ifdef F77_DUMMY_MAIN
4072 # ifdef __cplusplus
4073 extern "C"
4074 # endif
4075 int F77_DUMMY_MAIN() { return 1; }
4076 #endif
3724 int 4077 int
3725 main () 4078 main ()
3726 { 4079 {
3727 4080
3728 ; 4081 ;
3729 return 0; 4082 return 0;
3730 } 4083 }
3731 _ACEOF 4084 _ACEOF
3732 rm -f conftest.$ac_objext 4085 rm -f conftest.$ac_objext
3733 if { (eval echo "$as_me:3733: \"$ac_compile\"") >&5 4086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3734 (eval $ac_compile) 2>&5 4087 (eval $ac_compile) 2>&5
3735 ac_status=$? 4088 ac_status=$?
3736 echo "$as_me:3736: \$? = $ac_status" >&5 4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3737 (exit $ac_status); } && 4090 (exit $ac_status); } &&
3738 { ac_try='test -s conftest.$ac_objext' 4091 { ac_try='test -s conftest.$ac_objext'
3739 { (eval echo "$as_me:3739: \"$ac_try\"") >&5 4092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3740 (eval $ac_try) 2>&5 4093 (eval $ac_try) 2>&5
3741 ac_status=$? 4094 ac_status=$?
3742 echo "$as_me:3742: \$? = $ac_status" >&5 4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743 (exit $ac_status); }; }; then 4096 (exit $ac_status); }; }; then
3744 ac_cv_sys_file_offset_bits=64; break 4097 ac_cv_sys_file_offset_bits=64; break
3745 else 4098 else
3746 echo "$as_me: failed program was:" >&5 4099 echo "$as_me: failed program was:" >&5
3747 cat conftest.$ac_ext >&5 4100 cat conftest.$ac_ext >&5
3748 fi 4101 fi
3749 rm -f conftest.$ac_objext conftest.$ac_ext 4102 rm -f conftest.$ac_objext conftest.$ac_ext
3750 break 4103 break
3751 done 4104 done
3752 fi 4105 fi
3753 echo "$as_me:3753: result: $ac_cv_sys_file_offset_bits" >&5 4106 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3754 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 4107 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3755 if test "$ac_cv_sys_file_offset_bits" != no; then 4108 if test "$ac_cv_sys_file_offset_bits" != no; then
3756 4109
3757 cat >>confdefs.h <<EOF 4110 cat >>confdefs.h <<_ACEOF
3758 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 4111 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3759 EOF 4112 _ACEOF
3760 4113
3761 fi 4114 fi
3762 rm -f conftest* 4115 rm -f conftest*
3763 echo "$as_me:3763: checking for _LARGE_FILES value needed for large files" >&5 4116 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3764 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 4117 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3765 if test "${ac_cv_sys_large_files+set}" = set; then 4118 if test "${ac_cv_sys_large_files+set}" = set; then
3766 echo $ECHO_N "(cached) $ECHO_C" >&6 4119 echo $ECHO_N "(cached) $ECHO_C" >&6
3767 else 4120 else
3768 while :; do 4121 while :; do
3769 ac_cv_sys_large_files=no 4122 ac_cv_sys_large_files=no
3770 cat >conftest.$ac_ext <<_ACEOF 4123 cat >conftest.$ac_ext <<_ACEOF
3771 #line 3771 "configure" 4124 #line $LINENO "configure"
3772 #include "confdefs.h" 4125 #include "confdefs.h"
3773 #include <sys/types.h> 4126 #include <sys/types.h>
3774 /* Check that off_t can represent 2**63 - 1 correctly. 4127 /* Check that off_t can represent 2**63 - 1 correctly.
3775 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4128 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3776 since some C++ compilers masquerading as C compilers 4129 since some C++ compilers masquerading as C compilers
3777 incorrectly reject 9223372036854775807. */ 4130 incorrectly reject 9223372036854775807. */
3778 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4131 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3779 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4132 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3780 && LARGE_OFF_T % 2147483647 == 1) 4133 && LARGE_OFF_T % 2147483647 == 1)
3781 ? 1 : -1]; 4134 ? 1 : -1];
4135 #ifdef F77_DUMMY_MAIN
4136 # ifdef __cplusplus
4137 extern "C"
4138 # endif
4139 int F77_DUMMY_MAIN() { return 1; }
4140 #endif
3782 int 4141 int
3783 main () 4142 main ()
3784 { 4143 {
3785 4144
3786 ; 4145 ;
3787 return 0; 4146 return 0;
3788 } 4147 }
3789 _ACEOF 4148 _ACEOF
3790 rm -f conftest.$ac_objext 4149 rm -f conftest.$ac_objext
3791 if { (eval echo "$as_me:3791: \"$ac_compile\"") >&5 4150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3792 (eval $ac_compile) 2>&5 4151 (eval $ac_compile) 2>&5
3793 ac_status=$? 4152 ac_status=$?
3794 echo "$as_me:3794: \$? = $ac_status" >&5 4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); } && 4154 (exit $ac_status); } &&
3796 { ac_try='test -s conftest.$ac_objext' 4155 { ac_try='test -s conftest.$ac_objext'
3797 { (eval echo "$as_me:3797: \"$ac_try\"") >&5 4156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3798 (eval $ac_try) 2>&5 4157 (eval $ac_try) 2>&5
3799 ac_status=$? 4158 ac_status=$?
3800 echo "$as_me:3800: \$? = $ac_status" >&5 4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); }; }; then 4160 (exit $ac_status); }; }; then
3802 break 4161 break
3803 else 4162 else
3804 echo "$as_me: failed program was:" >&5 4163 echo "$as_me: failed program was:" >&5
3805 cat conftest.$ac_ext >&5 4164 cat conftest.$ac_ext >&5
3806 fi 4165 fi
3807 rm -f conftest.$ac_objext conftest.$ac_ext 4166 rm -f conftest.$ac_objext conftest.$ac_ext
3808 cat >conftest.$ac_ext <<_ACEOF 4167 cat >conftest.$ac_ext <<_ACEOF
3809 #line 3809 "configure" 4168 #line $LINENO "configure"
3810 #include "confdefs.h" 4169 #include "confdefs.h"
3811 #define _LARGE_FILES 1 4170 #define _LARGE_FILES 1
3812 #include <sys/types.h> 4171 #include <sys/types.h>
3813 /* Check that off_t can represent 2**63 - 1 correctly. 4172 /* Check that off_t can represent 2**63 - 1 correctly.
3814 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4173 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3816 incorrectly reject 9223372036854775807. */ 4175 incorrectly reject 9223372036854775807. */
3817 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4176 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3818 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4177 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3819 && LARGE_OFF_T % 2147483647 == 1) 4178 && LARGE_OFF_T % 2147483647 == 1)
3820 ? 1 : -1]; 4179 ? 1 : -1];
4180 #ifdef F77_DUMMY_MAIN
4181 # ifdef __cplusplus
4182 extern "C"
4183 # endif
4184 int F77_DUMMY_MAIN() { return 1; }
4185 #endif
3821 int 4186 int
3822 main () 4187 main ()
3823 { 4188 {
3824 4189
3825 ; 4190 ;
3826 return 0; 4191 return 0;
3827 } 4192 }
3828 _ACEOF 4193 _ACEOF
3829 rm -f conftest.$ac_objext 4194 rm -f conftest.$ac_objext
3830 if { (eval echo "$as_me:3830: \"$ac_compile\"") >&5 4195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3831 (eval $ac_compile) 2>&5 4196 (eval $ac_compile) 2>&5
3832 ac_status=$? 4197 ac_status=$?
3833 echo "$as_me:3833: \$? = $ac_status" >&5 4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); } && 4199 (exit $ac_status); } &&
3835 { ac_try='test -s conftest.$ac_objext' 4200 { ac_try='test -s conftest.$ac_objext'
3836 { (eval echo "$as_me:3836: \"$ac_try\"") >&5 4201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3837 (eval $ac_try) 2>&5 4202 (eval $ac_try) 2>&5
3838 ac_status=$? 4203 ac_status=$?
3839 echo "$as_me:3839: \$? = $ac_status" >&5 4204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); }; }; then 4205 (exit $ac_status); }; }; then
3841 ac_cv_sys_large_files=1; break 4206 ac_cv_sys_large_files=1; break
3842 else 4207 else
3843 echo "$as_me: failed program was:" >&5 4208 echo "$as_me: failed program was:" >&5
3844 cat conftest.$ac_ext >&5 4209 cat conftest.$ac_ext >&5
3845 fi 4210 fi
3846 rm -f conftest.$ac_objext conftest.$ac_ext 4211 rm -f conftest.$ac_objext conftest.$ac_ext
3847 break 4212 break
3848 done 4213 done
3849 fi 4214 fi
3850 echo "$as_me:3850: result: $ac_cv_sys_large_files" >&5 4215 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3851 echo "${ECHO_T}$ac_cv_sys_large_files" >&6 4216 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3852 if test "$ac_cv_sys_large_files" != no; then 4217 if test "$ac_cv_sys_large_files" != no; then
3853 4218
3854 cat >>confdefs.h <<EOF 4219 cat >>confdefs.h <<_ACEOF
3855 #define _LARGE_FILES $ac_cv_sys_large_files 4220 #define _LARGE_FILES $ac_cv_sys_large_files
3856 EOF 4221 _ACEOF
3857 4222
3858 fi 4223 fi
3859 rm -f conftest* 4224 rm -f conftest*
3860 fi 4225 fi
4226
3861 4227
3862 if test "${with_sound}" != "no"; then 4228 if test "${with_sound}" != "no"; then
3863 # Sound support for GNU/Linux and the free BSDs. 4229 # Sound support for GNU/Linux and the free BSDs.
3864 4230 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3865 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h 4231 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3866 do 4232 if test "${ac_cv_header_stdc+set}" = set; then
3867 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3868 echo "$as_me:3868: checking for $ac_header" >&5
3869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3870 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3871 echo $ECHO_N "(cached) $ECHO_C" >&6 4233 echo $ECHO_N "(cached) $ECHO_C" >&6
3872 else 4234 else
3873 cat >conftest.$ac_ext <<_ACEOF 4235 cat >conftest.$ac_ext <<_ACEOF
3874 #line 3874 "configure" 4236 #line $LINENO "configure"
3875 #include "confdefs.h" 4237 #include "confdefs.h"
3876 #include <$ac_header> 4238 #include <stdlib.h>
3877 _ACEOF 4239 #include <stdarg.h>
3878 if { (eval echo "$as_me:3878: \"$ac_cpp conftest.$ac_ext\"") >&5 4240 #include <string.h>
4241 #include <float.h>
4242
4243 _ACEOF
4244 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3879 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4245 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3880 ac_status=$? 4246 ac_status=$?
3881 egrep -v '^ *\+' conftest.er1 >conftest.err 4247 egrep -v '^ *\+' conftest.er1 >conftest.err
3882 rm -f conftest.er1 4248 rm -f conftest.er1
3883 cat conftest.err >&5 4249 cat conftest.err >&5
3884 echo "$as_me:3884: \$? = $ac_status" >&5 4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885 (exit $ac_status); } >/dev/null; then 4251 (exit $ac_status); } >/dev/null; then
3886 if test -s conftest.err; then 4252 if test -s conftest.err; then
3887 ac_cpp_err=$ac_c_preproc_warn_flag 4253 ac_cpp_err=$ac_c_preproc_warn_flag
3888 else 4254 else
3889 ac_cpp_err= 4255 ac_cpp_err=
3890 fi 4256 fi
3891 else 4257 else
3892 ac_cpp_err=yes 4258 ac_cpp_err=yes
3893 fi 4259 fi
3894 if test -z "$ac_cpp_err"; then 4260 if test -z "$ac_cpp_err"; then
3895 eval "$as_ac_Header=yes"
3896 else
3897 echo "$as_me: failed program was:" >&5
3898 cat conftest.$ac_ext >&5
3899 eval "$as_ac_Header=no"
3900 fi
3901 rm -f conftest.err conftest.$ac_ext
3902 fi
3903 echo "$as_me:3903: result: `eval echo '${'$as_ac_Header'}'`" >&5
3904 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3905 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3906 cat >>confdefs.h <<EOF
3907 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3908 EOF
3909
3910 fi
3911 done
3912
3913 # Emulation library used on NetBSD.
3914 echo "$as_me:3914: checking for _oss_ioctl in -lossaudio" >&5
3915 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
3916 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
3917 echo $ECHO_N "(cached) $ECHO_C" >&6
3918 else
3919 ac_check_lib_save_LIBS=$LIBS
3920 LIBS="-lossaudio $LIBS"
3921 cat >conftest.$ac_ext <<_ACEOF
3922 #line 3922 "configure"
3923 #include "confdefs.h"
3924
3925 /* Override any gcc2 internal prototype to avoid an error. */
3926 #ifdef __cplusplus
3927 extern "C"
3928 #endif
3929 /* We use char because int might match the return type of a gcc2
3930 builtin and then its argument prototype would still apply. */
3931 char _oss_ioctl ();
3932 int
3933 main ()
3934 {
3935 _oss_ioctl ();
3936 ;
3937 return 0;
3938 }
3939 _ACEOF
3940 rm -f conftest.$ac_objext conftest$ac_exeext
3941 if { (eval echo "$as_me:3941: \"$ac_link\"") >&5
3942 (eval $ac_link) 2>&5
3943 ac_status=$?
3944 echo "$as_me:3944: \$? = $ac_status" >&5
3945 (exit $ac_status); } &&
3946 { ac_try='test -s conftest$ac_exeext'
3947 { (eval echo "$as_me:3947: \"$ac_try\"") >&5
3948 (eval $ac_try) 2>&5
3949 ac_status=$?
3950 echo "$as_me:3950: \$? = $ac_status" >&5
3951 (exit $ac_status); }; }; then
3952 ac_cv_lib_ossaudio__oss_ioctl=yes
3953 else
3954 echo "$as_me: failed program was:" >&5
3955 cat conftest.$ac_ext >&5
3956 ac_cv_lib_ossaudio__oss_ioctl=no
3957 fi
3958 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3959 LIBS=$ac_check_lib_save_LIBS
3960 fi
3961 echo "$as_me:3961: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
3962 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
3963 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
3964 LIBSOUND=-lossaudio
3965 else
3966 LIBSOUND=
3967 fi
3968
3969 fi
3970
3971 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
3972 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
3973 termcap.h stdio_ext.h fcntl.h term.h strings.h coff.h
3974 do
3975 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3976 echo "$as_me:3976: checking for $ac_header" >&5
3977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3978 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3979 echo $ECHO_N "(cached) $ECHO_C" >&6
3980 else
3981 cat >conftest.$ac_ext <<_ACEOF
3982 #line 3982 "configure"
3983 #include "confdefs.h"
3984 #include <$ac_header>
3985 _ACEOF
3986 if { (eval echo "$as_me:3986: \"$ac_cpp conftest.$ac_ext\"") >&5
3987 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3988 ac_status=$?
3989 egrep -v '^ *\+' conftest.er1 >conftest.err
3990 rm -f conftest.er1
3991 cat conftest.err >&5
3992 echo "$as_me:3992: \$? = $ac_status" >&5
3993 (exit $ac_status); } >/dev/null; then
3994 if test -s conftest.err; then
3995 ac_cpp_err=$ac_c_preproc_warn_flag
3996 else
3997 ac_cpp_err=
3998 fi
3999 else
4000 ac_cpp_err=yes
4001 fi
4002 if test -z "$ac_cpp_err"; then
4003 eval "$as_ac_Header=yes"
4004 else
4005 echo "$as_me: failed program was:" >&5
4006 cat conftest.$ac_ext >&5
4007 eval "$as_ac_Header=no"
4008 fi
4009 rm -f conftest.err conftest.$ac_ext
4010 fi
4011 echo "$as_me:4011: result: `eval echo '${'$as_ac_Header'}'`" >&5
4012 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4013 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4014 cat >>confdefs.h <<EOF
4015 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4016 EOF
4017
4018 fi
4019 done
4020
4021 echo "$as_me:4021: checking for ANSI C header files" >&5
4022 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4023 if test "${ac_cv_header_stdc+set}" = set; then
4024 echo $ECHO_N "(cached) $ECHO_C" >&6
4025 else
4026 cat >conftest.$ac_ext <<_ACEOF
4027 #line 4027 "configure"
4028 #include "confdefs.h"
4029 #include <stdlib.h>
4030 #include <stdarg.h>
4031 #include <string.h>
4032 #include <float.h>
4033
4034 _ACEOF
4035 if { (eval echo "$as_me:4035: \"$ac_cpp conftest.$ac_ext\"") >&5
4036 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4037 ac_status=$?
4038 egrep -v '^ *\+' conftest.er1 >conftest.err
4039 rm -f conftest.er1
4040 cat conftest.err >&5
4041 echo "$as_me:4041: \$? = $ac_status" >&5
4042 (exit $ac_status); } >/dev/null; then
4043 if test -s conftest.err; then
4044 ac_cpp_err=$ac_c_preproc_warn_flag
4045 else
4046 ac_cpp_err=
4047 fi
4048 else
4049 ac_cpp_err=yes
4050 fi
4051 if test -z "$ac_cpp_err"; then
4052 ac_cv_header_stdc=yes 4261 ac_cv_header_stdc=yes
4053 else 4262 else
4054 echo "$as_me: failed program was:" >&5 4263 echo "$as_me: failed program was:" >&5
4055 cat conftest.$ac_ext >&5 4264 cat conftest.$ac_ext >&5
4056 ac_cv_header_stdc=no 4265 ac_cv_header_stdc=no
4058 rm -f conftest.err conftest.$ac_ext 4267 rm -f conftest.err conftest.$ac_ext
4059 4268
4060 if test $ac_cv_header_stdc = yes; then 4269 if test $ac_cv_header_stdc = yes; then
4061 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4270 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4062 cat >conftest.$ac_ext <<_ACEOF 4271 cat >conftest.$ac_ext <<_ACEOF
4063 #line 4063 "configure" 4272 #line $LINENO "configure"
4064 #include "confdefs.h" 4273 #include "confdefs.h"
4065 #include <string.h> 4274 #include <string.h>
4066 4275
4067 _ACEOF 4276 _ACEOF
4068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4076 fi 4285 fi
4077 4286
4078 if test $ac_cv_header_stdc = yes; then 4287 if test $ac_cv_header_stdc = yes; then
4079 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4288 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4080 cat >conftest.$ac_ext <<_ACEOF 4289 cat >conftest.$ac_ext <<_ACEOF
4081 #line 4081 "configure" 4290 #line $LINENO "configure"
4082 #include "confdefs.h" 4291 #include "confdefs.h"
4083 #include <stdlib.h> 4292 #include <stdlib.h>
4084 4293
4085 _ACEOF 4294 _ACEOF
4086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4097 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4306 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4098 if test "$cross_compiling" = yes; then 4307 if test "$cross_compiling" = yes; then
4099 : 4308 :
4100 else 4309 else
4101 cat >conftest.$ac_ext <<_ACEOF 4310 cat >conftest.$ac_ext <<_ACEOF
4102 #line 4102 "configure" 4311 #line $LINENO "configure"
4103 #include "confdefs.h" 4312 #include "confdefs.h"
4104 #include <ctype.h> 4313 #include <ctype.h>
4105 #if ((' ' & 0x0FF) == 0x020) 4314 #if ((' ' & 0x0FF) == 0x020)
4106 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4315 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4107 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4316 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4123 exit(2); 4332 exit(2);
4124 exit (0); 4333 exit (0);
4125 } 4334 }
4126 _ACEOF 4335 _ACEOF
4127 rm -f conftest$ac_exeext 4336 rm -f conftest$ac_exeext
4128 if { (eval echo "$as_me:4128: \"$ac_link\"") >&5 4337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4129 (eval $ac_link) 2>&5 4338 (eval $ac_link) 2>&5
4130 ac_status=$? 4339 ac_status=$?
4131 echo "$as_me:4131: \$? = $ac_status" >&5 4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4341 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4133 { (eval echo "$as_me:4133: \"$ac_try\"") >&5 4342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4134 (eval $ac_try) 2>&5 4343 (eval $ac_try) 2>&5
4135 ac_status=$? 4344 ac_status=$?
4136 echo "$as_me:4136: \$? = $ac_status" >&5 4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); }; }; then 4346 (exit $ac_status); }; }; then
4138 : 4347 :
4139 else 4348 else
4140 echo "$as_me: program exited with status $ac_status" >&5 4349 echo "$as_me: program exited with status $ac_status" >&5
4141 echo "$as_me: failed program was:" >&5 4350 echo "$as_me: failed program was:" >&5
4142 cat conftest.$ac_ext >&5 4351 cat conftest.$ac_ext >&5
4352 ( exit $ac_status )
4143 ac_cv_header_stdc=no 4353 ac_cv_header_stdc=no
4144 fi 4354 fi
4145 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4355 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4146 fi 4356 fi
4147 fi 4357 fi
4148 fi 4358 fi
4149 echo "$as_me:4149: result: $ac_cv_header_stdc" >&5 4359 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4150 echo "${ECHO_T}$ac_cv_header_stdc" >&6 4360 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4151 if test $ac_cv_header_stdc = yes; then 4361 if test $ac_cv_header_stdc = yes; then
4152 4362
4153 cat >>confdefs.h <<\EOF 4363 cat >>confdefs.h <<\_ACEOF
4154 #define STDC_HEADERS 1 4364 #define STDC_HEADERS 1
4155 EOF 4365 _ACEOF
4156 4366
4157 fi 4367 fi
4158 4368
4159 echo "$as_me:4159: checking whether time.h and sys/time.h may both be included" >&5 4369 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4380 inttypes.h stdint.h unistd.h
4381 do
4382 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4383 echo "$as_me:$LINENO: checking for $ac_header" >&5
4384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4386 echo $ECHO_N "(cached) $ECHO_C" >&6
4387 else
4388 cat >conftest.$ac_ext <<_ACEOF
4389 #line $LINENO "configure"
4390 #include "confdefs.h"
4391 $ac_includes_default
4392
4393 #include <$ac_header>
4394 _ACEOF
4395 rm -f conftest.$ac_objext
4396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4397 (eval $ac_compile) 2>&5
4398 ac_status=$?
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); } &&
4401 { ac_try='test -s conftest.$ac_objext'
4402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4403 (eval $ac_try) 2>&5
4404 ac_status=$?
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); }; }; then
4407 eval "$as_ac_Header=yes"
4408 else
4409 echo "$as_me: failed program was:" >&5
4410 cat conftest.$ac_ext >&5
4411 eval "$as_ac_Header=no"
4412 fi
4413 rm -f conftest.$ac_objext conftest.$ac_ext
4414 fi
4415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4416 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4417 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4418 cat >>confdefs.h <<_ACEOF
4419 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4420 _ACEOF
4421
4422 fi
4423
4424 done
4425
4426
4427
4428
4429
4430 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
4431 do
4432 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4434 echo "$as_me:$LINENO: checking for $ac_header" >&5
4435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4438 fi
4439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4440 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4441 else
4442 # Is the header compilable?
4443 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4444 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4445 cat >conftest.$ac_ext <<_ACEOF
4446 #line $LINENO "configure"
4447 #include "confdefs.h"
4448 $ac_includes_default
4449 #include <$ac_header>
4450 _ACEOF
4451 rm -f conftest.$ac_objext
4452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4453 (eval $ac_compile) 2>&5
4454 ac_status=$?
4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); } &&
4457 { ac_try='test -s conftest.$ac_objext'
4458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4459 (eval $ac_try) 2>&5
4460 ac_status=$?
4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462 (exit $ac_status); }; }; then
4463 ac_header_compiler=yes
4464 else
4465 echo "$as_me: failed program was:" >&5
4466 cat conftest.$ac_ext >&5
4467 ac_header_compiler=no
4468 fi
4469 rm -f conftest.$ac_objext conftest.$ac_ext
4470 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4471 echo "${ECHO_T}$ac_header_compiler" >&6
4472
4473 # Is the header present?
4474 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4475 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4476 cat >conftest.$ac_ext <<_ACEOF
4477 #line $LINENO "configure"
4478 #include "confdefs.h"
4479 #include <$ac_header>
4480 _ACEOF
4481 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4482 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4483 ac_status=$?
4484 egrep -v '^ *\+' conftest.er1 >conftest.err
4485 rm -f conftest.er1
4486 cat conftest.err >&5
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); } >/dev/null; then
4489 if test -s conftest.err; then
4490 ac_cpp_err=$ac_c_preproc_warn_flag
4491 else
4492 ac_cpp_err=
4493 fi
4494 else
4495 ac_cpp_err=yes
4496 fi
4497 if test -z "$ac_cpp_err"; then
4498 ac_header_preproc=yes
4499 else
4500 echo "$as_me: failed program was:" >&5
4501 cat conftest.$ac_ext >&5
4502 ac_header_preproc=no
4503 fi
4504 rm -f conftest.err conftest.$ac_ext
4505 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4506 echo "${ECHO_T}$ac_header_preproc" >&6
4507
4508 # So? What about this header?
4509 case $ac_header_compiler:$ac_header_preproc in
4510 yes:no )
4511 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4512 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4514 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4515 no:yes )
4516 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4517 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4518 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4519 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4520 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4521 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4522 esac
4523 echo "$as_me:$LINENO: checking for $ac_header" >&5
4524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4525 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4526 echo $ECHO_N "(cached) $ECHO_C" >&6
4527 else
4528 eval "$as_ac_Header=$ac_header_preproc"
4529 fi
4530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4531 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4532
4533 fi
4534 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4535 cat >>confdefs.h <<_ACEOF
4536 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4537 _ACEOF
4538
4539 fi
4540
4541 done
4542
4543 # Emulation library used on NetBSD.
4544 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
4545 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4546 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4547 echo $ECHO_N "(cached) $ECHO_C" >&6
4548 else
4549 ac_check_lib_save_LIBS=$LIBS
4550 LIBS="-lossaudio $LIBS"
4551 cat >conftest.$ac_ext <<_ACEOF
4552 #line $LINENO "configure"
4553 #include "confdefs.h"
4554
4555 /* Override any gcc2 internal prototype to avoid an error. */
4556 #ifdef __cplusplus
4557 extern "C"
4558 #endif
4559 /* We use char because int might match the return type of a gcc2
4560 builtin and then its argument prototype would still apply. */
4561 char _oss_ioctl ();
4562 #ifdef F77_DUMMY_MAIN
4563 # ifdef __cplusplus
4564 extern "C"
4565 # endif
4566 int F77_DUMMY_MAIN() { return 1; }
4567 #endif
4568 int
4569 main ()
4570 {
4571 _oss_ioctl ();
4572 ;
4573 return 0;
4574 }
4575 _ACEOF
4576 rm -f conftest.$ac_objext conftest$ac_exeext
4577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4578 (eval $ac_link) 2>&5
4579 ac_status=$?
4580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581 (exit $ac_status); } &&
4582 { ac_try='test -s conftest$ac_exeext'
4583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4584 (eval $ac_try) 2>&5
4585 ac_status=$?
4586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587 (exit $ac_status); }; }; then
4588 ac_cv_lib_ossaudio__oss_ioctl=yes
4589 else
4590 echo "$as_me: failed program was:" >&5
4591 cat conftest.$ac_ext >&5
4592 ac_cv_lib_ossaudio__oss_ioctl=no
4593 fi
4594 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4595 LIBS=$ac_check_lib_save_LIBS
4596 fi
4597 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
4598 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
4599 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
4600 LIBSOUND=-lossaudio
4601 else
4602 LIBSOUND=
4603 fi
4604
4605
4606 fi
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
4626 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
4627 termcap.h stdio_ext.h fcntl.h term.h strings.h coff.h
4628 do
4629 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4630 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4631 echo "$as_me:$LINENO: checking for $ac_header" >&5
4632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4633 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4634 echo $ECHO_N "(cached) $ECHO_C" >&6
4635 fi
4636 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4637 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4638 else
4639 # Is the header compilable?
4640 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4641 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4642 cat >conftest.$ac_ext <<_ACEOF
4643 #line $LINENO "configure"
4644 #include "confdefs.h"
4645 $ac_includes_default
4646 #include <$ac_header>
4647 _ACEOF
4648 rm -f conftest.$ac_objext
4649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4650 (eval $ac_compile) 2>&5
4651 ac_status=$?
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 (exit $ac_status); } &&
4654 { ac_try='test -s conftest.$ac_objext'
4655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4656 (eval $ac_try) 2>&5
4657 ac_status=$?
4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); }; }; then
4660 ac_header_compiler=yes
4661 else
4662 echo "$as_me: failed program was:" >&5
4663 cat conftest.$ac_ext >&5
4664 ac_header_compiler=no
4665 fi
4666 rm -f conftest.$ac_objext conftest.$ac_ext
4667 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4668 echo "${ECHO_T}$ac_header_compiler" >&6
4669
4670 # Is the header present?
4671 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4672 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4673 cat >conftest.$ac_ext <<_ACEOF
4674 #line $LINENO "configure"
4675 #include "confdefs.h"
4676 #include <$ac_header>
4677 _ACEOF
4678 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4679 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4680 ac_status=$?
4681 egrep -v '^ *\+' conftest.er1 >conftest.err
4682 rm -f conftest.er1
4683 cat conftest.err >&5
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); } >/dev/null; then
4686 if test -s conftest.err; then
4687 ac_cpp_err=$ac_c_preproc_warn_flag
4688 else
4689 ac_cpp_err=
4690 fi
4691 else
4692 ac_cpp_err=yes
4693 fi
4694 if test -z "$ac_cpp_err"; then
4695 ac_header_preproc=yes
4696 else
4697 echo "$as_me: failed program was:" >&5
4698 cat conftest.$ac_ext >&5
4699 ac_header_preproc=no
4700 fi
4701 rm -f conftest.err conftest.$ac_ext
4702 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4703 echo "${ECHO_T}$ac_header_preproc" >&6
4704
4705 # So? What about this header?
4706 case $ac_header_compiler:$ac_header_preproc in
4707 yes:no )
4708 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4709 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4711 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4712 no:yes )
4713 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4714 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4715 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4716 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4717 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4718 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4719 esac
4720 echo "$as_me:$LINENO: checking for $ac_header" >&5
4721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4723 echo $ECHO_N "(cached) $ECHO_C" >&6
4724 else
4725 eval "$as_ac_Header=$ac_header_preproc"
4726 fi
4727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4728 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4729
4730 fi
4731 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4732 cat >>confdefs.h <<_ACEOF
4733 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4734 _ACEOF
4735
4736 fi
4737
4738 done
4739
4740 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4741 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4742 if test "${ac_cv_header_stdc+set}" = set; then
4743 echo $ECHO_N "(cached) $ECHO_C" >&6
4744 else
4745 cat >conftest.$ac_ext <<_ACEOF
4746 #line $LINENO "configure"
4747 #include "confdefs.h"
4748 #include <stdlib.h>
4749 #include <stdarg.h>
4750 #include <string.h>
4751 #include <float.h>
4752
4753 _ACEOF
4754 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4755 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4756 ac_status=$?
4757 egrep -v '^ *\+' conftest.er1 >conftest.err
4758 rm -f conftest.er1
4759 cat conftest.err >&5
4760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761 (exit $ac_status); } >/dev/null; then
4762 if test -s conftest.err; then
4763 ac_cpp_err=$ac_c_preproc_warn_flag
4764 else
4765 ac_cpp_err=
4766 fi
4767 else
4768 ac_cpp_err=yes
4769 fi
4770 if test -z "$ac_cpp_err"; then
4771 ac_cv_header_stdc=yes
4772 else
4773 echo "$as_me: failed program was:" >&5
4774 cat conftest.$ac_ext >&5
4775 ac_cv_header_stdc=no
4776 fi
4777 rm -f conftest.err conftest.$ac_ext
4778
4779 if test $ac_cv_header_stdc = yes; then
4780 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4781 cat >conftest.$ac_ext <<_ACEOF
4782 #line $LINENO "configure"
4783 #include "confdefs.h"
4784 #include <string.h>
4785
4786 _ACEOF
4787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4788 egrep "memchr" >/dev/null 2>&1; then
4789 :
4790 else
4791 ac_cv_header_stdc=no
4792 fi
4793 rm -f conftest*
4794
4795 fi
4796
4797 if test $ac_cv_header_stdc = yes; then
4798 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4799 cat >conftest.$ac_ext <<_ACEOF
4800 #line $LINENO "configure"
4801 #include "confdefs.h"
4802 #include <stdlib.h>
4803
4804 _ACEOF
4805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4806 egrep "free" >/dev/null 2>&1; then
4807 :
4808 else
4809 ac_cv_header_stdc=no
4810 fi
4811 rm -f conftest*
4812
4813 fi
4814
4815 if test $ac_cv_header_stdc = yes; then
4816 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4817 if test "$cross_compiling" = yes; then
4818 :
4819 else
4820 cat >conftest.$ac_ext <<_ACEOF
4821 #line $LINENO "configure"
4822 #include "confdefs.h"
4823 #include <ctype.h>
4824 #if ((' ' & 0x0FF) == 0x020)
4825 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4826 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4827 #else
4828 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4829 || ('j' <= (c) && (c) <= 'r') \
4830 || ('s' <= (c) && (c) <= 'z'))
4831 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4832 #endif
4833
4834 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4835 int
4836 main ()
4837 {
4838 int i;
4839 for (i = 0; i < 256; i++)
4840 if (XOR (islower (i), ISLOWER (i))
4841 || toupper (i) != TOUPPER (i))
4842 exit(2);
4843 exit (0);
4844 }
4845 _ACEOF
4846 rm -f conftest$ac_exeext
4847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4848 (eval $ac_link) 2>&5
4849 ac_status=$?
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4853 (eval $ac_try) 2>&5
4854 ac_status=$?
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); }; }; then
4857 :
4858 else
4859 echo "$as_me: program exited with status $ac_status" >&5
4860 echo "$as_me: failed program was:" >&5
4861 cat conftest.$ac_ext >&5
4862 ( exit $ac_status )
4863 ac_cv_header_stdc=no
4864 fi
4865 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4866 fi
4867 fi
4868 fi
4869 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4870 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4871 if test $ac_cv_header_stdc = yes; then
4872
4873 cat >>confdefs.h <<\_ACEOF
4874 #define STDC_HEADERS 1
4875 _ACEOF
4876
4877 fi
4878
4879 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4160 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 4880 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4161 if test "${ac_cv_header_time+set}" = set; then 4881 if test "${ac_cv_header_time+set}" = set; then
4162 echo $ECHO_N "(cached) $ECHO_C" >&6 4882 echo $ECHO_N "(cached) $ECHO_C" >&6
4163 else 4883 else
4164 cat >conftest.$ac_ext <<_ACEOF 4884 cat >conftest.$ac_ext <<_ACEOF
4165 #line 4165 "configure" 4885 #line $LINENO "configure"
4166 #include "confdefs.h" 4886 #include "confdefs.h"
4167 #include <sys/types.h> 4887 #include <sys/types.h>
4168 #include <sys/time.h> 4888 #include <sys/time.h>
4169 #include <time.h> 4889 #include <time.h>
4170 4890
4891 #ifdef F77_DUMMY_MAIN
4892 # ifdef __cplusplus
4893 extern "C"
4894 # endif
4895 int F77_DUMMY_MAIN() { return 1; }
4896 #endif
4171 int 4897 int
4172 main () 4898 main ()
4173 { 4899 {
4174 if ((struct tm *) 0) 4900 if ((struct tm *) 0)
4175 return 0; 4901 return 0;
4176 ; 4902 ;
4177 return 0; 4903 return 0;
4178 } 4904 }
4179 _ACEOF 4905 _ACEOF
4180 rm -f conftest.$ac_objext 4906 rm -f conftest.$ac_objext
4181 if { (eval echo "$as_me:4181: \"$ac_compile\"") >&5 4907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4182 (eval $ac_compile) 2>&5 4908 (eval $ac_compile) 2>&5
4183 ac_status=$? 4909 ac_status=$?
4184 echo "$as_me:4184: \$? = $ac_status" >&5 4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185 (exit $ac_status); } && 4911 (exit $ac_status); } &&
4186 { ac_try='test -s conftest.$ac_objext' 4912 { ac_try='test -s conftest.$ac_objext'
4187 { (eval echo "$as_me:4187: \"$ac_try\"") >&5 4913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4188 (eval $ac_try) 2>&5 4914 (eval $ac_try) 2>&5
4189 ac_status=$? 4915 ac_status=$?
4190 echo "$as_me:4190: \$? = $ac_status" >&5 4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191 (exit $ac_status); }; }; then 4917 (exit $ac_status); }; }; then
4192 ac_cv_header_time=yes 4918 ac_cv_header_time=yes
4193 else 4919 else
4194 echo "$as_me: failed program was:" >&5 4920 echo "$as_me: failed program was:" >&5
4195 cat conftest.$ac_ext >&5 4921 cat conftest.$ac_ext >&5
4196 ac_cv_header_time=no 4922 ac_cv_header_time=no
4197 fi 4923 fi
4198 rm -f conftest.$ac_objext conftest.$ac_ext 4924 rm -f conftest.$ac_objext conftest.$ac_ext
4199 fi 4925 fi
4200 echo "$as_me:4200: result: $ac_cv_header_time" >&5 4926 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4201 echo "${ECHO_T}$ac_cv_header_time" >&6 4927 echo "${ECHO_T}$ac_cv_header_time" >&6
4202 if test $ac_cv_header_time = yes; then 4928 if test $ac_cv_header_time = yes; then
4203 4929
4204 cat >>confdefs.h <<\EOF 4930 cat >>confdefs.h <<\_ACEOF
4205 #define TIME_WITH_SYS_TIME 1 4931 #define TIME_WITH_SYS_TIME 1
4206 EOF 4932 _ACEOF
4207 4933
4208 fi 4934 fi
4209 4935
4210 echo "$as_me:4210: checking for sys_siglist declaration in signal.h or unistd.h" >&5 4936 echo "$as_me:$LINENO: checking for sys_siglist declaration in signal.h or unistd.h" >&5
4211 echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6 4937 echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6
4212 if test "${ac_cv_decl_sys_siglist+set}" = set; then 4938 if test "${ac_cv_decl_sys_siglist+set}" = set; then
4213 echo $ECHO_N "(cached) $ECHO_C" >&6 4939 echo $ECHO_N "(cached) $ECHO_C" >&6
4214 else 4940 else
4215 cat >conftest.$ac_ext <<_ACEOF 4941 cat >conftest.$ac_ext <<_ACEOF
4216 #line 4216 "configure" 4942 #line $LINENO "configure"
4217 #include "confdefs.h" 4943 #include "confdefs.h"
4218 #include <sys/types.h> 4944 #include <sys/types.h>
4219 #include <signal.h> 4945 #include <signal.h>
4220 /* NetBSD declares sys_siglist in unistd.h. */ 4946 /* NetBSD declares sys_siglist in unistd.h. */
4221 #if HAVE_UNISTD_H 4947 #if HAVE_UNISTD_H
4222 # include <unistd.h> 4948 # include <unistd.h>
4223 #endif 4949 #endif
4224 4950
4951 #ifdef F77_DUMMY_MAIN
4952 # ifdef __cplusplus
4953 extern "C"
4954 # endif
4955 int F77_DUMMY_MAIN() { return 1; }
4956 #endif
4225 int 4957 int
4226 main () 4958 main ()
4227 { 4959 {
4228 char *msg = *(sys_siglist + 1); 4960 char *msg = *(sys_siglist + 1);
4229 ; 4961 ;
4230 return 0; 4962 return 0;
4231 } 4963 }
4232 _ACEOF 4964 _ACEOF
4233 rm -f conftest.$ac_objext 4965 rm -f conftest.$ac_objext
4234 if { (eval echo "$as_me:4234: \"$ac_compile\"") >&5 4966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4235 (eval $ac_compile) 2>&5 4967 (eval $ac_compile) 2>&5
4236 ac_status=$? 4968 ac_status=$?
4237 echo "$as_me:4237: \$? = $ac_status" >&5 4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); } && 4970 (exit $ac_status); } &&
4239 { ac_try='test -s conftest.$ac_objext' 4971 { ac_try='test -s conftest.$ac_objext'
4240 { (eval echo "$as_me:4240: \"$ac_try\"") >&5 4972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4241 (eval $ac_try) 2>&5 4973 (eval $ac_try) 2>&5
4242 ac_status=$? 4974 ac_status=$?
4243 echo "$as_me:4243: \$? = $ac_status" >&5 4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); }; }; then 4976 (exit $ac_status); }; }; then
4245 ac_cv_decl_sys_siglist=yes 4977 ac_cv_decl_sys_siglist=yes
4246 else 4978 else
4247 echo "$as_me: failed program was:" >&5 4979 echo "$as_me: failed program was:" >&5
4248 cat conftest.$ac_ext >&5 4980 cat conftest.$ac_ext >&5
4249 ac_cv_decl_sys_siglist=no 4981 ac_cv_decl_sys_siglist=no
4250 fi 4982 fi
4251 rm -f conftest.$ac_objext conftest.$ac_ext 4983 rm -f conftest.$ac_objext conftest.$ac_ext
4252 fi 4984 fi
4253 echo "$as_me:4253: result: $ac_cv_decl_sys_siglist" >&5 4985 echo "$as_me:$LINENO: result: $ac_cv_decl_sys_siglist" >&5
4254 echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6 4986 echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6
4255 if test $ac_cv_decl_sys_siglist = yes; then 4987 if test $ac_cv_decl_sys_siglist = yes; then
4256 4988
4257 cat >>confdefs.h <<\EOF 4989 cat >>confdefs.h <<\_ACEOF
4258 #define SYS_SIGLIST_DECLARED 1 4990 #define SYS_SIGLIST_DECLARED 1
4259 EOF 4991 _ACEOF
4260 4992
4261 fi 4993 fi
4262 4994
4263 echo "$as_me:4263: checking for sys/wait.h that is POSIX.1 compatible" >&5 4995 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4264 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 4996 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
4265 if test "${ac_cv_header_sys_wait_h+set}" = set; then 4997 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4266 echo $ECHO_N "(cached) $ECHO_C" >&6 4998 echo $ECHO_N "(cached) $ECHO_C" >&6
4267 else 4999 else
4268 cat >conftest.$ac_ext <<_ACEOF 5000 cat >conftest.$ac_ext <<_ACEOF
4269 #line 4269 "configure" 5001 #line $LINENO "configure"
4270 #include "confdefs.h" 5002 #include "confdefs.h"
4271 #include <sys/types.h> 5003 #include <sys/types.h>
4272 #include <sys/wait.h> 5004 #include <sys/wait.h>
4273 #ifndef WEXITSTATUS 5005 #ifndef WEXITSTATUS
4274 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 5006 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4275 #endif 5007 #endif
4276 #ifndef WIFEXITED 5008 #ifndef WIFEXITED
4277 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 5009 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4278 #endif 5010 #endif
4279 5011
5012 #ifdef F77_DUMMY_MAIN
5013 # ifdef __cplusplus
5014 extern "C"
5015 # endif
5016 int F77_DUMMY_MAIN() { return 1; }
5017 #endif
4280 int 5018 int
4281 main () 5019 main ()
4282 { 5020 {
4283 int s; 5021 int s;
4284 wait (&s); 5022 wait (&s);
4286 ; 5024 ;
4287 return 0; 5025 return 0;
4288 } 5026 }
4289 _ACEOF 5027 _ACEOF
4290 rm -f conftest.$ac_objext 5028 rm -f conftest.$ac_objext
4291 if { (eval echo "$as_me:4291: \"$ac_compile\"") >&5 5029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4292 (eval $ac_compile) 2>&5 5030 (eval $ac_compile) 2>&5
4293 ac_status=$? 5031 ac_status=$?
4294 echo "$as_me:4294: \$? = $ac_status" >&5 5032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); } && 5033 (exit $ac_status); } &&
4296 { ac_try='test -s conftest.$ac_objext' 5034 { ac_try='test -s conftest.$ac_objext'
4297 { (eval echo "$as_me:4297: \"$ac_try\"") >&5 5035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4298 (eval $ac_try) 2>&5 5036 (eval $ac_try) 2>&5
4299 ac_status=$? 5037 ac_status=$?
4300 echo "$as_me:4300: \$? = $ac_status" >&5 5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301 (exit $ac_status); }; }; then 5039 (exit $ac_status); }; }; then
4302 ac_cv_header_sys_wait_h=yes 5040 ac_cv_header_sys_wait_h=yes
4303 else 5041 else
4304 echo "$as_me: failed program was:" >&5 5042 echo "$as_me: failed program was:" >&5
4305 cat conftest.$ac_ext >&5 5043 cat conftest.$ac_ext >&5
4306 ac_cv_header_sys_wait_h=no 5044 ac_cv_header_sys_wait_h=no
4307 fi 5045 fi
4308 rm -f conftest.$ac_objext conftest.$ac_ext 5046 rm -f conftest.$ac_objext conftest.$ac_ext
4309 fi 5047 fi
4310 echo "$as_me:4310: result: $ac_cv_header_sys_wait_h" >&5 5048 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4311 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 5049 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
4312 if test $ac_cv_header_sys_wait_h = yes; then 5050 if test $ac_cv_header_sys_wait_h = yes; then
4313 5051
4314 cat >>confdefs.h <<\EOF 5052 cat >>confdefs.h <<\_ACEOF
4315 #define HAVE_SYS_WAIT_H 1 5053 #define HAVE_SYS_WAIT_H 1
4316 EOF 5054 _ACEOF
4317 5055
4318 fi 5056 fi
4319 5057
4320 echo "$as_me:4320: checking for struct utimbuf" >&5 5058
5059 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
4321 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6 5060 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
4322 if test "${emacs_cv_struct_utimbuf+set}" = set; then 5061 if test "${emacs_cv_struct_utimbuf+set}" = set; then
4323 echo $ECHO_N "(cached) $ECHO_C" >&6 5062 echo $ECHO_N "(cached) $ECHO_C" >&6
4324 else 5063 else
4325 cat >conftest.$ac_ext <<_ACEOF 5064 cat >conftest.$ac_ext <<_ACEOF
4326 #line 4326 "configure" 5065 #line $LINENO "configure"
4327 #include "confdefs.h" 5066 #include "confdefs.h"
4328 #ifdef TIME_WITH_SYS_TIME 5067 #ifdef TIME_WITH_SYS_TIME
4329 #include <sys/time.h> 5068 #include <sys/time.h>
4330 #include <time.h> 5069 #include <time.h>
4331 #else 5070 #else
4336 #endif 5075 #endif
4337 #endif 5076 #endif
4338 #ifdef HAVE_UTIME_H 5077 #ifdef HAVE_UTIME_H
4339 #include <utime.h> 5078 #include <utime.h>
4340 #endif 5079 #endif
5080 #ifdef F77_DUMMY_MAIN
5081 # ifdef __cplusplus
5082 extern "C"
5083 # endif
5084 int F77_DUMMY_MAIN() { return 1; }
5085 #endif
4341 int 5086 int
4342 main () 5087 main ()
4343 { 5088 {
4344 static struct utimbuf x; x.actime = x.modtime; 5089 static struct utimbuf x; x.actime = x.modtime;
4345 ; 5090 ;
4346 return 0; 5091 return 0;
4347 } 5092 }
4348 _ACEOF 5093 _ACEOF
4349 rm -f conftest.$ac_objext 5094 rm -f conftest.$ac_objext
4350 if { (eval echo "$as_me:4350: \"$ac_compile\"") >&5 5095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4351 (eval $ac_compile) 2>&5 5096 (eval $ac_compile) 2>&5
4352 ac_status=$? 5097 ac_status=$?
4353 echo "$as_me:4353: \$? = $ac_status" >&5 5098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); } && 5099 (exit $ac_status); } &&
4355 { ac_try='test -s conftest.$ac_objext' 5100 { ac_try='test -s conftest.$ac_objext'
4356 { (eval echo "$as_me:4356: \"$ac_try\"") >&5 5101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4357 (eval $ac_try) 2>&5 5102 (eval $ac_try) 2>&5
4358 ac_status=$? 5103 ac_status=$?
4359 echo "$as_me:4359: \$? = $ac_status" >&5 5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360 (exit $ac_status); }; }; then 5105 (exit $ac_status); }; }; then
4361 emacs_cv_struct_utimbuf=yes 5106 emacs_cv_struct_utimbuf=yes
4362 else 5107 else
4363 echo "$as_me: failed program was:" >&5 5108 echo "$as_me: failed program was:" >&5
4364 cat conftest.$ac_ext >&5 5109 cat conftest.$ac_ext >&5
4365 emacs_cv_struct_utimbuf=no 5110 emacs_cv_struct_utimbuf=no
4366 fi 5111 fi
4367 rm -f conftest.$ac_objext conftest.$ac_ext 5112 rm -f conftest.$ac_objext conftest.$ac_ext
4368 fi 5113 fi
4369 echo "$as_me:4369: result: $emacs_cv_struct_utimbuf" >&5 5114 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
4370 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6 5115 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
4371 if test $emacs_cv_struct_utimbuf = yes; then 5116 if test $emacs_cv_struct_utimbuf = yes; then
4372 cat >>confdefs.h <<\EOF 5117 cat >>confdefs.h <<\_ACEOF
4373 #define HAVE_STRUCT_UTIMBUF 1 5118 #define HAVE_STRUCT_UTIMBUF 1
4374 EOF 5119 _ACEOF
4375 5120
4376 fi 5121 fi
4377 5122
4378 echo "$as_me:4378: checking return type of signal handlers" >&5 5123 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4379 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 5124 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4380 if test "${ac_cv_type_signal+set}" = set; then 5125 if test "${ac_cv_type_signal+set}" = set; then
4381 echo $ECHO_N "(cached) $ECHO_C" >&6 5126 echo $ECHO_N "(cached) $ECHO_C" >&6
4382 else 5127 else
4383 cat >conftest.$ac_ext <<_ACEOF 5128 cat >conftest.$ac_ext <<_ACEOF
4384 #line 4384 "configure" 5129 #line $LINENO "configure"
4385 #include "confdefs.h" 5130 #include "confdefs.h"
4386 #include <sys/types.h> 5131 #include <sys/types.h>
4387 #include <signal.h> 5132 #include <signal.h>
4388 #ifdef signal 5133 #ifdef signal
4389 # undef signal 5134 # undef signal
4392 extern "C" void (*signal (int, void (*)(int)))(int); 5137 extern "C" void (*signal (int, void (*)(int)))(int);
4393 #else 5138 #else
4394 void (*signal ()) (); 5139 void (*signal ()) ();
4395 #endif 5140 #endif
4396 5141
5142 #ifdef F77_DUMMY_MAIN
5143 # ifdef __cplusplus
5144 extern "C"
5145 # endif
5146 int F77_DUMMY_MAIN() { return 1; }
5147 #endif
4397 int 5148 int
4398 main () 5149 main ()
4399 { 5150 {
4400 int i; 5151 int i;
4401 ; 5152 ;
4402 return 0; 5153 return 0;
4403 } 5154 }
4404 _ACEOF 5155 _ACEOF
4405 rm -f conftest.$ac_objext 5156 rm -f conftest.$ac_objext
4406 if { (eval echo "$as_me:4406: \"$ac_compile\"") >&5 5157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4407 (eval $ac_compile) 2>&5 5158 (eval $ac_compile) 2>&5
4408 ac_status=$? 5159 ac_status=$?
4409 echo "$as_me:4409: \$? = $ac_status" >&5 5160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); } && 5161 (exit $ac_status); } &&
4411 { ac_try='test -s conftest.$ac_objext' 5162 { ac_try='test -s conftest.$ac_objext'
4412 { (eval echo "$as_me:4412: \"$ac_try\"") >&5 5163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4413 (eval $ac_try) 2>&5 5164 (eval $ac_try) 2>&5
4414 ac_status=$? 5165 ac_status=$?
4415 echo "$as_me:4415: \$? = $ac_status" >&5 5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416 (exit $ac_status); }; }; then 5167 (exit $ac_status); }; }; then
4417 ac_cv_type_signal=void 5168 ac_cv_type_signal=void
4418 else 5169 else
4419 echo "$as_me: failed program was:" >&5 5170 echo "$as_me: failed program was:" >&5
4420 cat conftest.$ac_ext >&5 5171 cat conftest.$ac_ext >&5
4421 ac_cv_type_signal=int 5172 ac_cv_type_signal=int
4422 fi 5173 fi
4423 rm -f conftest.$ac_objext conftest.$ac_ext 5174 rm -f conftest.$ac_objext conftest.$ac_ext
4424 fi 5175 fi
4425 echo "$as_me:4425: result: $ac_cv_type_signal" >&5 5176 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4426 echo "${ECHO_T}$ac_cv_type_signal" >&6 5177 echo "${ECHO_T}$ac_cv_type_signal" >&6
4427 5178
4428 cat >>confdefs.h <<EOF 5179 cat >>confdefs.h <<_ACEOF
4429 #define RETSIGTYPE $ac_cv_type_signal 5180 #define RETSIGTYPE $ac_cv_type_signal
4430 EOF 5181 _ACEOF
4431 5182
4432 echo "$as_me:4432: checking for speed_t" >&5 5183
5184
5185 echo "$as_me:$LINENO: checking for speed_t" >&5
4433 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6 5186 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
4434 if test "${emacs_cv_speed_t+set}" = set; then 5187 if test "${emacs_cv_speed_t+set}" = set; then
4435 echo $ECHO_N "(cached) $ECHO_C" >&6 5188 echo $ECHO_N "(cached) $ECHO_C" >&6
4436 else 5189 else
4437 cat >conftest.$ac_ext <<_ACEOF 5190 cat >conftest.$ac_ext <<_ACEOF
4438 #line 4438 "configure" 5191 #line $LINENO "configure"
4439 #include "confdefs.h" 5192 #include "confdefs.h"
4440 #include <termios.h> 5193 #include <termios.h>
5194 #ifdef F77_DUMMY_MAIN
5195 # ifdef __cplusplus
5196 extern "C"
5197 # endif
5198 int F77_DUMMY_MAIN() { return 1; }
5199 #endif
4441 int 5200 int
4442 main () 5201 main ()
4443 { 5202 {
4444 speed_t x = 1; 5203 speed_t x = 1;
4445 ; 5204 ;
4446 return 0; 5205 return 0;
4447 } 5206 }
4448 _ACEOF 5207 _ACEOF
4449 rm -f conftest.$ac_objext 5208 rm -f conftest.$ac_objext
4450 if { (eval echo "$as_me:4450: \"$ac_compile\"") >&5 5209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4451 (eval $ac_compile) 2>&5 5210 (eval $ac_compile) 2>&5
4452 ac_status=$? 5211 ac_status=$?
4453 echo "$as_me:4453: \$? = $ac_status" >&5 5212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454 (exit $ac_status); } && 5213 (exit $ac_status); } &&
4455 { ac_try='test -s conftest.$ac_objext' 5214 { ac_try='test -s conftest.$ac_objext'
4456 { (eval echo "$as_me:4456: \"$ac_try\"") >&5 5215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4457 (eval $ac_try) 2>&5 5216 (eval $ac_try) 2>&5
4458 ac_status=$? 5217 ac_status=$?
4459 echo "$as_me:4459: \$? = $ac_status" >&5 5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); }; }; then 5219 (exit $ac_status); }; }; then
4461 emacs_cv_speed_t=yes 5220 emacs_cv_speed_t=yes
4462 else 5221 else
4463 echo "$as_me: failed program was:" >&5 5222 echo "$as_me: failed program was:" >&5
4464 cat conftest.$ac_ext >&5 5223 cat conftest.$ac_ext >&5
4465 emacs_cv_speed_t=no 5224 emacs_cv_speed_t=no
4466 fi 5225 fi
4467 rm -f conftest.$ac_objext conftest.$ac_ext 5226 rm -f conftest.$ac_objext conftest.$ac_ext
4468 fi 5227 fi
4469 echo "$as_me:4469: result: $emacs_cv_speed_t" >&5 5228 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
4470 echo "${ECHO_T}$emacs_cv_speed_t" >&6 5229 echo "${ECHO_T}$emacs_cv_speed_t" >&6
4471 if test $emacs_cv_speed_t = yes; then 5230 if test $emacs_cv_speed_t = yes; then
4472 cat >>confdefs.h <<\EOF 5231 cat >>confdefs.h <<\_ACEOF
4473 #define HAVE_SPEED_T 1 5232 #define HAVE_SPEED_T 1
4474 EOF 5233 _ACEOF
4475 5234
4476 fi 5235 fi
4477 5236
4478 echo "$as_me:4478: checking for struct timeval" >&5 5237 echo "$as_me:$LINENO: checking for struct timeval" >&5
4479 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6 5238 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
4480 if test "${emacs_cv_struct_timeval+set}" = set; then 5239 if test "${emacs_cv_struct_timeval+set}" = set; then
4481 echo $ECHO_N "(cached) $ECHO_C" >&6 5240 echo $ECHO_N "(cached) $ECHO_C" >&6
4482 else 5241 else
4483 cat >conftest.$ac_ext <<_ACEOF 5242 cat >conftest.$ac_ext <<_ACEOF
4484 #line 4484 "configure" 5243 #line $LINENO "configure"
4485 #include "confdefs.h" 5244 #include "confdefs.h"
4486 #ifdef TIME_WITH_SYS_TIME 5245 #ifdef TIME_WITH_SYS_TIME
4487 #include <sys/time.h> 5246 #include <sys/time.h>
4488 #include <time.h> 5247 #include <time.h>
4489 #else 5248 #else
4491 #include <sys/time.h> 5250 #include <sys/time.h>
4492 #else 5251 #else
4493 #include <time.h> 5252 #include <time.h>
4494 #endif 5253 #endif
4495 #endif 5254 #endif
5255 #ifdef F77_DUMMY_MAIN
5256 # ifdef __cplusplus
5257 extern "C"
5258 # endif
5259 int F77_DUMMY_MAIN() { return 1; }
5260 #endif
4496 int 5261 int
4497 main () 5262 main ()
4498 { 5263 {
4499 static struct timeval x; x.tv_sec = x.tv_usec; 5264 static struct timeval x; x.tv_sec = x.tv_usec;
4500 ; 5265 ;
4501 return 0; 5266 return 0;
4502 } 5267 }
4503 _ACEOF 5268 _ACEOF
4504 rm -f conftest.$ac_objext 5269 rm -f conftest.$ac_objext
4505 if { (eval echo "$as_me:4505: \"$ac_compile\"") >&5 5270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4506 (eval $ac_compile) 2>&5 5271 (eval $ac_compile) 2>&5
4507 ac_status=$? 5272 ac_status=$?
4508 echo "$as_me:4508: \$? = $ac_status" >&5 5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); } && 5274 (exit $ac_status); } &&
4510 { ac_try='test -s conftest.$ac_objext' 5275 { ac_try='test -s conftest.$ac_objext'
4511 { (eval echo "$as_me:4511: \"$ac_try\"") >&5 5276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4512 (eval $ac_try) 2>&5 5277 (eval $ac_try) 2>&5
4513 ac_status=$? 5278 ac_status=$?
4514 echo "$as_me:4514: \$? = $ac_status" >&5 5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); }; }; then 5280 (exit $ac_status); }; }; then
4516 emacs_cv_struct_timeval=yes 5281 emacs_cv_struct_timeval=yes
4517 else 5282 else
4518 echo "$as_me: failed program was:" >&5 5283 echo "$as_me: failed program was:" >&5
4519 cat conftest.$ac_ext >&5 5284 cat conftest.$ac_ext >&5
4520 emacs_cv_struct_timeval=no 5285 emacs_cv_struct_timeval=no
4521 fi 5286 fi
4522 rm -f conftest.$ac_objext conftest.$ac_ext 5287 rm -f conftest.$ac_objext conftest.$ac_ext
4523 fi 5288 fi
4524 echo "$as_me:4524: result: $emacs_cv_struct_timeval" >&5 5289 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
4525 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6 5290 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
4526 HAVE_TIMEVAL=$emacs_cv_struct_timeval 5291 HAVE_TIMEVAL=$emacs_cv_struct_timeval
4527 if test $emacs_cv_struct_timeval = yes; then 5292 if test $emacs_cv_struct_timeval = yes; then
4528 cat >>confdefs.h <<\EOF 5293 cat >>confdefs.h <<\_ACEOF
4529 #define HAVE_TIMEVAL 1 5294 #define HAVE_TIMEVAL 1
4530 EOF 5295 _ACEOF
4531 5296
4532 fi 5297 fi
4533 5298
4534 echo "$as_me:4534: checking for struct exception" >&5 5299 echo "$as_me:$LINENO: checking for struct exception" >&5
4535 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6 5300 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
4536 if test "${emacs_cv_struct_exception+set}" = set; then 5301 if test "${emacs_cv_struct_exception+set}" = set; then
4537 echo $ECHO_N "(cached) $ECHO_C" >&6 5302 echo $ECHO_N "(cached) $ECHO_C" >&6
4538 else 5303 else
4539 cat >conftest.$ac_ext <<_ACEOF 5304 cat >conftest.$ac_ext <<_ACEOF
4540 #line 4540 "configure" 5305 #line $LINENO "configure"
4541 #include "confdefs.h" 5306 #include "confdefs.h"
4542 #include <math.h> 5307 #include <math.h>
5308 #ifdef F77_DUMMY_MAIN
5309 # ifdef __cplusplus
5310 extern "C"
5311 # endif
5312 int F77_DUMMY_MAIN() { return 1; }
5313 #endif
4543 int 5314 int
4544 main () 5315 main ()
4545 { 5316 {
4546 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1; 5317 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
4547 ; 5318 ;
4548 return 0; 5319 return 0;
4549 } 5320 }
4550 _ACEOF 5321 _ACEOF
4551 rm -f conftest.$ac_objext 5322 rm -f conftest.$ac_objext
4552 if { (eval echo "$as_me:4552: \"$ac_compile\"") >&5 5323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4553 (eval $ac_compile) 2>&5 5324 (eval $ac_compile) 2>&5
4554 ac_status=$? 5325 ac_status=$?
4555 echo "$as_me:4555: \$? = $ac_status" >&5 5326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); } && 5327 (exit $ac_status); } &&
4557 { ac_try='test -s conftest.$ac_objext' 5328 { ac_try='test -s conftest.$ac_objext'
4558 { (eval echo "$as_me:4558: \"$ac_try\"") >&5 5329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4559 (eval $ac_try) 2>&5 5330 (eval $ac_try) 2>&5
4560 ac_status=$? 5331 ac_status=$?
4561 echo "$as_me:4561: \$? = $ac_status" >&5 5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); }; }; then 5333 (exit $ac_status); }; }; then
4563 emacs_cv_struct_exception=yes 5334 emacs_cv_struct_exception=yes
4564 else 5335 else
4565 echo "$as_me: failed program was:" >&5 5336 echo "$as_me: failed program was:" >&5
4566 cat conftest.$ac_ext >&5 5337 cat conftest.$ac_ext >&5
4567 emacs_cv_struct_exception=no 5338 emacs_cv_struct_exception=no
4568 fi 5339 fi
4569 rm -f conftest.$ac_objext conftest.$ac_ext 5340 rm -f conftest.$ac_objext conftest.$ac_ext
4570 fi 5341 fi
4571 echo "$as_me:4571: result: $emacs_cv_struct_exception" >&5 5342 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
4572 echo "${ECHO_T}$emacs_cv_struct_exception" >&6 5343 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
4573 HAVE_EXCEPTION=$emacs_cv_struct_exception 5344 HAVE_EXCEPTION=$emacs_cv_struct_exception
4574 if test $emacs_cv_struct_exception != yes; then 5345 if test $emacs_cv_struct_exception != yes; then
4575 cat >>confdefs.h <<\EOF 5346 cat >>confdefs.h <<\_ACEOF
4576 #define NO_MATHERR 1 5347 #define NO_MATHERR 1
4577 EOF 5348 _ACEOF
4578 5349
4579 fi 5350 fi
4580 5351
4581 echo "$as_me:4581: checking whether struct tm is in sys/time.h or time.h" >&5 5352 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4582 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 5353 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4583 if test "${ac_cv_struct_tm+set}" = set; then 5354 if test "${ac_cv_struct_tm+set}" = set; then
4584 echo $ECHO_N "(cached) $ECHO_C" >&6 5355 echo $ECHO_N "(cached) $ECHO_C" >&6
4585 else 5356 else
4586 cat >conftest.$ac_ext <<_ACEOF 5357 cat >conftest.$ac_ext <<_ACEOF
4587 #line 4587 "configure" 5358 #line $LINENO "configure"
4588 #include "confdefs.h" 5359 #include "confdefs.h"
4589 #include <sys/types.h> 5360 #include <sys/types.h>
4590 #include <time.h> 5361 #include <time.h>
4591 5362
5363 #ifdef F77_DUMMY_MAIN
5364 # ifdef __cplusplus
5365 extern "C"
5366 # endif
5367 int F77_DUMMY_MAIN() { return 1; }
5368 #endif
4592 int 5369 int
4593 main () 5370 main ()
4594 { 5371 {
4595 struct tm *tp; tp->tm_sec; 5372 struct tm *tp; tp->tm_sec;
4596 ; 5373 ;
4597 return 0; 5374 return 0;
4598 } 5375 }
4599 _ACEOF 5376 _ACEOF
4600 rm -f conftest.$ac_objext 5377 rm -f conftest.$ac_objext
4601 if { (eval echo "$as_me:4601: \"$ac_compile\"") >&5 5378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4602 (eval $ac_compile) 2>&5 5379 (eval $ac_compile) 2>&5
4603 ac_status=$? 5380 ac_status=$?
4604 echo "$as_me:4604: \$? = $ac_status" >&5 5381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); } && 5382 (exit $ac_status); } &&
4606 { ac_try='test -s conftest.$ac_objext' 5383 { ac_try='test -s conftest.$ac_objext'
4607 { (eval echo "$as_me:4607: \"$ac_try\"") >&5 5384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4608 (eval $ac_try) 2>&5 5385 (eval $ac_try) 2>&5
4609 ac_status=$? 5386 ac_status=$?
4610 echo "$as_me:4610: \$? = $ac_status" >&5 5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); }; }; then 5388 (exit $ac_status); }; }; then
4612 ac_cv_struct_tm=time.h 5389 ac_cv_struct_tm=time.h
4613 else 5390 else
4614 echo "$as_me: failed program was:" >&5 5391 echo "$as_me: failed program was:" >&5
4615 cat conftest.$ac_ext >&5 5392 cat conftest.$ac_ext >&5
4616 ac_cv_struct_tm=sys/time.h 5393 ac_cv_struct_tm=sys/time.h
4617 fi 5394 fi
4618 rm -f conftest.$ac_objext conftest.$ac_ext 5395 rm -f conftest.$ac_objext conftest.$ac_ext
4619 fi 5396 fi
4620 echo "$as_me:4620: result: $ac_cv_struct_tm" >&5 5397 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4621 echo "${ECHO_T}$ac_cv_struct_tm" >&6 5398 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4622 if test $ac_cv_struct_tm = sys/time.h; then 5399 if test $ac_cv_struct_tm = sys/time.h; then
4623 5400
4624 cat >>confdefs.h <<\EOF 5401 cat >>confdefs.h <<\_ACEOF
4625 #define TM_IN_SYS_TIME 1 5402 #define TM_IN_SYS_TIME 1
4626 EOF 5403 _ACEOF
4627 5404
4628 fi 5405 fi
4629 5406
4630 echo "$as_me:4630: checking for struct tm.tm_zone" >&5 5407 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
4631 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 5408 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
4632 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then 5409 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
4633 echo $ECHO_N "(cached) $ECHO_C" >&6 5410 echo $ECHO_N "(cached) $ECHO_C" >&6
4634 else 5411 else
4635 cat >conftest.$ac_ext <<_ACEOF 5412 cat >conftest.$ac_ext <<_ACEOF
4636 #line 4636 "configure" 5413 #line $LINENO "configure"
4637 #include "confdefs.h" 5414 #include "confdefs.h"
4638 #include <sys/types.h> 5415 #include <sys/types.h>
4639 #include <$ac_cv_struct_tm> 5416 #include <$ac_cv_struct_tm>
4640 5417
5418
5419 #ifdef F77_DUMMY_MAIN
5420 # ifdef __cplusplus
5421 extern "C"
5422 # endif
5423 int F77_DUMMY_MAIN() { return 1; }
5424 #endif
4641 int 5425 int
4642 main () 5426 main ()
4643 { 5427 {
4644 static struct tm ac_aggr; 5428 static struct tm ac_aggr;
4645 if (ac_aggr.tm_zone) 5429 if (ac_aggr.tm_zone)
4647 ; 5431 ;
4648 return 0; 5432 return 0;
4649 } 5433 }
4650 _ACEOF 5434 _ACEOF
4651 rm -f conftest.$ac_objext 5435 rm -f conftest.$ac_objext
4652 if { (eval echo "$as_me:4652: \"$ac_compile\"") >&5 5436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4653 (eval $ac_compile) 2>&5 5437 (eval $ac_compile) 2>&5
4654 ac_status=$? 5438 ac_status=$?
4655 echo "$as_me:4655: \$? = $ac_status" >&5 5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); } && 5440 (exit $ac_status); } &&
4657 { ac_try='test -s conftest.$ac_objext' 5441 { ac_try='test -s conftest.$ac_objext'
4658 { (eval echo "$as_me:4658: \"$ac_try\"") >&5 5442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4659 (eval $ac_try) 2>&5 5443 (eval $ac_try) 2>&5
4660 ac_status=$? 5444 ac_status=$?
4661 echo "$as_me:4661: \$? = $ac_status" >&5 5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662 (exit $ac_status); }; }; then 5446 (exit $ac_status); }; }; then
4663 ac_cv_member_struct_tm_tm_zone=yes 5447 ac_cv_member_struct_tm_tm_zone=yes
4664 else 5448 else
4665 echo "$as_me: failed program was:" >&5 5449 echo "$as_me: failed program was:" >&5
4666 cat conftest.$ac_ext >&5 5450 cat conftest.$ac_ext >&5
4667 ac_cv_member_struct_tm_tm_zone=no 5451 ac_cv_member_struct_tm_tm_zone=no
4668 fi 5452 fi
4669 rm -f conftest.$ac_objext conftest.$ac_ext 5453 rm -f conftest.$ac_objext conftest.$ac_ext
4670 fi 5454 fi
4671 echo "$as_me:4671: result: $ac_cv_member_struct_tm_tm_zone" >&5 5455 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
4672 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 5456 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
4673 if test $ac_cv_member_struct_tm_tm_zone = yes; then 5457 if test $ac_cv_member_struct_tm_tm_zone = yes; then
4674 5458
4675 cat >>confdefs.h <<EOF 5459 cat >>confdefs.h <<_ACEOF
4676 #define HAVE_STRUCT_TM_TM_ZONE 1 5460 #define HAVE_STRUCT_TM_TM_ZONE 1
4677 EOF 5461 _ACEOF
5462
4678 5463
4679 fi 5464 fi
4680 5465
4681 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then 5466 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
4682 5467
4683 cat >>confdefs.h <<\EOF 5468 cat >>confdefs.h <<\_ACEOF
4684 #define HAVE_TM_ZONE 1 5469 #define HAVE_TM_ZONE 1
4685 EOF 5470 _ACEOF
4686 5471
4687 else 5472 else
4688 echo "$as_me:4688: checking for tzname" >&5 5473 echo "$as_me:$LINENO: checking for tzname" >&5
4689 echo $ECHO_N "checking for tzname... $ECHO_C" >&6 5474 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
4690 if test "${ac_cv_var_tzname+set}" = set; then 5475 if test "${ac_cv_var_tzname+set}" = set; then
4691 echo $ECHO_N "(cached) $ECHO_C" >&6 5476 echo $ECHO_N "(cached) $ECHO_C" >&6
4692 else 5477 else
4693 cat >conftest.$ac_ext <<_ACEOF 5478 cat >conftest.$ac_ext <<_ACEOF
4694 #line 4694 "configure" 5479 #line $LINENO "configure"
4695 #include "confdefs.h" 5480 #include "confdefs.h"
4696 #include <time.h> 5481 #include <time.h>
4697 #ifndef tzname /* For SGI. */ 5482 #ifndef tzname /* For SGI. */
4698 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ 5483 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4699 #endif 5484 #endif
4700 5485
5486 #ifdef F77_DUMMY_MAIN
5487 # ifdef __cplusplus
5488 extern "C"
5489 # endif
5490 int F77_DUMMY_MAIN() { return 1; }
5491 #endif
4701 int 5492 int
4702 main () 5493 main ()
4703 { 5494 {
4704 atoi(*tzname); 5495 atoi(*tzname);
4705 ; 5496 ;
4706 return 0; 5497 return 0;
4707 } 5498 }
4708 _ACEOF 5499 _ACEOF
4709 rm -f conftest.$ac_objext conftest$ac_exeext 5500 rm -f conftest.$ac_objext conftest$ac_exeext
4710 if { (eval echo "$as_me:4710: \"$ac_link\"") >&5 5501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4711 (eval $ac_link) 2>&5 5502 (eval $ac_link) 2>&5
4712 ac_status=$? 5503 ac_status=$?
4713 echo "$as_me:4713: \$? = $ac_status" >&5 5504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714 (exit $ac_status); } && 5505 (exit $ac_status); } &&
4715 { ac_try='test -s conftest$ac_exeext' 5506 { ac_try='test -s conftest$ac_exeext'
4716 { (eval echo "$as_me:4716: \"$ac_try\"") >&5 5507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4717 (eval $ac_try) 2>&5 5508 (eval $ac_try) 2>&5
4718 ac_status=$? 5509 ac_status=$?
4719 echo "$as_me:4719: \$? = $ac_status" >&5 5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); }; }; then 5511 (exit $ac_status); }; }; then
4721 ac_cv_var_tzname=yes 5512 ac_cv_var_tzname=yes
4722 else 5513 else
4723 echo "$as_me: failed program was:" >&5 5514 echo "$as_me: failed program was:" >&5
4724 cat conftest.$ac_ext >&5 5515 cat conftest.$ac_ext >&5
4725 ac_cv_var_tzname=no 5516 ac_cv_var_tzname=no
4726 fi 5517 fi
4727 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5518 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4728 fi 5519 fi
4729 echo "$as_me:4729: result: $ac_cv_var_tzname" >&5 5520 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
4730 echo "${ECHO_T}$ac_cv_var_tzname" >&6 5521 echo "${ECHO_T}$ac_cv_var_tzname" >&6
4731 if test $ac_cv_var_tzname = yes; then 5522 if test $ac_cv_var_tzname = yes; then
4732 5523
4733 cat >>confdefs.h <<\EOF 5524 cat >>confdefs.h <<\_ACEOF
4734 #define HAVE_TZNAME 1 5525 #define HAVE_TZNAME 1
4735 EOF 5526 _ACEOF
4736 5527
4737 fi 5528 fi
4738 fi 5529 fi
4739 5530
4740 echo "$as_me:4740: checking for tm_gmtoff in struct tm" >&5 5531 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
4741 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 5532 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
4742 if test "${emacs_cv_tm_gmtoff+set}" = set; then 5533 if test "${emacs_cv_tm_gmtoff+set}" = set; then
4743 echo $ECHO_N "(cached) $ECHO_C" >&6 5534 echo $ECHO_N "(cached) $ECHO_C" >&6
4744 else 5535 else
4745 cat >conftest.$ac_ext <<_ACEOF 5536 cat >conftest.$ac_ext <<_ACEOF
4746 #line 4746 "configure" 5537 #line $LINENO "configure"
4747 #include "confdefs.h" 5538 #include "confdefs.h"
4748 #include <time.h> 5539 #include <time.h>
5540 #ifdef F77_DUMMY_MAIN
5541 # ifdef __cplusplus
5542 extern "C"
5543 # endif
5544 int F77_DUMMY_MAIN() { return 1; }
5545 #endif
4749 int 5546 int
4750 main () 5547 main ()
4751 { 5548 {
4752 struct tm t; t.tm_gmtoff = 0 5549 struct tm t; t.tm_gmtoff = 0
4753 ; 5550 ;
4754 return 0; 5551 return 0;
4755 } 5552 }
4756 _ACEOF 5553 _ACEOF
4757 rm -f conftest.$ac_objext conftest$ac_exeext 5554 rm -f conftest.$ac_objext conftest$ac_exeext
4758 if { (eval echo "$as_me:4758: \"$ac_link\"") >&5 5555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4759 (eval $ac_link) 2>&5 5556 (eval $ac_link) 2>&5
4760 ac_status=$? 5557 ac_status=$?
4761 echo "$as_me:4761: \$? = $ac_status" >&5 5558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); } && 5559 (exit $ac_status); } &&
4763 { ac_try='test -s conftest$ac_exeext' 5560 { ac_try='test -s conftest$ac_exeext'
4764 { (eval echo "$as_me:4764: \"$ac_try\"") >&5 5561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4765 (eval $ac_try) 2>&5 5562 (eval $ac_try) 2>&5
4766 ac_status=$? 5563 ac_status=$?
4767 echo "$as_me:4767: \$? = $ac_status" >&5 5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); }; }; then 5565 (exit $ac_status); }; }; then
4769 emacs_cv_tm_gmtoff=yes 5566 emacs_cv_tm_gmtoff=yes
4770 else 5567 else
4771 echo "$as_me: failed program was:" >&5 5568 echo "$as_me: failed program was:" >&5
4772 cat conftest.$ac_ext >&5 5569 cat conftest.$ac_ext >&5
4773 emacs_cv_tm_gmtoff=no 5570 emacs_cv_tm_gmtoff=no
4774 fi 5571 fi
4775 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5572 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4776 fi 5573 fi
4777 echo "$as_me:4777: result: $emacs_cv_tm_gmtoff" >&5 5574 echo "$as_me:$LINENO: result: $emacs_cv_tm_gmtoff" >&5
4778 echo "${ECHO_T}$emacs_cv_tm_gmtoff" >&6 5575 echo "${ECHO_T}$emacs_cv_tm_gmtoff" >&6
4779 if test $emacs_cv_tm_gmtoff = yes; then 5576 if test $emacs_cv_tm_gmtoff = yes; then
4780 cat >>confdefs.h <<\EOF 5577 cat >>confdefs.h <<\_ACEOF
4781 #define HAVE_TM_GMTOFF 1 5578 #define HAVE_TM_GMTOFF 1
4782 EOF 5579 _ACEOF
4783 5580
4784 fi 5581 fi
4785 5582
4786 echo "$as_me:4786: checking for $CC option to accept ANSI C" >&5 5583
5584 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4787 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 5585 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4788 if test "${ac_cv_prog_cc_stdc+set}" = set; then 5586 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4789 echo $ECHO_N "(cached) $ECHO_C" >&6 5587 echo $ECHO_N "(cached) $ECHO_C" >&6
4790 else 5588 else
4791 ac_cv_prog_cc_stdc=no 5589 ac_cv_prog_cc_stdc=no
4792 ac_save_CC=$CC 5590 ac_save_CC=$CC
4793 cat >conftest.$ac_ext <<_ACEOF 5591 cat >conftest.$ac_ext <<_ACEOF
4794 #line 4794 "configure" 5592 #line $LINENO "configure"
4795 #include "confdefs.h" 5593 #include "confdefs.h"
4796 #include <stdarg.h> 5594 #include <stdarg.h>
4797 #include <stdio.h> 5595 #include <stdio.h>
4798 #include <sys/types.h> 5596 #include <sys/types.h>
4799 #include <sys/stat.h> 5597 #include <sys/stat.h>
4819 struct s1 {int (*f) (int a);}; 5617 struct s1 {int (*f) (int a);};
4820 struct s2 {int (*f) (double a);}; 5618 struct s2 {int (*f) (double a);};
4821 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5619 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4822 int argc; 5620 int argc;
4823 char **argv; 5621 char **argv;
5622 #ifdef F77_DUMMY_MAIN
5623 # ifdef __cplusplus
5624 extern "C"
5625 # endif
5626 int F77_DUMMY_MAIN() { return 1; }
5627 #endif
4824 int 5628 int
4825 main () 5629 main ()
4826 { 5630 {
4827 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5631 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4828 ; 5632 ;
4838 # SVR4 -Xc -D__EXTENSIONS__ 5642 # SVR4 -Xc -D__EXTENSIONS__
4839 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5643 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4840 do 5644 do
4841 CC="$ac_save_CC $ac_arg" 5645 CC="$ac_save_CC $ac_arg"
4842 rm -f conftest.$ac_objext 5646 rm -f conftest.$ac_objext
4843 if { (eval echo "$as_me:4843: \"$ac_compile\"") >&5 5647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4844 (eval $ac_compile) 2>&5 5648 (eval $ac_compile) 2>&5
4845 ac_status=$? 5649 ac_status=$?
4846 echo "$as_me:4846: \$? = $ac_status" >&5 5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); } && 5651 (exit $ac_status); } &&
4848 { ac_try='test -s conftest.$ac_objext' 5652 { ac_try='test -s conftest.$ac_objext'
4849 { (eval echo "$as_me:4849: \"$ac_try\"") >&5 5653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4850 (eval $ac_try) 2>&5 5654 (eval $ac_try) 2>&5
4851 ac_status=$? 5655 ac_status=$?
4852 echo "$as_me:4852: \$? = $ac_status" >&5 5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853 (exit $ac_status); }; }; then 5657 (exit $ac_status); }; }; then
4854 ac_cv_prog_cc_stdc=$ac_arg 5658 ac_cv_prog_cc_stdc=$ac_arg
4855 break 5659 break
4856 else 5660 else
4857 echo "$as_me: failed program was:" >&5 5661 echo "$as_me: failed program was:" >&5
4864 5668
4865 fi 5669 fi
4866 5670
4867 case "x$ac_cv_prog_cc_stdc" in 5671 case "x$ac_cv_prog_cc_stdc" in
4868 x|xno) 5672 x|xno)
4869 echo "$as_me:4869: result: none needed" >&5 5673 echo "$as_me:$LINENO: result: none needed" >&5
4870 echo "${ECHO_T}none needed" >&6 ;; 5674 echo "${ECHO_T}none needed" >&6 ;;
4871 *) 5675 *)
4872 echo "$as_me:4872: result: $ac_cv_prog_cc_stdc" >&5 5676 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4873 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 5677 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4874 CC="$CC $ac_cv_prog_cc_stdc" ;; 5678 CC="$CC $ac_cv_prog_cc_stdc" ;;
4875 esac 5679 esac
4876 5680
4877 echo "$as_me:4877: checking for function prototypes" >&5 5681 echo "$as_me:$LINENO: checking for function prototypes" >&5
4878 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6 5682 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4879 if test "$ac_cv_prog_cc_stdc" != no; then 5683 if test "$ac_cv_prog_cc_stdc" != no; then
4880 echo "$as_me:4880: result: yes" >&5 5684 echo "$as_me:$LINENO: result: yes" >&5
4881 echo "${ECHO_T}yes" >&6 5685 echo "${ECHO_T}yes" >&6
4882 5686
4883 cat >>confdefs.h <<\EOF 5687 cat >>confdefs.h <<\_ACEOF
4884 #define PROTOTYPES 1 5688 #define PROTOTYPES 1
4885 EOF 5689 _ACEOF
4886 5690
4887 else 5691
4888 echo "$as_me:4888: result: no" >&5 5692 cat >>confdefs.h <<\_ACEOF
5693 #define __PROTOTYPES 1
5694 _ACEOF
5695
5696 else
5697 echo "$as_me:$LINENO: result: no" >&5
4889 echo "${ECHO_T}no" >&6 5698 echo "${ECHO_T}no" >&6
4890 fi 5699 fi
4891 5700
4892 echo "$as_me:4892: checking for working volatile" >&5 5701 echo "$as_me:$LINENO: checking for working volatile" >&5
4893 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6 5702 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
4894 if test "${ac_cv_c_volatile+set}" = set; then 5703 if test "${ac_cv_c_volatile+set}" = set; then
4895 echo $ECHO_N "(cached) $ECHO_C" >&6 5704 echo $ECHO_N "(cached) $ECHO_C" >&6
4896 else 5705 else
4897 cat >conftest.$ac_ext <<_ACEOF 5706 cat >conftest.$ac_ext <<_ACEOF
4898 #line 4898 "configure" 5707 #line $LINENO "configure"
4899 #include "confdefs.h" 5708 #include "confdefs.h"
4900 5709
5710 #ifdef F77_DUMMY_MAIN
5711 # ifdef __cplusplus
5712 extern "C"
5713 # endif
5714 int F77_DUMMY_MAIN() { return 1; }
5715 #endif
4901 int 5716 int
4902 main () 5717 main ()
4903 { 5718 {
4904 5719
4905 volatile int x; 5720 volatile int x;
4907 ; 5722 ;
4908 return 0; 5723 return 0;
4909 } 5724 }
4910 _ACEOF 5725 _ACEOF
4911 rm -f conftest.$ac_objext 5726 rm -f conftest.$ac_objext
4912 if { (eval echo "$as_me:4912: \"$ac_compile\"") >&5 5727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4913 (eval $ac_compile) 2>&5 5728 (eval $ac_compile) 2>&5
4914 ac_status=$? 5729 ac_status=$?
4915 echo "$as_me:4915: \$? = $ac_status" >&5 5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); } && 5731 (exit $ac_status); } &&
4917 { ac_try='test -s conftest.$ac_objext' 5732 { ac_try='test -s conftest.$ac_objext'
4918 { (eval echo "$as_me:4918: \"$ac_try\"") >&5 5733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4919 (eval $ac_try) 2>&5 5734 (eval $ac_try) 2>&5
4920 ac_status=$? 5735 ac_status=$?
4921 echo "$as_me:4921: \$? = $ac_status" >&5 5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922 (exit $ac_status); }; }; then 5737 (exit $ac_status); }; }; then
4923 ac_cv_c_volatile=yes 5738 ac_cv_c_volatile=yes
4924 else 5739 else
4925 echo "$as_me: failed program was:" >&5 5740 echo "$as_me: failed program was:" >&5
4926 cat conftest.$ac_ext >&5 5741 cat conftest.$ac_ext >&5
4927 ac_cv_c_volatile=no 5742 ac_cv_c_volatile=no
4928 fi 5743 fi
4929 rm -f conftest.$ac_objext conftest.$ac_ext 5744 rm -f conftest.$ac_objext conftest.$ac_ext
4930 fi 5745 fi
4931 echo "$as_me:4931: result: $ac_cv_c_volatile" >&5 5746 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
4932 echo "${ECHO_T}$ac_cv_c_volatile" >&6 5747 echo "${ECHO_T}$ac_cv_c_volatile" >&6
4933 if test $ac_cv_c_volatile = no; then 5748 if test $ac_cv_c_volatile = no; then
4934 5749
4935 cat >>confdefs.h <<\EOF 5750 cat >>confdefs.h <<\_ACEOF
4936 #define volatile 5751 #define volatile
4937 EOF 5752 _ACEOF
4938 5753
4939 fi 5754 fi
4940 5755
4941 echo "$as_me:4941: checking for an ANSI C-conforming const" >&5 5756 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4942 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 5757 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4943 if test "${ac_cv_c_const+set}" = set; then 5758 if test "${ac_cv_c_const+set}" = set; then
4944 echo $ECHO_N "(cached) $ECHO_C" >&6 5759 echo $ECHO_N "(cached) $ECHO_C" >&6
4945 else 5760 else
4946 cat >conftest.$ac_ext <<_ACEOF 5761 cat >conftest.$ac_ext <<_ACEOF
4947 #line 4947 "configure" 5762 #line $LINENO "configure"
4948 #include "confdefs.h" 5763 #include "confdefs.h"
4949 5764
5765 #ifdef F77_DUMMY_MAIN
5766 # ifdef __cplusplus
5767 extern "C"
5768 # endif
5769 int F77_DUMMY_MAIN() { return 1; }
5770 #endif
4950 int 5771 int
4951 main () 5772 main ()
4952 { 5773 {
4953 /* FIXME: Include the comments suggested by Paul. */ 5774 /* FIXME: Include the comments suggested by Paul. */
4954 #ifndef __cplusplus 5775 #ifndef __cplusplus
5000 ; 5821 ;
5001 return 0; 5822 return 0;
5002 } 5823 }
5003 _ACEOF 5824 _ACEOF
5004 rm -f conftest.$ac_objext 5825 rm -f conftest.$ac_objext
5005 if { (eval echo "$as_me:5005: \"$ac_compile\"") >&5 5826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5006 (eval $ac_compile) 2>&5 5827 (eval $ac_compile) 2>&5
5007 ac_status=$? 5828 ac_status=$?
5008 echo "$as_me:5008: \$? = $ac_status" >&5 5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009 (exit $ac_status); } && 5830 (exit $ac_status); } &&
5010 { ac_try='test -s conftest.$ac_objext' 5831 { ac_try='test -s conftest.$ac_objext'
5011 { (eval echo "$as_me:5011: \"$ac_try\"") >&5 5832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5012 (eval $ac_try) 2>&5 5833 (eval $ac_try) 2>&5
5013 ac_status=$? 5834 ac_status=$?
5014 echo "$as_me:5014: \$? = $ac_status" >&5 5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); }; }; then 5836 (exit $ac_status); }; }; then
5016 ac_cv_c_const=yes 5837 ac_cv_c_const=yes
5017 else 5838 else
5018 echo "$as_me: failed program was:" >&5 5839 echo "$as_me: failed program was:" >&5
5019 cat conftest.$ac_ext >&5 5840 cat conftest.$ac_ext >&5
5020 ac_cv_c_const=no 5841 ac_cv_c_const=no
5021 fi 5842 fi
5022 rm -f conftest.$ac_objext conftest.$ac_ext 5843 rm -f conftest.$ac_objext conftest.$ac_ext
5023 fi 5844 fi
5024 echo "$as_me:5024: result: $ac_cv_c_const" >&5 5845 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5025 echo "${ECHO_T}$ac_cv_c_const" >&6 5846 echo "${ECHO_T}$ac_cv_c_const" >&6
5026 if test $ac_cv_c_const = no; then 5847 if test $ac_cv_c_const = no; then
5027 5848
5028 cat >>confdefs.h <<\EOF 5849 cat >>confdefs.h <<\_ACEOF
5029 #define const 5850 #define const
5030 EOF 5851 _ACEOF
5031 5852
5032 fi 5853 fi
5033 5854
5034 echo "$as_me:5034: checking for void * support" >&5 5855 echo "$as_me:$LINENO: checking for void * support" >&5
5035 echo $ECHO_N "checking for void * support... $ECHO_C" >&6 5856 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
5036 if test "${emacs_cv_void_star+set}" = set; then 5857 if test "${emacs_cv_void_star+set}" = set; then
5037 echo $ECHO_N "(cached) $ECHO_C" >&6 5858 echo $ECHO_N "(cached) $ECHO_C" >&6
5038 else 5859 else
5039 cat >conftest.$ac_ext <<_ACEOF 5860 cat >conftest.$ac_ext <<_ACEOF
5040 #line 5040 "configure" 5861 #line $LINENO "configure"
5041 #include "confdefs.h" 5862 #include "confdefs.h"
5042 5863
5864 #ifdef F77_DUMMY_MAIN
5865 # ifdef __cplusplus
5866 extern "C"
5867 # endif
5868 int F77_DUMMY_MAIN() { return 1; }
5869 #endif
5043 int 5870 int
5044 main () 5871 main ()
5045 { 5872 {
5046 void * foo; 5873 void * foo;
5047 ; 5874 ;
5048 return 0; 5875 return 0;
5049 } 5876 }
5050 _ACEOF 5877 _ACEOF
5051 rm -f conftest.$ac_objext 5878 rm -f conftest.$ac_objext
5052 if { (eval echo "$as_me:5052: \"$ac_compile\"") >&5 5879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5053 (eval $ac_compile) 2>&5 5880 (eval $ac_compile) 2>&5
5054 ac_status=$? 5881 ac_status=$?
5055 echo "$as_me:5055: \$? = $ac_status" >&5 5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056 (exit $ac_status); } && 5883 (exit $ac_status); } &&
5057 { ac_try='test -s conftest.$ac_objext' 5884 { ac_try='test -s conftest.$ac_objext'
5058 { (eval echo "$as_me:5058: \"$ac_try\"") >&5 5885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5059 (eval $ac_try) 2>&5 5886 (eval $ac_try) 2>&5
5060 ac_status=$? 5887 ac_status=$?
5061 echo "$as_me:5061: \$? = $ac_status" >&5 5888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); }; }; then 5889 (exit $ac_status); }; }; then
5063 emacs_cv_void_star=yes 5890 emacs_cv_void_star=yes
5064 else 5891 else
5065 echo "$as_me: failed program was:" >&5 5892 echo "$as_me: failed program was:" >&5
5066 cat conftest.$ac_ext >&5 5893 cat conftest.$ac_ext >&5
5067 emacs_cv_void_star=no 5894 emacs_cv_void_star=no
5068 fi 5895 fi
5069 rm -f conftest.$ac_objext conftest.$ac_ext 5896 rm -f conftest.$ac_objext conftest.$ac_ext
5070 fi 5897 fi
5071 echo "$as_me:5071: result: $emacs_cv_void_star" >&5 5898 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
5072 echo "${ECHO_T}$emacs_cv_void_star" >&6 5899 echo "${ECHO_T}$emacs_cv_void_star" >&6
5073 if test $emacs_cv_void_star = yes; then 5900 if test $emacs_cv_void_star = yes; then
5074 cat >>confdefs.h <<\EOF 5901 cat >>confdefs.h <<\_ACEOF
5075 #define POINTER_TYPE void 5902 #define POINTER_TYPE void
5076 EOF 5903 _ACEOF
5077 5904
5078 else 5905 else
5079 cat >>confdefs.h <<\EOF 5906 cat >>confdefs.h <<\_ACEOF
5080 #define POINTER_TYPE char 5907 #define POINTER_TYPE char
5081 EOF 5908 _ACEOF
5082 5909
5083 fi 5910 fi
5084 5911
5085 echo "$as_me:5085: checking whether ${MAKE-make} sets \${MAKE}" >&5 5912 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
5086 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 5913 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
5087 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` 5914 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
5088 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 5915 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5089 echo $ECHO_N "(cached) $ECHO_C" >&6 5916 echo $ECHO_N "(cached) $ECHO_C" >&6
5090 else 5917 else
5091 cat >conftest.make <<\EOF 5918 cat >conftest.make <<\_ACEOF
5092 all: 5919 all:
5093 @echo 'ac_maketemp="${MAKE}"' 5920 @echo 'ac_maketemp="${MAKE}"'
5094 EOF 5921 _ACEOF
5095 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 5922 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5096 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 5923 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5097 if test -n "$ac_maketemp"; then 5924 if test -n "$ac_maketemp"; then
5098 eval ac_cv_prog_make_${ac_make}_set=yes 5925 eval ac_cv_prog_make_${ac_make}_set=yes
5099 else 5926 else
5100 eval ac_cv_prog_make_${ac_make}_set=no 5927 eval ac_cv_prog_make_${ac_make}_set=no
5101 fi 5928 fi
5102 rm -f conftest.make 5929 rm -f conftest.make
5103 fi 5930 fi
5104 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 5931 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5105 echo "$as_me:5105: result: yes" >&5 5932 echo "$as_me:$LINENO: result: yes" >&5
5106 echo "${ECHO_T}yes" >&6 5933 echo "${ECHO_T}yes" >&6
5107 SET_MAKE= 5934 SET_MAKE=
5108 else 5935 else
5109 echo "$as_me:5109: result: no" >&5 5936 echo "$as_me:$LINENO: result: no" >&5
5110 echo "${ECHO_T}no" >&6 5937 echo "${ECHO_T}no" >&6
5111 SET_MAKE="MAKE=${MAKE-make}" 5938 SET_MAKE="MAKE=${MAKE-make}"
5112 fi 5939 fi
5113 5940
5114 echo "$as_me:5114: checking for long file names" >&5 5941
5942 echo "$as_me:$LINENO: checking for long file names" >&5
5115 echo $ECHO_N "checking for long file names... $ECHO_C" >&6 5943 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
5116 if test "${ac_cv_sys_long_file_names+set}" = set; then 5944 if test "${ac_cv_sys_long_file_names+set}" = set; then
5117 echo $ECHO_N "(cached) $ECHO_C" >&6 5945 echo $ECHO_N "(cached) $ECHO_C" >&6
5118 else 5946 else
5119 ac_cv_sys_long_file_names=yes 5947 ac_cv_sys_long_file_names=yes
5148 break 5976 break
5149 fi 5977 fi
5150 rm -rf $ac_xdir 2>/dev/null 5978 rm -rf $ac_xdir 2>/dev/null
5151 done 5979 done
5152 fi 5980 fi
5153 echo "$as_me:5153: result: $ac_cv_sys_long_file_names" >&5 5981 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
5154 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6 5982 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
5155 if test $ac_cv_sys_long_file_names = yes; then 5983 if test $ac_cv_sys_long_file_names = yes; then
5156 5984
5157 cat >>confdefs.h <<\EOF 5985 cat >>confdefs.h <<\_ACEOF
5158 #define HAVE_LONG_FILE_NAMES 1 5986 #define HAVE_LONG_FILE_NAMES 1
5159 EOF 5987 _ACEOF
5160 5988
5161 fi 5989 fi
5162 5990
5991
5992 if test "$gamedir" = no; then :
5993 else
5994 echo "$as_me:$LINENO: checking for access to game group \"$gameuser\"" >&5
5995 echo $ECHO_N "checking for access to game group \"$gameuser\"... $ECHO_C" >&6
5996 rm -f conf$$chown.file
5997 touch conf$$chown.file
5998 if chown "$gameuser" conf$$chown.file 1>/dev/null 2>&1; then
5999 echo "$as_me:$LINENO: result: yes" >&5
6000 echo "${ECHO_T}yes" >&6
6001 if test "$gamedir" = "yes"; then
6002 gamedir="${localstatedir}/games/emacs"
6003 fi
6004 tgamedir=`eval "echo $gamedir"`
6005 cat >>confdefs.h <<_ACEOF
6006 #define HAVE_SHARED_GAME_DIR "$tgamedir"
6007 _ACEOF
6008
6009 else
6010 echo "$as_me:$LINENO: result: no" >&5
6011 echo "${ECHO_T}no" >&6
6012 gamedir=no
6013 fi
6014 fi
5163 #### Choose a window system. 6015 #### Choose a window system.
5164 6016
5165 echo "$as_me:5165: checking for X" >&5 6017 echo "$as_me:$LINENO: checking for X" >&5
5166 echo $ECHO_N "checking for X... $ECHO_C" >&6 6018 echo $ECHO_N "checking for X... $ECHO_C" >&6
6019
5167 6020
5168 # Check whether --with-x or --without-x was given. 6021 # Check whether --with-x or --without-x was given.
5169 if test "${with_x+set}" = set; then 6022 if test "${with_x+set}" = set; then
5170 withval="$with_x" 6023 withval="$with_x"
5171 6024
5186 ac_x_includes=no ac_x_libraries=no 6039 ac_x_includes=no ac_x_libraries=no
5187 rm -fr conftest.dir 6040 rm -fr conftest.dir
5188 if mkdir conftest.dir; then 6041 if mkdir conftest.dir; then
5189 cd conftest.dir 6042 cd conftest.dir
5190 # Make sure to not put "make" in the Imakefile rules, since we grep it out. 6043 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5191 cat >Imakefile <<'EOF' 6044 cat >Imakefile <<'_ACEOF'
5192 acfindx: 6045 acfindx:
5193 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' 6046 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5194 EOF 6047 _ACEOF
5195 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 6048 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5196 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 6049 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5197 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 6050 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5198 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 6051 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5199 for ac_extension in a so sl; do 6052 for ac_extension in a so sl; do
5257 6110
5258 if test "$ac_x_includes" = no; then 6111 if test "$ac_x_includes" = no; then
5259 # Guess where to find include files, by looking for Intrinsic.h. 6112 # Guess where to find include files, by looking for Intrinsic.h.
5260 # First, try using that file with no special directory specified. 6113 # First, try using that file with no special directory specified.
5261 cat >conftest.$ac_ext <<_ACEOF 6114 cat >conftest.$ac_ext <<_ACEOF
5262 #line 5262 "configure" 6115 #line $LINENO "configure"
5263 #include "confdefs.h" 6116 #include "confdefs.h"
5264 #include <X11/Intrinsic.h> 6117 #include <X11/Intrinsic.h>
5265 _ACEOF 6118 _ACEOF
5266 if { (eval echo "$as_me:5266: \"$ac_cpp conftest.$ac_ext\"") >&5 6119 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5267 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6120 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5268 ac_status=$? 6121 ac_status=$?
5269 egrep -v '^ *\+' conftest.er1 >conftest.err 6122 egrep -v '^ *\+' conftest.er1 >conftest.err
5270 rm -f conftest.er1 6123 rm -f conftest.er1
5271 cat conftest.err >&5 6124 cat conftest.err >&5
5272 echo "$as_me:5272: \$? = $ac_status" >&5 6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273 (exit $ac_status); } >/dev/null; then 6126 (exit $ac_status); } >/dev/null; then
5274 if test -s conftest.err; then 6127 if test -s conftest.err; then
5275 ac_cpp_err=$ac_c_preproc_warn_flag 6128 ac_cpp_err=$ac_c_preproc_warn_flag
5276 else 6129 else
5277 ac_cpp_err= 6130 ac_cpp_err=
5300 # See if we find them without any special options. 6153 # See if we find them without any special options.
5301 # Don't add to $LIBS permanently. 6154 # Don't add to $LIBS permanently.
5302 ac_save_LIBS=$LIBS 6155 ac_save_LIBS=$LIBS
5303 LIBS="-lXt $LIBS" 6156 LIBS="-lXt $LIBS"
5304 cat >conftest.$ac_ext <<_ACEOF 6157 cat >conftest.$ac_ext <<_ACEOF
5305 #line 5305 "configure" 6158 #line $LINENO "configure"
5306 #include "confdefs.h" 6159 #include "confdefs.h"
5307 #include <X11/Intrinsic.h> 6160 #include <X11/Intrinsic.h>
6161 #ifdef F77_DUMMY_MAIN
6162 # ifdef __cplusplus
6163 extern "C"
6164 # endif
6165 int F77_DUMMY_MAIN() { return 1; }
6166 #endif
5308 int 6167 int
5309 main () 6168 main ()
5310 { 6169 {
5311 XtMalloc (0) 6170 XtMalloc (0)
5312 ; 6171 ;
5313 return 0; 6172 return 0;
5314 } 6173 }
5315 _ACEOF 6174 _ACEOF
5316 rm -f conftest.$ac_objext conftest$ac_exeext 6175 rm -f conftest.$ac_objext conftest$ac_exeext
5317 if { (eval echo "$as_me:5317: \"$ac_link\"") >&5 6176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5318 (eval $ac_link) 2>&5 6177 (eval $ac_link) 2>&5
5319 ac_status=$? 6178 ac_status=$?
5320 echo "$as_me:5320: \$? = $ac_status" >&5 6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5321 (exit $ac_status); } && 6180 (exit $ac_status); } &&
5322 { ac_try='test -s conftest$ac_exeext' 6181 { ac_try='test -s conftest$ac_exeext'
5323 { (eval echo "$as_me:5323: \"$ac_try\"") >&5 6182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5324 (eval $ac_try) 2>&5 6183 (eval $ac_try) 2>&5
5325 ac_status=$? 6184 ac_status=$?
5326 echo "$as_me:5326: \$? = $ac_status" >&5 6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327 (exit $ac_status); }; }; then 6186 (exit $ac_status); }; }; then
5328 LIBS=$ac_save_LIBS 6187 LIBS=$ac_save_LIBS
5329 # We can link X programs with no special library path. 6188 # We can link X programs with no special library path.
5330 ac_x_libraries= 6189 ac_x_libraries=
5331 else 6190 else
5359 fi 6218 fi
5360 eval "$ac_cv_have_x" 6219 eval "$ac_cv_have_x"
5361 fi # $with_x != no 6220 fi # $with_x != no
5362 6221
5363 if test "$have_x" != yes; then 6222 if test "$have_x" != yes; then
5364 echo "$as_me:5364: result: $have_x" >&5 6223 echo "$as_me:$LINENO: result: $have_x" >&5
5365 echo "${ECHO_T}$have_x" >&6 6224 echo "${ECHO_T}$have_x" >&6
5366 no_x=yes 6225 no_x=yes
5367 else 6226 else
5368 # If each of the values was on the command line, it overrides each guess. 6227 # If each of the values was on the command line, it overrides each guess.
5369 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 6228 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5370 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 6229 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5371 # Update the cache value to reflect the command line values. 6230 # Update the cache value to reflect the command line values.
5372 ac_cv_have_x="have_x=yes \ 6231 ac_cv_have_x="have_x=yes \
5373 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" 6232 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5374 echo "$as_me:5374: result: libraries $x_libraries, headers $x_includes" >&5 6233 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
5375 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 6234 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
5376 fi 6235 fi
5377 6236
5378 if test "$no_x" = yes; then 6237 if test "$no_x" = yes; then
5379 window_system=none 6238 window_system=none
5467 6326
5468 # Do the opsystem or machine files prohibit the use of the GNU malloc? 6327 # Do the opsystem or machine files prohibit the use of the GNU malloc?
5469 # Assume not, until told otherwise. 6328 # Assume not, until told otherwise.
5470 GNU_MALLOC=yes 6329 GNU_MALLOC=yes
5471 doug_lea_malloc=yes 6330 doug_lea_malloc=yes
5472 echo "$as_me:5472: checking for malloc_get_state" >&5 6331 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
5473 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6 6332 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
5474 if test "${ac_cv_func_malloc_get_state+set}" = set; then 6333 if test "${ac_cv_func_malloc_get_state+set}" = set; then
5475 echo $ECHO_N "(cached) $ECHO_C" >&6 6334 echo $ECHO_N "(cached) $ECHO_C" >&6
5476 else 6335 else
5477 cat >conftest.$ac_ext <<_ACEOF 6336 cat >conftest.$ac_ext <<_ACEOF
5478 #line 5478 "configure" 6337 #line $LINENO "configure"
5479 #include "confdefs.h" 6338 #include "confdefs.h"
5480 /* System header to define __stub macros and hopefully few prototypes, 6339 /* System header to define __stub macros and hopefully few prototypes,
5481 which can conflict with char malloc_get_state (); below. */ 6340 which can conflict with char malloc_get_state (); below. */
5482 #include <assert.h> 6341 #include <assert.h>
5483 /* Override any gcc2 internal prototype to avoid an error. */ 6342 /* Override any gcc2 internal prototype to avoid an error. */
5487 /* We use char because int might match the return type of a gcc2 6346 /* We use char because int might match the return type of a gcc2
5488 builtin and then its argument prototype would still apply. */ 6347 builtin and then its argument prototype would still apply. */
5489 char malloc_get_state (); 6348 char malloc_get_state ();
5490 char (*f) (); 6349 char (*f) ();
5491 6350
6351 #ifdef F77_DUMMY_MAIN
6352 # ifdef __cplusplus
6353 extern "C"
6354 # endif
6355 int F77_DUMMY_MAIN() { return 1; }
6356 #endif
5492 int 6357 int
5493 main () 6358 main ()
5494 { 6359 {
5495 /* The GNU C library defines this for functions which it implements 6360 /* The GNU C library defines this for functions which it implements
5496 to always fail with ENOSYS. Some functions are actually named 6361 to always fail with ENOSYS. Some functions are actually named
5504 ; 6369 ;
5505 return 0; 6370 return 0;
5506 } 6371 }
5507 _ACEOF 6372 _ACEOF
5508 rm -f conftest.$ac_objext conftest$ac_exeext 6373 rm -f conftest.$ac_objext conftest$ac_exeext
5509 if { (eval echo "$as_me:5509: \"$ac_link\"") >&5 6374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5510 (eval $ac_link) 2>&5 6375 (eval $ac_link) 2>&5
5511 ac_status=$? 6376 ac_status=$?
5512 echo "$as_me:5512: \$? = $ac_status" >&5 6377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513 (exit $ac_status); } && 6378 (exit $ac_status); } &&
5514 { ac_try='test -s conftest$ac_exeext' 6379 { ac_try='test -s conftest$ac_exeext'
5515 { (eval echo "$as_me:5515: \"$ac_try\"") >&5 6380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5516 (eval $ac_try) 2>&5 6381 (eval $ac_try) 2>&5
5517 ac_status=$? 6382 ac_status=$?
5518 echo "$as_me:5518: \$? = $ac_status" >&5 6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519 (exit $ac_status); }; }; then 6384 (exit $ac_status); }; }; then
5520 ac_cv_func_malloc_get_state=yes 6385 ac_cv_func_malloc_get_state=yes
5521 else 6386 else
5522 echo "$as_me: failed program was:" >&5 6387 echo "$as_me: failed program was:" >&5
5523 cat conftest.$ac_ext >&5 6388 cat conftest.$ac_ext >&5
5524 ac_cv_func_malloc_get_state=no 6389 ac_cv_func_malloc_get_state=no
5525 fi 6390 fi
5526 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6391 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5527 fi 6392 fi
5528 echo "$as_me:5528: result: $ac_cv_func_malloc_get_state" >&5 6393 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
5529 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6 6394 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
5530 if test $ac_cv_func_malloc_get_state = yes; then 6395 if test $ac_cv_func_malloc_get_state = yes; then
5531 : 6396 :
5532 else 6397 else
5533 doug_lea_malloc=no 6398 doug_lea_malloc=no
5534 fi 6399 fi
5535 6400
5536 echo "$as_me:5536: checking for malloc_set_state" >&5 6401 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
5537 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6 6402 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
5538 if test "${ac_cv_func_malloc_set_state+set}" = set; then 6403 if test "${ac_cv_func_malloc_set_state+set}" = set; then
5539 echo $ECHO_N "(cached) $ECHO_C" >&6 6404 echo $ECHO_N "(cached) $ECHO_C" >&6
5540 else 6405 else
5541 cat >conftest.$ac_ext <<_ACEOF 6406 cat >conftest.$ac_ext <<_ACEOF
5542 #line 5542 "configure" 6407 #line $LINENO "configure"
5543 #include "confdefs.h" 6408 #include "confdefs.h"
5544 /* System header to define __stub macros and hopefully few prototypes, 6409 /* System header to define __stub macros and hopefully few prototypes,
5545 which can conflict with char malloc_set_state (); below. */ 6410 which can conflict with char malloc_set_state (); below. */
5546 #include <assert.h> 6411 #include <assert.h>
5547 /* Override any gcc2 internal prototype to avoid an error. */ 6412 /* Override any gcc2 internal prototype to avoid an error. */
5551 /* We use char because int might match the return type of a gcc2 6416 /* We use char because int might match the return type of a gcc2
5552 builtin and then its argument prototype would still apply. */ 6417 builtin and then its argument prototype would still apply. */
5553 char malloc_set_state (); 6418 char malloc_set_state ();
5554 char (*f) (); 6419 char (*f) ();
5555 6420
6421 #ifdef F77_DUMMY_MAIN
6422 # ifdef __cplusplus
6423 extern "C"
6424 # endif
6425 int F77_DUMMY_MAIN() { return 1; }
6426 #endif
5556 int 6427 int
5557 main () 6428 main ()
5558 { 6429 {
5559 /* The GNU C library defines this for functions which it implements 6430 /* The GNU C library defines this for functions which it implements
5560 to always fail with ENOSYS. Some functions are actually named 6431 to always fail with ENOSYS. Some functions are actually named
5568 ; 6439 ;
5569 return 0; 6440 return 0;
5570 } 6441 }
5571 _ACEOF 6442 _ACEOF
5572 rm -f conftest.$ac_objext conftest$ac_exeext 6443 rm -f conftest.$ac_objext conftest$ac_exeext
5573 if { (eval echo "$as_me:5573: \"$ac_link\"") >&5 6444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5574 (eval $ac_link) 2>&5 6445 (eval $ac_link) 2>&5
5575 ac_status=$? 6446 ac_status=$?
5576 echo "$as_me:5576: \$? = $ac_status" >&5 6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); } && 6448 (exit $ac_status); } &&
5578 { ac_try='test -s conftest$ac_exeext' 6449 { ac_try='test -s conftest$ac_exeext'
5579 { (eval echo "$as_me:5579: \"$ac_try\"") >&5 6450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5580 (eval $ac_try) 2>&5 6451 (eval $ac_try) 2>&5
5581 ac_status=$? 6452 ac_status=$?
5582 echo "$as_me:5582: \$? = $ac_status" >&5 6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583 (exit $ac_status); }; }; then 6454 (exit $ac_status); }; }; then
5584 ac_cv_func_malloc_set_state=yes 6455 ac_cv_func_malloc_set_state=yes
5585 else 6456 else
5586 echo "$as_me: failed program was:" >&5 6457 echo "$as_me: failed program was:" >&5
5587 cat conftest.$ac_ext >&5 6458 cat conftest.$ac_ext >&5
5588 ac_cv_func_malloc_set_state=no 6459 ac_cv_func_malloc_set_state=no
5589 fi 6460 fi
5590 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6461 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5591 fi 6462 fi
5592 echo "$as_me:5592: result: $ac_cv_func_malloc_set_state" >&5 6463 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
5593 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6 6464 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
5594 if test $ac_cv_func_malloc_set_state = yes; then 6465 if test $ac_cv_func_malloc_set_state = yes; then
5595 : 6466 :
5596 else 6467 else
5597 doug_lea_malloc=no 6468 doug_lea_malloc=no
5598 fi 6469 fi
5599 6470
5600 echo "$as_me:5600: checking whether __after_morecore_hook exists" >&5 6471 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
5601 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6 6472 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
5602 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then 6473 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
5603 echo $ECHO_N "(cached) $ECHO_C" >&6 6474 echo $ECHO_N "(cached) $ECHO_C" >&6
5604 else 6475 else
5605 cat >conftest.$ac_ext <<_ACEOF 6476 cat >conftest.$ac_ext <<_ACEOF
5606 #line 5606 "configure" 6477 #line $LINENO "configure"
5607 #include "confdefs.h" 6478 #include "confdefs.h"
5608 extern void (* __after_morecore_hook)(); 6479 extern void (* __after_morecore_hook)();
6480 #ifdef F77_DUMMY_MAIN
6481 # ifdef __cplusplus
6482 extern "C"
6483 # endif
6484 int F77_DUMMY_MAIN() { return 1; }
6485 #endif
5609 int 6486 int
5610 main () 6487 main ()
5611 { 6488 {
5612 __after_morecore_hook = 0 6489 __after_morecore_hook = 0
5613 ; 6490 ;
5614 return 0; 6491 return 0;
5615 } 6492 }
5616 _ACEOF 6493 _ACEOF
5617 rm -f conftest.$ac_objext conftest$ac_exeext 6494 rm -f conftest.$ac_objext conftest$ac_exeext
5618 if { (eval echo "$as_me:5618: \"$ac_link\"") >&5 6495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5619 (eval $ac_link) 2>&5 6496 (eval $ac_link) 2>&5
5620 ac_status=$? 6497 ac_status=$?
5621 echo "$as_me:5621: \$? = $ac_status" >&5 6498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); } && 6499 (exit $ac_status); } &&
5623 { ac_try='test -s conftest$ac_exeext' 6500 { ac_try='test -s conftest$ac_exeext'
5624 { (eval echo "$as_me:5624: \"$ac_try\"") >&5 6501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5625 (eval $ac_try) 2>&5 6502 (eval $ac_try) 2>&5
5626 ac_status=$? 6503 ac_status=$?
5627 echo "$as_me:5627: \$? = $ac_status" >&5 6504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); }; }; then 6505 (exit $ac_status); }; }; then
5629 emacs_cv_var___after_morecore_hook=yes 6506 emacs_cv_var___after_morecore_hook=yes
5630 else 6507 else
5631 echo "$as_me: failed program was:" >&5 6508 echo "$as_me: failed program was:" >&5
5632 cat conftest.$ac_ext >&5 6509 cat conftest.$ac_ext >&5
5633 emacs_cv_var___after_morecore_hook=no 6510 emacs_cv_var___after_morecore_hook=no
5634 fi 6511 fi
5635 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6512 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5636 fi 6513 fi
5637 echo "$as_me:5637: result: $emacs_cv_var___after_morecore_hook" >&5 6514 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
5638 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6 6515 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
5639 if test $emacs_cv_var___after_morecore_hook = no; then 6516 if test $emacs_cv_var___after_morecore_hook = no; then
5640 doug_lea_malloc=no 6517 doug_lea_malloc=no
5641 fi 6518 fi
5642 if test "${system_malloc}" = "yes"; then 6519 if test "${system_malloc}" = "yes"; then
5647 if test "$doug_lea_malloc" = "yes" ; then 6524 if test "$doug_lea_malloc" = "yes" ; then
5648 if test "$GNU_MALLOC" = yes ; then 6525 if test "$GNU_MALLOC" = yes ; then
5649 GNU_MALLOC_reason=" 6526 GNU_MALLOC_reason="
5650 (Using Doug Lea's new malloc from the GNU C Library.)" 6527 (Using Doug Lea's new malloc from the GNU C Library.)"
5651 fi 6528 fi
5652 cat >>confdefs.h <<\EOF 6529 cat >>confdefs.h <<\_ACEOF
5653 #define DOUG_LEA_MALLOC 1 6530 #define DOUG_LEA_MALLOC 1
5654 EOF 6531 _ACEOF
5655 6532
5656 fi 6533 fi
5657 6534
5658 if test x"${REL_ALLOC}" = x; then 6535 if test x"${REL_ALLOC}" = x; then
5659 REL_ALLOC=${GNU_MALLOC} 6536 REL_ALLOC=${GNU_MALLOC}
5660 fi 6537 fi
5661 6538
5662 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 6539
5663 6540
5664 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5665 inttypes.h stdint.h unistd.h
5666 do
5667 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5668 echo "$as_me:5668: checking for $ac_header" >&5
5669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5670 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5671 echo $ECHO_N "(cached) $ECHO_C" >&6
5672 else
5673 cat >conftest.$ac_ext <<_ACEOF
5674 #line 5674 "configure"
5675 #include "confdefs.h"
5676 $ac_includes_default
5677 #include <$ac_header>
5678 _ACEOF
5679 rm -f conftest.$ac_objext
5680 if { (eval echo "$as_me:5680: \"$ac_compile\"") >&5
5681 (eval $ac_compile) 2>&5
5682 ac_status=$?
5683 echo "$as_me:5683: \$? = $ac_status" >&5
5684 (exit $ac_status); } &&
5685 { ac_try='test -s conftest.$ac_objext'
5686 { (eval echo "$as_me:5686: \"$ac_try\"") >&5
5687 (eval $ac_try) 2>&5
5688 ac_status=$?
5689 echo "$as_me:5689: \$? = $ac_status" >&5
5690 (exit $ac_status); }; }; then
5691 eval "$as_ac_Header=yes"
5692 else
5693 echo "$as_me: failed program was:" >&5
5694 cat conftest.$ac_ext >&5
5695 eval "$as_ac_Header=no"
5696 fi
5697 rm -f conftest.$ac_objext conftest.$ac_ext
5698 fi
5699 echo "$as_me:5699: result: `eval echo '${'$as_ac_Header'}'`" >&5
5700 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5701 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5702 cat >>confdefs.h <<EOF
5703 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5704 EOF
5705
5706 fi
5707 done
5708 6541
5709 for ac_header in stdlib.h unistd.h 6542 for ac_header in stdlib.h unistd.h
5710 do 6543 do
5711 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6544 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5712 echo "$as_me:5712: checking for $ac_header" >&5 6545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6546 echo "$as_me:$LINENO: checking for $ac_header" >&5
5713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5714 if eval "test \"\${$as_ac_Header+set}\" = set"; then 6548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5715 echo $ECHO_N "(cached) $ECHO_C" >&6 6549 echo $ECHO_N "(cached) $ECHO_C" >&6
5716 else 6550 fi
5717 cat >conftest.$ac_ext <<_ACEOF 6551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5718 #line 5718 "configure" 6552 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5719 #include "confdefs.h" 6553 else
6554 # Is the header compilable?
6555 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6556 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6557 cat >conftest.$ac_ext <<_ACEOF
6558 #line $LINENO "configure"
6559 #include "confdefs.h"
6560 $ac_includes_default
5720 #include <$ac_header> 6561 #include <$ac_header>
5721 _ACEOF 6562 _ACEOF
5722 if { (eval echo "$as_me:5722: \"$ac_cpp conftest.$ac_ext\"") >&5 6563 rm -f conftest.$ac_objext
6564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6565 (eval $ac_compile) 2>&5
6566 ac_status=$?
6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568 (exit $ac_status); } &&
6569 { ac_try='test -s conftest.$ac_objext'
6570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6571 (eval $ac_try) 2>&5
6572 ac_status=$?
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); }; }; then
6575 ac_header_compiler=yes
6576 else
6577 echo "$as_me: failed program was:" >&5
6578 cat conftest.$ac_ext >&5
6579 ac_header_compiler=no
6580 fi
6581 rm -f conftest.$ac_objext conftest.$ac_ext
6582 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6583 echo "${ECHO_T}$ac_header_compiler" >&6
6584
6585 # Is the header present?
6586 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6587 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6588 cat >conftest.$ac_ext <<_ACEOF
6589 #line $LINENO "configure"
6590 #include "confdefs.h"
6591 #include <$ac_header>
6592 _ACEOF
6593 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5723 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6594 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5724 ac_status=$? 6595 ac_status=$?
5725 egrep -v '^ *\+' conftest.er1 >conftest.err 6596 egrep -v '^ *\+' conftest.er1 >conftest.err
5726 rm -f conftest.er1 6597 rm -f conftest.er1
5727 cat conftest.err >&5 6598 cat conftest.err >&5
5728 echo "$as_me:5728: \$? = $ac_status" >&5 6599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); } >/dev/null; then 6600 (exit $ac_status); } >/dev/null; then
5730 if test -s conftest.err; then 6601 if test -s conftest.err; then
5731 ac_cpp_err=$ac_c_preproc_warn_flag 6602 ac_cpp_err=$ac_c_preproc_warn_flag
5732 else 6603 else
5733 ac_cpp_err= 6604 ac_cpp_err=
5734 fi 6605 fi
5735 else 6606 else
5736 ac_cpp_err=yes 6607 ac_cpp_err=yes
5737 fi 6608 fi
5738 if test -z "$ac_cpp_err"; then 6609 if test -z "$ac_cpp_err"; then
5739 eval "$as_ac_Header=yes" 6610 ac_header_preproc=yes
5740 else 6611 else
5741 echo "$as_me: failed program was:" >&5 6612 echo "$as_me: failed program was:" >&5
5742 cat conftest.$ac_ext >&5 6613 cat conftest.$ac_ext >&5
5743 eval "$as_ac_Header=no" 6614 ac_header_preproc=no
5744 fi 6615 fi
5745 rm -f conftest.err conftest.$ac_ext 6616 rm -f conftest.err conftest.$ac_ext
5746 fi 6617 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5747 echo "$as_me:5747: result: `eval echo '${'$as_ac_Header'}'`" >&5 6618 echo "${ECHO_T}$ac_header_preproc" >&6
6619
6620 # So? What about this header?
6621 case $ac_header_compiler:$ac_header_preproc in
6622 yes:no )
6623 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6624 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6625 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6626 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6627 no:yes )
6628 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6629 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6630 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6631 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6633 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6634 esac
6635 echo "$as_me:$LINENO: checking for $ac_header" >&5
6636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6638 echo $ECHO_N "(cached) $ECHO_C" >&6
6639 else
6640 eval "$as_ac_Header=$ac_header_preproc"
6641 fi
6642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5748 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6643 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6644
6645 fi
5749 if test `eval echo '${'$as_ac_Header'}'` = yes; then 6646 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5750 cat >>confdefs.h <<EOF 6647 cat >>confdefs.h <<_ACEOF
5751 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6648 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5752 EOF 6649 _ACEOF
5753 6650
5754 fi 6651 fi
6652
5755 done 6653 done
6654
5756 6655
5757 for ac_func in getpagesize 6656 for ac_func in getpagesize
5758 do 6657 do
5759 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6658 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5760 echo "$as_me:5760: checking for $ac_func" >&5 6659 echo "$as_me:$LINENO: checking for $ac_func" >&5
5761 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6660 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5762 if eval "test \"\${$as_ac_var+set}\" = set"; then 6661 if eval "test \"\${$as_ac_var+set}\" = set"; then
5763 echo $ECHO_N "(cached) $ECHO_C" >&6 6662 echo $ECHO_N "(cached) $ECHO_C" >&6
5764 else 6663 else
5765 cat >conftest.$ac_ext <<_ACEOF 6664 cat >conftest.$ac_ext <<_ACEOF
5766 #line 5766 "configure" 6665 #line $LINENO "configure"
5767 #include "confdefs.h" 6666 #include "confdefs.h"
5768 /* System header to define __stub macros and hopefully few prototypes, 6667 /* System header to define __stub macros and hopefully few prototypes,
5769 which can conflict with char $ac_func (); below. */ 6668 which can conflict with char $ac_func (); below. */
5770 #include <assert.h> 6669 #include <assert.h>
5771 /* Override any gcc2 internal prototype to avoid an error. */ 6670 /* Override any gcc2 internal prototype to avoid an error. */
5775 /* We use char because int might match the return type of a gcc2 6674 /* We use char because int might match the return type of a gcc2
5776 builtin and then its argument prototype would still apply. */ 6675 builtin and then its argument prototype would still apply. */
5777 char $ac_func (); 6676 char $ac_func ();
5778 char (*f) (); 6677 char (*f) ();
5779 6678
6679 #ifdef F77_DUMMY_MAIN
6680 # ifdef __cplusplus
6681 extern "C"
6682 # endif
6683 int F77_DUMMY_MAIN() { return 1; }
6684 #endif
5780 int 6685 int
5781 main () 6686 main ()
5782 { 6687 {
5783 /* The GNU C library defines this for functions which it implements 6688 /* The GNU C library defines this for functions which it implements
5784 to always fail with ENOSYS. Some functions are actually named 6689 to always fail with ENOSYS. Some functions are actually named
5792 ; 6697 ;
5793 return 0; 6698 return 0;
5794 } 6699 }
5795 _ACEOF 6700 _ACEOF
5796 rm -f conftest.$ac_objext conftest$ac_exeext 6701 rm -f conftest.$ac_objext conftest$ac_exeext
5797 if { (eval echo "$as_me:5797: \"$ac_link\"") >&5 6702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5798 (eval $ac_link) 2>&5 6703 (eval $ac_link) 2>&5
5799 ac_status=$? 6704 ac_status=$?
5800 echo "$as_me:5800: \$? = $ac_status" >&5 6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); } && 6706 (exit $ac_status); } &&
5802 { ac_try='test -s conftest$ac_exeext' 6707 { ac_try='test -s conftest$ac_exeext'
5803 { (eval echo "$as_me:5803: \"$ac_try\"") >&5 6708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5804 (eval $ac_try) 2>&5 6709 (eval $ac_try) 2>&5
5805 ac_status=$? 6710 ac_status=$?
5806 echo "$as_me:5806: \$? = $ac_status" >&5 6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); }; }; then 6712 (exit $ac_status); }; }; then
5808 eval "$as_ac_var=yes" 6713 eval "$as_ac_var=yes"
5809 else 6714 else
5810 echo "$as_me: failed program was:" >&5 6715 echo "$as_me: failed program was:" >&5
5811 cat conftest.$ac_ext >&5 6716 cat conftest.$ac_ext >&5
5812 eval "$as_ac_var=no" 6717 eval "$as_ac_var=no"
5813 fi 6718 fi
5814 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6719 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5815 fi 6720 fi
5816 echo "$as_me:5816: result: `eval echo '${'$as_ac_var'}'`" >&5 6721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5817 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 6722 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5818 if test `eval echo '${'$as_ac_var'}'` = yes; then 6723 if test `eval echo '${'$as_ac_var'}'` = yes; then
5819 cat >>confdefs.h <<EOF 6724 cat >>confdefs.h <<_ACEOF
5820 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6725 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5821 EOF 6726 _ACEOF
5822 6727
5823 fi 6728 fi
5824 done 6729 done
5825 6730
5826 echo "$as_me:5826: checking for working mmap" >&5 6731 echo "$as_me:$LINENO: checking for working mmap" >&5
5827 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 6732 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5828 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 6733 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5829 echo $ECHO_N "(cached) $ECHO_C" >&6 6734 echo $ECHO_N "(cached) $ECHO_C" >&6
5830 else 6735 else
5831 if test "$cross_compiling" = yes; then 6736 if test "$cross_compiling" = yes; then
5832 ac_cv_func_mmap_fixed_mapped=no 6737 ac_cv_func_mmap_fixed_mapped=no
5833 else 6738 else
5834 cat >conftest.$ac_ext <<_ACEOF 6739 cat >conftest.$ac_ext <<_ACEOF
5835 #line 5835 "configure" 6740 #line $LINENO "configure"
5836 #include "confdefs.h" 6741 #include "confdefs.h"
5837 $ac_includes_default 6742 $ac_includes_default
6743 /* malloc might have been renamed as rpl_malloc. */
6744 #undef malloc
6745
5838 /* Thanks to Mike Haertel and Jim Avera for this test. 6746 /* Thanks to Mike Haertel and Jim Avera for this test.
5839 Here is a matrix of mmap possibilities: 6747 Here is a matrix of mmap possibilities:
5840 mmap private not fixed 6748 mmap private not fixed
5841 mmap private fixed at somewhere currently unmapped 6749 mmap private fixed at somewhere currently unmapped
5842 mmap private fixed at somewhere already mapped 6750 mmap private fixed at somewhere already mapped
5848 address. (There have been systems where private was not correctly 6756 address. (There have been systems where private was not correctly
5849 implemented like the infamous i386 svr4.0, and systems where the 6757 implemented like the infamous i386 svr4.0, and systems where the
5850 VM page cache was not coherent with the file system buffer cache 6758 VM page cache was not coherent with the file system buffer cache
5851 like early versions of FreeBSD and possibly contemporary NetBSD.) 6759 like early versions of FreeBSD and possibly contemporary NetBSD.)
5852 For shared mappings, we should conversely verify that changes get 6760 For shared mappings, we should conversely verify that changes get
5853 propogated back to all the places they're supposed to be. 6761 propagated back to all the places they're supposed to be.
5854 6762
5855 Grep wants private fixed already mapped. 6763 Grep wants private fixed already mapped.
5856 The main things grep needs to know about mmap are: 6764 The main things grep needs to know about mmap are:
5857 * does it exist and is it safe to write into the mmap'd area 6765 * does it exist and is it safe to write into the mmap'd area
5858 * how to use it (BSD variants) */ 6766 * how to use it (BSD variants) */
5957 close (fd); 6865 close (fd);
5958 exit (0); 6866 exit (0);
5959 } 6867 }
5960 _ACEOF 6868 _ACEOF
5961 rm -f conftest$ac_exeext 6869 rm -f conftest$ac_exeext
5962 if { (eval echo "$as_me:5962: \"$ac_link\"") >&5 6870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5963 (eval $ac_link) 2>&5 6871 (eval $ac_link) 2>&5
5964 ac_status=$? 6872 ac_status=$?
5965 echo "$as_me:5965: \$? = $ac_status" >&5 6873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6874 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5967 { (eval echo "$as_me:5967: \"$ac_try\"") >&5 6875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5968 (eval $ac_try) 2>&5 6876 (eval $ac_try) 2>&5
5969 ac_status=$? 6877 ac_status=$?
5970 echo "$as_me:5970: \$? = $ac_status" >&5 6878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); }; }; then 6879 (exit $ac_status); }; }; then
5972 ac_cv_func_mmap_fixed_mapped=yes 6880 ac_cv_func_mmap_fixed_mapped=yes
5973 else 6881 else
5974 echo "$as_me: program exited with status $ac_status" >&5 6882 echo "$as_me: program exited with status $ac_status" >&5
5975 echo "$as_me: failed program was:" >&5 6883 echo "$as_me: failed program was:" >&5
5976 cat conftest.$ac_ext >&5 6884 cat conftest.$ac_ext >&5
6885 ( exit $ac_status )
5977 ac_cv_func_mmap_fixed_mapped=no 6886 ac_cv_func_mmap_fixed_mapped=no
5978 fi 6887 fi
5979 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6888 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5980 fi 6889 fi
5981 fi 6890 fi
5982 echo "$as_me:5982: result: $ac_cv_func_mmap_fixed_mapped" >&5 6891 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
5983 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 6892 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
5984 if test $ac_cv_func_mmap_fixed_mapped = yes; then 6893 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5985 6894
5986 cat >>confdefs.h <<\EOF 6895 cat >>confdefs.h <<\_ACEOF
5987 #define HAVE_MMAP 1 6896 #define HAVE_MMAP 1
5988 EOF 6897 _ACEOF
5989 6898
5990 fi 6899 fi
5991 rm -f conftest.mmap 6900 rm -f conftest.mmap
5992 6901
5993 if test $use_mmap_for_buffers = yes; then 6902 if test $use_mmap_for_buffers = yes; then
5994 REL_ALLOC=no 6903 REL_ALLOC=no
5995 fi 6904 fi
5996 6905
5997 LIBS="$libsrc_libs $LIBS" 6906 LIBS="$libsrc_libs $LIBS"
5998 6907
5999 echo "$as_me:5999: checking for dnet_ntoa in -ldnet" >&5 6908
6909 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6000 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 6910 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6001 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then 6911 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6002 echo $ECHO_N "(cached) $ECHO_C" >&6 6912 echo $ECHO_N "(cached) $ECHO_C" >&6
6003 else 6913 else
6004 ac_check_lib_save_LIBS=$LIBS 6914 ac_check_lib_save_LIBS=$LIBS
6005 LIBS="-ldnet $LIBS" 6915 LIBS="-ldnet $LIBS"
6006 cat >conftest.$ac_ext <<_ACEOF 6916 cat >conftest.$ac_ext <<_ACEOF
6007 #line 6007 "configure" 6917 #line $LINENO "configure"
6008 #include "confdefs.h" 6918 #include "confdefs.h"
6009 6919
6010 /* Override any gcc2 internal prototype to avoid an error. */ 6920 /* Override any gcc2 internal prototype to avoid an error. */
6011 #ifdef __cplusplus 6921 #ifdef __cplusplus
6012 extern "C" 6922 extern "C"
6013 #endif 6923 #endif
6014 /* We use char because int might match the return type of a gcc2 6924 /* We use char because int might match the return type of a gcc2
6015 builtin and then its argument prototype would still apply. */ 6925 builtin and then its argument prototype would still apply. */
6016 char dnet_ntoa (); 6926 char dnet_ntoa ();
6927 #ifdef F77_DUMMY_MAIN
6928 # ifdef __cplusplus
6929 extern "C"
6930 # endif
6931 int F77_DUMMY_MAIN() { return 1; }
6932 #endif
6017 int 6933 int
6018 main () 6934 main ()
6019 { 6935 {
6020 dnet_ntoa (); 6936 dnet_ntoa ();
6021 ; 6937 ;
6022 return 0; 6938 return 0;
6023 } 6939 }
6024 _ACEOF 6940 _ACEOF
6025 rm -f conftest.$ac_objext conftest$ac_exeext 6941 rm -f conftest.$ac_objext conftest$ac_exeext
6026 if { (eval echo "$as_me:6026: \"$ac_link\"") >&5 6942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6027 (eval $ac_link) 2>&5 6943 (eval $ac_link) 2>&5
6028 ac_status=$? 6944 ac_status=$?
6029 echo "$as_me:6029: \$? = $ac_status" >&5 6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030 (exit $ac_status); } && 6946 (exit $ac_status); } &&
6031 { ac_try='test -s conftest$ac_exeext' 6947 { ac_try='test -s conftest$ac_exeext'
6032 { (eval echo "$as_me:6032: \"$ac_try\"") >&5 6948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6033 (eval $ac_try) 2>&5 6949 (eval $ac_try) 2>&5
6034 ac_status=$? 6950 ac_status=$?
6035 echo "$as_me:6035: \$? = $ac_status" >&5 6951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036 (exit $ac_status); }; }; then 6952 (exit $ac_status); }; }; then
6037 ac_cv_lib_dnet_dnet_ntoa=yes 6953 ac_cv_lib_dnet_dnet_ntoa=yes
6038 else 6954 else
6039 echo "$as_me: failed program was:" >&5 6955 echo "$as_me: failed program was:" >&5
6040 cat conftest.$ac_ext >&5 6956 cat conftest.$ac_ext >&5
6041 ac_cv_lib_dnet_dnet_ntoa=no 6957 ac_cv_lib_dnet_dnet_ntoa=no
6042 fi 6958 fi
6043 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6959 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6044 LIBS=$ac_check_lib_save_LIBS 6960 LIBS=$ac_check_lib_save_LIBS
6045 fi 6961 fi
6046 echo "$as_me:6046: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 6962 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6047 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 6963 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
6048 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then 6964 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6049 cat >>confdefs.h <<EOF 6965 cat >>confdefs.h <<_ACEOF
6050 #define HAVE_LIBDNET 1 6966 #define HAVE_LIBDNET 1
6051 EOF 6967 _ACEOF
6052 6968
6053 LIBS="-ldnet $LIBS" 6969 LIBS="-ldnet $LIBS"
6054 6970
6055 fi 6971 fi
6056 6972
6057 echo "$as_me:6057: checking for main in -lXbsd" >&5 6973
6974 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
6058 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6 6975 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
6059 if test "${ac_cv_lib_Xbsd_main+set}" = set; then 6976 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
6060 echo $ECHO_N "(cached) $ECHO_C" >&6 6977 echo $ECHO_N "(cached) $ECHO_C" >&6
6061 else 6978 else
6062 ac_check_lib_save_LIBS=$LIBS 6979 ac_check_lib_save_LIBS=$LIBS
6063 LIBS="-lXbsd $LIBS" 6980 LIBS="-lXbsd $LIBS"
6064 cat >conftest.$ac_ext <<_ACEOF 6981 cat >conftest.$ac_ext <<_ACEOF
6065 #line 6065 "configure" 6982 #line $LINENO "configure"
6066 #include "confdefs.h" 6983 #include "confdefs.h"
6067 6984
6985
6986 #ifdef F77_DUMMY_MAIN
6987 # ifdef __cplusplus
6988 extern "C"
6989 # endif
6990 int F77_DUMMY_MAIN() { return 1; }
6991 #endif
6068 int 6992 int
6069 main () 6993 main ()
6070 { 6994 {
6071 main (); 6995 main ();
6072 ; 6996 ;
6073 return 0; 6997 return 0;
6074 } 6998 }
6075 _ACEOF 6999 _ACEOF
6076 rm -f conftest.$ac_objext conftest$ac_exeext 7000 rm -f conftest.$ac_objext conftest$ac_exeext
6077 if { (eval echo "$as_me:6077: \"$ac_link\"") >&5 7001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6078 (eval $ac_link) 2>&5 7002 (eval $ac_link) 2>&5
6079 ac_status=$? 7003 ac_status=$?
6080 echo "$as_me:6080: \$? = $ac_status" >&5 7004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081 (exit $ac_status); } && 7005 (exit $ac_status); } &&
6082 { ac_try='test -s conftest$ac_exeext' 7006 { ac_try='test -s conftest$ac_exeext'
6083 { (eval echo "$as_me:6083: \"$ac_try\"") >&5 7007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6084 (eval $ac_try) 2>&5 7008 (eval $ac_try) 2>&5
6085 ac_status=$? 7009 ac_status=$?
6086 echo "$as_me:6086: \$? = $ac_status" >&5 7010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); }; }; then 7011 (exit $ac_status); }; }; then
6088 ac_cv_lib_Xbsd_main=yes 7012 ac_cv_lib_Xbsd_main=yes
6089 else 7013 else
6090 echo "$as_me: failed program was:" >&5 7014 echo "$as_me: failed program was:" >&5
6091 cat conftest.$ac_ext >&5 7015 cat conftest.$ac_ext >&5
6092 ac_cv_lib_Xbsd_main=no 7016 ac_cv_lib_Xbsd_main=no
6093 fi 7017 fi
6094 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7018 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6095 LIBS=$ac_check_lib_save_LIBS 7019 LIBS=$ac_check_lib_save_LIBS
6096 fi 7020 fi
6097 echo "$as_me:6097: result: $ac_cv_lib_Xbsd_main" >&5 7021 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
6098 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6 7022 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
6099 if test $ac_cv_lib_Xbsd_main = yes; then 7023 if test $ac_cv_lib_Xbsd_main = yes; then
6100 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd" 7024 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
6101 fi 7025 fi
6102 7026
6103 echo "$as_me:6103: checking for cma_open in -lpthreads" >&5 7027
7028
7029 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
6104 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6 7030 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
6105 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then 7031 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
6106 echo $ECHO_N "(cached) $ECHO_C" >&6 7032 echo $ECHO_N "(cached) $ECHO_C" >&6
6107 else 7033 else
6108 ac_check_lib_save_LIBS=$LIBS 7034 ac_check_lib_save_LIBS=$LIBS
6109 LIBS="-lpthreads $LIBS" 7035 LIBS="-lpthreads $LIBS"
6110 cat >conftest.$ac_ext <<_ACEOF 7036 cat >conftest.$ac_ext <<_ACEOF
6111 #line 6111 "configure" 7037 #line $LINENO "configure"
6112 #include "confdefs.h" 7038 #include "confdefs.h"
6113 7039
6114 /* Override any gcc2 internal prototype to avoid an error. */ 7040 /* Override any gcc2 internal prototype to avoid an error. */
6115 #ifdef __cplusplus 7041 #ifdef __cplusplus
6116 extern "C" 7042 extern "C"
6117 #endif 7043 #endif
6118 /* We use char because int might match the return type of a gcc2 7044 /* We use char because int might match the return type of a gcc2
6119 builtin and then its argument prototype would still apply. */ 7045 builtin and then its argument prototype would still apply. */
6120 char cma_open (); 7046 char cma_open ();
7047 #ifdef F77_DUMMY_MAIN
7048 # ifdef __cplusplus
7049 extern "C"
7050 # endif
7051 int F77_DUMMY_MAIN() { return 1; }
7052 #endif
6121 int 7053 int
6122 main () 7054 main ()
6123 { 7055 {
6124 cma_open (); 7056 cma_open ();
6125 ; 7057 ;
6126 return 0; 7058 return 0;
6127 } 7059 }
6128 _ACEOF 7060 _ACEOF
6129 rm -f conftest.$ac_objext conftest$ac_exeext 7061 rm -f conftest.$ac_objext conftest$ac_exeext
6130 if { (eval echo "$as_me:6130: \"$ac_link\"") >&5 7062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6131 (eval $ac_link) 2>&5 7063 (eval $ac_link) 2>&5
6132 ac_status=$? 7064 ac_status=$?
6133 echo "$as_me:6133: \$? = $ac_status" >&5 7065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); } && 7066 (exit $ac_status); } &&
6135 { ac_try='test -s conftest$ac_exeext' 7067 { ac_try='test -s conftest$ac_exeext'
6136 { (eval echo "$as_me:6136: \"$ac_try\"") >&5 7068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6137 (eval $ac_try) 2>&5 7069 (eval $ac_try) 2>&5
6138 ac_status=$? 7070 ac_status=$?
6139 echo "$as_me:6139: \$? = $ac_status" >&5 7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); }; }; then 7072 (exit $ac_status); }; }; then
6141 ac_cv_lib_pthreads_cma_open=yes 7073 ac_cv_lib_pthreads_cma_open=yes
6142 else 7074 else
6143 echo "$as_me: failed program was:" >&5 7075 echo "$as_me: failed program was:" >&5
6144 cat conftest.$ac_ext >&5 7076 cat conftest.$ac_ext >&5
6145 ac_cv_lib_pthreads_cma_open=no 7077 ac_cv_lib_pthreads_cma_open=no
6146 fi 7078 fi
6147 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7079 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6148 LIBS=$ac_check_lib_save_LIBS 7080 LIBS=$ac_check_lib_save_LIBS
6149 fi 7081 fi
6150 echo "$as_me:6150: result: $ac_cv_lib_pthreads_cma_open" >&5 7082 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
6151 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6 7083 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
6152 if test $ac_cv_lib_pthreads_cma_open = yes; then 7084 if test $ac_cv_lib_pthreads_cma_open = yes; then
6153 cat >>confdefs.h <<EOF 7085 cat >>confdefs.h <<_ACEOF
6154 #define HAVE_LIBPTHREADS 1 7086 #define HAVE_LIBPTHREADS 1
6155 EOF 7087 _ACEOF
6156 7088
6157 LIBS="-lpthreads $LIBS" 7089 LIBS="-lpthreads $LIBS"
6158 7090
6159 fi 7091 fi
6160 7092
6161 echo "$as_me:6161: checking for XFree86 in /usr/X386" >&5 7093
7094 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
6162 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6 7095 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
6163 if test -d /usr/X386/include; then 7096 if test -d /usr/X386/include; then
6164 HAVE_XFREE386=yes 7097 HAVE_XFREE386=yes
6165 : ${C_SWITCH_X_SITE="-I/usr/X386/include"} 7098 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
6166 else 7099 else
6167 HAVE_XFREE386=no 7100 HAVE_XFREE386=no
6168 fi 7101 fi
6169 echo "$as_me:6169: result: $HAVE_XFREE386" >&5 7102 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
6170 echo "${ECHO_T}$HAVE_XFREE386" >&6 7103 echo "${ECHO_T}$HAVE_XFREE386" >&6
6171 7104
6172 # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used 7105 # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used
6173 # for the tests that follow. We set it back to REAL_CFLAGS later on. 7106 # for the tests that follow. We set it back to REAL_CFLAGS later on.
6174 7107
6189 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH 7122 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
6190 export LD_RUN_PATH 7123 export LD_RUN_PATH
6191 fi 7124 fi
6192 7125
6193 if test "${opsys}" = "gnu-linux"; then 7126 if test "${opsys}" = "gnu-linux"; then
6194 echo "$as_me:6194: checking whether X on GNU/Linux needs -b to link" >&5 7127 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
6195 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6 7128 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
6196 cat >conftest.$ac_ext <<_ACEOF 7129 cat >conftest.$ac_ext <<_ACEOF
6197 #line 6197 "configure" 7130 #line $LINENO "configure"
6198 #include "confdefs.h" 7131 #include "confdefs.h"
6199 7132
7133 #ifdef F77_DUMMY_MAIN
7134 # ifdef __cplusplus
7135 extern "C"
7136 # endif
7137 int F77_DUMMY_MAIN() { return 1; }
7138 #endif
6200 int 7139 int
6201 main () 7140 main ()
6202 { 7141 {
6203 XOpenDisplay ("foo"); 7142 XOpenDisplay ("foo");
6204 ; 7143 ;
6205 return 0; 7144 return 0;
6206 } 7145 }
6207 _ACEOF 7146 _ACEOF
6208 rm -f conftest.$ac_objext conftest$ac_exeext 7147 rm -f conftest.$ac_objext conftest$ac_exeext
6209 if { (eval echo "$as_me:6209: \"$ac_link\"") >&5 7148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6210 (eval $ac_link) 2>&5 7149 (eval $ac_link) 2>&5
6211 ac_status=$? 7150 ac_status=$?
6212 echo "$as_me:6212: \$? = $ac_status" >&5 7151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213 (exit $ac_status); } && 7152 (exit $ac_status); } &&
6214 { ac_try='test -s conftest$ac_exeext' 7153 { ac_try='test -s conftest$ac_exeext'
6215 { (eval echo "$as_me:6215: \"$ac_try\"") >&5 7154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6216 (eval $ac_try) 2>&5 7155 (eval $ac_try) 2>&5
6217 ac_status=$? 7156 ac_status=$?
6218 echo "$as_me:6218: \$? = $ac_status" >&5 7157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); }; }; then 7158 (exit $ac_status); }; }; then
6220 xlinux_first_failure=no 7159 xlinux_first_failure=no
6221 else 7160 else
6222 echo "$as_me: failed program was:" >&5 7161 echo "$as_me: failed program was:" >&5
6223 cat conftest.$ac_ext >&5 7162 cat conftest.$ac_ext >&5
6232 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout" 7171 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
6233 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" 7172 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
6234 CPPFLAGS="$CPPFLAGS -b i486-linuxaout" 7173 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
6235 LIBS="$LIBS -b i486-linuxaout" 7174 LIBS="$LIBS -b i486-linuxaout"
6236 cat >conftest.$ac_ext <<_ACEOF 7175 cat >conftest.$ac_ext <<_ACEOF
6237 #line 6237 "configure" 7176 #line $LINENO "configure"
6238 #include "confdefs.h" 7177 #include "confdefs.h"
6239 7178
7179 #ifdef F77_DUMMY_MAIN
7180 # ifdef __cplusplus
7181 extern "C"
7182 # endif
7183 int F77_DUMMY_MAIN() { return 1; }
7184 #endif
6240 int 7185 int
6241 main () 7186 main ()
6242 { 7187 {
6243 XOpenDisplay ("foo"); 7188 XOpenDisplay ("foo");
6244 ; 7189 ;
6245 return 0; 7190 return 0;
6246 } 7191 }
6247 _ACEOF 7192 _ACEOF
6248 rm -f conftest.$ac_objext conftest$ac_exeext 7193 rm -f conftest.$ac_objext conftest$ac_exeext
6249 if { (eval echo "$as_me:6249: \"$ac_link\"") >&5 7194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6250 (eval $ac_link) 2>&5 7195 (eval $ac_link) 2>&5
6251 ac_status=$? 7196 ac_status=$?
6252 echo "$as_me:6252: \$? = $ac_status" >&5 7197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); } && 7198 (exit $ac_status); } &&
6254 { ac_try='test -s conftest$ac_exeext' 7199 { ac_try='test -s conftest$ac_exeext'
6255 { (eval echo "$as_me:6255: \"$ac_try\"") >&5 7200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6256 (eval $ac_try) 2>&5 7201 (eval $ac_try) 2>&5
6257 ac_status=$? 7202 ac_status=$?
6258 echo "$as_me:6258: \$? = $ac_status" >&5 7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259 (exit $ac_status); }; }; then 7204 (exit $ac_status); }; }; then
6260 xlinux_second_failure=no 7205 xlinux_second_failure=no
6261 else 7206 else
6262 echo "$as_me: failed program was:" >&5 7207 echo "$as_me: failed program was:" >&5
6263 cat conftest.$ac_ext >&5 7208 cat conftest.$ac_ext >&5
6269 # So take it out. This plays safe. 7214 # So take it out. This plays safe.
6270 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE" 7215 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
6271 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE" 7216 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
6272 CPPFLAGS="$OLD_CPPFLAGS" 7217 CPPFLAGS="$OLD_CPPFLAGS"
6273 LIBS="$OLD_LIBS" 7218 LIBS="$OLD_LIBS"
6274 echo "$as_me:6274: result: no" >&5 7219 echo "$as_me:$LINENO: result: no" >&5
6275 echo "${ECHO_T}no" >&6 7220 echo "${ECHO_T}no" >&6
6276 else 7221 else
6277 echo "$as_me:6277: result: yes" >&5 7222 echo "$as_me:$LINENO: result: yes" >&5
6278 echo "${ECHO_T}yes" >&6 7223 echo "${ECHO_T}yes" >&6
6279 fi 7224 fi
6280 else 7225 else
6281 echo "$as_me:6281: result: no" >&5 7226 echo "$as_me:$LINENO: result: no" >&5
6282 echo "${ECHO_T}no" >&6 7227 echo "${ECHO_T}no" >&6
6283 fi 7228 fi
6284 fi 7229 fi
6285 7230
6286 # Reportedly, some broken Solaris systems have XKBlib.h but are missing 7231 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
6287 # header files included from there. 7232 # header files included from there.
6288 echo "$as_me:6288: checking for Xkb" >&5 7233 echo "$as_me:$LINENO: checking for Xkb" >&5
6289 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6 7234 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
6290 cat >conftest.$ac_ext <<_ACEOF 7235 cat >conftest.$ac_ext <<_ACEOF
6291 #line 6291 "configure" 7236 #line $LINENO "configure"
6292 #include "confdefs.h" 7237 #include "confdefs.h"
6293 #include <X11/Xlib.h> 7238 #include <X11/Xlib.h>
6294 #include <X11/XKBlib.h> 7239 #include <X11/XKBlib.h>
7240 #ifdef F77_DUMMY_MAIN
7241 # ifdef __cplusplus
7242 extern "C"
7243 # endif
7244 int F77_DUMMY_MAIN() { return 1; }
7245 #endif
6295 int 7246 int
6296 main () 7247 main ()
6297 { 7248 {
6298 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd); 7249 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
6299 ; 7250 ;
6300 return 0; 7251 return 0;
6301 } 7252 }
6302 _ACEOF 7253 _ACEOF
6303 rm -f conftest.$ac_objext conftest$ac_exeext 7254 rm -f conftest.$ac_objext conftest$ac_exeext
6304 if { (eval echo "$as_me:6304: \"$ac_link\"") >&5 7255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6305 (eval $ac_link) 2>&5 7256 (eval $ac_link) 2>&5
6306 ac_status=$? 7257 ac_status=$?
6307 echo "$as_me:6307: \$? = $ac_status" >&5 7258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); } && 7259 (exit $ac_status); } &&
6309 { ac_try='test -s conftest$ac_exeext' 7260 { ac_try='test -s conftest$ac_exeext'
6310 { (eval echo "$as_me:6310: \"$ac_try\"") >&5 7261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6311 (eval $ac_try) 2>&5 7262 (eval $ac_try) 2>&5
6312 ac_status=$? 7263 ac_status=$?
6313 echo "$as_me:6313: \$? = $ac_status" >&5 7264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); }; }; then 7265 (exit $ac_status); }; }; then
6315 emacs_xkb=yes 7266 emacs_xkb=yes
6316 else 7267 else
6317 echo "$as_me: failed program was:" >&5 7268 echo "$as_me: failed program was:" >&5
6318 cat conftest.$ac_ext >&5 7269 cat conftest.$ac_ext >&5
6319 emacs_xkb=no 7270 emacs_xkb=no
6320 fi 7271 fi
6321 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7272 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6322 echo "$as_me:6322: result: $emacs_xkb" >&5 7273 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
6323 echo "${ECHO_T}$emacs_xkb" >&6 7274 echo "${ECHO_T}$emacs_xkb" >&6
6324 if test $emacs_xkb = yes; then 7275 if test $emacs_xkb = yes; then
6325 cat >>confdefs.h <<\EOF 7276 cat >>confdefs.h <<\_ACEOF
6326 #define HAVE_XKBGETKEYBOARD 1 7277 #define HAVE_XKBGETKEYBOARD 1
6327 EOF 7278 _ACEOF
6328 7279
6329 fi 7280 fi
7281
7282
7283
7284
6330 7285
6331 for ac_func in XrmSetDatabase XScreenResourceString \ 7286 for ac_func in XrmSetDatabase XScreenResourceString \
6332 XScreenNumberOfScreen XSetWMProtocols 7287 XScreenNumberOfScreen XSetWMProtocols
6333 do 7288 do
6334 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7289 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6335 echo "$as_me:6335: checking for $ac_func" >&5 7290 echo "$as_me:$LINENO: checking for $ac_func" >&5
6336 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 7291 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6337 if eval "test \"\${$as_ac_var+set}\" = set"; then 7292 if eval "test \"\${$as_ac_var+set}\" = set"; then
6338 echo $ECHO_N "(cached) $ECHO_C" >&6 7293 echo $ECHO_N "(cached) $ECHO_C" >&6
6339 else 7294 else
6340 cat >conftest.$ac_ext <<_ACEOF 7295 cat >conftest.$ac_ext <<_ACEOF
6341 #line 6341 "configure" 7296 #line $LINENO "configure"
6342 #include "confdefs.h" 7297 #include "confdefs.h"
6343 /* System header to define __stub macros and hopefully few prototypes, 7298 /* System header to define __stub macros and hopefully few prototypes,
6344 which can conflict with char $ac_func (); below. */ 7299 which can conflict with char $ac_func (); below. */
6345 #include <assert.h> 7300 #include <assert.h>
6346 /* Override any gcc2 internal prototype to avoid an error. */ 7301 /* Override any gcc2 internal prototype to avoid an error. */
6350 /* We use char because int might match the return type of a gcc2 7305 /* We use char because int might match the return type of a gcc2
6351 builtin and then its argument prototype would still apply. */ 7306 builtin and then its argument prototype would still apply. */
6352 char $ac_func (); 7307 char $ac_func ();
6353 char (*f) (); 7308 char (*f) ();
6354 7309
7310 #ifdef F77_DUMMY_MAIN
7311 # ifdef __cplusplus
7312 extern "C"
7313 # endif
7314 int F77_DUMMY_MAIN() { return 1; }
7315 #endif
6355 int 7316 int
6356 main () 7317 main ()
6357 { 7318 {
6358 /* The GNU C library defines this for functions which it implements 7319 /* The GNU C library defines this for functions which it implements
6359 to always fail with ENOSYS. Some functions are actually named 7320 to always fail with ENOSYS. Some functions are actually named
6367 ; 7328 ;
6368 return 0; 7329 return 0;
6369 } 7330 }
6370 _ACEOF 7331 _ACEOF
6371 rm -f conftest.$ac_objext conftest$ac_exeext 7332 rm -f conftest.$ac_objext conftest$ac_exeext
6372 if { (eval echo "$as_me:6372: \"$ac_link\"") >&5 7333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6373 (eval $ac_link) 2>&5 7334 (eval $ac_link) 2>&5
6374 ac_status=$? 7335 ac_status=$?
6375 echo "$as_me:6375: \$? = $ac_status" >&5 7336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376 (exit $ac_status); } && 7337 (exit $ac_status); } &&
6377 { ac_try='test -s conftest$ac_exeext' 7338 { ac_try='test -s conftest$ac_exeext'
6378 { (eval echo "$as_me:6378: \"$ac_try\"") >&5 7339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6379 (eval $ac_try) 2>&5 7340 (eval $ac_try) 2>&5
6380 ac_status=$? 7341 ac_status=$?
6381 echo "$as_me:6381: \$? = $ac_status" >&5 7342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382 (exit $ac_status); }; }; then 7343 (exit $ac_status); }; }; then
6383 eval "$as_ac_var=yes" 7344 eval "$as_ac_var=yes"
6384 else 7345 else
6385 echo "$as_me: failed program was:" >&5 7346 echo "$as_me: failed program was:" >&5
6386 cat conftest.$ac_ext >&5 7347 cat conftest.$ac_ext >&5
6387 eval "$as_ac_var=no" 7348 eval "$as_ac_var=no"
6388 fi 7349 fi
6389 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7350 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6390 fi 7351 fi
6391 echo "$as_me:6391: result: `eval echo '${'$as_ac_var'}'`" >&5 7352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6392 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 7353 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6393 if test `eval echo '${'$as_ac_var'}'` = yes; then 7354 if test `eval echo '${'$as_ac_var'}'` = yes; then
6394 cat >>confdefs.h <<EOF 7355 cat >>confdefs.h <<_ACEOF
6395 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7356 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6396 EOF 7357 _ACEOF
6397 7358
6398 fi 7359 fi
6399 done 7360 done
6400 7361
6401 fi 7362 fi
6402 7363
6403 if test "${window_system}" = "x11"; then 7364 if test "${window_system}" = "x11"; then
6404 echo "$as_me:6404: checking X11 version 6" >&5 7365 echo "$as_me:$LINENO: checking X11 version 6" >&5
6405 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6 7366 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
6406 if test "${emacs_cv_x11_version_6+set}" = set; then 7367 if test "${emacs_cv_x11_version_6+set}" = set; then
6407 echo $ECHO_N "(cached) $ECHO_C" >&6 7368 echo $ECHO_N "(cached) $ECHO_C" >&6
6408 else 7369 else
6409 cat >conftest.$ac_ext <<_ACEOF 7370 cat >conftest.$ac_ext <<_ACEOF
6410 #line 6410 "configure" 7371 #line $LINENO "configure"
6411 #include "confdefs.h" 7372 #include "confdefs.h"
6412 #include <X11/Xlib.h> 7373 #include <X11/Xlib.h>
7374 #ifdef F77_DUMMY_MAIN
7375 # ifdef __cplusplus
7376 extern "C"
7377 # endif
7378 int F77_DUMMY_MAIN() { return 1; }
7379 #endif
6413 int 7380 int
6414 main () 7381 main ()
6415 { 7382 {
6416 #if XlibSpecificationRelease < 6 7383 #if XlibSpecificationRelease < 6
6417 fail; 7384 fail;
6420 ; 7387 ;
6421 return 0; 7388 return 0;
6422 } 7389 }
6423 _ACEOF 7390 _ACEOF
6424 rm -f conftest.$ac_objext conftest$ac_exeext 7391 rm -f conftest.$ac_objext conftest$ac_exeext
6425 if { (eval echo "$as_me:6425: \"$ac_link\"") >&5 7392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6426 (eval $ac_link) 2>&5 7393 (eval $ac_link) 2>&5
6427 ac_status=$? 7394 ac_status=$?
6428 echo "$as_me:6428: \$? = $ac_status" >&5 7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); } && 7396 (exit $ac_status); } &&
6430 { ac_try='test -s conftest$ac_exeext' 7397 { ac_try='test -s conftest$ac_exeext'
6431 { (eval echo "$as_me:6431: \"$ac_try\"") >&5 7398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6432 (eval $ac_try) 2>&5 7399 (eval $ac_try) 2>&5
6433 ac_status=$? 7400 ac_status=$?
6434 echo "$as_me:6434: \$? = $ac_status" >&5 7401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435 (exit $ac_status); }; }; then 7402 (exit $ac_status); }; }; then
6436 emacs_cv_x11_version_6=yes 7403 emacs_cv_x11_version_6=yes
6437 else 7404 else
6438 echo "$as_me: failed program was:" >&5 7405 echo "$as_me: failed program was:" >&5
6439 cat conftest.$ac_ext >&5 7406 cat conftest.$ac_ext >&5
6441 fi 7408 fi
6442 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7409 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6443 fi 7410 fi
6444 7411
6445 if test $emacs_cv_x11_version_6 = yes; then 7412 if test $emacs_cv_x11_version_6 = yes; then
6446 echo "$as_me:6446: result: 6 or newer" >&5 7413 echo "$as_me:$LINENO: result: 6 or newer" >&5
6447 echo "${ECHO_T}6 or newer" >&6 7414 echo "${ECHO_T}6 or newer" >&6
6448 cat >>confdefs.h <<\EOF 7415 cat >>confdefs.h <<\_ACEOF
6449 #define HAVE_X11R6 1 7416 #define HAVE_X11R6 1
6450 EOF 7417 _ACEOF
6451 7418
6452 else 7419 else
6453 echo "$as_me:6453: result: before 6" >&5 7420 echo "$as_me:$LINENO: result: before 6" >&5
6454 echo "${ECHO_T}before 6" >&6 7421 echo "${ECHO_T}before 6" >&6
6455 fi 7422 fi
6456 fi 7423 fi
6457 7424
6458 if test "${window_system}" = "x11"; then 7425 if test "${window_system}" = "x11"; then
6459 echo "$as_me:6459: checking X11 version 5" >&5 7426 echo "$as_me:$LINENO: checking X11 version 5" >&5
6460 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6 7427 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
6461 if test "${emacs_cv_x11_version_5+set}" = set; then 7428 if test "${emacs_cv_x11_version_5+set}" = set; then
6462 echo $ECHO_N "(cached) $ECHO_C" >&6 7429 echo $ECHO_N "(cached) $ECHO_C" >&6
6463 else 7430 else
6464 cat >conftest.$ac_ext <<_ACEOF 7431 cat >conftest.$ac_ext <<_ACEOF
6465 #line 6465 "configure" 7432 #line $LINENO "configure"
6466 #include "confdefs.h" 7433 #include "confdefs.h"
6467 #include <X11/Xlib.h> 7434 #include <X11/Xlib.h>
7435 #ifdef F77_DUMMY_MAIN
7436 # ifdef __cplusplus
7437 extern "C"
7438 # endif
7439 int F77_DUMMY_MAIN() { return 1; }
7440 #endif
6468 int 7441 int
6469 main () 7442 main ()
6470 { 7443 {
6471 #if XlibSpecificationRelease < 5 7444 #if XlibSpecificationRelease < 5
6472 fail; 7445 fail;
6475 ; 7448 ;
6476 return 0; 7449 return 0;
6477 } 7450 }
6478 _ACEOF 7451 _ACEOF
6479 rm -f conftest.$ac_objext conftest$ac_exeext 7452 rm -f conftest.$ac_objext conftest$ac_exeext
6480 if { (eval echo "$as_me:6480: \"$ac_link\"") >&5 7453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6481 (eval $ac_link) 2>&5 7454 (eval $ac_link) 2>&5
6482 ac_status=$? 7455 ac_status=$?
6483 echo "$as_me:6483: \$? = $ac_status" >&5 7456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484 (exit $ac_status); } && 7457 (exit $ac_status); } &&
6485 { ac_try='test -s conftest$ac_exeext' 7458 { ac_try='test -s conftest$ac_exeext'
6486 { (eval echo "$as_me:6486: \"$ac_try\"") >&5 7459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6487 (eval $ac_try) 2>&5 7460 (eval $ac_try) 2>&5
6488 ac_status=$? 7461 ac_status=$?
6489 echo "$as_me:6489: \$? = $ac_status" >&5 7462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490 (exit $ac_status); }; }; then 7463 (exit $ac_status); }; }; then
6491 emacs_cv_x11_version_5=yes 7464 emacs_cv_x11_version_5=yes
6492 else 7465 else
6493 echo "$as_me: failed program was:" >&5 7466 echo "$as_me: failed program was:" >&5
6494 cat conftest.$ac_ext >&5 7467 cat conftest.$ac_ext >&5
6496 fi 7469 fi
6497 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7470 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6498 fi 7471 fi
6499 7472
6500 if test $emacs_cv_x11_version_5 = yes; then 7473 if test $emacs_cv_x11_version_5 = yes; then
6501 echo "$as_me:6501: result: 5 or newer" >&5 7474 echo "$as_me:$LINENO: result: 5 or newer" >&5
6502 echo "${ECHO_T}5 or newer" >&6 7475 echo "${ECHO_T}5 or newer" >&6
6503 HAVE_X11R5=yes 7476 HAVE_X11R5=yes
6504 cat >>confdefs.h <<\EOF 7477 cat >>confdefs.h <<\_ACEOF
6505 #define HAVE_X11R5 1 7478 #define HAVE_X11R5 1
6506 EOF 7479 _ACEOF
6507 7480
6508 else 7481 else
6509 HAVE_X11R5=no 7482 HAVE_X11R5=no
6510 echo "$as_me:6510: result: before 5" >&5 7483 echo "$as_me:$LINENO: result: before 5" >&5
6511 echo "${ECHO_T}before 5" >&6 7484 echo "${ECHO_T}before 5" >&6
6512 fi 7485 fi
6513 fi 7486 fi
6514 7487
6515 if test x"${USE_X_TOOLKIT}" = xmaybe; then 7488 if test x"${USE_X_TOOLKIT}" = xmaybe; then
6516 if test x"${HAVE_X11R5}" = xyes; then 7489 if test x"${HAVE_X11R5}" = xyes; then
6517 echo "$as_me:6517: checking X11 version 5 with Xaw" >&5 7490 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
6518 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6 7491 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
6519 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then 7492 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
6520 echo $ECHO_N "(cached) $ECHO_C" >&6 7493 echo $ECHO_N "(cached) $ECHO_C" >&6
6521 else 7494 else
6522 cat >conftest.$ac_ext <<_ACEOF 7495 cat >conftest.$ac_ext <<_ACEOF
6523 #line 6523 "configure" 7496 #line $LINENO "configure"
6524 #include "confdefs.h" 7497 #include "confdefs.h"
6525 7498
6526 #include <X11/Intrinsic.h> 7499 #include <X11/Intrinsic.h>
6527 #include <X11/Xaw/Simple.h> 7500 #include <X11/Xaw/Simple.h>
7501 #ifdef F77_DUMMY_MAIN
7502 # ifdef __cplusplus
7503 extern "C"
7504 # endif
7505 int F77_DUMMY_MAIN() { return 1; }
7506 #endif
6528 int 7507 int
6529 main () 7508 main ()
6530 { 7509 {
6531 7510
6532 ; 7511 ;
6533 return 0; 7512 return 0;
6534 } 7513 }
6535 _ACEOF 7514 _ACEOF
6536 rm -f conftest.$ac_objext conftest$ac_exeext 7515 rm -f conftest.$ac_objext conftest$ac_exeext
6537 if { (eval echo "$as_me:6537: \"$ac_link\"") >&5 7516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6538 (eval $ac_link) 2>&5 7517 (eval $ac_link) 2>&5
6539 ac_status=$? 7518 ac_status=$?
6540 echo "$as_me:6540: \$? = $ac_status" >&5 7519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541 (exit $ac_status); } && 7520 (exit $ac_status); } &&
6542 { ac_try='test -s conftest$ac_exeext' 7521 { ac_try='test -s conftest$ac_exeext'
6543 { (eval echo "$as_me:6543: \"$ac_try\"") >&5 7522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6544 (eval $ac_try) 2>&5 7523 (eval $ac_try) 2>&5
6545 ac_status=$? 7524 ac_status=$?
6546 echo "$as_me:6546: \$? = $ac_status" >&5 7525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6547 (exit $ac_status); }; }; then 7526 (exit $ac_status); }; }; then
6548 emacs_cv_x11_version_5_with_xaw=yes 7527 emacs_cv_x11_version_5_with_xaw=yes
6549 else 7528 else
6550 echo "$as_me: failed program was:" >&5 7529 echo "$as_me: failed program was:" >&5
6551 cat conftest.$ac_ext >&5 7530 cat conftest.$ac_ext >&5
6553 fi 7532 fi
6554 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7533 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6555 fi 7534 fi
6556 7535
6557 if test $emacs_cv_x11_version_5_with_xaw = yes; then 7536 if test $emacs_cv_x11_version_5_with_xaw = yes; then
6558 echo "$as_me:6558: result: 5 or newer, with Xaw; use toolkit by default" >&5 7537 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
6559 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6 7538 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
6560 USE_X_TOOLKIT=LUCID 7539 USE_X_TOOLKIT=LUCID
6561 else 7540 else
6562 echo "$as_me:6562: result: before 5 or no Xaw; do not use toolkit by default" >&5 7541 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
6563 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6 7542 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
6564 USE_X_TOOLKIT=none 7543 USE_X_TOOLKIT=none
6565 fi 7544 fi
6566 else 7545 else
6567 USE_X_TOOLKIT=none 7546 USE_X_TOOLKIT=none
6569 fi 7548 fi
6570 7549
6571 X_TOOLKIT_TYPE=$USE_X_TOOLKIT 7550 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
6572 7551
6573 if test "${USE_X_TOOLKIT}" != "none"; then 7552 if test "${USE_X_TOOLKIT}" != "none"; then
6574 echo "$as_me:6574: checking X11 toolkit version" >&5 7553 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
6575 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6 7554 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
6576 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then 7555 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
6577 echo $ECHO_N "(cached) $ECHO_C" >&6 7556 echo $ECHO_N "(cached) $ECHO_C" >&6
6578 else 7557 else
6579 cat >conftest.$ac_ext <<_ACEOF 7558 cat >conftest.$ac_ext <<_ACEOF
6580 #line 6580 "configure" 7559 #line $LINENO "configure"
6581 #include "confdefs.h" 7560 #include "confdefs.h"
6582 #include <X11/Intrinsic.h> 7561 #include <X11/Intrinsic.h>
7562 #ifdef F77_DUMMY_MAIN
7563 # ifdef __cplusplus
7564 extern "C"
7565 # endif
7566 int F77_DUMMY_MAIN() { return 1; }
7567 #endif
6583 int 7568 int
6584 main () 7569 main ()
6585 { 7570 {
6586 #if XtSpecificationRelease < 6 7571 #if XtSpecificationRelease < 6
6587 fail; 7572 fail;
6590 ; 7575 ;
6591 return 0; 7576 return 0;
6592 } 7577 }
6593 _ACEOF 7578 _ACEOF
6594 rm -f conftest.$ac_objext conftest$ac_exeext 7579 rm -f conftest.$ac_objext conftest$ac_exeext
6595 if { (eval echo "$as_me:6595: \"$ac_link\"") >&5 7580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6596 (eval $ac_link) 2>&5 7581 (eval $ac_link) 2>&5
6597 ac_status=$? 7582 ac_status=$?
6598 echo "$as_me:6598: \$? = $ac_status" >&5 7583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); } && 7584 (exit $ac_status); } &&
6600 { ac_try='test -s conftest$ac_exeext' 7585 { ac_try='test -s conftest$ac_exeext'
6601 { (eval echo "$as_me:6601: \"$ac_try\"") >&5 7586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6602 (eval $ac_try) 2>&5 7587 (eval $ac_try) 2>&5
6603 ac_status=$? 7588 ac_status=$?
6604 echo "$as_me:6604: \$? = $ac_status" >&5 7589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 (exit $ac_status); }; }; then 7590 (exit $ac_status); }; }; then
6606 emacs_cv_x11_toolkit_version_6=yes 7591 emacs_cv_x11_toolkit_version_6=yes
6607 else 7592 else
6608 echo "$as_me: failed program was:" >&5 7593 echo "$as_me: failed program was:" >&5
6609 cat conftest.$ac_ext >&5 7594 cat conftest.$ac_ext >&5
6612 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7597 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6613 fi 7598 fi
6614 7599
6615 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6 7600 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
6616 if test $emacs_cv_x11_toolkit_version_6 = yes; then 7601 if test $emacs_cv_x11_toolkit_version_6 = yes; then
6617 echo "$as_me:6617: result: 6 or newer" >&5 7602 echo "$as_me:$LINENO: result: 6 or newer" >&5
6618 echo "${ECHO_T}6 or newer" >&6 7603 echo "${ECHO_T}6 or newer" >&6
6619 cat >>confdefs.h <<\EOF 7604 cat >>confdefs.h <<\_ACEOF
6620 #define HAVE_X11XTR6 1 7605 #define HAVE_X11XTR6 1
6621 EOF 7606 _ACEOF
6622 7607
6623 else 7608 else
6624 echo "$as_me:6624: result: before 6" >&5 7609 echo "$as_me:$LINENO: result: before 6" >&5
6625 echo "${ECHO_T}before 6" >&6 7610 echo "${ECHO_T}before 6" >&6
6626 fi 7611 fi
6627 7612
6628 OLDLIBS="$LIBS" 7613 OLDLIBS="$LIBS"
6629 if test x$HAVE_X11XTR6 = xyes; then 7614 if test x$HAVE_X11XTR6 = xyes; then
6630 LIBS="-lXt -lSM -lICE $LIBS" 7615 LIBS="-lXt -lSM -lICE $LIBS"
6631 else 7616 else
6632 LIBS="-lXt $LIBS" 7617 LIBS="-lXt $LIBS"
6633 fi 7618 fi
6634 7619
6635 echo "$as_me:6635: checking for XmuConvertStandardSelection in -lXmu" >&5 7620 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
6636 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6 7621 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
6637 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then 7622 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
6638 echo $ECHO_N "(cached) $ECHO_C" >&6 7623 echo $ECHO_N "(cached) $ECHO_C" >&6
6639 else 7624 else
6640 ac_check_lib_save_LIBS=$LIBS 7625 ac_check_lib_save_LIBS=$LIBS
6641 LIBS="-lXmu $LIBS" 7626 LIBS="-lXmu $LIBS"
6642 cat >conftest.$ac_ext <<_ACEOF 7627 cat >conftest.$ac_ext <<_ACEOF
6643 #line 6643 "configure" 7628 #line $LINENO "configure"
6644 #include "confdefs.h" 7629 #include "confdefs.h"
6645 7630
6646 /* Override any gcc2 internal prototype to avoid an error. */ 7631 /* Override any gcc2 internal prototype to avoid an error. */
6647 #ifdef __cplusplus 7632 #ifdef __cplusplus
6648 extern "C" 7633 extern "C"
6649 #endif 7634 #endif
6650 /* We use char because int might match the return type of a gcc2 7635 /* We use char because int might match the return type of a gcc2
6651 builtin and then its argument prototype would still apply. */ 7636 builtin and then its argument prototype would still apply. */
6652 char XmuConvertStandardSelection (); 7637 char XmuConvertStandardSelection ();
7638 #ifdef F77_DUMMY_MAIN
7639 # ifdef __cplusplus
7640 extern "C"
7641 # endif
7642 int F77_DUMMY_MAIN() { return 1; }
7643 #endif
6653 int 7644 int
6654 main () 7645 main ()
6655 { 7646 {
6656 XmuConvertStandardSelection (); 7647 XmuConvertStandardSelection ();
6657 ; 7648 ;
6658 return 0; 7649 return 0;
6659 } 7650 }
6660 _ACEOF 7651 _ACEOF
6661 rm -f conftest.$ac_objext conftest$ac_exeext 7652 rm -f conftest.$ac_objext conftest$ac_exeext
6662 if { (eval echo "$as_me:6662: \"$ac_link\"") >&5 7653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6663 (eval $ac_link) 2>&5 7654 (eval $ac_link) 2>&5
6664 ac_status=$? 7655 ac_status=$?
6665 echo "$as_me:6665: \$? = $ac_status" >&5 7656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); } && 7657 (exit $ac_status); } &&
6667 { ac_try='test -s conftest$ac_exeext' 7658 { ac_try='test -s conftest$ac_exeext'
6668 { (eval echo "$as_me:6668: \"$ac_try\"") >&5 7659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6669 (eval $ac_try) 2>&5 7660 (eval $ac_try) 2>&5
6670 ac_status=$? 7661 ac_status=$?
6671 echo "$as_me:6671: \$? = $ac_status" >&5 7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672 (exit $ac_status); }; }; then 7663 (exit $ac_status); }; }; then
6673 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes 7664 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
6674 else 7665 else
6675 echo "$as_me: failed program was:" >&5 7666 echo "$as_me: failed program was:" >&5
6676 cat conftest.$ac_ext >&5 7667 cat conftest.$ac_ext >&5
6677 ac_cv_lib_Xmu_XmuConvertStandardSelection=no 7668 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
6678 fi 7669 fi
6679 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7670 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6680 LIBS=$ac_check_lib_save_LIBS 7671 LIBS=$ac_check_lib_save_LIBS
6681 fi 7672 fi
6682 echo "$as_me:6682: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5 7673 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
6683 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6 7674 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
6684 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then 7675 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
6685 cat >>confdefs.h <<EOF 7676 cat >>confdefs.h <<_ACEOF
6686 #define HAVE_LIBXMU 1 7677 #define HAVE_LIBXMU 1
6687 EOF 7678 _ACEOF
6688 7679
6689 LIBS="-lXmu $LIBS" 7680 LIBS="-lXmu $LIBS"
6690 7681
6691 fi 7682 fi
6692 7683
6695 7686
6696 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D. 7687 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
6697 if test "${HAVE_X11}" = "yes"; then 7688 if test "${HAVE_X11}" = "yes"; then
6698 if test "${USE_X_TOOLKIT}" != "none"; then 7689 if test "${USE_X_TOOLKIT}" != "none"; then
6699 7690
6700 echo "$as_me:6700: checking for XShapeQueryExtension in -lXext" >&5 7691 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
6701 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 7692 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
6702 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then 7693 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
6703 echo $ECHO_N "(cached) $ECHO_C" >&6 7694 echo $ECHO_N "(cached) $ECHO_C" >&6
6704 else 7695 else
6705 ac_check_lib_save_LIBS=$LIBS 7696 ac_check_lib_save_LIBS=$LIBS
6706 LIBS="-lXext $LIBS" 7697 LIBS="-lXext $LIBS"
6707 cat >conftest.$ac_ext <<_ACEOF 7698 cat >conftest.$ac_ext <<_ACEOF
6708 #line 6708 "configure" 7699 #line $LINENO "configure"
6709 #include "confdefs.h" 7700 #include "confdefs.h"
6710 7701
6711 /* Override any gcc2 internal prototype to avoid an error. */ 7702 /* Override any gcc2 internal prototype to avoid an error. */
6712 #ifdef __cplusplus 7703 #ifdef __cplusplus
6713 extern "C" 7704 extern "C"
6714 #endif 7705 #endif
6715 /* We use char because int might match the return type of a gcc2 7706 /* We use char because int might match the return type of a gcc2
6716 builtin and then its argument prototype would still apply. */ 7707 builtin and then its argument prototype would still apply. */
6717 char XShapeQueryExtension (); 7708 char XShapeQueryExtension ();
7709 #ifdef F77_DUMMY_MAIN
7710 # ifdef __cplusplus
7711 extern "C"
7712 # endif
7713 int F77_DUMMY_MAIN() { return 1; }
7714 #endif
6718 int 7715 int
6719 main () 7716 main ()
6720 { 7717 {
6721 XShapeQueryExtension (); 7718 XShapeQueryExtension ();
6722 ; 7719 ;
6723 return 0; 7720 return 0;
6724 } 7721 }
6725 _ACEOF 7722 _ACEOF
6726 rm -f conftest.$ac_objext conftest$ac_exeext 7723 rm -f conftest.$ac_objext conftest$ac_exeext
6727 if { (eval echo "$as_me:6727: \"$ac_link\"") >&5 7724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6728 (eval $ac_link) 2>&5 7725 (eval $ac_link) 2>&5
6729 ac_status=$? 7726 ac_status=$?
6730 echo "$as_me:6730: \$? = $ac_status" >&5 7727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731 (exit $ac_status); } && 7728 (exit $ac_status); } &&
6732 { ac_try='test -s conftest$ac_exeext' 7729 { ac_try='test -s conftest$ac_exeext'
6733 { (eval echo "$as_me:6733: \"$ac_try\"") >&5 7730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6734 (eval $ac_try) 2>&5 7731 (eval $ac_try) 2>&5
6735 ac_status=$? 7732 ac_status=$?
6736 echo "$as_me:6736: \$? = $ac_status" >&5 7733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6737 (exit $ac_status); }; }; then 7734 (exit $ac_status); }; }; then
6738 ac_cv_lib_Xext_XShapeQueryExtension=yes 7735 ac_cv_lib_Xext_XShapeQueryExtension=yes
6739 else 7736 else
6740 echo "$as_me: failed program was:" >&5 7737 echo "$as_me: failed program was:" >&5
6741 cat conftest.$ac_ext >&5 7738 cat conftest.$ac_ext >&5
6742 ac_cv_lib_Xext_XShapeQueryExtension=no 7739 ac_cv_lib_Xext_XShapeQueryExtension=no
6743 fi 7740 fi
6744 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7741 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6745 LIBS=$ac_check_lib_save_LIBS 7742 LIBS=$ac_check_lib_save_LIBS
6746 fi 7743 fi
6747 echo "$as_me:6747: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 7744 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
6748 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 7745 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
6749 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then 7746 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
6750 cat >>confdefs.h <<EOF 7747 cat >>confdefs.h <<_ACEOF
6751 #define HAVE_LIBXEXT 1 7748 #define HAVE_LIBXEXT 1
6752 EOF 7749 _ACEOF
6753 7750
6754 LIBS="-lXext $LIBS" 7751 LIBS="-lXext $LIBS"
6755 7752
6756 fi 7753 fi
6757 7754
6758 fi 7755 fi
6759 fi 7756 fi
6760 7757
6761 if test "${USE_X_TOOLKIT}" = "MOTIF"; then 7758 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
6762 echo "$as_me:6762: checking for Motif version 2.1" >&5 7759 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
6763 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6 7760 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
6764 if test "${emacs_cv_motif_version_2_1+set}" = set; then 7761 if test "${emacs_cv_motif_version_2_1+set}" = set; then
6765 echo $ECHO_N "(cached) $ECHO_C" >&6 7762 echo $ECHO_N "(cached) $ECHO_C" >&6
6766 else 7763 else
6767 cat >conftest.$ac_ext <<_ACEOF 7764 cat >conftest.$ac_ext <<_ACEOF
6768 #line 6768 "configure" 7765 #line $LINENO "configure"
6769 #include "confdefs.h" 7766 #include "confdefs.h"
6770 #include <Xm/Xm.h> 7767 #include <Xm/Xm.h>
7768 #ifdef F77_DUMMY_MAIN
7769 # ifdef __cplusplus
7770 extern "C"
7771 # endif
7772 int F77_DUMMY_MAIN() { return 1; }
7773 #endif
6771 int 7774 int
6772 main () 7775 main ()
6773 { 7776 {
6774 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) 7777 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
6775 int x = 5; 7778 int x = 5;
6779 ; 7782 ;
6780 return 0; 7783 return 0;
6781 } 7784 }
6782 _ACEOF 7785 _ACEOF
6783 rm -f conftest.$ac_objext 7786 rm -f conftest.$ac_objext
6784 if { (eval echo "$as_me:6784: \"$ac_compile\"") >&5 7787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6785 (eval $ac_compile) 2>&5 7788 (eval $ac_compile) 2>&5
6786 ac_status=$? 7789 ac_status=$?
6787 echo "$as_me:6787: \$? = $ac_status" >&5 7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788 (exit $ac_status); } && 7791 (exit $ac_status); } &&
6789 { ac_try='test -s conftest.$ac_objext' 7792 { ac_try='test -s conftest.$ac_objext'
6790 { (eval echo "$as_me:6790: \"$ac_try\"") >&5 7793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6791 (eval $ac_try) 2>&5 7794 (eval $ac_try) 2>&5
6792 ac_status=$? 7795 ac_status=$?
6793 echo "$as_me:6793: \$? = $ac_status" >&5 7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); }; }; then 7797 (exit $ac_status); }; }; then
6795 emacs_cv_motif_version_2_1=yes 7798 emacs_cv_motif_version_2_1=yes
6796 else 7799 else
6797 echo "$as_me: failed program was:" >&5 7800 echo "$as_me: failed program was:" >&5
6798 cat conftest.$ac_ext >&5 7801 cat conftest.$ac_ext >&5
6799 emacs_cv_motif_version_2_1=no 7802 emacs_cv_motif_version_2_1=no
6800 fi 7803 fi
6801 rm -f conftest.$ac_objext conftest.$ac_ext 7804 rm -f conftest.$ac_objext conftest.$ac_ext
6802 fi 7805 fi
6803 echo "$as_me:6803: result: $emacs_cv_motif_version_2_1" >&5 7806 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
6804 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6 7807 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
6805 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1 7808 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
6806 if test $emacs_cv_motif_version_2_1 = yes; then 7809 if test $emacs_cv_motif_version_2_1 = yes; then
6807 HAVE_LIBXP=no 7810 HAVE_LIBXP=no
6808 cat >>confdefs.h <<\EOF 7811 cat >>confdefs.h <<\_ACEOF
6809 #define HAVE_MOTIF_2_1 1 7812 #define HAVE_MOTIF_2_1 1
6810 EOF 7813 _ACEOF
6811 7814
6812 echo "$as_me:6812: checking for XpCreateContext in -lXp" >&5 7815 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
6813 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6 7816 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
6814 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then 7817 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
6815 echo $ECHO_N "(cached) $ECHO_C" >&6 7818 echo $ECHO_N "(cached) $ECHO_C" >&6
6816 else 7819 else
6817 ac_check_lib_save_LIBS=$LIBS 7820 ac_check_lib_save_LIBS=$LIBS
6818 LIBS="-lXp $LIBS" 7821 LIBS="-lXp $LIBS"
6819 cat >conftest.$ac_ext <<_ACEOF 7822 cat >conftest.$ac_ext <<_ACEOF
6820 #line 6820 "configure" 7823 #line $LINENO "configure"
6821 #include "confdefs.h" 7824 #include "confdefs.h"
6822 7825
6823 /* Override any gcc2 internal prototype to avoid an error. */ 7826 /* Override any gcc2 internal prototype to avoid an error. */
6824 #ifdef __cplusplus 7827 #ifdef __cplusplus
6825 extern "C" 7828 extern "C"
6826 #endif 7829 #endif
6827 /* We use char because int might match the return type of a gcc2 7830 /* We use char because int might match the return type of a gcc2
6828 builtin and then its argument prototype would still apply. */ 7831 builtin and then its argument prototype would still apply. */
6829 char XpCreateContext (); 7832 char XpCreateContext ();
7833 #ifdef F77_DUMMY_MAIN
7834 # ifdef __cplusplus
7835 extern "C"
7836 # endif
7837 int F77_DUMMY_MAIN() { return 1; }
7838 #endif
6830 int 7839 int
6831 main () 7840 main ()
6832 { 7841 {
6833 XpCreateContext (); 7842 XpCreateContext ();
6834 ; 7843 ;
6835 return 0; 7844 return 0;
6836 } 7845 }
6837 _ACEOF 7846 _ACEOF
6838 rm -f conftest.$ac_objext conftest$ac_exeext 7847 rm -f conftest.$ac_objext conftest$ac_exeext
6839 if { (eval echo "$as_me:6839: \"$ac_link\"") >&5 7848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6840 (eval $ac_link) 2>&5 7849 (eval $ac_link) 2>&5
6841 ac_status=$? 7850 ac_status=$?
6842 echo "$as_me:6842: \$? = $ac_status" >&5 7851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843 (exit $ac_status); } && 7852 (exit $ac_status); } &&
6844 { ac_try='test -s conftest$ac_exeext' 7853 { ac_try='test -s conftest$ac_exeext'
6845 { (eval echo "$as_me:6845: \"$ac_try\"") >&5 7854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6846 (eval $ac_try) 2>&5 7855 (eval $ac_try) 2>&5
6847 ac_status=$? 7856 ac_status=$?
6848 echo "$as_me:6848: \$? = $ac_status" >&5 7857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6849 (exit $ac_status); }; }; then 7858 (exit $ac_status); }; }; then
6850 ac_cv_lib_Xp_XpCreateContext=yes 7859 ac_cv_lib_Xp_XpCreateContext=yes
6851 else 7860 else
6852 echo "$as_me: failed program was:" >&5 7861 echo "$as_me: failed program was:" >&5
6853 cat conftest.$ac_ext >&5 7862 cat conftest.$ac_ext >&5
6854 ac_cv_lib_Xp_XpCreateContext=no 7863 ac_cv_lib_Xp_XpCreateContext=no
6855 fi 7864 fi
6856 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7865 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6857 LIBS=$ac_check_lib_save_LIBS 7866 LIBS=$ac_check_lib_save_LIBS
6858 fi 7867 fi
6859 echo "$as_me:6859: result: $ac_cv_lib_Xp_XpCreateContext" >&5 7868 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
6860 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6 7869 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
6861 if test $ac_cv_lib_Xp_XpCreateContext = yes; then 7870 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
6862 HAVE_LIBXP=yes 7871 HAVE_LIBXP=yes
6863 fi 7872 fi
6864 7873
6865 if test ${HAVE_LIBXP} = yes; then 7874 if test ${HAVE_LIBXP} = yes; then
6866 cat >>confdefs.h <<\EOF 7875 cat >>confdefs.h <<\_ACEOF
6867 #define HAVE_LIBXP 1 7876 #define HAVE_LIBXP 1
6868 EOF 7877 _ACEOF
6869 7878
6870 fi 7879 fi
6871 fi 7880 fi
6872 fi 7881 fi
6873 7882
6874 ### Is -lXaw3d available? 7883 ### Is -lXaw3d available?
6875 HAVE_XAW3D=no 7884 HAVE_XAW3D=no
6876 if test "${HAVE_X11}" = "yes"; then 7885 if test "${HAVE_X11}" = "yes"; then
6877 if test "${USE_X_TOOLKIT}" != "none"; then 7886 if test "${USE_X_TOOLKIT}" != "none"; then
6878 echo "$as_me:6878: checking for X11/Xaw3d/Scrollbar.h" >&5 7887 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
7888 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
6879 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6 7889 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
6880 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then 7890 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
6881 echo $ECHO_N "(cached) $ECHO_C" >&6 7891 echo $ECHO_N "(cached) $ECHO_C" >&6
6882 else 7892 fi
6883 cat >conftest.$ac_ext <<_ACEOF 7893 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
6884 #line 6884 "configure" 7894 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
6885 #include "confdefs.h" 7895 else
7896 # Is the header compilable?
7897 echo "$as_me:$LINENO: checking X11/Xaw3d/Scrollbar.h usability" >&5
7898 echo $ECHO_N "checking X11/Xaw3d/Scrollbar.h usability... $ECHO_C" >&6
7899 cat >conftest.$ac_ext <<_ACEOF
7900 #line $LINENO "configure"
7901 #include "confdefs.h"
7902 $ac_includes_default
6886 #include <X11/Xaw3d/Scrollbar.h> 7903 #include <X11/Xaw3d/Scrollbar.h>
6887 _ACEOF 7904 _ACEOF
6888 if { (eval echo "$as_me:6888: \"$ac_cpp conftest.$ac_ext\"") >&5 7905 rm -f conftest.$ac_objext
7906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7907 (eval $ac_compile) 2>&5
7908 ac_status=$?
7909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910 (exit $ac_status); } &&
7911 { ac_try='test -s conftest.$ac_objext'
7912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7913 (eval $ac_try) 2>&5
7914 ac_status=$?
7915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916 (exit $ac_status); }; }; then
7917 ac_header_compiler=yes
7918 else
7919 echo "$as_me: failed program was:" >&5
7920 cat conftest.$ac_ext >&5
7921 ac_header_compiler=no
7922 fi
7923 rm -f conftest.$ac_objext conftest.$ac_ext
7924 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7925 echo "${ECHO_T}$ac_header_compiler" >&6
7926
7927 # Is the header present?
7928 echo "$as_me:$LINENO: checking X11/Xaw3d/Scrollbar.h presence" >&5
7929 echo $ECHO_N "checking X11/Xaw3d/Scrollbar.h presence... $ECHO_C" >&6
7930 cat >conftest.$ac_ext <<_ACEOF
7931 #line $LINENO "configure"
7932 #include "confdefs.h"
7933 #include <X11/Xaw3d/Scrollbar.h>
7934 _ACEOF
7935 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6889 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7936 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6890 ac_status=$? 7937 ac_status=$?
6891 egrep -v '^ *\+' conftest.er1 >conftest.err 7938 egrep -v '^ *\+' conftest.er1 >conftest.err
6892 rm -f conftest.er1 7939 rm -f conftest.er1
6893 cat conftest.err >&5 7940 cat conftest.err >&5
6894 echo "$as_me:6894: \$? = $ac_status" >&5 7941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895 (exit $ac_status); } >/dev/null; then 7942 (exit $ac_status); } >/dev/null; then
6896 if test -s conftest.err; then 7943 if test -s conftest.err; then
6897 ac_cpp_err=$ac_c_preproc_warn_flag 7944 ac_cpp_err=$ac_c_preproc_warn_flag
6898 else 7945 else
6899 ac_cpp_err= 7946 ac_cpp_err=
6900 fi 7947 fi
6901 else 7948 else
6902 ac_cpp_err=yes 7949 ac_cpp_err=yes
6903 fi 7950 fi
6904 if test -z "$ac_cpp_err"; then 7951 if test -z "$ac_cpp_err"; then
6905 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes 7952 ac_header_preproc=yes
6906 else 7953 else
6907 echo "$as_me: failed program was:" >&5 7954 echo "$as_me: failed program was:" >&5
6908 cat conftest.$ac_ext >&5 7955 cat conftest.$ac_ext >&5
6909 ac_cv_header_X11_Xaw3d_Scrollbar_h=no 7956 ac_header_preproc=no
6910 fi 7957 fi
6911 rm -f conftest.err conftest.$ac_ext 7958 rm -f conftest.err conftest.$ac_ext
6912 fi 7959 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6913 echo "$as_me:6913: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5 7960 echo "${ECHO_T}$ac_header_preproc" >&6
7961
7962 # So? What about this header?
7963 case $ac_header_compiler:$ac_header_preproc in
7964 yes:no )
7965 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: accepted by the compiler, rejected by the preprocessor!" >&5
7966 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7967 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&5
7968 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&2;};;
7969 no:yes )
7970 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: present but cannot be compiled" >&5
7971 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: present but cannot be compiled" >&2;}
7972 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: check for missing prerequisite headers?" >&5
7973 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: check for missing prerequisite headers?" >&2;}
7974 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&5
7975 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&2;};;
7976 esac
7977 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
7978 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
7979 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
7980 echo $ECHO_N "(cached) $ECHO_C" >&6
7981 else
7982 ac_cv_header_X11_Xaw3d_Scrollbar_h=$ac_header_preproc
7983 fi
7984 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
6914 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6 7985 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
7986
7987 fi
6915 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then 7988 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
6916 echo "$as_me:6916: checking for XawScrollbarSetThumb in -lXaw3d" >&5 7989 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
6917 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6 7990 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
6918 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then 7991 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
6919 echo $ECHO_N "(cached) $ECHO_C" >&6 7992 echo $ECHO_N "(cached) $ECHO_C" >&6
6920 else 7993 else
6921 ac_check_lib_save_LIBS=$LIBS 7994 ac_check_lib_save_LIBS=$LIBS
6922 LIBS="-lXaw3d $LIBS" 7995 LIBS="-lXaw3d $LIBS"
6923 cat >conftest.$ac_ext <<_ACEOF 7996 cat >conftest.$ac_ext <<_ACEOF
6924 #line 6924 "configure" 7997 #line $LINENO "configure"
6925 #include "confdefs.h" 7998 #include "confdefs.h"
6926 7999
6927 /* Override any gcc2 internal prototype to avoid an error. */ 8000 /* Override any gcc2 internal prototype to avoid an error. */
6928 #ifdef __cplusplus 8001 #ifdef __cplusplus
6929 extern "C" 8002 extern "C"
6930 #endif 8003 #endif
6931 /* We use char because int might match the return type of a gcc2 8004 /* We use char because int might match the return type of a gcc2
6932 builtin and then its argument prototype would still apply. */ 8005 builtin and then its argument prototype would still apply. */
6933 char XawScrollbarSetThumb (); 8006 char XawScrollbarSetThumb ();
8007 #ifdef F77_DUMMY_MAIN
8008 # ifdef __cplusplus
8009 extern "C"
8010 # endif
8011 int F77_DUMMY_MAIN() { return 1; }
8012 #endif
6934 int 8013 int
6935 main () 8014 main ()
6936 { 8015 {
6937 XawScrollbarSetThumb (); 8016 XawScrollbarSetThumb ();
6938 ; 8017 ;
6939 return 0; 8018 return 0;
6940 } 8019 }
6941 _ACEOF 8020 _ACEOF
6942 rm -f conftest.$ac_objext conftest$ac_exeext 8021 rm -f conftest.$ac_objext conftest$ac_exeext
6943 if { (eval echo "$as_me:6943: \"$ac_link\"") >&5 8022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6944 (eval $ac_link) 2>&5 8023 (eval $ac_link) 2>&5
6945 ac_status=$? 8024 ac_status=$?
6946 echo "$as_me:6946: \$? = $ac_status" >&5 8025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); } && 8026 (exit $ac_status); } &&
6948 { ac_try='test -s conftest$ac_exeext' 8027 { ac_try='test -s conftest$ac_exeext'
6949 { (eval echo "$as_me:6949: \"$ac_try\"") >&5 8028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6950 (eval $ac_try) 2>&5 8029 (eval $ac_try) 2>&5
6951 ac_status=$? 8030 ac_status=$?
6952 echo "$as_me:6952: \$? = $ac_status" >&5 8031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953 (exit $ac_status); }; }; then 8032 (exit $ac_status); }; }; then
6954 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes 8033 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
6955 else 8034 else
6956 echo "$as_me: failed program was:" >&5 8035 echo "$as_me: failed program was:" >&5
6957 cat conftest.$ac_ext >&5 8036 cat conftest.$ac_ext >&5
6958 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no 8037 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
6959 fi 8038 fi
6960 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8039 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6961 LIBS=$ac_check_lib_save_LIBS 8040 LIBS=$ac_check_lib_save_LIBS
6962 fi 8041 fi
6963 echo "$as_me:6963: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5 8042 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
6964 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6 8043 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
6965 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then 8044 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
6966 HAVE_XAW3D=yes 8045 HAVE_XAW3D=yes
6967 fi 8046 fi
6968 8047
6969 fi 8048 fi
6970 8049
8050
6971 if test "${HAVE_XAW3D}" = "yes"; then 8051 if test "${HAVE_XAW3D}" = "yes"; then
6972 cat >>confdefs.h <<\EOF 8052 cat >>confdefs.h <<\_ACEOF
6973 #define HAVE_XAW3D 1 8053 #define HAVE_XAW3D 1
6974 EOF 8054 _ACEOF
6975 8055
6976 fi 8056 fi
6977 fi 8057 fi
6978 fi 8058 fi
8059
6979 8060
6980 USE_TOOLKIT_SCROLL_BARS=no 8061 USE_TOOLKIT_SCROLL_BARS=no
6981 if test "${with_toolkit_scroll_bars}" != "no"; then 8062 if test "${with_toolkit_scroll_bars}" != "no"; then
6982 if test "${USE_X_TOOLKIT}" != "none"; then 8063 if test "${USE_X_TOOLKIT}" != "none"; then
6983 if test "${USE_X_TOOLKIT}" = "MOTIF"; then 8064 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
6984 cat >>confdefs.h <<\EOF 8065 cat >>confdefs.h <<\_ACEOF
6985 #define USE_TOOLKIT_SCROLL_BARS 1 8066 #define USE_TOOLKIT_SCROLL_BARS 1
6986 EOF 8067 _ACEOF
6987 8068
6988 HAVE_XAW3D=no 8069 HAVE_XAW3D=no
6989 USE_TOOLKIT_SCROLL_BARS=yes 8070 USE_TOOLKIT_SCROLL_BARS=yes
6990 elif test "${HAVE_XAW3D}" = "yes"; then 8071 elif test "${HAVE_XAW3D}" = "yes"; then
6991 cat >>confdefs.h <<\EOF 8072 cat >>confdefs.h <<\_ACEOF
6992 #define USE_TOOLKIT_SCROLL_BARS 1 8073 #define USE_TOOLKIT_SCROLL_BARS 1
6993 EOF 8074 _ACEOF
6994 8075
6995 USE_TOOLKIT_SCROLL_BARS=yes 8076 USE_TOOLKIT_SCROLL_BARS=yes
6996 fi 8077 fi
6997 fi 8078 fi
6998 fi 8079 fi
6999 8080
8081
7000 if test "${with_xim}" != "no"; then 8082 if test "${with_xim}" != "no"; then
7001 cat >>confdefs.h <<\EOF 8083 cat >>confdefs.h <<\_ACEOF
7002 #define USE_XIM 1 8084 #define USE_XIM 1
7003 EOF 8085 _ACEOF
7004 8086
7005 fi 8087 fi
7006 8088
7007 ### Use -lXpm if available, unless `--with-xpm=no'. 8089 ### Use -lXpm if available, unless `--with-xpm=no'.
7008 HAVE_XPM=no 8090 HAVE_XPM=no
7009 if test "${HAVE_X11}" = "yes"; then 8091 if test "${HAVE_X11}" = "yes"; then
7010 if test "${with_xpm}" != "no"; then 8092 if test "${with_xpm}" != "no"; then
7011 echo "$as_me:7011: checking for X11/xpm.h" >&5 8093 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8094 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
7012 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 8095 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
7013 if test "${ac_cv_header_X11_xpm_h+set}" = set; then 8096 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
7014 echo $ECHO_N "(cached) $ECHO_C" >&6 8097 echo $ECHO_N "(cached) $ECHO_C" >&6
7015 else 8098 fi
7016 cat >conftest.$ac_ext <<_ACEOF 8099 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
7017 #line 7017 "configure" 8100 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
7018 #include "confdefs.h" 8101 else
8102 # Is the header compilable?
8103 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
8104 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
8105 cat >conftest.$ac_ext <<_ACEOF
8106 #line $LINENO "configure"
8107 #include "confdefs.h"
8108 $ac_includes_default
7019 #include <X11/xpm.h> 8109 #include <X11/xpm.h>
7020 _ACEOF 8110 _ACEOF
7021 if { (eval echo "$as_me:7021: \"$ac_cpp conftest.$ac_ext\"") >&5 8111 rm -f conftest.$ac_objext
8112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8113 (eval $ac_compile) 2>&5
8114 ac_status=$?
8115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116 (exit $ac_status); } &&
8117 { ac_try='test -s conftest.$ac_objext'
8118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8119 (eval $ac_try) 2>&5
8120 ac_status=$?
8121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122 (exit $ac_status); }; }; then
8123 ac_header_compiler=yes
8124 else
8125 echo "$as_me: failed program was:" >&5
8126 cat conftest.$ac_ext >&5
8127 ac_header_compiler=no
8128 fi
8129 rm -f conftest.$ac_objext conftest.$ac_ext
8130 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8131 echo "${ECHO_T}$ac_header_compiler" >&6
8132
8133 # Is the header present?
8134 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
8135 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
8136 cat >conftest.$ac_ext <<_ACEOF
8137 #line $LINENO "configure"
8138 #include "confdefs.h"
8139 #include <X11/xpm.h>
8140 _ACEOF
8141 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7022 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8142 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7023 ac_status=$? 8143 ac_status=$?
7024 egrep -v '^ *\+' conftest.er1 >conftest.err 8144 egrep -v '^ *\+' conftest.er1 >conftest.err
7025 rm -f conftest.er1 8145 rm -f conftest.er1
7026 cat conftest.err >&5 8146 cat conftest.err >&5
7027 echo "$as_me:7027: \$? = $ac_status" >&5 8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028 (exit $ac_status); } >/dev/null; then 8148 (exit $ac_status); } >/dev/null; then
7029 if test -s conftest.err; then 8149 if test -s conftest.err; then
7030 ac_cpp_err=$ac_c_preproc_warn_flag 8150 ac_cpp_err=$ac_c_preproc_warn_flag
7031 else 8151 else
7032 ac_cpp_err= 8152 ac_cpp_err=
7033 fi 8153 fi
7034 else 8154 else
7035 ac_cpp_err=yes 8155 ac_cpp_err=yes
7036 fi 8156 fi
7037 if test -z "$ac_cpp_err"; then 8157 if test -z "$ac_cpp_err"; then
7038 ac_cv_header_X11_xpm_h=yes 8158 ac_header_preproc=yes
7039 else 8159 else
7040 echo "$as_me: failed program was:" >&5 8160 echo "$as_me: failed program was:" >&5
7041 cat conftest.$ac_ext >&5 8161 cat conftest.$ac_ext >&5
7042 ac_cv_header_X11_xpm_h=no 8162 ac_header_preproc=no
7043 fi 8163 fi
7044 rm -f conftest.err conftest.$ac_ext 8164 rm -f conftest.err conftest.$ac_ext
7045 fi 8165 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7046 echo "$as_me:7046: result: $ac_cv_header_X11_xpm_h" >&5 8166 echo "${ECHO_T}$ac_header_preproc" >&6
8167
8168 # So? What about this header?
8169 case $ac_header_compiler:$ac_header_preproc in
8170 yes:no )
8171 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
8172 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8173 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
8174 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;};;
8175 no:yes )
8176 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
8177 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
8178 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
8179 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
8180 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
8181 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;};;
8182 esac
8183 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
8184 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
8185 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8186 echo $ECHO_N "(cached) $ECHO_C" >&6
8187 else
8188 ac_cv_header_X11_xpm_h=$ac_header_preproc
8189 fi
8190 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
7047 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6 8191 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
8192
8193 fi
7048 if test $ac_cv_header_X11_xpm_h = yes; then 8194 if test $ac_cv_header_X11_xpm_h = yes; then
7049 echo "$as_me:7049: checking for XpmReadFileToPixmap in -lXpm" >&5 8195 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
7050 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6 8196 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
7051 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then 8197 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
7052 echo $ECHO_N "(cached) $ECHO_C" >&6 8198 echo $ECHO_N "(cached) $ECHO_C" >&6
7053 else 8199 else
7054 ac_check_lib_save_LIBS=$LIBS 8200 ac_check_lib_save_LIBS=$LIBS
7055 LIBS="-lXpm -lX11 $LIBS" 8201 LIBS="-lXpm -lX11 $LIBS"
7056 cat >conftest.$ac_ext <<_ACEOF 8202 cat >conftest.$ac_ext <<_ACEOF
7057 #line 7057 "configure" 8203 #line $LINENO "configure"
7058 #include "confdefs.h" 8204 #include "confdefs.h"
7059 8205
7060 /* Override any gcc2 internal prototype to avoid an error. */ 8206 /* Override any gcc2 internal prototype to avoid an error. */
7061 #ifdef __cplusplus 8207 #ifdef __cplusplus
7062 extern "C" 8208 extern "C"
7063 #endif 8209 #endif
7064 /* We use char because int might match the return type of a gcc2 8210 /* We use char because int might match the return type of a gcc2
7065 builtin and then its argument prototype would still apply. */ 8211 builtin and then its argument prototype would still apply. */
7066 char XpmReadFileToPixmap (); 8212 char XpmReadFileToPixmap ();
8213 #ifdef F77_DUMMY_MAIN
8214 # ifdef __cplusplus
8215 extern "C"
8216 # endif
8217 int F77_DUMMY_MAIN() { return 1; }
8218 #endif
7067 int 8219 int
7068 main () 8220 main ()
7069 { 8221 {
7070 XpmReadFileToPixmap (); 8222 XpmReadFileToPixmap ();
7071 ; 8223 ;
7072 return 0; 8224 return 0;
7073 } 8225 }
7074 _ACEOF 8226 _ACEOF
7075 rm -f conftest.$ac_objext conftest$ac_exeext 8227 rm -f conftest.$ac_objext conftest$ac_exeext
7076 if { (eval echo "$as_me:7076: \"$ac_link\"") >&5 8228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7077 (eval $ac_link) 2>&5 8229 (eval $ac_link) 2>&5
7078 ac_status=$? 8230 ac_status=$?
7079 echo "$as_me:7079: \$? = $ac_status" >&5 8231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); } && 8232 (exit $ac_status); } &&
7081 { ac_try='test -s conftest$ac_exeext' 8233 { ac_try='test -s conftest$ac_exeext'
7082 { (eval echo "$as_me:7082: \"$ac_try\"") >&5 8234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7083 (eval $ac_try) 2>&5 8235 (eval $ac_try) 2>&5
7084 ac_status=$? 8236 ac_status=$?
7085 echo "$as_me:7085: \$? = $ac_status" >&5 8237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086 (exit $ac_status); }; }; then 8238 (exit $ac_status); }; }; then
7087 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes 8239 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
7088 else 8240 else
7089 echo "$as_me: failed program was:" >&5 8241 echo "$as_me: failed program was:" >&5
7090 cat conftest.$ac_ext >&5 8242 cat conftest.$ac_ext >&5
7091 ac_cv_lib_Xpm_XpmReadFileToPixmap=no 8243 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
7092 fi 8244 fi
7093 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8245 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7094 LIBS=$ac_check_lib_save_LIBS 8246 LIBS=$ac_check_lib_save_LIBS
7095 fi 8247 fi
7096 echo "$as_me:7096: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5 8248 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
7097 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6 8249 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
7098 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then 8250 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
7099 HAVE_XPM=yes 8251 HAVE_XPM=yes
7100 fi 8252 fi
7101 8253
7102 fi 8254 fi
7103 8255
8256
7104 if test "${HAVE_XPM}" = "yes"; then 8257 if test "${HAVE_XPM}" = "yes"; then
7105 echo "$as_me:7105: checking for XpmReturnAllocPixels preprocessor define" >&5 8258 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
7106 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6 8259 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
7107 cat >conftest.$ac_ext <<_ACEOF 8260 cat >conftest.$ac_ext <<_ACEOF
7108 #line 7108 "configure" 8261 #line $LINENO "configure"
7109 #include "confdefs.h" 8262 #include "confdefs.h"
7110 #include "X11/xpm.h" 8263 #include "X11/xpm.h"
7111 #ifndef XpmReturnAllocPixels 8264 #ifndef XpmReturnAllocPixels
7112 no_return_alloc_pixels 8265 no_return_alloc_pixels
7113 #endif 8266 #endif
7119 else 8272 else
7120 HAVE_XPM=yes 8273 HAVE_XPM=yes
7121 fi 8274 fi
7122 rm -f conftest* 8275 rm -f conftest*
7123 8276
8277
7124 if test "${HAVE_XPM}" = "yes"; then 8278 if test "${HAVE_XPM}" = "yes"; then
7125 echo "$as_me:7125: result: yes" >&5 8279 echo "$as_me:$LINENO: result: yes" >&5
7126 echo "${ECHO_T}yes" >&6 8280 echo "${ECHO_T}yes" >&6
7127 else 8281 else
7128 echo "$as_me:7128: result: no" >&5 8282 echo "$as_me:$LINENO: result: no" >&5
7129 echo "${ECHO_T}no" >&6 8283 echo "${ECHO_T}no" >&6
7130 fi 8284 fi
7131 fi 8285 fi
7132 fi 8286 fi
7133 8287
7134 if test "${HAVE_XPM}" = "yes"; then 8288 if test "${HAVE_XPM}" = "yes"; then
7135 cat >>confdefs.h <<\EOF 8289 cat >>confdefs.h <<\_ACEOF
7136 #define HAVE_XPM 1 8290 #define HAVE_XPM 1
7137 EOF 8291 _ACEOF
7138 8292
7139 fi 8293 fi
7140 fi 8294 fi
7141 8295
7142 ### Use -ljpeg if available, unless `--with-jpeg=no'. 8296 ### Use -ljpeg if available, unless `--with-jpeg=no'.
7143 HAVE_JPEG=no 8297 HAVE_JPEG=no
7144 if test "${HAVE_X11}" = "yes"; then 8298 if test "${HAVE_X11}" = "yes"; then
7145 if test "${with_jpeg}" != "no"; then 8299 if test "${with_jpeg}" != "no"; then
7146 echo "$as_me:7146: checking for jerror.h" >&5 8300 if test "${ac_cv_header_jerror_h+set}" = set; then
8301 echo "$as_me:$LINENO: checking for jerror.h" >&5
7147 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6 8302 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
7148 if test "${ac_cv_header_jerror_h+set}" = set; then 8303 if test "${ac_cv_header_jerror_h+set}" = set; then
7149 echo $ECHO_N "(cached) $ECHO_C" >&6 8304 echo $ECHO_N "(cached) $ECHO_C" >&6
7150 else 8305 fi
7151 cat >conftest.$ac_ext <<_ACEOF 8306 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
7152 #line 7152 "configure" 8307 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
7153 #include "confdefs.h" 8308 else
8309 # Is the header compilable?
8310 echo "$as_me:$LINENO: checking jerror.h usability" >&5
8311 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
8312 cat >conftest.$ac_ext <<_ACEOF
8313 #line $LINENO "configure"
8314 #include "confdefs.h"
8315 $ac_includes_default
7154 #include <jerror.h> 8316 #include <jerror.h>
7155 _ACEOF 8317 _ACEOF
7156 if { (eval echo "$as_me:7156: \"$ac_cpp conftest.$ac_ext\"") >&5 8318 rm -f conftest.$ac_objext
8319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8320 (eval $ac_compile) 2>&5
8321 ac_status=$?
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); } &&
8324 { ac_try='test -s conftest.$ac_objext'
8325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8326 (eval $ac_try) 2>&5
8327 ac_status=$?
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); }; }; then
8330 ac_header_compiler=yes
8331 else
8332 echo "$as_me: failed program was:" >&5
8333 cat conftest.$ac_ext >&5
8334 ac_header_compiler=no
8335 fi
8336 rm -f conftest.$ac_objext conftest.$ac_ext
8337 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8338 echo "${ECHO_T}$ac_header_compiler" >&6
8339
8340 # Is the header present?
8341 echo "$as_me:$LINENO: checking jerror.h presence" >&5
8342 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
8343 cat >conftest.$ac_ext <<_ACEOF
8344 #line $LINENO "configure"
8345 #include "confdefs.h"
8346 #include <jerror.h>
8347 _ACEOF
8348 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7157 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8349 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7158 ac_status=$? 8350 ac_status=$?
7159 egrep -v '^ *\+' conftest.er1 >conftest.err 8351 egrep -v '^ *\+' conftest.er1 >conftest.err
7160 rm -f conftest.er1 8352 rm -f conftest.er1
7161 cat conftest.err >&5 8353 cat conftest.err >&5
7162 echo "$as_me:7162: \$? = $ac_status" >&5 8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163 (exit $ac_status); } >/dev/null; then 8355 (exit $ac_status); } >/dev/null; then
7164 if test -s conftest.err; then 8356 if test -s conftest.err; then
7165 ac_cpp_err=$ac_c_preproc_warn_flag 8357 ac_cpp_err=$ac_c_preproc_warn_flag
7166 else 8358 else
7167 ac_cpp_err= 8359 ac_cpp_err=
7168 fi 8360 fi
7169 else 8361 else
7170 ac_cpp_err=yes 8362 ac_cpp_err=yes
7171 fi 8363 fi
7172 if test -z "$ac_cpp_err"; then 8364 if test -z "$ac_cpp_err"; then
7173 ac_cv_header_jerror_h=yes 8365 ac_header_preproc=yes
7174 else 8366 else
7175 echo "$as_me: failed program was:" >&5 8367 echo "$as_me: failed program was:" >&5
7176 cat conftest.$ac_ext >&5 8368 cat conftest.$ac_ext >&5
7177 ac_cv_header_jerror_h=no 8369 ac_header_preproc=no
7178 fi 8370 fi
7179 rm -f conftest.err conftest.$ac_ext 8371 rm -f conftest.err conftest.$ac_ext
7180 fi 8372 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7181 echo "$as_me:7181: result: $ac_cv_header_jerror_h" >&5 8373 echo "${ECHO_T}$ac_header_preproc" >&6
8374
8375 # So? What about this header?
8376 case $ac_header_compiler:$ac_header_preproc in
8377 yes:no )
8378 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
8379 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8380 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
8381 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;};;
8382 no:yes )
8383 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
8384 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
8385 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
8386 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
8387 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
8388 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;};;
8389 esac
8390 echo "$as_me:$LINENO: checking for jerror.h" >&5
8391 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
8392 if test "${ac_cv_header_jerror_h+set}" = set; then
8393 echo $ECHO_N "(cached) $ECHO_C" >&6
8394 else
8395 ac_cv_header_jerror_h=$ac_header_preproc
8396 fi
8397 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
7182 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6 8398 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
8399
8400 fi
7183 if test $ac_cv_header_jerror_h = yes; then 8401 if test $ac_cv_header_jerror_h = yes; then
7184 echo "$as_me:7184: checking for jpeg_destroy_compress in -ljpeg" >&5 8402 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
7185 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6 8403 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
7186 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then 8404 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
7187 echo $ECHO_N "(cached) $ECHO_C" >&6 8405 echo $ECHO_N "(cached) $ECHO_C" >&6
7188 else 8406 else
7189 ac_check_lib_save_LIBS=$LIBS 8407 ac_check_lib_save_LIBS=$LIBS
7190 LIBS="-ljpeg $LIBS" 8408 LIBS="-ljpeg $LIBS"
7191 cat >conftest.$ac_ext <<_ACEOF 8409 cat >conftest.$ac_ext <<_ACEOF
7192 #line 7192 "configure" 8410 #line $LINENO "configure"
7193 #include "confdefs.h" 8411 #include "confdefs.h"
7194 8412
7195 /* Override any gcc2 internal prototype to avoid an error. */ 8413 /* Override any gcc2 internal prototype to avoid an error. */
7196 #ifdef __cplusplus 8414 #ifdef __cplusplus
7197 extern "C" 8415 extern "C"
7198 #endif 8416 #endif
7199 /* We use char because int might match the return type of a gcc2 8417 /* We use char because int might match the return type of a gcc2
7200 builtin and then its argument prototype would still apply. */ 8418 builtin and then its argument prototype would still apply. */
7201 char jpeg_destroy_compress (); 8419 char jpeg_destroy_compress ();
8420 #ifdef F77_DUMMY_MAIN
8421 # ifdef __cplusplus
8422 extern "C"
8423 # endif
8424 int F77_DUMMY_MAIN() { return 1; }
8425 #endif
7202 int 8426 int
7203 main () 8427 main ()
7204 { 8428 {
7205 jpeg_destroy_compress (); 8429 jpeg_destroy_compress ();
7206 ; 8430 ;
7207 return 0; 8431 return 0;
7208 } 8432 }
7209 _ACEOF 8433 _ACEOF
7210 rm -f conftest.$ac_objext conftest$ac_exeext 8434 rm -f conftest.$ac_objext conftest$ac_exeext
7211 if { (eval echo "$as_me:7211: \"$ac_link\"") >&5 8435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7212 (eval $ac_link) 2>&5 8436 (eval $ac_link) 2>&5
7213 ac_status=$? 8437 ac_status=$?
7214 echo "$as_me:7214: \$? = $ac_status" >&5 8438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215 (exit $ac_status); } && 8439 (exit $ac_status); } &&
7216 { ac_try='test -s conftest$ac_exeext' 8440 { ac_try='test -s conftest$ac_exeext'
7217 { (eval echo "$as_me:7217: \"$ac_try\"") >&5 8441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7218 (eval $ac_try) 2>&5 8442 (eval $ac_try) 2>&5
7219 ac_status=$? 8443 ac_status=$?
7220 echo "$as_me:7220: \$? = $ac_status" >&5 8444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221 (exit $ac_status); }; }; then 8445 (exit $ac_status); }; }; then
7222 ac_cv_lib_jpeg_jpeg_destroy_compress=yes 8446 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
7223 else 8447 else
7224 echo "$as_me: failed program was:" >&5 8448 echo "$as_me: failed program was:" >&5
7225 cat conftest.$ac_ext >&5 8449 cat conftest.$ac_ext >&5
7226 ac_cv_lib_jpeg_jpeg_destroy_compress=no 8450 ac_cv_lib_jpeg_jpeg_destroy_compress=no
7227 fi 8451 fi
7228 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8452 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7229 LIBS=$ac_check_lib_save_LIBS 8453 LIBS=$ac_check_lib_save_LIBS
7230 fi 8454 fi
7231 echo "$as_me:7231: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5 8455 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
7232 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6 8456 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
7233 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then 8457 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
7234 HAVE_JPEG=yes 8458 HAVE_JPEG=yes
7235 fi 8459 fi
7236 8460
7237 fi 8461 fi
7238 8462
8463
7239 fi 8464 fi
7240 8465
7241 if test "${HAVE_JPEG}" = "yes"; then 8466 if test "${HAVE_JPEG}" = "yes"; then
7242 cat >>confdefs.h <<\EOF 8467 cat >>confdefs.h <<\_ACEOF
7243 #define HAVE_JPEG 1 8468 #define HAVE_JPEG 1
7244 EOF 8469 _ACEOF
7245 8470
7246 cat >conftest.$ac_ext <<_ACEOF 8471 cat >conftest.$ac_ext <<_ACEOF
7247 #line 7247 "configure" 8472 #line $LINENO "configure"
7248 #include "confdefs.h" 8473 #include "confdefs.h"
7249 #include <jpeglib.h> 8474 #include <jpeglib.h>
7250 version=JPEG_LIB_VERSION 8475 version=JPEG_LIB_VERSION
7251 8476
7252 _ACEOF 8477 _ACEOF
7253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7254 egrep "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then 8479 egrep "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
7255 cat >>confdefs.h <<\EOF 8480 cat >>confdefs.h <<\_ACEOF
7256 #define HAVE_JPEG 1 8481 #define HAVE_JPEG 1
7257 EOF 8482 _ACEOF
7258 8483
7259 else 8484 else
7260 { echo "$as_me:7260: WARNING: libjpeg found, but not version 6b or later" >&5 8485 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
7261 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;} 8486 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
7262 HAVE_JPEG=no 8487 HAVE_JPEG=no
7263 fi 8488 fi
7264 rm -f conftest* 8489 rm -f conftest*
7265 8490
7268 8493
7269 ### Use -lpng if available, unless `--with-png=no'. 8494 ### Use -lpng if available, unless `--with-png=no'.
7270 HAVE_PNG=no 8495 HAVE_PNG=no
7271 if test "${HAVE_X11}" = "yes"; then 8496 if test "${HAVE_X11}" = "yes"; then
7272 if test "${with_png}" != "no"; then 8497 if test "${with_png}" != "no"; then
7273 echo "$as_me:7273: checking for png.h" >&5 8498 if test "${ac_cv_header_png_h+set}" = set; then
8499 echo "$as_me:$LINENO: checking for png.h" >&5
7274 echo $ECHO_N "checking for png.h... $ECHO_C" >&6 8500 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
7275 if test "${ac_cv_header_png_h+set}" = set; then 8501 if test "${ac_cv_header_png_h+set}" = set; then
7276 echo $ECHO_N "(cached) $ECHO_C" >&6 8502 echo $ECHO_N "(cached) $ECHO_C" >&6
7277 else 8503 fi
7278 cat >conftest.$ac_ext <<_ACEOF 8504 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
7279 #line 7279 "configure" 8505 echo "${ECHO_T}$ac_cv_header_png_h" >&6
7280 #include "confdefs.h" 8506 else
8507 # Is the header compilable?
8508 echo "$as_me:$LINENO: checking png.h usability" >&5
8509 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
8510 cat >conftest.$ac_ext <<_ACEOF
8511 #line $LINENO "configure"
8512 #include "confdefs.h"
8513 $ac_includes_default
7281 #include <png.h> 8514 #include <png.h>
7282 _ACEOF 8515 _ACEOF
7283 if { (eval echo "$as_me:7283: \"$ac_cpp conftest.$ac_ext\"") >&5 8516 rm -f conftest.$ac_objext
8517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8518 (eval $ac_compile) 2>&5
8519 ac_status=$?
8520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521 (exit $ac_status); } &&
8522 { ac_try='test -s conftest.$ac_objext'
8523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8524 (eval $ac_try) 2>&5
8525 ac_status=$?
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527 (exit $ac_status); }; }; then
8528 ac_header_compiler=yes
8529 else
8530 echo "$as_me: failed program was:" >&5
8531 cat conftest.$ac_ext >&5
8532 ac_header_compiler=no
8533 fi
8534 rm -f conftest.$ac_objext conftest.$ac_ext
8535 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8536 echo "${ECHO_T}$ac_header_compiler" >&6
8537
8538 # Is the header present?
8539 echo "$as_me:$LINENO: checking png.h presence" >&5
8540 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
8541 cat >conftest.$ac_ext <<_ACEOF
8542 #line $LINENO "configure"
8543 #include "confdefs.h"
8544 #include <png.h>
8545 _ACEOF
8546 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7284 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8547 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7285 ac_status=$? 8548 ac_status=$?
7286 egrep -v '^ *\+' conftest.er1 >conftest.err 8549 egrep -v '^ *\+' conftest.er1 >conftest.err
7287 rm -f conftest.er1 8550 rm -f conftest.er1
7288 cat conftest.err >&5 8551 cat conftest.err >&5
7289 echo "$as_me:7289: \$? = $ac_status" >&5 8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290 (exit $ac_status); } >/dev/null; then 8553 (exit $ac_status); } >/dev/null; then
7291 if test -s conftest.err; then 8554 if test -s conftest.err; then
7292 ac_cpp_err=$ac_c_preproc_warn_flag 8555 ac_cpp_err=$ac_c_preproc_warn_flag
7293 else 8556 else
7294 ac_cpp_err= 8557 ac_cpp_err=
7295 fi 8558 fi
7296 else 8559 else
7297 ac_cpp_err=yes 8560 ac_cpp_err=yes
7298 fi 8561 fi
7299 if test -z "$ac_cpp_err"; then 8562 if test -z "$ac_cpp_err"; then
7300 ac_cv_header_png_h=yes 8563 ac_header_preproc=yes
7301 else 8564 else
7302 echo "$as_me: failed program was:" >&5 8565 echo "$as_me: failed program was:" >&5
7303 cat conftest.$ac_ext >&5 8566 cat conftest.$ac_ext >&5
7304 ac_cv_header_png_h=no 8567 ac_header_preproc=no
7305 fi 8568 fi
7306 rm -f conftest.err conftest.$ac_ext 8569 rm -f conftest.err conftest.$ac_ext
7307 fi 8570 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7308 echo "$as_me:7308: result: $ac_cv_header_png_h" >&5 8571 echo "${ECHO_T}$ac_header_preproc" >&6
8572
8573 # So? What about this header?
8574 case $ac_header_compiler:$ac_header_preproc in
8575 yes:no )
8576 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
8577 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8578 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
8579 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;};;
8580 no:yes )
8581 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
8582 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
8583 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
8584 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
8585 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
8586 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;};;
8587 esac
8588 echo "$as_me:$LINENO: checking for png.h" >&5
8589 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
8590 if test "${ac_cv_header_png_h+set}" = set; then
8591 echo $ECHO_N "(cached) $ECHO_C" >&6
8592 else
8593 ac_cv_header_png_h=$ac_header_preproc
8594 fi
8595 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
7309 echo "${ECHO_T}$ac_cv_header_png_h" >&6 8596 echo "${ECHO_T}$ac_cv_header_png_h" >&6
8597
8598 fi
7310 if test $ac_cv_header_png_h = yes; then 8599 if test $ac_cv_header_png_h = yes; then
7311 echo "$as_me:7311: checking for png_get_channels in -lpng" >&5 8600 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
7312 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6 8601 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
7313 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then 8602 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
7314 echo $ECHO_N "(cached) $ECHO_C" >&6 8603 echo $ECHO_N "(cached) $ECHO_C" >&6
7315 else 8604 else
7316 ac_check_lib_save_LIBS=$LIBS 8605 ac_check_lib_save_LIBS=$LIBS
7317 LIBS="-lpng -lz -lm $LIBS" 8606 LIBS="-lpng -lz -lm $LIBS"
7318 cat >conftest.$ac_ext <<_ACEOF 8607 cat >conftest.$ac_ext <<_ACEOF
7319 #line 7319 "configure" 8608 #line $LINENO "configure"
7320 #include "confdefs.h" 8609 #include "confdefs.h"
7321 8610
7322 /* Override any gcc2 internal prototype to avoid an error. */ 8611 /* Override any gcc2 internal prototype to avoid an error. */
7323 #ifdef __cplusplus 8612 #ifdef __cplusplus
7324 extern "C" 8613 extern "C"
7325 #endif 8614 #endif
7326 /* We use char because int might match the return type of a gcc2 8615 /* We use char because int might match the return type of a gcc2
7327 builtin and then its argument prototype would still apply. */ 8616 builtin and then its argument prototype would still apply. */
7328 char png_get_channels (); 8617 char png_get_channels ();
8618 #ifdef F77_DUMMY_MAIN
8619 # ifdef __cplusplus
8620 extern "C"
8621 # endif
8622 int F77_DUMMY_MAIN() { return 1; }
8623 #endif
7329 int 8624 int
7330 main () 8625 main ()
7331 { 8626 {
7332 png_get_channels (); 8627 png_get_channels ();
7333 ; 8628 ;
7334 return 0; 8629 return 0;
7335 } 8630 }
7336 _ACEOF 8631 _ACEOF
7337 rm -f conftest.$ac_objext conftest$ac_exeext 8632 rm -f conftest.$ac_objext conftest$ac_exeext
7338 if { (eval echo "$as_me:7338: \"$ac_link\"") >&5 8633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7339 (eval $ac_link) 2>&5 8634 (eval $ac_link) 2>&5
7340 ac_status=$? 8635 ac_status=$?
7341 echo "$as_me:7341: \$? = $ac_status" >&5 8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); } && 8637 (exit $ac_status); } &&
7343 { ac_try='test -s conftest$ac_exeext' 8638 { ac_try='test -s conftest$ac_exeext'
7344 { (eval echo "$as_me:7344: \"$ac_try\"") >&5 8639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7345 (eval $ac_try) 2>&5 8640 (eval $ac_try) 2>&5
7346 ac_status=$? 8641 ac_status=$?
7347 echo "$as_me:7347: \$? = $ac_status" >&5 8642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348 (exit $ac_status); }; }; then 8643 (exit $ac_status); }; }; then
7349 ac_cv_lib_png_png_get_channels=yes 8644 ac_cv_lib_png_png_get_channels=yes
7350 else 8645 else
7351 echo "$as_me: failed program was:" >&5 8646 echo "$as_me: failed program was:" >&5
7352 cat conftest.$ac_ext >&5 8647 cat conftest.$ac_ext >&5
7353 ac_cv_lib_png_png_get_channels=no 8648 ac_cv_lib_png_png_get_channels=no
7354 fi 8649 fi
7355 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8650 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7356 LIBS=$ac_check_lib_save_LIBS 8651 LIBS=$ac_check_lib_save_LIBS
7357 fi 8652 fi
7358 echo "$as_me:7358: result: $ac_cv_lib_png_png_get_channels" >&5 8653 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
7359 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6 8654 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
7360 if test $ac_cv_lib_png_png_get_channels = yes; then 8655 if test $ac_cv_lib_png_png_get_channels = yes; then
7361 HAVE_PNG=yes 8656 HAVE_PNG=yes
7362 fi 8657 fi
7363 8658
7364 fi 8659 fi
7365 8660
8661
7366 fi 8662 fi
7367 8663
7368 if test "${HAVE_PNG}" = "yes"; then 8664 if test "${HAVE_PNG}" = "yes"; then
7369 cat >>confdefs.h <<\EOF 8665 cat >>confdefs.h <<\_ACEOF
7370 #define HAVE_PNG 1 8666 #define HAVE_PNG 1
7371 EOF 8667 _ACEOF
7372 8668
7373 fi 8669 fi
7374 fi 8670 fi
7375 8671
7376 ### Use -ltiff if available, unless `--with-tiff=no'. 8672 ### Use -ltiff if available, unless `--with-tiff=no'.
7377 HAVE_TIFF=no 8673 HAVE_TIFF=no
7378 if test "${HAVE_X11}" = "yes"; then 8674 if test "${HAVE_X11}" = "yes"; then
7379 if test "${with_tiff}" != "no"; then 8675 if test "${with_tiff}" != "no"; then
7380 echo "$as_me:7380: checking for tiffio.h" >&5 8676 if test "${ac_cv_header_tiffio_h+set}" = set; then
8677 echo "$as_me:$LINENO: checking for tiffio.h" >&5
7381 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 8678 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
7382 if test "${ac_cv_header_tiffio_h+set}" = set; then 8679 if test "${ac_cv_header_tiffio_h+set}" = set; then
7383 echo $ECHO_N "(cached) $ECHO_C" >&6 8680 echo $ECHO_N "(cached) $ECHO_C" >&6
7384 else 8681 fi
7385 cat >conftest.$ac_ext <<_ACEOF 8682 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
7386 #line 7386 "configure" 8683 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
7387 #include "confdefs.h" 8684 else
8685 # Is the header compilable?
8686 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
8687 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
8688 cat >conftest.$ac_ext <<_ACEOF
8689 #line $LINENO "configure"
8690 #include "confdefs.h"
8691 $ac_includes_default
7388 #include <tiffio.h> 8692 #include <tiffio.h>
7389 _ACEOF 8693 _ACEOF
7390 if { (eval echo "$as_me:7390: \"$ac_cpp conftest.$ac_ext\"") >&5 8694 rm -f conftest.$ac_objext
8695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8696 (eval $ac_compile) 2>&5
8697 ac_status=$?
8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699 (exit $ac_status); } &&
8700 { ac_try='test -s conftest.$ac_objext'
8701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8702 (eval $ac_try) 2>&5
8703 ac_status=$?
8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705 (exit $ac_status); }; }; then
8706 ac_header_compiler=yes
8707 else
8708 echo "$as_me: failed program was:" >&5
8709 cat conftest.$ac_ext >&5
8710 ac_header_compiler=no
8711 fi
8712 rm -f conftest.$ac_objext conftest.$ac_ext
8713 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8714 echo "${ECHO_T}$ac_header_compiler" >&6
8715
8716 # Is the header present?
8717 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
8718 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
8719 cat >conftest.$ac_ext <<_ACEOF
8720 #line $LINENO "configure"
8721 #include "confdefs.h"
8722 #include <tiffio.h>
8723 _ACEOF
8724 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7391 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8725 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7392 ac_status=$? 8726 ac_status=$?
7393 egrep -v '^ *\+' conftest.er1 >conftest.err 8727 egrep -v '^ *\+' conftest.er1 >conftest.err
7394 rm -f conftest.er1 8728 rm -f conftest.er1
7395 cat conftest.err >&5 8729 cat conftest.err >&5
7396 echo "$as_me:7396: \$? = $ac_status" >&5 8730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7397 (exit $ac_status); } >/dev/null; then 8731 (exit $ac_status); } >/dev/null; then
7398 if test -s conftest.err; then 8732 if test -s conftest.err; then
7399 ac_cpp_err=$ac_c_preproc_warn_flag 8733 ac_cpp_err=$ac_c_preproc_warn_flag
7400 else 8734 else
7401 ac_cpp_err= 8735 ac_cpp_err=
7402 fi 8736 fi
7403 else 8737 else
7404 ac_cpp_err=yes 8738 ac_cpp_err=yes
7405 fi 8739 fi
7406 if test -z "$ac_cpp_err"; then 8740 if test -z "$ac_cpp_err"; then
7407 ac_cv_header_tiffio_h=yes 8741 ac_header_preproc=yes
7408 else 8742 else
7409 echo "$as_me: failed program was:" >&5 8743 echo "$as_me: failed program was:" >&5
7410 cat conftest.$ac_ext >&5 8744 cat conftest.$ac_ext >&5
7411 ac_cv_header_tiffio_h=no 8745 ac_header_preproc=no
7412 fi 8746 fi
7413 rm -f conftest.err conftest.$ac_ext 8747 rm -f conftest.err conftest.$ac_ext
7414 fi 8748 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7415 echo "$as_me:7415: result: $ac_cv_header_tiffio_h" >&5 8749 echo "${ECHO_T}$ac_header_preproc" >&6
8750
8751 # So? What about this header?
8752 case $ac_header_compiler:$ac_header_preproc in
8753 yes:no )
8754 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
8755 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8756 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
8757 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;};;
8758 no:yes )
8759 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
8760 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
8761 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
8762 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
8763 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
8764 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;};;
8765 esac
8766 echo "$as_me:$LINENO: checking for tiffio.h" >&5
8767 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
8768 if test "${ac_cv_header_tiffio_h+set}" = set; then
8769 echo $ECHO_N "(cached) $ECHO_C" >&6
8770 else
8771 ac_cv_header_tiffio_h=$ac_header_preproc
8772 fi
8773 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
7416 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 8774 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
8775
8776 fi
7417 if test $ac_cv_header_tiffio_h = yes; then 8777 if test $ac_cv_header_tiffio_h = yes; then
7418 tifflibs="-lz -lm" 8778 tifflibs="-lz -lm"
7419 # At least one tiff package requires the jpeg library. 8779 # At least one tiff package requires the jpeg library.
7420 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi 8780 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
7421 echo "$as_me:7421: checking for TIFFGetVersion in -ltiff" >&5 8781 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
7422 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6 8782 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
7423 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then 8783 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
7424 echo $ECHO_N "(cached) $ECHO_C" >&6 8784 echo $ECHO_N "(cached) $ECHO_C" >&6
7425 else 8785 else
7426 ac_check_lib_save_LIBS=$LIBS 8786 ac_check_lib_save_LIBS=$LIBS
7427 LIBS="-ltiff $tifflibs $LIBS" 8787 LIBS="-ltiff $tifflibs $LIBS"
7428 cat >conftest.$ac_ext <<_ACEOF 8788 cat >conftest.$ac_ext <<_ACEOF
7429 #line 7429 "configure" 8789 #line $LINENO "configure"
7430 #include "confdefs.h" 8790 #include "confdefs.h"
7431 8791
7432 /* Override any gcc2 internal prototype to avoid an error. */ 8792 /* Override any gcc2 internal prototype to avoid an error. */
7433 #ifdef __cplusplus 8793 #ifdef __cplusplus
7434 extern "C" 8794 extern "C"
7435 #endif 8795 #endif
7436 /* We use char because int might match the return type of a gcc2 8796 /* We use char because int might match the return type of a gcc2
7437 builtin and then its argument prototype would still apply. */ 8797 builtin and then its argument prototype would still apply. */
7438 char TIFFGetVersion (); 8798 char TIFFGetVersion ();
8799 #ifdef F77_DUMMY_MAIN
8800 # ifdef __cplusplus
8801 extern "C"
8802 # endif
8803 int F77_DUMMY_MAIN() { return 1; }
8804 #endif
7439 int 8805 int
7440 main () 8806 main ()
7441 { 8807 {
7442 TIFFGetVersion (); 8808 TIFFGetVersion ();
7443 ; 8809 ;
7444 return 0; 8810 return 0;
7445 } 8811 }
7446 _ACEOF 8812 _ACEOF
7447 rm -f conftest.$ac_objext conftest$ac_exeext 8813 rm -f conftest.$ac_objext conftest$ac_exeext
7448 if { (eval echo "$as_me:7448: \"$ac_link\"") >&5 8814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7449 (eval $ac_link) 2>&5 8815 (eval $ac_link) 2>&5
7450 ac_status=$? 8816 ac_status=$?
7451 echo "$as_me:7451: \$? = $ac_status" >&5 8817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452 (exit $ac_status); } && 8818 (exit $ac_status); } &&
7453 { ac_try='test -s conftest$ac_exeext' 8819 { ac_try='test -s conftest$ac_exeext'
7454 { (eval echo "$as_me:7454: \"$ac_try\"") >&5 8820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7455 (eval $ac_try) 2>&5 8821 (eval $ac_try) 2>&5
7456 ac_status=$? 8822 ac_status=$?
7457 echo "$as_me:7457: \$? = $ac_status" >&5 8823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458 (exit $ac_status); }; }; then 8824 (exit $ac_status); }; }; then
7459 ac_cv_lib_tiff_TIFFGetVersion=yes 8825 ac_cv_lib_tiff_TIFFGetVersion=yes
7460 else 8826 else
7461 echo "$as_me: failed program was:" >&5 8827 echo "$as_me: failed program was:" >&5
7462 cat conftest.$ac_ext >&5 8828 cat conftest.$ac_ext >&5
7463 ac_cv_lib_tiff_TIFFGetVersion=no 8829 ac_cv_lib_tiff_TIFFGetVersion=no
7464 fi 8830 fi
7465 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8831 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7466 LIBS=$ac_check_lib_save_LIBS 8832 LIBS=$ac_check_lib_save_LIBS
7467 fi 8833 fi
7468 echo "$as_me:7468: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5 8834 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
7469 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6 8835 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
7470 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then 8836 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
7471 HAVE_TIFF=yes 8837 HAVE_TIFF=yes
7472 fi 8838 fi
7473 8839
7474 fi 8840 fi
7475 8841
8842
7476 fi 8843 fi
7477 8844
7478 if test "${HAVE_TIFF}" = "yes"; then 8845 if test "${HAVE_TIFF}" = "yes"; then
7479 cat >>confdefs.h <<\EOF 8846 cat >>confdefs.h <<\_ACEOF
7480 #define HAVE_TIFF 1 8847 #define HAVE_TIFF 1
7481 EOF 8848 _ACEOF
7482 8849
7483 fi 8850 fi
7484 fi 8851 fi
7485 8852
7486 ### Use -lgif if available, unless `--with-gif=no'. 8853 ### Use -lgif if available, unless `--with-gif=no'.
7487 HAVE_GIF=no 8854 HAVE_GIF=no
7488 if test "${HAVE_X11}" = "yes"; then 8855 if test "${HAVE_X11}" = "yes"; then
7489 if test "${with_gif}" != "no"; then 8856 if test "${with_gif}" != "no"; then
7490 echo "$as_me:7490: checking for gif_lib.h" >&5 8857 if test "${ac_cv_header_gif_lib_h+set}" = set; then
8858 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
7491 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6 8859 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
7492 if test "${ac_cv_header_gif_lib_h+set}" = set; then 8860 if test "${ac_cv_header_gif_lib_h+set}" = set; then
7493 echo $ECHO_N "(cached) $ECHO_C" >&6 8861 echo $ECHO_N "(cached) $ECHO_C" >&6
7494 else 8862 fi
7495 cat >conftest.$ac_ext <<_ACEOF 8863 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
7496 #line 7496 "configure" 8864 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
7497 #include "confdefs.h" 8865 else
8866 # Is the header compilable?
8867 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
8868 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
8869 cat >conftest.$ac_ext <<_ACEOF
8870 #line $LINENO "configure"
8871 #include "confdefs.h"
8872 $ac_includes_default
7498 #include <gif_lib.h> 8873 #include <gif_lib.h>
7499 _ACEOF 8874 _ACEOF
7500 if { (eval echo "$as_me:7500: \"$ac_cpp conftest.$ac_ext\"") >&5 8875 rm -f conftest.$ac_objext
8876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8877 (eval $ac_compile) 2>&5
8878 ac_status=$?
8879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880 (exit $ac_status); } &&
8881 { ac_try='test -s conftest.$ac_objext'
8882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8883 (eval $ac_try) 2>&5
8884 ac_status=$?
8885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886 (exit $ac_status); }; }; then
8887 ac_header_compiler=yes
8888 else
8889 echo "$as_me: failed program was:" >&5
8890 cat conftest.$ac_ext >&5
8891 ac_header_compiler=no
8892 fi
8893 rm -f conftest.$ac_objext conftest.$ac_ext
8894 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8895 echo "${ECHO_T}$ac_header_compiler" >&6
8896
8897 # Is the header present?
8898 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
8899 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
8900 cat >conftest.$ac_ext <<_ACEOF
8901 #line $LINENO "configure"
8902 #include "confdefs.h"
8903 #include <gif_lib.h>
8904 _ACEOF
8905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7501 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8906 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7502 ac_status=$? 8907 ac_status=$?
7503 egrep -v '^ *\+' conftest.er1 >conftest.err 8908 egrep -v '^ *\+' conftest.er1 >conftest.err
7504 rm -f conftest.er1 8909 rm -f conftest.er1
7505 cat conftest.err >&5 8910 cat conftest.err >&5
7506 echo "$as_me:7506: \$? = $ac_status" >&5 8911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507 (exit $ac_status); } >/dev/null; then 8912 (exit $ac_status); } >/dev/null; then
7508 if test -s conftest.err; then 8913 if test -s conftest.err; then
7509 ac_cpp_err=$ac_c_preproc_warn_flag 8914 ac_cpp_err=$ac_c_preproc_warn_flag
7510 else 8915 else
7511 ac_cpp_err= 8916 ac_cpp_err=
7512 fi 8917 fi
7513 else 8918 else
7514 ac_cpp_err=yes 8919 ac_cpp_err=yes
7515 fi 8920 fi
7516 if test -z "$ac_cpp_err"; then 8921 if test -z "$ac_cpp_err"; then
7517 ac_cv_header_gif_lib_h=yes 8922 ac_header_preproc=yes
7518 else 8923 else
7519 echo "$as_me: failed program was:" >&5 8924 echo "$as_me: failed program was:" >&5
7520 cat conftest.$ac_ext >&5 8925 cat conftest.$ac_ext >&5
7521 ac_cv_header_gif_lib_h=no 8926 ac_header_preproc=no
7522 fi 8927 fi
7523 rm -f conftest.err conftest.$ac_ext 8928 rm -f conftest.err conftest.$ac_ext
7524 fi 8929 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7525 echo "$as_me:7525: result: $ac_cv_header_gif_lib_h" >&5 8930 echo "${ECHO_T}$ac_header_preproc" >&6
8931
8932 # So? What about this header?
8933 case $ac_header_compiler:$ac_header_preproc in
8934 yes:no )
8935 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8936 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8937 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
8938 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;};;
8939 no:yes )
8940 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
8941 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
8942 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
8943 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
8944 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
8945 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;};;
8946 esac
8947 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
8948 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
8949 if test "${ac_cv_header_gif_lib_h+set}" = set; then
8950 echo $ECHO_N "(cached) $ECHO_C" >&6
8951 else
8952 ac_cv_header_gif_lib_h=$ac_header_preproc
8953 fi
8954 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
7526 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6 8955 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
8956
8957 fi
7527 if test $ac_cv_header_gif_lib_h = yes; then 8958 if test $ac_cv_header_gif_lib_h = yes; then
7528 # EGifPutExtensionLast only exists from version libungif-4.1.0b1. 8959 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
7529 # Earlier versions can crash Emacs. 8960 # Earlier versions can crash Emacs.
7530 echo "$as_me:7530: checking for EGifPutExtensionLast in -lungif" >&5 8961 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
7531 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6 8962 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
7532 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then 8963 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
7533 echo $ECHO_N "(cached) $ECHO_C" >&6 8964 echo $ECHO_N "(cached) $ECHO_C" >&6
7534 else 8965 else
7535 ac_check_lib_save_LIBS=$LIBS 8966 ac_check_lib_save_LIBS=$LIBS
7536 LIBS="-lungif $LIBS" 8967 LIBS="-lungif $LIBS"
7537 cat >conftest.$ac_ext <<_ACEOF 8968 cat >conftest.$ac_ext <<_ACEOF
7538 #line 7538 "configure" 8969 #line $LINENO "configure"
7539 #include "confdefs.h" 8970 #include "confdefs.h"
7540 8971
7541 /* Override any gcc2 internal prototype to avoid an error. */ 8972 /* Override any gcc2 internal prototype to avoid an error. */
7542 #ifdef __cplusplus 8973 #ifdef __cplusplus
7543 extern "C" 8974 extern "C"
7544 #endif 8975 #endif
7545 /* We use char because int might match the return type of a gcc2 8976 /* We use char because int might match the return type of a gcc2
7546 builtin and then its argument prototype would still apply. */ 8977 builtin and then its argument prototype would still apply. */
7547 char EGifPutExtensionLast (); 8978 char EGifPutExtensionLast ();
8979 #ifdef F77_DUMMY_MAIN
8980 # ifdef __cplusplus
8981 extern "C"
8982 # endif
8983 int F77_DUMMY_MAIN() { return 1; }
8984 #endif
7548 int 8985 int
7549 main () 8986 main ()
7550 { 8987 {
7551 EGifPutExtensionLast (); 8988 EGifPutExtensionLast ();
7552 ; 8989 ;
7553 return 0; 8990 return 0;
7554 } 8991 }
7555 _ACEOF 8992 _ACEOF
7556 rm -f conftest.$ac_objext conftest$ac_exeext 8993 rm -f conftest.$ac_objext conftest$ac_exeext
7557 if { (eval echo "$as_me:7557: \"$ac_link\"") >&5 8994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7558 (eval $ac_link) 2>&5 8995 (eval $ac_link) 2>&5
7559 ac_status=$? 8996 ac_status=$?
7560 echo "$as_me:7560: \$? = $ac_status" >&5 8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561 (exit $ac_status); } && 8998 (exit $ac_status); } &&
7562 { ac_try='test -s conftest$ac_exeext' 8999 { ac_try='test -s conftest$ac_exeext'
7563 { (eval echo "$as_me:7563: \"$ac_try\"") >&5 9000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7564 (eval $ac_try) 2>&5 9001 (eval $ac_try) 2>&5
7565 ac_status=$? 9002 ac_status=$?
7566 echo "$as_me:7566: \$? = $ac_status" >&5 9003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567 (exit $ac_status); }; }; then 9004 (exit $ac_status); }; }; then
7568 ac_cv_lib_ungif_EGifPutExtensionLast=yes 9005 ac_cv_lib_ungif_EGifPutExtensionLast=yes
7569 else 9006 else
7570 echo "$as_me: failed program was:" >&5 9007 echo "$as_me: failed program was:" >&5
7571 cat conftest.$ac_ext >&5 9008 cat conftest.$ac_ext >&5
7572 ac_cv_lib_ungif_EGifPutExtensionLast=no 9009 ac_cv_lib_ungif_EGifPutExtensionLast=no
7573 fi 9010 fi
7574 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9011 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7575 LIBS=$ac_check_lib_save_LIBS 9012 LIBS=$ac_check_lib_save_LIBS
7576 fi 9013 fi
7577 echo "$as_me:7577: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5 9014 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
7578 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6 9015 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
7579 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then 9016 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
7580 HAVE_GIF=yes 9017 HAVE_GIF=yes
7581 fi 9018 fi
7582 9019
7583 fi 9020 fi
7584 9021
9022
7585 fi 9023 fi
7586 9024
7587 if test "${HAVE_GIF}" = "yes"; then 9025 if test "${HAVE_GIF}" = "yes"; then
7588 cat >>confdefs.h <<\EOF 9026 cat >>confdefs.h <<\_ACEOF
7589 #define HAVE_GIF 1 9027 #define HAVE_GIF 1
7590 EOF 9028 _ACEOF
7591 9029
7592 fi 9030 fi
7593 fi 9031 fi
7594 9032
7595 ### Use session management (-lSM -lICE) if available 9033 ### Use session management (-lSM -lICE) if available
7596 HAVE_X_SM=no 9034 HAVE_X_SM=no
7597 if test "${HAVE_X11}" = "yes"; then 9035 if test "${HAVE_X11}" = "yes"; then
7598 echo "$as_me:7598: checking for X11/SM/SMlib.h" >&5 9036 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
9037 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
7599 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6 9038 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
7600 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then 9039 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
7601 echo $ECHO_N "(cached) $ECHO_C" >&6 9040 echo $ECHO_N "(cached) $ECHO_C" >&6
7602 else 9041 fi
7603 cat >conftest.$ac_ext <<_ACEOF 9042 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
7604 #line 7604 "configure" 9043 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
7605 #include "confdefs.h" 9044 else
9045 # Is the header compilable?
9046 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
9047 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
9048 cat >conftest.$ac_ext <<_ACEOF
9049 #line $LINENO "configure"
9050 #include "confdefs.h"
9051 $ac_includes_default
7606 #include <X11/SM/SMlib.h> 9052 #include <X11/SM/SMlib.h>
7607 _ACEOF 9053 _ACEOF
7608 if { (eval echo "$as_me:7608: \"$ac_cpp conftest.$ac_ext\"") >&5 9054 rm -f conftest.$ac_objext
9055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9056 (eval $ac_compile) 2>&5
9057 ac_status=$?
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); } &&
9060 { ac_try='test -s conftest.$ac_objext'
9061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9062 (eval $ac_try) 2>&5
9063 ac_status=$?
9064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065 (exit $ac_status); }; }; then
9066 ac_header_compiler=yes
9067 else
9068 echo "$as_me: failed program was:" >&5
9069 cat conftest.$ac_ext >&5
9070 ac_header_compiler=no
9071 fi
9072 rm -f conftest.$ac_objext conftest.$ac_ext
9073 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9074 echo "${ECHO_T}$ac_header_compiler" >&6
9075
9076 # Is the header present?
9077 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
9078 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
9079 cat >conftest.$ac_ext <<_ACEOF
9080 #line $LINENO "configure"
9081 #include "confdefs.h"
9082 #include <X11/SM/SMlib.h>
9083 _ACEOF
9084 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7609 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 9085 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7610 ac_status=$? 9086 ac_status=$?
7611 egrep -v '^ *\+' conftest.er1 >conftest.err 9087 egrep -v '^ *\+' conftest.er1 >conftest.err
7612 rm -f conftest.er1 9088 rm -f conftest.er1
7613 cat conftest.err >&5 9089 cat conftest.err >&5
7614 echo "$as_me:7614: \$? = $ac_status" >&5 9090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7615 (exit $ac_status); } >/dev/null; then 9091 (exit $ac_status); } >/dev/null; then
7616 if test -s conftest.err; then 9092 if test -s conftest.err; then
7617 ac_cpp_err=$ac_c_preproc_warn_flag 9093 ac_cpp_err=$ac_c_preproc_warn_flag
7618 else 9094 else
7619 ac_cpp_err= 9095 ac_cpp_err=
7620 fi 9096 fi
7621 else 9097 else
7622 ac_cpp_err=yes 9098 ac_cpp_err=yes
7623 fi 9099 fi
7624 if test -z "$ac_cpp_err"; then 9100 if test -z "$ac_cpp_err"; then
7625 ac_cv_header_X11_SM_SMlib_h=yes 9101 ac_header_preproc=yes
7626 else 9102 else
7627 echo "$as_me: failed program was:" >&5 9103 echo "$as_me: failed program was:" >&5
7628 cat conftest.$ac_ext >&5 9104 cat conftest.$ac_ext >&5
7629 ac_cv_header_X11_SM_SMlib_h=no 9105 ac_header_preproc=no
7630 fi 9106 fi
7631 rm -f conftest.err conftest.$ac_ext 9107 rm -f conftest.err conftest.$ac_ext
7632 fi 9108 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7633 echo "$as_me:7633: result: $ac_cv_header_X11_SM_SMlib_h" >&5 9109 echo "${ECHO_T}$ac_header_preproc" >&6
9110
9111 # So? What about this header?
9112 case $ac_header_compiler:$ac_header_preproc in
9113 yes:no )
9114 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9115 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9116 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
9117 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;};;
9118 no:yes )
9119 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
9120 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
9121 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
9122 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
9123 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
9124 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;};;
9125 esac
9126 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
9127 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
9128 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
9129 echo $ECHO_N "(cached) $ECHO_C" >&6
9130 else
9131 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
9132 fi
9133 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
7634 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6 9134 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
9135
9136 fi
7635 if test $ac_cv_header_X11_SM_SMlib_h = yes; then 9137 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
7636 echo "$as_me:7636: checking for SmcOpenConnection in -lSM" >&5 9138 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
7637 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6 9139 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
7638 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then 9140 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
7639 echo $ECHO_N "(cached) $ECHO_C" >&6 9141 echo $ECHO_N "(cached) $ECHO_C" >&6
7640 else 9142 else
7641 ac_check_lib_save_LIBS=$LIBS 9143 ac_check_lib_save_LIBS=$LIBS
7642 LIBS="-lSM $LIBS" 9144 LIBS="-lSM $LIBS"
7643 cat >conftest.$ac_ext <<_ACEOF 9145 cat >conftest.$ac_ext <<_ACEOF
7644 #line 7644 "configure" 9146 #line $LINENO "configure"
7645 #include "confdefs.h" 9147 #include "confdefs.h"
7646 9148
7647 /* Override any gcc2 internal prototype to avoid an error. */ 9149 /* Override any gcc2 internal prototype to avoid an error. */
7648 #ifdef __cplusplus 9150 #ifdef __cplusplus
7649 extern "C" 9151 extern "C"
7650 #endif 9152 #endif
7651 /* We use char because int might match the return type of a gcc2 9153 /* We use char because int might match the return type of a gcc2
7652 builtin and then its argument prototype would still apply. */ 9154 builtin and then its argument prototype would still apply. */
7653 char SmcOpenConnection (); 9155 char SmcOpenConnection ();
9156 #ifdef F77_DUMMY_MAIN
9157 # ifdef __cplusplus
9158 extern "C"
9159 # endif
9160 int F77_DUMMY_MAIN() { return 1; }
9161 #endif
7654 int 9162 int
7655 main () 9163 main ()
7656 { 9164 {
7657 SmcOpenConnection (); 9165 SmcOpenConnection ();
7658 ; 9166 ;
7659 return 0; 9167 return 0;
7660 } 9168 }
7661 _ACEOF 9169 _ACEOF
7662 rm -f conftest.$ac_objext conftest$ac_exeext 9170 rm -f conftest.$ac_objext conftest$ac_exeext
7663 if { (eval echo "$as_me:7663: \"$ac_link\"") >&5 9171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7664 (eval $ac_link) 2>&5 9172 (eval $ac_link) 2>&5
7665 ac_status=$? 9173 ac_status=$?
7666 echo "$as_me:7666: \$? = $ac_status" >&5 9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667 (exit $ac_status); } && 9175 (exit $ac_status); } &&
7668 { ac_try='test -s conftest$ac_exeext' 9176 { ac_try='test -s conftest$ac_exeext'
7669 { (eval echo "$as_me:7669: \"$ac_try\"") >&5 9177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7670 (eval $ac_try) 2>&5 9178 (eval $ac_try) 2>&5
7671 ac_status=$? 9179 ac_status=$?
7672 echo "$as_me:7672: \$? = $ac_status" >&5 9180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673 (exit $ac_status); }; }; then 9181 (exit $ac_status); }; }; then
7674 ac_cv_lib_SM_SmcOpenConnection=yes 9182 ac_cv_lib_SM_SmcOpenConnection=yes
7675 else 9183 else
7676 echo "$as_me: failed program was:" >&5 9184 echo "$as_me: failed program was:" >&5
7677 cat conftest.$ac_ext >&5 9185 cat conftest.$ac_ext >&5
7678 ac_cv_lib_SM_SmcOpenConnection=no 9186 ac_cv_lib_SM_SmcOpenConnection=no
7679 fi 9187 fi
7680 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9188 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7681 LIBS=$ac_check_lib_save_LIBS 9189 LIBS=$ac_check_lib_save_LIBS
7682 fi 9190 fi
7683 echo "$as_me:7683: result: $ac_cv_lib_SM_SmcOpenConnection" >&5 9191 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
7684 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6 9192 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
7685 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then 9193 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
7686 HAVE_X_SM=yes 9194 HAVE_X_SM=yes
7687 else 9195 else
7688 -lICE 9196 -lICE
7689 fi 9197 fi
7690 9198
7691 fi 9199 fi
7692 9200
9201
9202
7693 if test "${HAVE_X_SM}" = "yes"; then 9203 if test "${HAVE_X_SM}" = "yes"; then
7694 cat >>confdefs.h <<\EOF 9204 cat >>confdefs.h <<\_ACEOF
7695 #define HAVE_X_SM 1 9205 #define HAVE_X_SM 1
7696 EOF 9206 _ACEOF
7697 9207
7698 case "$LIBS" in 9208 case "$LIBS" in
7699 *-lSM*) ;; 9209 *-lSM*) ;;
7700 *) LIBS="-lSM -lICE $LIBS" ;; 9210 *) LIBS="-lSM -lICE $LIBS" ;;
7701 esac 9211 esac
7702 fi 9212 fi
7703 fi 9213 fi
7704 9214
7705 # If netdb.h doesn't declare h_errno, we must declare it by hand. 9215 # If netdb.h doesn't declare h_errno, we must declare it by hand.
7706 echo "$as_me:7706: checking whether netdb declares h_errno" >&5 9216 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
7707 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6 9217 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
7708 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then 9218 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
7709 echo $ECHO_N "(cached) $ECHO_C" >&6 9219 echo $ECHO_N "(cached) $ECHO_C" >&6
7710 else 9220 else
7711 cat >conftest.$ac_ext <<_ACEOF 9221 cat >conftest.$ac_ext <<_ACEOF
7712 #line 7712 "configure" 9222 #line $LINENO "configure"
7713 #include "confdefs.h" 9223 #include "confdefs.h"
7714 #include <netdb.h> 9224 #include <netdb.h>
9225 #ifdef F77_DUMMY_MAIN
9226 # ifdef __cplusplus
9227 extern "C"
9228 # endif
9229 int F77_DUMMY_MAIN() { return 1; }
9230 #endif
7715 int 9231 int
7716 main () 9232 main ()
7717 { 9233 {
7718 return h_errno; 9234 return h_errno;
7719 ; 9235 ;
7720 return 0; 9236 return 0;
7721 } 9237 }
7722 _ACEOF 9238 _ACEOF
7723 rm -f conftest.$ac_objext conftest$ac_exeext 9239 rm -f conftest.$ac_objext conftest$ac_exeext
7724 if { (eval echo "$as_me:7724: \"$ac_link\"") >&5 9240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7725 (eval $ac_link) 2>&5 9241 (eval $ac_link) 2>&5
7726 ac_status=$? 9242 ac_status=$?
7727 echo "$as_me:7727: \$? = $ac_status" >&5 9243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728 (exit $ac_status); } && 9244 (exit $ac_status); } &&
7729 { ac_try='test -s conftest$ac_exeext' 9245 { ac_try='test -s conftest$ac_exeext'
7730 { (eval echo "$as_me:7730: \"$ac_try\"") >&5 9246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7731 (eval $ac_try) 2>&5 9247 (eval $ac_try) 2>&5
7732 ac_status=$? 9248 ac_status=$?
7733 echo "$as_me:7733: \$? = $ac_status" >&5 9249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7734 (exit $ac_status); }; }; then 9250 (exit $ac_status); }; }; then
7735 emacs_cv_netdb_declares_h_errno=yes 9251 emacs_cv_netdb_declares_h_errno=yes
7736 else 9252 else
7737 echo "$as_me: failed program was:" >&5 9253 echo "$as_me: failed program was:" >&5
7738 cat conftest.$ac_ext >&5 9254 cat conftest.$ac_ext >&5
7739 emacs_cv_netdb_declares_h_errno=no 9255 emacs_cv_netdb_declares_h_errno=no
7740 fi 9256 fi
7741 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9257 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7742 fi 9258 fi
7743 echo "$as_me:7743: result: $emacs_cv_netdb_declares_h_errno" >&5 9259 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
7744 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6 9260 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
7745 if test $emacs_cv_netdb_declares_h_errno = yes; then 9261 if test $emacs_cv_netdb_declares_h_errno = yes; then
7746 cat >>confdefs.h <<\EOF 9262 cat >>confdefs.h <<\_ACEOF
7747 #define HAVE_H_ERRNO 1 9263 #define HAVE_H_ERRNO 1
7748 EOF 9264 _ACEOF
7749 9265
7750 fi 9266 fi
7751 9267
7752 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 9268 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7753 # for constant arguments. Useless! 9269 # for constant arguments. Useless!
7754 echo "$as_me:7754: checking for working alloca.h" >&5 9270 echo "$as_me:$LINENO: checking for working alloca.h" >&5
7755 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 9271 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
7756 if test "${ac_cv_working_alloca_h+set}" = set; then 9272 if test "${ac_cv_working_alloca_h+set}" = set; then
7757 echo $ECHO_N "(cached) $ECHO_C" >&6 9273 echo $ECHO_N "(cached) $ECHO_C" >&6
7758 else 9274 else
7759 cat >conftest.$ac_ext <<_ACEOF 9275 cat >conftest.$ac_ext <<_ACEOF
7760 #line 7760 "configure" 9276 #line $LINENO "configure"
7761 #include "confdefs.h" 9277 #include "confdefs.h"
7762 #include <alloca.h> 9278 #include <alloca.h>
9279 #ifdef F77_DUMMY_MAIN
9280 # ifdef __cplusplus
9281 extern "C"
9282 # endif
9283 int F77_DUMMY_MAIN() { return 1; }
9284 #endif
7763 int 9285 int
7764 main () 9286 main ()
7765 { 9287 {
7766 char *p = (char *) alloca (2 * sizeof (int)); 9288 char *p = (char *) alloca (2 * sizeof (int));
7767 ; 9289 ;
7768 return 0; 9290 return 0;
7769 } 9291 }
7770 _ACEOF 9292 _ACEOF
7771 rm -f conftest.$ac_objext conftest$ac_exeext 9293 rm -f conftest.$ac_objext conftest$ac_exeext
7772 if { (eval echo "$as_me:7772: \"$ac_link\"") >&5 9294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7773 (eval $ac_link) 2>&5 9295 (eval $ac_link) 2>&5
7774 ac_status=$? 9296 ac_status=$?
7775 echo "$as_me:7775: \$? = $ac_status" >&5 9297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776 (exit $ac_status); } && 9298 (exit $ac_status); } &&
7777 { ac_try='test -s conftest$ac_exeext' 9299 { ac_try='test -s conftest$ac_exeext'
7778 { (eval echo "$as_me:7778: \"$ac_try\"") >&5 9300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7779 (eval $ac_try) 2>&5 9301 (eval $ac_try) 2>&5
7780 ac_status=$? 9302 ac_status=$?
7781 echo "$as_me:7781: \$? = $ac_status" >&5 9303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782 (exit $ac_status); }; }; then 9304 (exit $ac_status); }; }; then
7783 ac_cv_working_alloca_h=yes 9305 ac_cv_working_alloca_h=yes
7784 else 9306 else
7785 echo "$as_me: failed program was:" >&5 9307 echo "$as_me: failed program was:" >&5
7786 cat conftest.$ac_ext >&5 9308 cat conftest.$ac_ext >&5
7787 ac_cv_working_alloca_h=no 9309 ac_cv_working_alloca_h=no
7788 fi 9310 fi
7789 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9311 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7790 fi 9312 fi
7791 echo "$as_me:7791: result: $ac_cv_working_alloca_h" >&5 9313 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
7792 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 9314 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
7793 if test $ac_cv_working_alloca_h = yes; then 9315 if test $ac_cv_working_alloca_h = yes; then
7794 9316
7795 cat >>confdefs.h <<\EOF 9317 cat >>confdefs.h <<\_ACEOF
7796 #define HAVE_ALLOCA_H 1 9318 #define HAVE_ALLOCA_H 1
7797 EOF 9319 _ACEOF
7798 9320
7799 fi 9321 fi
7800 9322
7801 echo "$as_me:7801: checking for alloca" >&5 9323 echo "$as_me:$LINENO: checking for alloca" >&5
7802 echo $ECHO_N "checking for alloca... $ECHO_C" >&6 9324 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
7803 if test "${ac_cv_func_alloca_works+set}" = set; then 9325 if test "${ac_cv_func_alloca_works+set}" = set; then
7804 echo $ECHO_N "(cached) $ECHO_C" >&6 9326 echo $ECHO_N "(cached) $ECHO_C" >&6
7805 else 9327 else
7806 cat >conftest.$ac_ext <<_ACEOF 9328 cat >conftest.$ac_ext <<_ACEOF
7807 #line 7807 "configure" 9329 #line $LINENO "configure"
7808 #include "confdefs.h" 9330 #include "confdefs.h"
7809 #ifdef __GNUC__ 9331 #ifdef __GNUC__
7810 # define alloca __builtin_alloca 9332 # define alloca __builtin_alloca
7811 #else 9333 #else
7812 # ifdef _MSC_VER 9334 # ifdef _MSC_VER
7825 # endif 9347 # endif
7826 # endif 9348 # endif
7827 # endif 9349 # endif
7828 #endif 9350 #endif
7829 9351
9352 #ifdef F77_DUMMY_MAIN
9353 # ifdef __cplusplus
9354 extern "C"
9355 # endif
9356 int F77_DUMMY_MAIN() { return 1; }
9357 #endif
7830 int 9358 int
7831 main () 9359 main ()
7832 { 9360 {
7833 char *p = (char *) alloca (1); 9361 char *p = (char *) alloca (1);
7834 ; 9362 ;
7835 return 0; 9363 return 0;
7836 } 9364 }
7837 _ACEOF 9365 _ACEOF
7838 rm -f conftest.$ac_objext conftest$ac_exeext 9366 rm -f conftest.$ac_objext conftest$ac_exeext
7839 if { (eval echo "$as_me:7839: \"$ac_link\"") >&5 9367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7840 (eval $ac_link) 2>&5 9368 (eval $ac_link) 2>&5
7841 ac_status=$? 9369 ac_status=$?
7842 echo "$as_me:7842: \$? = $ac_status" >&5 9370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); } && 9371 (exit $ac_status); } &&
7844 { ac_try='test -s conftest$ac_exeext' 9372 { ac_try='test -s conftest$ac_exeext'
7845 { (eval echo "$as_me:7845: \"$ac_try\"") >&5 9373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7846 (eval $ac_try) 2>&5 9374 (eval $ac_try) 2>&5
7847 ac_status=$? 9375 ac_status=$?
7848 echo "$as_me:7848: \$? = $ac_status" >&5 9376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849 (exit $ac_status); }; }; then 9377 (exit $ac_status); }; }; then
7850 ac_cv_func_alloca_works=yes 9378 ac_cv_func_alloca_works=yes
7851 else 9379 else
7852 echo "$as_me: failed program was:" >&5 9380 echo "$as_me: failed program was:" >&5
7853 cat conftest.$ac_ext >&5 9381 cat conftest.$ac_ext >&5
7854 ac_cv_func_alloca_works=no 9382 ac_cv_func_alloca_works=no
7855 fi 9383 fi
7856 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9384 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7857 fi 9385 fi
7858 echo "$as_me:7858: result: $ac_cv_func_alloca_works" >&5 9386 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7859 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 9387 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
7860 9388
7861 if test $ac_cv_func_alloca_works = yes; then 9389 if test $ac_cv_func_alloca_works = yes; then
7862 9390
7863 cat >>confdefs.h <<\EOF 9391 cat >>confdefs.h <<\_ACEOF
7864 #define HAVE_ALLOCA 1 9392 #define HAVE_ALLOCA 1
7865 EOF 9393 _ACEOF
7866 9394
7867 else 9395 else
7868 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 9396 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7869 # that cause trouble. Some versions do not even contain alloca or 9397 # that cause trouble. Some versions do not even contain alloca or
7870 # contain a buggy version. If you still want to use their alloca, 9398 # contain a buggy version. If you still want to use their alloca,
7871 # use ar to extract alloca.o from them instead of compiling alloca.c. 9399 # use ar to extract alloca.o from them instead of compiling alloca.c.
7872 9400
7873 ALLOCA=alloca.$ac_objext 9401 ALLOCA=alloca.$ac_objext
7874 9402
7875 cat >>confdefs.h <<\EOF 9403 cat >>confdefs.h <<\_ACEOF
7876 #define C_ALLOCA 1 9404 #define C_ALLOCA 1
7877 EOF 9405 _ACEOF
7878 9406
7879 echo "$as_me:7879: checking whether \`alloca.c' needs Cray hooks" >&5 9407
9408 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7880 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 9409 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
7881 if test "${ac_cv_os_cray+set}" = set; then 9410 if test "${ac_cv_os_cray+set}" = set; then
7882 echo $ECHO_N "(cached) $ECHO_C" >&6 9411 echo $ECHO_N "(cached) $ECHO_C" >&6
7883 else 9412 else
7884 cat >conftest.$ac_ext <<_ACEOF 9413 cat >conftest.$ac_ext <<_ACEOF
7885 #line 7885 "configure" 9414 #line $LINENO "configure"
7886 #include "confdefs.h" 9415 #include "confdefs.h"
7887 #if defined(CRAY) && ! defined(CRAY2) 9416 #if defined(CRAY) && ! defined(CRAY2)
7888 webecray 9417 webecray
7889 #else 9418 #else
7890 wenotbecray 9419 wenotbecray
7898 ac_cv_os_cray=no 9427 ac_cv_os_cray=no
7899 fi 9428 fi
7900 rm -f conftest* 9429 rm -f conftest*
7901 9430
7902 fi 9431 fi
7903 echo "$as_me:7903: result: $ac_cv_os_cray" >&5 9432 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7904 echo "${ECHO_T}$ac_cv_os_cray" >&6 9433 echo "${ECHO_T}$ac_cv_os_cray" >&6
7905 if test $ac_cv_os_cray = yes; then 9434 if test $ac_cv_os_cray = yes; then
7906 for ac_func in _getb67 GETB67 getb67; do 9435 for ac_func in _getb67 GETB67 getb67; do
7907 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9436 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7908 echo "$as_me:7908: checking for $ac_func" >&5 9437 echo "$as_me:$LINENO: checking for $ac_func" >&5
7909 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9438 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7910 if eval "test \"\${$as_ac_var+set}\" = set"; then 9439 if eval "test \"\${$as_ac_var+set}\" = set"; then
7911 echo $ECHO_N "(cached) $ECHO_C" >&6 9440 echo $ECHO_N "(cached) $ECHO_C" >&6
7912 else 9441 else
7913 cat >conftest.$ac_ext <<_ACEOF 9442 cat >conftest.$ac_ext <<_ACEOF
7914 #line 7914 "configure" 9443 #line $LINENO "configure"
7915 #include "confdefs.h" 9444 #include "confdefs.h"
7916 /* System header to define __stub macros and hopefully few prototypes, 9445 /* System header to define __stub macros and hopefully few prototypes,
7917 which can conflict with char $ac_func (); below. */ 9446 which can conflict with char $ac_func (); below. */
7918 #include <assert.h> 9447 #include <assert.h>
7919 /* Override any gcc2 internal prototype to avoid an error. */ 9448 /* Override any gcc2 internal prototype to avoid an error. */
7923 /* We use char because int might match the return type of a gcc2 9452 /* We use char because int might match the return type of a gcc2
7924 builtin and then its argument prototype would still apply. */ 9453 builtin and then its argument prototype would still apply. */
7925 char $ac_func (); 9454 char $ac_func ();
7926 char (*f) (); 9455 char (*f) ();
7927 9456
9457 #ifdef F77_DUMMY_MAIN
9458 # ifdef __cplusplus
9459 extern "C"
9460 # endif
9461 int F77_DUMMY_MAIN() { return 1; }
9462 #endif
7928 int 9463 int
7929 main () 9464 main ()
7930 { 9465 {
7931 /* The GNU C library defines this for functions which it implements 9466 /* The GNU C library defines this for functions which it implements
7932 to always fail with ENOSYS. Some functions are actually named 9467 to always fail with ENOSYS. Some functions are actually named
7940 ; 9475 ;
7941 return 0; 9476 return 0;
7942 } 9477 }
7943 _ACEOF 9478 _ACEOF
7944 rm -f conftest.$ac_objext conftest$ac_exeext 9479 rm -f conftest.$ac_objext conftest$ac_exeext
7945 if { (eval echo "$as_me:7945: \"$ac_link\"") >&5 9480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7946 (eval $ac_link) 2>&5 9481 (eval $ac_link) 2>&5
7947 ac_status=$? 9482 ac_status=$?
7948 echo "$as_me:7948: \$? = $ac_status" >&5 9483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949 (exit $ac_status); } && 9484 (exit $ac_status); } &&
7950 { ac_try='test -s conftest$ac_exeext' 9485 { ac_try='test -s conftest$ac_exeext'
7951 { (eval echo "$as_me:7951: \"$ac_try\"") >&5 9486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7952 (eval $ac_try) 2>&5 9487 (eval $ac_try) 2>&5
7953 ac_status=$? 9488 ac_status=$?
7954 echo "$as_me:7954: \$? = $ac_status" >&5 9489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955 (exit $ac_status); }; }; then 9490 (exit $ac_status); }; }; then
7956 eval "$as_ac_var=yes" 9491 eval "$as_ac_var=yes"
7957 else 9492 else
7958 echo "$as_me: failed program was:" >&5 9493 echo "$as_me: failed program was:" >&5
7959 cat conftest.$ac_ext >&5 9494 cat conftest.$ac_ext >&5
7960 eval "$as_ac_var=no" 9495 eval "$as_ac_var=no"
7961 fi 9496 fi
7962 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9497 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7963 fi 9498 fi
7964 echo "$as_me:7964: result: `eval echo '${'$as_ac_var'}'`" >&5 9499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7965 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 9500 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7966 if test `eval echo '${'$as_ac_var'}'` = yes; then 9501 if test `eval echo '${'$as_ac_var'}'` = yes; then
7967 9502
7968 cat >>confdefs.h <<EOF 9503 cat >>confdefs.h <<_ACEOF
7969 #define CRAY_STACKSEG_END $ac_func 9504 #define CRAY_STACKSEG_END $ac_func
7970 EOF 9505 _ACEOF
7971 9506
7972 break 9507 break
7973 fi 9508 fi
7974 9509
7975 done 9510 done
7976 fi 9511 fi
7977 9512
7978 echo "$as_me:7978: checking stack direction for C alloca" >&5 9513 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7979 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 9514 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
7980 if test "${ac_cv_c_stack_direction+set}" = set; then 9515 if test "${ac_cv_c_stack_direction+set}" = set; then
7981 echo $ECHO_N "(cached) $ECHO_C" >&6 9516 echo $ECHO_N "(cached) $ECHO_C" >&6
7982 else 9517 else
7983 if test "$cross_compiling" = yes; then 9518 if test "$cross_compiling" = yes; then
7984 ac_cv_c_stack_direction=0 9519 ac_cv_c_stack_direction=0
7985 else 9520 else
7986 cat >conftest.$ac_ext <<_ACEOF 9521 cat >conftest.$ac_ext <<_ACEOF
7987 #line 7987 "configure" 9522 #line $LINENO "configure"
7988 #include "confdefs.h" 9523 #include "confdefs.h"
7989 int 9524 int
7990 find_stack_direction () 9525 find_stack_direction ()
7991 { 9526 {
7992 static char *addr = 0; 9527 static char *addr = 0;
8005 { 9540 {
8006 exit (find_stack_direction () < 0); 9541 exit (find_stack_direction () < 0);
8007 } 9542 }
8008 _ACEOF 9543 _ACEOF
8009 rm -f conftest$ac_exeext 9544 rm -f conftest$ac_exeext
8010 if { (eval echo "$as_me:8010: \"$ac_link\"") >&5 9545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8011 (eval $ac_link) 2>&5 9546 (eval $ac_link) 2>&5
8012 ac_status=$? 9547 ac_status=$?
8013 echo "$as_me:8013: \$? = $ac_status" >&5 9548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9549 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8015 { (eval echo "$as_me:8015: \"$ac_try\"") >&5 9550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8016 (eval $ac_try) 2>&5 9551 (eval $ac_try) 2>&5
8017 ac_status=$? 9552 ac_status=$?
8018 echo "$as_me:8018: \$? = $ac_status" >&5 9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); }; }; then 9554 (exit $ac_status); }; }; then
8020 ac_cv_c_stack_direction=1 9555 ac_cv_c_stack_direction=1
8021 else 9556 else
8022 echo "$as_me: program exited with status $ac_status" >&5 9557 echo "$as_me: program exited with status $ac_status" >&5
8023 echo "$as_me: failed program was:" >&5 9558 echo "$as_me: failed program was:" >&5
8024 cat conftest.$ac_ext >&5 9559 cat conftest.$ac_ext >&5
9560 ( exit $ac_status )
8025 ac_cv_c_stack_direction=-1 9561 ac_cv_c_stack_direction=-1
8026 fi 9562 fi
8027 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9563 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8028 fi 9564 fi
8029 fi 9565 fi
8030 echo "$as_me:8030: result: $ac_cv_c_stack_direction" >&5 9566 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8031 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 9567 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8032 9568
8033 cat >>confdefs.h <<EOF 9569 cat >>confdefs.h <<_ACEOF
8034 #define STACK_DIRECTION $ac_cv_c_stack_direction 9570 #define STACK_DIRECTION $ac_cv_c_stack_direction
8035 EOF 9571 _ACEOF
8036 9572
8037 fi 9573
9574 fi
9575
8038 9576
8039 # fmod, logb, and frexp are found in -lm on most systems. 9577 # fmod, logb, and frexp are found in -lm on most systems.
8040 # On HPUX 9.01, -lm does not contain logb, so check for sqrt. 9578 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
8041 9579
8042 echo "$as_me:8042: checking for sqrt in -lm" >&5 9580 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
8043 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6 9581 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
8044 if test "${ac_cv_lib_m_sqrt+set}" = set; then 9582 if test "${ac_cv_lib_m_sqrt+set}" = set; then
8045 echo $ECHO_N "(cached) $ECHO_C" >&6 9583 echo $ECHO_N "(cached) $ECHO_C" >&6
8046 else 9584 else
8047 ac_check_lib_save_LIBS=$LIBS 9585 ac_check_lib_save_LIBS=$LIBS
8048 LIBS="-lm $LIBS" 9586 LIBS="-lm $LIBS"
8049 cat >conftest.$ac_ext <<_ACEOF 9587 cat >conftest.$ac_ext <<_ACEOF
8050 #line 8050 "configure" 9588 #line $LINENO "configure"
8051 #include "confdefs.h" 9589 #include "confdefs.h"
8052 9590
8053 /* Override any gcc2 internal prototype to avoid an error. */ 9591 /* Override any gcc2 internal prototype to avoid an error. */
8054 #ifdef __cplusplus 9592 #ifdef __cplusplus
8055 extern "C" 9593 extern "C"
8056 #endif 9594 #endif
8057 /* We use char because int might match the return type of a gcc2 9595 /* We use char because int might match the return type of a gcc2
8058 builtin and then its argument prototype would still apply. */ 9596 builtin and then its argument prototype would still apply. */
8059 char sqrt (); 9597 char sqrt ();
9598 #ifdef F77_DUMMY_MAIN
9599 # ifdef __cplusplus
9600 extern "C"
9601 # endif
9602 int F77_DUMMY_MAIN() { return 1; }
9603 #endif
8060 int 9604 int
8061 main () 9605 main ()
8062 { 9606 {
8063 sqrt (); 9607 sqrt ();
8064 ; 9608 ;
8065 return 0; 9609 return 0;
8066 } 9610 }
8067 _ACEOF 9611 _ACEOF
8068 rm -f conftest.$ac_objext conftest$ac_exeext 9612 rm -f conftest.$ac_objext conftest$ac_exeext
8069 if { (eval echo "$as_me:8069: \"$ac_link\"") >&5 9613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8070 (eval $ac_link) 2>&5 9614 (eval $ac_link) 2>&5
8071 ac_status=$? 9615 ac_status=$?
8072 echo "$as_me:8072: \$? = $ac_status" >&5 9616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073 (exit $ac_status); } && 9617 (exit $ac_status); } &&
8074 { ac_try='test -s conftest$ac_exeext' 9618 { ac_try='test -s conftest$ac_exeext'
8075 { (eval echo "$as_me:8075: \"$ac_try\"") >&5 9619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8076 (eval $ac_try) 2>&5 9620 (eval $ac_try) 2>&5
8077 ac_status=$? 9621 ac_status=$?
8078 echo "$as_me:8078: \$? = $ac_status" >&5 9622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079 (exit $ac_status); }; }; then 9623 (exit $ac_status); }; }; then
8080 ac_cv_lib_m_sqrt=yes 9624 ac_cv_lib_m_sqrt=yes
8081 else 9625 else
8082 echo "$as_me: failed program was:" >&5 9626 echo "$as_me: failed program was:" >&5
8083 cat conftest.$ac_ext >&5 9627 cat conftest.$ac_ext >&5
8084 ac_cv_lib_m_sqrt=no 9628 ac_cv_lib_m_sqrt=no
8085 fi 9629 fi
8086 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9630 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8087 LIBS=$ac_check_lib_save_LIBS 9631 LIBS=$ac_check_lib_save_LIBS
8088 fi 9632 fi
8089 echo "$as_me:8089: result: $ac_cv_lib_m_sqrt" >&5 9633 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
8090 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6 9634 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
8091 if test $ac_cv_lib_m_sqrt = yes; then 9635 if test $ac_cv_lib_m_sqrt = yes; then
8092 cat >>confdefs.h <<EOF 9636 cat >>confdefs.h <<_ACEOF
8093 #define HAVE_LIBM 1 9637 #define HAVE_LIBM 1
8094 EOF 9638 _ACEOF
8095 9639
8096 LIBS="-lm $LIBS" 9640 LIBS="-lm $LIBS"
8097 9641
8098 fi 9642 fi
8099 9643
9644
8100 # Check for mail-locking functions in a "mail" library 9645 # Check for mail-locking functions in a "mail" library
8101 9646
8102 echo "$as_me:8102: checking for maillock in -lmail" >&5 9647 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
8103 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6 9648 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
8104 if test "${ac_cv_lib_mail_maillock+set}" = set; then 9649 if test "${ac_cv_lib_mail_maillock+set}" = set; then
8105 echo $ECHO_N "(cached) $ECHO_C" >&6 9650 echo $ECHO_N "(cached) $ECHO_C" >&6
8106 else 9651 else
8107 ac_check_lib_save_LIBS=$LIBS 9652 ac_check_lib_save_LIBS=$LIBS
8108 LIBS="-lmail $LIBS" 9653 LIBS="-lmail $LIBS"
8109 cat >conftest.$ac_ext <<_ACEOF 9654 cat >conftest.$ac_ext <<_ACEOF
8110 #line 8110 "configure" 9655 #line $LINENO "configure"
8111 #include "confdefs.h" 9656 #include "confdefs.h"
8112 9657
8113 /* Override any gcc2 internal prototype to avoid an error. */ 9658 /* Override any gcc2 internal prototype to avoid an error. */
8114 #ifdef __cplusplus 9659 #ifdef __cplusplus
8115 extern "C" 9660 extern "C"
8116 #endif 9661 #endif
8117 /* We use char because int might match the return type of a gcc2 9662 /* We use char because int might match the return type of a gcc2
8118 builtin and then its argument prototype would still apply. */ 9663 builtin and then its argument prototype would still apply. */
8119 char maillock (); 9664 char maillock ();
9665 #ifdef F77_DUMMY_MAIN
9666 # ifdef __cplusplus
9667 extern "C"
9668 # endif
9669 int F77_DUMMY_MAIN() { return 1; }
9670 #endif
8120 int 9671 int
8121 main () 9672 main ()
8122 { 9673 {
8123 maillock (); 9674 maillock ();
8124 ; 9675 ;
8125 return 0; 9676 return 0;
8126 } 9677 }
8127 _ACEOF 9678 _ACEOF
8128 rm -f conftest.$ac_objext conftest$ac_exeext 9679 rm -f conftest.$ac_objext conftest$ac_exeext
8129 if { (eval echo "$as_me:8129: \"$ac_link\"") >&5 9680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8130 (eval $ac_link) 2>&5 9681 (eval $ac_link) 2>&5
8131 ac_status=$? 9682 ac_status=$?
8132 echo "$as_me:8132: \$? = $ac_status" >&5 9683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); } && 9684 (exit $ac_status); } &&
8134 { ac_try='test -s conftest$ac_exeext' 9685 { ac_try='test -s conftest$ac_exeext'
8135 { (eval echo "$as_me:8135: \"$ac_try\"") >&5 9686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8136 (eval $ac_try) 2>&5 9687 (eval $ac_try) 2>&5
8137 ac_status=$? 9688 ac_status=$?
8138 echo "$as_me:8138: \$? = $ac_status" >&5 9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 (exit $ac_status); }; }; then 9690 (exit $ac_status); }; }; then
8140 ac_cv_lib_mail_maillock=yes 9691 ac_cv_lib_mail_maillock=yes
8141 else 9692 else
8142 echo "$as_me: failed program was:" >&5 9693 echo "$as_me: failed program was:" >&5
8143 cat conftest.$ac_ext >&5 9694 cat conftest.$ac_ext >&5
8144 ac_cv_lib_mail_maillock=no 9695 ac_cv_lib_mail_maillock=no
8145 fi 9696 fi
8146 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9697 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8147 LIBS=$ac_check_lib_save_LIBS 9698 LIBS=$ac_check_lib_save_LIBS
8148 fi 9699 fi
8149 echo "$as_me:8149: result: $ac_cv_lib_mail_maillock" >&5 9700 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
8150 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6 9701 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
8151 if test $ac_cv_lib_mail_maillock = yes; then 9702 if test $ac_cv_lib_mail_maillock = yes; then
8152 cat >>confdefs.h <<EOF 9703 cat >>confdefs.h <<_ACEOF
8153 #define HAVE_LIBMAIL 1 9704 #define HAVE_LIBMAIL 1
8154 EOF 9705 _ACEOF
8155 9706
8156 LIBS="-lmail $LIBS" 9707 LIBS="-lmail $LIBS"
8157 9708
8158 fi 9709 fi
8159 9710
8160 echo "$as_me:8160: checking for maillock in -llockfile" >&5 9711
9712 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
8161 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6 9713 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
8162 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then 9714 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
8163 echo $ECHO_N "(cached) $ECHO_C" >&6 9715 echo $ECHO_N "(cached) $ECHO_C" >&6
8164 else 9716 else
8165 ac_check_lib_save_LIBS=$LIBS 9717 ac_check_lib_save_LIBS=$LIBS
8166 LIBS="-llockfile $LIBS" 9718 LIBS="-llockfile $LIBS"
8167 cat >conftest.$ac_ext <<_ACEOF 9719 cat >conftest.$ac_ext <<_ACEOF
8168 #line 8168 "configure" 9720 #line $LINENO "configure"
8169 #include "confdefs.h" 9721 #include "confdefs.h"
8170 9722
8171 /* Override any gcc2 internal prototype to avoid an error. */ 9723 /* Override any gcc2 internal prototype to avoid an error. */
8172 #ifdef __cplusplus 9724 #ifdef __cplusplus
8173 extern "C" 9725 extern "C"
8174 #endif 9726 #endif
8175 /* We use char because int might match the return type of a gcc2 9727 /* We use char because int might match the return type of a gcc2
8176 builtin and then its argument prototype would still apply. */ 9728 builtin and then its argument prototype would still apply. */
8177 char maillock (); 9729 char maillock ();
9730 #ifdef F77_DUMMY_MAIN
9731 # ifdef __cplusplus
9732 extern "C"
9733 # endif
9734 int F77_DUMMY_MAIN() { return 1; }
9735 #endif
8178 int 9736 int
8179 main () 9737 main ()
8180 { 9738 {
8181 maillock (); 9739 maillock ();
8182 ; 9740 ;
8183 return 0; 9741 return 0;
8184 } 9742 }
8185 _ACEOF 9743 _ACEOF
8186 rm -f conftest.$ac_objext conftest$ac_exeext 9744 rm -f conftest.$ac_objext conftest$ac_exeext
8187 if { (eval echo "$as_me:8187: \"$ac_link\"") >&5 9745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8188 (eval $ac_link) 2>&5 9746 (eval $ac_link) 2>&5
8189 ac_status=$? 9747 ac_status=$?
8190 echo "$as_me:8190: \$? = $ac_status" >&5 9748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191 (exit $ac_status); } && 9749 (exit $ac_status); } &&
8192 { ac_try='test -s conftest$ac_exeext' 9750 { ac_try='test -s conftest$ac_exeext'
8193 { (eval echo "$as_me:8193: \"$ac_try\"") >&5 9751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8194 (eval $ac_try) 2>&5 9752 (eval $ac_try) 2>&5
8195 ac_status=$? 9753 ac_status=$?
8196 echo "$as_me:8196: \$? = $ac_status" >&5 9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197 (exit $ac_status); }; }; then 9755 (exit $ac_status); }; }; then
8198 ac_cv_lib_lockfile_maillock=yes 9756 ac_cv_lib_lockfile_maillock=yes
8199 else 9757 else
8200 echo "$as_me: failed program was:" >&5 9758 echo "$as_me: failed program was:" >&5
8201 cat conftest.$ac_ext >&5 9759 cat conftest.$ac_ext >&5
8202 ac_cv_lib_lockfile_maillock=no 9760 ac_cv_lib_lockfile_maillock=no
8203 fi 9761 fi
8204 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9762 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8205 LIBS=$ac_check_lib_save_LIBS 9763 LIBS=$ac_check_lib_save_LIBS
8206 fi 9764 fi
8207 echo "$as_me:8207: result: $ac_cv_lib_lockfile_maillock" >&5 9765 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
8208 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6 9766 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
8209 if test $ac_cv_lib_lockfile_maillock = yes; then 9767 if test $ac_cv_lib_lockfile_maillock = yes; then
8210 cat >>confdefs.h <<EOF 9768 cat >>confdefs.h <<_ACEOF
8211 #define HAVE_LIBLOCKFILE 1 9769 #define HAVE_LIBLOCKFILE 1
8212 EOF 9770 _ACEOF
8213 9771
8214 LIBS="-llockfile $LIBS" 9772 LIBS="-llockfile $LIBS"
8215 9773
8216 fi 9774 fi
8217 9775
8219 # locking (e.g. Debian). If we couldn't link against liblockfile 9777 # locking (e.g. Debian). If we couldn't link against liblockfile
8220 # (no liblockfile.a installed), ensure that we don't need to. 9778 # (no liblockfile.a installed), ensure that we don't need to.
8221 if test "$ac_cv_lib_lockfile_maillock" = no; then 9779 if test "$ac_cv_lib_lockfile_maillock" = no; then
8222 # Extract the first word of "liblockfile.so", so it can be a program name with args. 9780 # Extract the first word of "liblockfile.so", so it can be a program name with args.
8223 set dummy liblockfile.so; ac_word=$2 9781 set dummy liblockfile.so; ac_word=$2
8224 echo "$as_me:8224: checking for $ac_word" >&5 9782 echo "$as_me:$LINENO: checking for $ac_word" >&5
8225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 9783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8226 if test "${ac_cv_prog_liblockfile+set}" = set; then 9784 if test "${ac_cv_prog_liblockfile+set}" = set; then
8227 echo $ECHO_N "(cached) $ECHO_C" >&6 9785 echo $ECHO_N "(cached) $ECHO_C" >&6
8228 else 9786 else
8229 if test -n "$liblockfile"; then 9787 if test -n "$liblockfile"; then
8230 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. 9788 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
8231 else 9789 else
8232 ac_save_IFS=$IFS; IFS=$ac_path_separator 9790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8233 ac_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH" 9791 for as_dir in /usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH
8234 for ac_dir in $ac_dummy; do 9792 do
8235 IFS=$ac_save_IFS 9793 IFS=$as_save_IFS
8236 test -z "$ac_dir" && ac_dir=. 9794 test -z "$as_dir" && as_dir=.
8237 $as_executable_p "$ac_dir/$ac_word" || continue 9795 for ac_exec_ext in '' $ac_executable_extensions; do
8238 ac_cv_prog_liblockfile="yes" 9796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8239 echo "$as_me:8239: found $ac_dir/$ac_word" >&5 9797 ac_cv_prog_liblockfile="yes"
8240 break 9798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9799 break 2
9800 fi
9801 done
8241 done 9802 done
8242 9803
8243 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no" 9804 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
8244 fi 9805 fi
8245 fi 9806 fi
8246 liblockfile=$ac_cv_prog_liblockfile 9807 liblockfile=$ac_cv_prog_liblockfile
8247 if test -n "$liblockfile"; then 9808 if test -n "$liblockfile"; then
8248 echo "$as_me:8248: result: $liblockfile" >&5 9809 echo "$as_me:$LINENO: result: $liblockfile" >&5
8249 echo "${ECHO_T}$liblockfile" >&6 9810 echo "${ECHO_T}$liblockfile" >&6
8250 else 9811 else
8251 echo "$as_me:8251: result: no" >&5 9812 echo "$as_me:$LINENO: result: no" >&5
8252 echo "${ECHO_T}no" >&6 9813 echo "${ECHO_T}no" >&6
8253 fi 9814 fi
8254 9815
8255 if test $ac_cv_prog_liblockfile = yes; then 9816 if test $ac_cv_prog_liblockfile = yes; then
8256 { { echo "$as_me:8256: error: Shared liblockfile found but can't link against it. 9817 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
8257 This probably means that movemail could lose mail. 9818 This probably means that movemail could lose mail.
8258 There may be a \`development' package to install containing liblockfile." >&5 9819 There may be a \`development' package to install containing liblockfile." >&5
8259 echo "$as_me: error: Shared liblockfile found but can't link against it. 9820 echo "$as_me: error: Shared liblockfile found but can't link against it.
8260 This probably means that movemail could lose mail. 9821 This probably means that movemail could lose mail.
8261 There may be a \`development' package to install containing liblockfile." >&2;} 9822 There may be a \`development' package to install containing liblockfile." >&2;}
8262 { (exit 1); exit 1; }; } 9823 { (exit 1); exit 1; }; }
8263 else cat >>confdefs.h <<\EOF 9824 else cat >>confdefs.h <<\_ACEOF
8264 #define LIBMAIL -llockfile 9825 #define LIBMAIL -llockfile
8265 EOF 9826 _ACEOF
8266 9827
8267 fi 9828 fi
8268 else : 9829 else :
8269 fi 9830 fi
8270 9831
8271 for ac_func in touchlock 9832 for ac_func in touchlock
8272 do 9833 do
8273 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9834 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8274 echo "$as_me:8274: checking for $ac_func" >&5 9835 echo "$as_me:$LINENO: checking for $ac_func" >&5
8275 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9836 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8276 if eval "test \"\${$as_ac_var+set}\" = set"; then 9837 if eval "test \"\${$as_ac_var+set}\" = set"; then
8277 echo $ECHO_N "(cached) $ECHO_C" >&6 9838 echo $ECHO_N "(cached) $ECHO_C" >&6
8278 else 9839 else
8279 cat >conftest.$ac_ext <<_ACEOF 9840 cat >conftest.$ac_ext <<_ACEOF
8280 #line 8280 "configure" 9841 #line $LINENO "configure"
8281 #include "confdefs.h" 9842 #include "confdefs.h"
8282 /* System header to define __stub macros and hopefully few prototypes, 9843 /* System header to define __stub macros and hopefully few prototypes,
8283 which can conflict with char $ac_func (); below. */ 9844 which can conflict with char $ac_func (); below. */
8284 #include <assert.h> 9845 #include <assert.h>
8285 /* Override any gcc2 internal prototype to avoid an error. */ 9846 /* Override any gcc2 internal prototype to avoid an error. */
8289 /* We use char because int might match the return type of a gcc2 9850 /* We use char because int might match the return type of a gcc2
8290 builtin and then its argument prototype would still apply. */ 9851 builtin and then its argument prototype would still apply. */
8291 char $ac_func (); 9852 char $ac_func ();
8292 char (*f) (); 9853 char (*f) ();
8293 9854
9855 #ifdef F77_DUMMY_MAIN
9856 # ifdef __cplusplus
9857 extern "C"
9858 # endif
9859 int F77_DUMMY_MAIN() { return 1; }
9860 #endif
8294 int 9861 int
8295 main () 9862 main ()
8296 { 9863 {
8297 /* The GNU C library defines this for functions which it implements 9864 /* The GNU C library defines this for functions which it implements
8298 to always fail with ENOSYS. Some functions are actually named 9865 to always fail with ENOSYS. Some functions are actually named
8306 ; 9873 ;
8307 return 0; 9874 return 0;
8308 } 9875 }
8309 _ACEOF 9876 _ACEOF
8310 rm -f conftest.$ac_objext conftest$ac_exeext 9877 rm -f conftest.$ac_objext conftest$ac_exeext
8311 if { (eval echo "$as_me:8311: \"$ac_link\"") >&5 9878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8312 (eval $ac_link) 2>&5 9879 (eval $ac_link) 2>&5
8313 ac_status=$? 9880 ac_status=$?
8314 echo "$as_me:8314: \$? = $ac_status" >&5 9881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315 (exit $ac_status); } && 9882 (exit $ac_status); } &&
8316 { ac_try='test -s conftest$ac_exeext' 9883 { ac_try='test -s conftest$ac_exeext'
8317 { (eval echo "$as_me:8317: \"$ac_try\"") >&5 9884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8318 (eval $ac_try) 2>&5 9885 (eval $ac_try) 2>&5
8319 ac_status=$? 9886 ac_status=$?
8320 echo "$as_me:8320: \$? = $ac_status" >&5 9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321 (exit $ac_status); }; }; then 9888 (exit $ac_status); }; }; then
8322 eval "$as_ac_var=yes" 9889 eval "$as_ac_var=yes"
8323 else 9890 else
8324 echo "$as_me: failed program was:" >&5 9891 echo "$as_me: failed program was:" >&5
8325 cat conftest.$ac_ext >&5 9892 cat conftest.$ac_ext >&5
8326 eval "$as_ac_var=no" 9893 eval "$as_ac_var=no"
8327 fi 9894 fi
8328 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9895 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8329 fi 9896 fi
8330 echo "$as_me:8330: result: `eval echo '${'$as_ac_var'}'`" >&5 9897 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8331 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 9898 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8332 if test `eval echo '${'$as_ac_var'}'` = yes; then 9899 if test `eval echo '${'$as_ac_var'}'` = yes; then
8333 cat >>confdefs.h <<EOF 9900 cat >>confdefs.h <<_ACEOF
8334 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9901 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8335 EOF 9902 _ACEOF
8336 9903
8337 fi 9904 fi
8338 done 9905 done
9906
8339 9907
8340 for ac_header in maillock.h 9908 for ac_header in maillock.h
8341 do 9909 do
8342 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 9910 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8343 echo "$as_me:8343: checking for $ac_header" >&5 9911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9912 echo "$as_me:$LINENO: checking for $ac_header" >&5
8344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 9913 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8345 if eval "test \"\${$as_ac_Header+set}\" = set"; then 9914 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8346 echo $ECHO_N "(cached) $ECHO_C" >&6 9915 echo $ECHO_N "(cached) $ECHO_C" >&6
8347 else 9916 fi
8348 cat >conftest.$ac_ext <<_ACEOF 9917 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8349 #line 8349 "configure" 9918 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8350 #include "confdefs.h" 9919 else
9920 # Is the header compilable?
9921 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9922 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9923 cat >conftest.$ac_ext <<_ACEOF
9924 #line $LINENO "configure"
9925 #include "confdefs.h"
9926 $ac_includes_default
8351 #include <$ac_header> 9927 #include <$ac_header>
8352 _ACEOF 9928 _ACEOF
8353 if { (eval echo "$as_me:8353: \"$ac_cpp conftest.$ac_ext\"") >&5 9929 rm -f conftest.$ac_objext
9930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9931 (eval $ac_compile) 2>&5
9932 ac_status=$?
9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); } &&
9935 { ac_try='test -s conftest.$ac_objext'
9936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9937 (eval $ac_try) 2>&5
9938 ac_status=$?
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); }; }; then
9941 ac_header_compiler=yes
9942 else
9943 echo "$as_me: failed program was:" >&5
9944 cat conftest.$ac_ext >&5
9945 ac_header_compiler=no
9946 fi
9947 rm -f conftest.$ac_objext conftest.$ac_ext
9948 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9949 echo "${ECHO_T}$ac_header_compiler" >&6
9950
9951 # Is the header present?
9952 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9953 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9954 cat >conftest.$ac_ext <<_ACEOF
9955 #line $LINENO "configure"
9956 #include "confdefs.h"
9957 #include <$ac_header>
9958 _ACEOF
9959 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8354 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 9960 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8355 ac_status=$? 9961 ac_status=$?
8356 egrep -v '^ *\+' conftest.er1 >conftest.err 9962 egrep -v '^ *\+' conftest.er1 >conftest.err
8357 rm -f conftest.er1 9963 rm -f conftest.er1
8358 cat conftest.err >&5 9964 cat conftest.err >&5
8359 echo "$as_me:8359: \$? = $ac_status" >&5 9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360 (exit $ac_status); } >/dev/null; then 9966 (exit $ac_status); } >/dev/null; then
8361 if test -s conftest.err; then 9967 if test -s conftest.err; then
8362 ac_cpp_err=$ac_c_preproc_warn_flag 9968 ac_cpp_err=$ac_c_preproc_warn_flag
8363 else 9969 else
8364 ac_cpp_err= 9970 ac_cpp_err=
8365 fi 9971 fi
8366 else 9972 else
8367 ac_cpp_err=yes 9973 ac_cpp_err=yes
8368 fi 9974 fi
8369 if test -z "$ac_cpp_err"; then 9975 if test -z "$ac_cpp_err"; then
8370 eval "$as_ac_Header=yes" 9976 ac_header_preproc=yes
8371 else 9977 else
8372 echo "$as_me: failed program was:" >&5 9978 echo "$as_me: failed program was:" >&5
8373 cat conftest.$ac_ext >&5 9979 cat conftest.$ac_ext >&5
8374 eval "$as_ac_Header=no" 9980 ac_header_preproc=no
8375 fi 9981 fi
8376 rm -f conftest.err conftest.$ac_ext 9982 rm -f conftest.err conftest.$ac_ext
8377 fi 9983 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8378 echo "$as_me:8378: result: `eval echo '${'$as_ac_Header'}'`" >&5 9984 echo "${ECHO_T}$ac_header_preproc" >&6
9985
9986 # So? What about this header?
9987 case $ac_header_compiler:$ac_header_preproc in
9988 yes:no )
9989 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9990 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9991 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9992 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9993 no:yes )
9994 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9995 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9996 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9997 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9999 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10000 esac
10001 echo "$as_me:$LINENO: checking for $ac_header" >&5
10002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10003 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10004 echo $ECHO_N "(cached) $ECHO_C" >&6
10005 else
10006 eval "$as_ac_Header=$ac_header_preproc"
10007 fi
10008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8379 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10009 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10010
10011 fi
8380 if test `eval echo '${'$as_ac_Header'}'` = yes; then 10012 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8381 cat >>confdefs.h <<EOF 10013 cat >>confdefs.h <<_ACEOF
8382 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 10014 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8383 EOF 10015 _ACEOF
8384 10016
8385 fi 10017 fi
10018
8386 done 10019 done
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
8387 10076
8388 for ac_func in gethostname getdomainname dup2 \ 10077 for ac_func in gethostname getdomainname dup2 \
8389 rename closedir mkdir rmdir sysinfo \ 10078 rename closedir mkdir rmdir sysinfo \
8390 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \ 10079 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
8391 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ 10080 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
8392 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \ 10081 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
8393 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \ 10082 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
8394 sendto recvfrom getsockopt setsockopt getsockname getpeername \ 10083 sendto recvfrom getsockopt setsockopt getsockname getpeername \
8395 gai_strerror mkstemp 10084 gai_strerror mkstemp getline getdelim
8396 do 10085 do
8397 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10086 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8398 echo "$as_me:8398: checking for $ac_func" >&5 10087 echo "$as_me:$LINENO: checking for $ac_func" >&5
8399 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 10088 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8400 if eval "test \"\${$as_ac_var+set}\" = set"; then 10089 if eval "test \"\${$as_ac_var+set}\" = set"; then
8401 echo $ECHO_N "(cached) $ECHO_C" >&6 10090 echo $ECHO_N "(cached) $ECHO_C" >&6
8402 else 10091 else
8403 cat >conftest.$ac_ext <<_ACEOF 10092 cat >conftest.$ac_ext <<_ACEOF
8404 #line 8404 "configure" 10093 #line $LINENO "configure"
8405 #include "confdefs.h" 10094 #include "confdefs.h"
8406 /* System header to define __stub macros and hopefully few prototypes, 10095 /* System header to define __stub macros and hopefully few prototypes,
8407 which can conflict with char $ac_func (); below. */ 10096 which can conflict with char $ac_func (); below. */
8408 #include <assert.h> 10097 #include <assert.h>
8409 /* Override any gcc2 internal prototype to avoid an error. */ 10098 /* Override any gcc2 internal prototype to avoid an error. */
8413 /* We use char because int might match the return type of a gcc2 10102 /* We use char because int might match the return type of a gcc2
8414 builtin and then its argument prototype would still apply. */ 10103 builtin and then its argument prototype would still apply. */
8415 char $ac_func (); 10104 char $ac_func ();
8416 char (*f) (); 10105 char (*f) ();
8417 10106
10107 #ifdef F77_DUMMY_MAIN
10108 # ifdef __cplusplus
10109 extern "C"
10110 # endif
10111 int F77_DUMMY_MAIN() { return 1; }
10112 #endif
8418 int 10113 int
8419 main () 10114 main ()
8420 { 10115 {
8421 /* The GNU C library defines this for functions which it implements 10116 /* The GNU C library defines this for functions which it implements
8422 to always fail with ENOSYS. Some functions are actually named 10117 to always fail with ENOSYS. Some functions are actually named
8430 ; 10125 ;
8431 return 0; 10126 return 0;
8432 } 10127 }
8433 _ACEOF 10128 _ACEOF
8434 rm -f conftest.$ac_objext conftest$ac_exeext 10129 rm -f conftest.$ac_objext conftest$ac_exeext
8435 if { (eval echo "$as_me:8435: \"$ac_link\"") >&5 10130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8436 (eval $ac_link) 2>&5 10131 (eval $ac_link) 2>&5
8437 ac_status=$? 10132 ac_status=$?
8438 echo "$as_me:8438: \$? = $ac_status" >&5 10133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439 (exit $ac_status); } && 10134 (exit $ac_status); } &&
8440 { ac_try='test -s conftest$ac_exeext' 10135 { ac_try='test -s conftest$ac_exeext'
8441 { (eval echo "$as_me:8441: \"$ac_try\"") >&5 10136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8442 (eval $ac_try) 2>&5 10137 (eval $ac_try) 2>&5
8443 ac_status=$? 10138 ac_status=$?
8444 echo "$as_me:8444: \$? = $ac_status" >&5 10139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445 (exit $ac_status); }; }; then 10140 (exit $ac_status); }; }; then
8446 eval "$as_ac_var=yes" 10141 eval "$as_ac_var=yes"
8447 else 10142 else
8448 echo "$as_me: failed program was:" >&5 10143 echo "$as_me: failed program was:" >&5
8449 cat conftest.$ac_ext >&5 10144 cat conftest.$ac_ext >&5
8450 eval "$as_ac_var=no" 10145 eval "$as_ac_var=no"
8451 fi 10146 fi
8452 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10147 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8453 fi 10148 fi
8454 echo "$as_me:8454: result: `eval echo '${'$as_ac_var'}'`" >&5 10149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8455 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 10150 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8456 if test `eval echo '${'$as_ac_var'}'` = yes; then 10151 if test `eval echo '${'$as_ac_var'}'` = yes; then
8457 cat >>confdefs.h <<EOF 10152 cat >>confdefs.h <<_ACEOF
8458 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10153 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8459 EOF 10154 _ACEOF
8460 10155
8461 fi 10156 fi
8462 done 10157 done
10158
10159
8463 10160
8464 for ac_header in sys/un.h 10161 for ac_header in sys/un.h
8465 do 10162 do
8466 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10163 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8467 echo "$as_me:8467: checking for $ac_header" >&5 10164 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10165 echo "$as_me:$LINENO: checking for $ac_header" >&5
8468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8469 if eval "test \"\${$as_ac_Header+set}\" = set"; then 10167 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8470 echo $ECHO_N "(cached) $ECHO_C" >&6 10168 echo $ECHO_N "(cached) $ECHO_C" >&6
8471 else 10169 fi
8472 cat >conftest.$ac_ext <<_ACEOF 10170 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8473 #line 8473 "configure" 10171 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8474 #include "confdefs.h" 10172 else
10173 # Is the header compilable?
10174 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10175 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10176 cat >conftest.$ac_ext <<_ACEOF
10177 #line $LINENO "configure"
10178 #include "confdefs.h"
10179 $ac_includes_default
8475 #include <$ac_header> 10180 #include <$ac_header>
8476 _ACEOF 10181 _ACEOF
8477 if { (eval echo "$as_me:8477: \"$ac_cpp conftest.$ac_ext\"") >&5 10182 rm -f conftest.$ac_objext
10183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10184 (eval $ac_compile) 2>&5
10185 ac_status=$?
10186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187 (exit $ac_status); } &&
10188 { ac_try='test -s conftest.$ac_objext'
10189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10190 (eval $ac_try) 2>&5
10191 ac_status=$?
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); }; }; then
10194 ac_header_compiler=yes
10195 else
10196 echo "$as_me: failed program was:" >&5
10197 cat conftest.$ac_ext >&5
10198 ac_header_compiler=no
10199 fi
10200 rm -f conftest.$ac_objext conftest.$ac_ext
10201 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10202 echo "${ECHO_T}$ac_header_compiler" >&6
10203
10204 # Is the header present?
10205 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10206 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10207 cat >conftest.$ac_ext <<_ACEOF
10208 #line $LINENO "configure"
10209 #include "confdefs.h"
10210 #include <$ac_header>
10211 _ACEOF
10212 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8478 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 10213 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8479 ac_status=$? 10214 ac_status=$?
8480 egrep -v '^ *\+' conftest.er1 >conftest.err 10215 egrep -v '^ *\+' conftest.er1 >conftest.err
8481 rm -f conftest.er1 10216 rm -f conftest.er1
8482 cat conftest.err >&5 10217 cat conftest.err >&5
8483 echo "$as_me:8483: \$? = $ac_status" >&5 10218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 (exit $ac_status); } >/dev/null; then 10219 (exit $ac_status); } >/dev/null; then
8485 if test -s conftest.err; then 10220 if test -s conftest.err; then
8486 ac_cpp_err=$ac_c_preproc_warn_flag 10221 ac_cpp_err=$ac_c_preproc_warn_flag
8487 else 10222 else
8488 ac_cpp_err= 10223 ac_cpp_err=
8489 fi 10224 fi
8490 else 10225 else
8491 ac_cpp_err=yes 10226 ac_cpp_err=yes
8492 fi 10227 fi
8493 if test -z "$ac_cpp_err"; then 10228 if test -z "$ac_cpp_err"; then
8494 eval "$as_ac_Header=yes" 10229 ac_header_preproc=yes
8495 else 10230 else
8496 echo "$as_me: failed program was:" >&5 10231 echo "$as_me: failed program was:" >&5
8497 cat conftest.$ac_ext >&5 10232 cat conftest.$ac_ext >&5
8498 eval "$as_ac_Header=no" 10233 ac_header_preproc=no
8499 fi 10234 fi
8500 rm -f conftest.err conftest.$ac_ext 10235 rm -f conftest.err conftest.$ac_ext
8501 fi 10236 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8502 echo "$as_me:8502: result: `eval echo '${'$as_ac_Header'}'`" >&5 10237 echo "${ECHO_T}$ac_header_preproc" >&6
10238
10239 # So? What about this header?
10240 case $ac_header_compiler:$ac_header_preproc in
10241 yes:no )
10242 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10243 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10244 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10245 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10246 no:yes )
10247 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10248 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10249 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10250 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10252 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10253 esac
10254 echo "$as_me:$LINENO: checking for $ac_header" >&5
10255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10257 echo $ECHO_N "(cached) $ECHO_C" >&6
10258 else
10259 eval "$as_ac_Header=$ac_header_preproc"
10260 fi
10261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8503 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10262 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10263
10264 fi
8504 if test `eval echo '${'$as_ac_Header'}'` = yes; then 10265 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8505 cat >>confdefs.h <<EOF 10266 cat >>confdefs.h <<_ACEOF
8506 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 10267 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8507 EOF 10268 _ACEOF
8508 10269
8509 fi 10270 fi
10271
8510 done 10272 done
10273
10274
10275
8511 10276
8512 for ac_header in sys/time.h unistd.h 10277 for ac_header in sys/time.h unistd.h
8513 do 10278 do
8514 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10279 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8515 echo "$as_me:8515: checking for $ac_header" >&5 10280 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10281 echo "$as_me:$LINENO: checking for $ac_header" >&5
8516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8517 if eval "test \"\${$as_ac_Header+set}\" = set"; then 10283 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8518 echo $ECHO_N "(cached) $ECHO_C" >&6 10284 echo $ECHO_N "(cached) $ECHO_C" >&6
8519 else 10285 fi
8520 cat >conftest.$ac_ext <<_ACEOF 10286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8521 #line 8521 "configure" 10287 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8522 #include "confdefs.h" 10288 else
10289 # Is the header compilable?
10290 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10291 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10292 cat >conftest.$ac_ext <<_ACEOF
10293 #line $LINENO "configure"
10294 #include "confdefs.h"
10295 $ac_includes_default
8523 #include <$ac_header> 10296 #include <$ac_header>
8524 _ACEOF 10297 _ACEOF
8525 if { (eval echo "$as_me:8525: \"$ac_cpp conftest.$ac_ext\"") >&5 10298 rm -f conftest.$ac_objext
10299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10300 (eval $ac_compile) 2>&5
10301 ac_status=$?
10302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303 (exit $ac_status); } &&
10304 { ac_try='test -s conftest.$ac_objext'
10305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10306 (eval $ac_try) 2>&5
10307 ac_status=$?
10308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309 (exit $ac_status); }; }; then
10310 ac_header_compiler=yes
10311 else
10312 echo "$as_me: failed program was:" >&5
10313 cat conftest.$ac_ext >&5
10314 ac_header_compiler=no
10315 fi
10316 rm -f conftest.$ac_objext conftest.$ac_ext
10317 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10318 echo "${ECHO_T}$ac_header_compiler" >&6
10319
10320 # Is the header present?
10321 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10322 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10323 cat >conftest.$ac_ext <<_ACEOF
10324 #line $LINENO "configure"
10325 #include "confdefs.h"
10326 #include <$ac_header>
10327 _ACEOF
10328 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8526 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 10329 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8527 ac_status=$? 10330 ac_status=$?
8528 egrep -v '^ *\+' conftest.er1 >conftest.err 10331 egrep -v '^ *\+' conftest.er1 >conftest.err
8529 rm -f conftest.er1 10332 rm -f conftest.er1
8530 cat conftest.err >&5 10333 cat conftest.err >&5
8531 echo "$as_me:8531: \$? = $ac_status" >&5 10334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532 (exit $ac_status); } >/dev/null; then 10335 (exit $ac_status); } >/dev/null; then
8533 if test -s conftest.err; then 10336 if test -s conftest.err; then
8534 ac_cpp_err=$ac_c_preproc_warn_flag 10337 ac_cpp_err=$ac_c_preproc_warn_flag
8535 else 10338 else
8536 ac_cpp_err= 10339 ac_cpp_err=
8537 fi 10340 fi
8538 else 10341 else
8539 ac_cpp_err=yes 10342 ac_cpp_err=yes
8540 fi 10343 fi
8541 if test -z "$ac_cpp_err"; then 10344 if test -z "$ac_cpp_err"; then
8542 eval "$as_ac_Header=yes" 10345 ac_header_preproc=yes
8543 else 10346 else
8544 echo "$as_me: failed program was:" >&5 10347 echo "$as_me: failed program was:" >&5
8545 cat conftest.$ac_ext >&5 10348 cat conftest.$ac_ext >&5
8546 eval "$as_ac_Header=no" 10349 ac_header_preproc=no
8547 fi 10350 fi
8548 rm -f conftest.err conftest.$ac_ext 10351 rm -f conftest.err conftest.$ac_ext
8549 fi 10352 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8550 echo "$as_me:8550: result: `eval echo '${'$as_ac_Header'}'`" >&5 10353 echo "${ECHO_T}$ac_header_preproc" >&6
10354
10355 # So? What about this header?
10356 case $ac_header_compiler:$ac_header_preproc in
10357 yes:no )
10358 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10359 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10360 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10361 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10362 no:yes )
10363 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10364 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10365 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10366 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10367 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10368 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10369 esac
10370 echo "$as_me:$LINENO: checking for $ac_header" >&5
10371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10373 echo $ECHO_N "(cached) $ECHO_C" >&6
10374 else
10375 eval "$as_ac_Header=$ac_header_preproc"
10376 fi
10377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10378 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10379
10380 fi
8552 if test `eval echo '${'$as_ac_Header'}'` = yes; then 10381 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8553 cat >>confdefs.h <<EOF 10382 cat >>confdefs.h <<_ACEOF
8554 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 10383 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8555 EOF 10384 _ACEOF
8556 10385
8557 fi 10386 fi
10387
8558 done 10388 done
10389
8559 10390
8560 for ac_func in alarm 10391 for ac_func in alarm
8561 do 10392 do
8562 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10393 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8563 echo "$as_me:8563: checking for $ac_func" >&5 10394 echo "$as_me:$LINENO: checking for $ac_func" >&5
8564 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 10395 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8565 if eval "test \"\${$as_ac_var+set}\" = set"; then 10396 if eval "test \"\${$as_ac_var+set}\" = set"; then
8566 echo $ECHO_N "(cached) $ECHO_C" >&6 10397 echo $ECHO_N "(cached) $ECHO_C" >&6
8567 else 10398 else
8568 cat >conftest.$ac_ext <<_ACEOF 10399 cat >conftest.$ac_ext <<_ACEOF
8569 #line 8569 "configure" 10400 #line $LINENO "configure"
8570 #include "confdefs.h" 10401 #include "confdefs.h"
8571 /* System header to define __stub macros and hopefully few prototypes, 10402 /* System header to define __stub macros and hopefully few prototypes,
8572 which can conflict with char $ac_func (); below. */ 10403 which can conflict with char $ac_func (); below. */
8573 #include <assert.h> 10404 #include <assert.h>
8574 /* Override any gcc2 internal prototype to avoid an error. */ 10405 /* Override any gcc2 internal prototype to avoid an error. */
8578 /* We use char because int might match the return type of a gcc2 10409 /* We use char because int might match the return type of a gcc2
8579 builtin and then its argument prototype would still apply. */ 10410 builtin and then its argument prototype would still apply. */
8580 char $ac_func (); 10411 char $ac_func ();
8581 char (*f) (); 10412 char (*f) ();
8582 10413
10414 #ifdef F77_DUMMY_MAIN
10415 # ifdef __cplusplus
10416 extern "C"
10417 # endif
10418 int F77_DUMMY_MAIN() { return 1; }
10419 #endif
8583 int 10420 int
8584 main () 10421 main ()
8585 { 10422 {
8586 /* The GNU C library defines this for functions which it implements 10423 /* The GNU C library defines this for functions which it implements
8587 to always fail with ENOSYS. Some functions are actually named 10424 to always fail with ENOSYS. Some functions are actually named
8595 ; 10432 ;
8596 return 0; 10433 return 0;
8597 } 10434 }
8598 _ACEOF 10435 _ACEOF
8599 rm -f conftest.$ac_objext conftest$ac_exeext 10436 rm -f conftest.$ac_objext conftest$ac_exeext
8600 if { (eval echo "$as_me:8600: \"$ac_link\"") >&5 10437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8601 (eval $ac_link) 2>&5 10438 (eval $ac_link) 2>&5
8602 ac_status=$? 10439 ac_status=$?
8603 echo "$as_me:8603: \$? = $ac_status" >&5 10440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604 (exit $ac_status); } && 10441 (exit $ac_status); } &&
8605 { ac_try='test -s conftest$ac_exeext' 10442 { ac_try='test -s conftest$ac_exeext'
8606 { (eval echo "$as_me:8606: \"$ac_try\"") >&5 10443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8607 (eval $ac_try) 2>&5 10444 (eval $ac_try) 2>&5
8608 ac_status=$? 10445 ac_status=$?
8609 echo "$as_me:8609: \$? = $ac_status" >&5 10446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); }; }; then 10447 (exit $ac_status); }; }; then
8611 eval "$as_ac_var=yes" 10448 eval "$as_ac_var=yes"
8612 else 10449 else
8613 echo "$as_me: failed program was:" >&5 10450 echo "$as_me: failed program was:" >&5
8614 cat conftest.$ac_ext >&5 10451 cat conftest.$ac_ext >&5
8615 eval "$as_ac_var=no" 10452 eval "$as_ac_var=no"
8616 fi 10453 fi
8617 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10454 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8618 fi 10455 fi
8619 echo "$as_me:8619: result: `eval echo '${'$as_ac_var'}'`" >&5 10456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8620 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 10457 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8621 if test `eval echo '${'$as_ac_var'}'` = yes; then 10458 if test `eval echo '${'$as_ac_var'}'` = yes; then
8622 cat >>confdefs.h <<EOF 10459 cat >>confdefs.h <<_ACEOF
8623 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10460 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8624 EOF 10461 _ACEOF
8625 10462
8626 fi 10463 fi
8627 done 10464 done
8628 10465
8629 echo "$as_me:8629: checking for working mktime" >&5 10466 echo "$as_me:$LINENO: checking for working mktime" >&5
8630 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6 10467 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
8631 if test "${ac_cv_func_working_mktime+set}" = set; then 10468 if test "${ac_cv_func_working_mktime+set}" = set; then
8632 echo $ECHO_N "(cached) $ECHO_C" >&6 10469 echo $ECHO_N "(cached) $ECHO_C" >&6
8633 else 10470 else
8634 if test "$cross_compiling" = yes; then 10471 if test "$cross_compiling" = yes; then
8635 ac_cv_func_working_mktime=no 10472 ac_cv_func_working_mktime=no
8636 else 10473 else
8637 cat >conftest.$ac_ext <<_ACEOF 10474 cat >conftest.$ac_ext <<_ACEOF
8638 #line 8638 "configure" 10475 #line $LINENO "configure"
8639 #include "confdefs.h" 10476 #include "confdefs.h"
8640 /* Test program from Paul Eggert and Tony Leneis. */ 10477 /* Test program from Paul Eggert and Tony Leneis. */
8641 #if TIME_WITH_SYS_TIME 10478 #if TIME_WITH_SYS_TIME
8642 # include <sys/time.h> 10479 # include <sys/time.h>
8643 # include <time.h> 10480 # include <time.h>
8782 spring_forward_gap (); 10619 spring_forward_gap ();
8783 exit (0); 10620 exit (0);
8784 } 10621 }
8785 _ACEOF 10622 _ACEOF
8786 rm -f conftest$ac_exeext 10623 rm -f conftest$ac_exeext
8787 if { (eval echo "$as_me:8787: \"$ac_link\"") >&5 10624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8788 (eval $ac_link) 2>&5 10625 (eval $ac_link) 2>&5
8789 ac_status=$? 10626 ac_status=$?
8790 echo "$as_me:8790: \$? = $ac_status" >&5 10627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10628 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8792 { (eval echo "$as_me:8792: \"$ac_try\"") >&5 10629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8793 (eval $ac_try) 2>&5 10630 (eval $ac_try) 2>&5
8794 ac_status=$? 10631 ac_status=$?
8795 echo "$as_me:8795: \$? = $ac_status" >&5 10632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796 (exit $ac_status); }; }; then 10633 (exit $ac_status); }; }; then
8797 ac_cv_func_working_mktime=yes 10634 ac_cv_func_working_mktime=yes
8798 else 10635 else
8799 echo "$as_me: program exited with status $ac_status" >&5 10636 echo "$as_me: program exited with status $ac_status" >&5
8800 echo "$as_me: failed program was:" >&5 10637 echo "$as_me: failed program was:" >&5
8801 cat conftest.$ac_ext >&5 10638 cat conftest.$ac_ext >&5
10639 ( exit $ac_status )
8802 ac_cv_func_working_mktime=no 10640 ac_cv_func_working_mktime=no
8803 fi 10641 fi
8804 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10642 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8805 fi 10643 fi
8806 fi 10644 fi
8807 echo "$as_me:8807: result: $ac_cv_func_working_mktime" >&5 10645 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
8808 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6 10646 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
8809 if test $ac_cv_func_working_mktime = no; then 10647 if test $ac_cv_func_working_mktime = no; then
8810 LIBOBJS="$LIBOBJS mktime.$ac_objext" 10648 LIBOBJS="$LIBOBJS mktime.$ac_objext"
8811 fi 10649 fi
8812 10650
8813 if test "$ac_cv_func_working_mktime" = no; then 10651 if test "$ac_cv_func_working_mktime" = no; then
8814 cat >>confdefs.h <<\EOF 10652 cat >>confdefs.h <<\_ACEOF
8815 #define BROKEN_MKTIME 1 10653 #define BROKEN_MKTIME 1
8816 EOF 10654 _ACEOF
8817 10655
8818 fi 10656 fi
8819 10657
8820 ac_have_func=no # yes means we've found a way to get the load average. 10658 ac_have_func=no # yes means we've found a way to get the load average.
8821 10659
8822 ac_save_LIBS=$LIBS 10660 ac_save_LIBS=$LIBS
8823 10661
8824 # Check for getloadavg, but be sure not to touch the cache variable. 10662 # Check for getloadavg, but be sure not to touch the cache variable.
8825 (echo "$as_me:8825: checking for getloadavg" >&5 10663 (echo "$as_me:$LINENO: checking for getloadavg" >&5
8826 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6 10664 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
8827 if test "${ac_cv_func_getloadavg+set}" = set; then 10665 if test "${ac_cv_func_getloadavg+set}" = set; then
8828 echo $ECHO_N "(cached) $ECHO_C" >&6 10666 echo $ECHO_N "(cached) $ECHO_C" >&6
8829 else 10667 else
8830 cat >conftest.$ac_ext <<_ACEOF 10668 cat >conftest.$ac_ext <<_ACEOF
8831 #line 8831 "configure" 10669 #line $LINENO "configure"
8832 #include "confdefs.h" 10670 #include "confdefs.h"
8833 /* System header to define __stub macros and hopefully few prototypes, 10671 /* System header to define __stub macros and hopefully few prototypes,
8834 which can conflict with char getloadavg (); below. */ 10672 which can conflict with char getloadavg (); below. */
8835 #include <assert.h> 10673 #include <assert.h>
8836 /* Override any gcc2 internal prototype to avoid an error. */ 10674 /* Override any gcc2 internal prototype to avoid an error. */
8840 /* We use char because int might match the return type of a gcc2 10678 /* We use char because int might match the return type of a gcc2
8841 builtin and then its argument prototype would still apply. */ 10679 builtin and then its argument prototype would still apply. */
8842 char getloadavg (); 10680 char getloadavg ();
8843 char (*f) (); 10681 char (*f) ();
8844 10682
10683 #ifdef F77_DUMMY_MAIN
10684 # ifdef __cplusplus
10685 extern "C"
10686 # endif
10687 int F77_DUMMY_MAIN() { return 1; }
10688 #endif
8845 int 10689 int
8846 main () 10690 main ()
8847 { 10691 {
8848 /* The GNU C library defines this for functions which it implements 10692 /* The GNU C library defines this for functions which it implements
8849 to always fail with ENOSYS. Some functions are actually named 10693 to always fail with ENOSYS. Some functions are actually named
8857 ; 10701 ;
8858 return 0; 10702 return 0;
8859 } 10703 }
8860 _ACEOF 10704 _ACEOF
8861 rm -f conftest.$ac_objext conftest$ac_exeext 10705 rm -f conftest.$ac_objext conftest$ac_exeext
8862 if { (eval echo "$as_me:8862: \"$ac_link\"") >&5 10706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8863 (eval $ac_link) 2>&5 10707 (eval $ac_link) 2>&5
8864 ac_status=$? 10708 ac_status=$?
8865 echo "$as_me:8865: \$? = $ac_status" >&5 10709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866 (exit $ac_status); } && 10710 (exit $ac_status); } &&
8867 { ac_try='test -s conftest$ac_exeext' 10711 { ac_try='test -s conftest$ac_exeext'
8868 { (eval echo "$as_me:8868: \"$ac_try\"") >&5 10712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8869 (eval $ac_try) 2>&5 10713 (eval $ac_try) 2>&5
8870 ac_status=$? 10714 ac_status=$?
8871 echo "$as_me:8871: \$? = $ac_status" >&5 10715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8872 (exit $ac_status); }; }; then 10716 (exit $ac_status); }; }; then
8873 ac_cv_func_getloadavg=yes 10717 ac_cv_func_getloadavg=yes
8874 else 10718 else
8875 echo "$as_me: failed program was:" >&5 10719 echo "$as_me: failed program was:" >&5
8876 cat conftest.$ac_ext >&5 10720 cat conftest.$ac_ext >&5
8877 ac_cv_func_getloadavg=no 10721 ac_cv_func_getloadavg=no
8878 fi 10722 fi
8879 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10723 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8880 fi 10724 fi
8881 echo "$as_me:8881: result: $ac_cv_func_getloadavg" >&5 10725 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
8882 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6 10726 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
8883 if test $ac_cv_func_getloadavg = yes; then 10727 if test $ac_cv_func_getloadavg = yes; then
8884 exit 0 10728 exit 0
8885 else 10729 else
8886 exit 1 10730 exit 1
8890 # On HPUX9, an unprivileged user can get load averages through this function. 10734 # On HPUX9, an unprivileged user can get load averages through this function.
8891 10735
8892 for ac_func in pstat_getdynamic 10736 for ac_func in pstat_getdynamic
8893 do 10737 do
8894 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10738 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8895 echo "$as_me:8895: checking for $ac_func" >&5 10739 echo "$as_me:$LINENO: checking for $ac_func" >&5
8896 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 10740 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8897 if eval "test \"\${$as_ac_var+set}\" = set"; then 10741 if eval "test \"\${$as_ac_var+set}\" = set"; then
8898 echo $ECHO_N "(cached) $ECHO_C" >&6 10742 echo $ECHO_N "(cached) $ECHO_C" >&6
8899 else 10743 else
8900 cat >conftest.$ac_ext <<_ACEOF 10744 cat >conftest.$ac_ext <<_ACEOF
8901 #line 8901 "configure" 10745 #line $LINENO "configure"
8902 #include "confdefs.h" 10746 #include "confdefs.h"
8903 /* System header to define __stub macros and hopefully few prototypes, 10747 /* System header to define __stub macros and hopefully few prototypes,
8904 which can conflict with char $ac_func (); below. */ 10748 which can conflict with char $ac_func (); below. */
8905 #include <assert.h> 10749 #include <assert.h>
8906 /* Override any gcc2 internal prototype to avoid an error. */ 10750 /* Override any gcc2 internal prototype to avoid an error. */
8910 /* We use char because int might match the return type of a gcc2 10754 /* We use char because int might match the return type of a gcc2
8911 builtin and then its argument prototype would still apply. */ 10755 builtin and then its argument prototype would still apply. */
8912 char $ac_func (); 10756 char $ac_func ();
8913 char (*f) (); 10757 char (*f) ();
8914 10758
10759 #ifdef F77_DUMMY_MAIN
10760 # ifdef __cplusplus
10761 extern "C"
10762 # endif
10763 int F77_DUMMY_MAIN() { return 1; }
10764 #endif
8915 int 10765 int
8916 main () 10766 main ()
8917 { 10767 {
8918 /* The GNU C library defines this for functions which it implements 10768 /* The GNU C library defines this for functions which it implements
8919 to always fail with ENOSYS. Some functions are actually named 10769 to always fail with ENOSYS. Some functions are actually named
8927 ; 10777 ;
8928 return 0; 10778 return 0;
8929 } 10779 }
8930 _ACEOF 10780 _ACEOF
8931 rm -f conftest.$ac_objext conftest$ac_exeext 10781 rm -f conftest.$ac_objext conftest$ac_exeext
8932 if { (eval echo "$as_me:8932: \"$ac_link\"") >&5 10782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8933 (eval $ac_link) 2>&5 10783 (eval $ac_link) 2>&5
8934 ac_status=$? 10784 ac_status=$?
8935 echo "$as_me:8935: \$? = $ac_status" >&5 10785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936 (exit $ac_status); } && 10786 (exit $ac_status); } &&
8937 { ac_try='test -s conftest$ac_exeext' 10787 { ac_try='test -s conftest$ac_exeext'
8938 { (eval echo "$as_me:8938: \"$ac_try\"") >&5 10788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8939 (eval $ac_try) 2>&5 10789 (eval $ac_try) 2>&5
8940 ac_status=$? 10790 ac_status=$?
8941 echo "$as_me:8941: \$? = $ac_status" >&5 10791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942 (exit $ac_status); }; }; then 10792 (exit $ac_status); }; }; then
8943 eval "$as_ac_var=yes" 10793 eval "$as_ac_var=yes"
8944 else 10794 else
8945 echo "$as_me: failed program was:" >&5 10795 echo "$as_me: failed program was:" >&5
8946 cat conftest.$ac_ext >&5 10796 cat conftest.$ac_ext >&5
8947 eval "$as_ac_var=no" 10797 eval "$as_ac_var=no"
8948 fi 10798 fi
8949 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10799 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8950 fi 10800 fi
8951 echo "$as_me:8951: result: `eval echo '${'$as_ac_var'}'`" >&5 10801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8952 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 10802 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8953 if test `eval echo '${'$as_ac_var'}'` = yes; then 10803 if test `eval echo '${'$as_ac_var'}'` = yes; then
8954 cat >>confdefs.h <<EOF 10804 cat >>confdefs.h <<_ACEOF
8955 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10805 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8956 EOF 10806 _ACEOF
8957 10807
8958 fi 10808 fi
8959 done 10809 done
8960 10810
10811
8961 # Solaris has libkstat which does not require root. 10812 # Solaris has libkstat which does not require root.
8962 10813
8963 echo "$as_me:8963: checking for kstat_open in -lkstat" >&5 10814 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
8964 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6 10815 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
8965 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then 10816 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
8966 echo $ECHO_N "(cached) $ECHO_C" >&6 10817 echo $ECHO_N "(cached) $ECHO_C" >&6
8967 else 10818 else
8968 ac_check_lib_save_LIBS=$LIBS 10819 ac_check_lib_save_LIBS=$LIBS
8969 LIBS="-lkstat $LIBS" 10820 LIBS="-lkstat $LIBS"
8970 cat >conftest.$ac_ext <<_ACEOF 10821 cat >conftest.$ac_ext <<_ACEOF
8971 #line 8971 "configure" 10822 #line $LINENO "configure"
8972 #include "confdefs.h" 10823 #include "confdefs.h"
8973 10824
8974 /* Override any gcc2 internal prototype to avoid an error. */ 10825 /* Override any gcc2 internal prototype to avoid an error. */
8975 #ifdef __cplusplus 10826 #ifdef __cplusplus
8976 extern "C" 10827 extern "C"
8977 #endif 10828 #endif
8978 /* We use char because int might match the return type of a gcc2 10829 /* We use char because int might match the return type of a gcc2
8979 builtin and then its argument prototype would still apply. */ 10830 builtin and then its argument prototype would still apply. */
8980 char kstat_open (); 10831 char kstat_open ();
10832 #ifdef F77_DUMMY_MAIN
10833 # ifdef __cplusplus
10834 extern "C"
10835 # endif
10836 int F77_DUMMY_MAIN() { return 1; }
10837 #endif
8981 int 10838 int
8982 main () 10839 main ()
8983 { 10840 {
8984 kstat_open (); 10841 kstat_open ();
8985 ; 10842 ;
8986 return 0; 10843 return 0;
8987 } 10844 }
8988 _ACEOF 10845 _ACEOF
8989 rm -f conftest.$ac_objext conftest$ac_exeext 10846 rm -f conftest.$ac_objext conftest$ac_exeext
8990 if { (eval echo "$as_me:8990: \"$ac_link\"") >&5 10847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8991 (eval $ac_link) 2>&5 10848 (eval $ac_link) 2>&5
8992 ac_status=$? 10849 ac_status=$?
8993 echo "$as_me:8993: \$? = $ac_status" >&5 10850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994 (exit $ac_status); } && 10851 (exit $ac_status); } &&
8995 { ac_try='test -s conftest$ac_exeext' 10852 { ac_try='test -s conftest$ac_exeext'
8996 { (eval echo "$as_me:8996: \"$ac_try\"") >&5 10853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8997 (eval $ac_try) 2>&5 10854 (eval $ac_try) 2>&5
8998 ac_status=$? 10855 ac_status=$?
8999 echo "$as_me:8999: \$? = $ac_status" >&5 10856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000 (exit $ac_status); }; }; then 10857 (exit $ac_status); }; }; then
9001 ac_cv_lib_kstat_kstat_open=yes 10858 ac_cv_lib_kstat_kstat_open=yes
9002 else 10859 else
9003 echo "$as_me: failed program was:" >&5 10860 echo "$as_me: failed program was:" >&5
9004 cat conftest.$ac_ext >&5 10861 cat conftest.$ac_ext >&5
9005 ac_cv_lib_kstat_kstat_open=no 10862 ac_cv_lib_kstat_kstat_open=no
9006 fi 10863 fi
9007 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10864 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9008 LIBS=$ac_check_lib_save_LIBS 10865 LIBS=$ac_check_lib_save_LIBS
9009 fi 10866 fi
9010 echo "$as_me:9010: result: $ac_cv_lib_kstat_kstat_open" >&5 10867 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
9011 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6 10868 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
9012 if test $ac_cv_lib_kstat_kstat_open = yes; then 10869 if test $ac_cv_lib_kstat_kstat_open = yes; then
9013 cat >>confdefs.h <<EOF 10870 cat >>confdefs.h <<_ACEOF
9014 #define HAVE_LIBKSTAT 1 10871 #define HAVE_LIBKSTAT 1
9015 EOF 10872 _ACEOF
9016 10873
9017 LIBS="-lkstat $LIBS" 10874 LIBS="-lkstat $LIBS"
9018 10875
9019 fi 10876 fi
9020 10877
9023 # Some systems with -lutil have (and need) -lkvm as well, some do not. 10880 # Some systems with -lutil have (and need) -lkvm as well, some do not.
9024 # On Solaris, -lkvm requires nlist from -lelf, so check that first 10881 # On Solaris, -lkvm requires nlist from -lelf, so check that first
9025 # to get the right answer into the cache. 10882 # to get the right answer into the cache.
9026 # For kstat on solaris, we need libelf to force the definition of SVR4 below. 10883 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
9027 if test $ac_have_func = no; then 10884 if test $ac_have_func = no; then
9028 echo "$as_me:9028: checking for elf_begin in -lelf" >&5 10885 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
9029 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6 10886 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
9030 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then 10887 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
9031 echo $ECHO_N "(cached) $ECHO_C" >&6 10888 echo $ECHO_N "(cached) $ECHO_C" >&6
9032 else 10889 else
9033 ac_check_lib_save_LIBS=$LIBS 10890 ac_check_lib_save_LIBS=$LIBS
9034 LIBS="-lelf $LIBS" 10891 LIBS="-lelf $LIBS"
9035 cat >conftest.$ac_ext <<_ACEOF 10892 cat >conftest.$ac_ext <<_ACEOF
9036 #line 9036 "configure" 10893 #line $LINENO "configure"
9037 #include "confdefs.h" 10894 #include "confdefs.h"
9038 10895
9039 /* Override any gcc2 internal prototype to avoid an error. */ 10896 /* Override any gcc2 internal prototype to avoid an error. */
9040 #ifdef __cplusplus 10897 #ifdef __cplusplus
9041 extern "C" 10898 extern "C"
9042 #endif 10899 #endif
9043 /* We use char because int might match the return type of a gcc2 10900 /* We use char because int might match the return type of a gcc2
9044 builtin and then its argument prototype would still apply. */ 10901 builtin and then its argument prototype would still apply. */
9045 char elf_begin (); 10902 char elf_begin ();
10903 #ifdef F77_DUMMY_MAIN
10904 # ifdef __cplusplus
10905 extern "C"
10906 # endif
10907 int F77_DUMMY_MAIN() { return 1; }
10908 #endif
9046 int 10909 int
9047 main () 10910 main ()
9048 { 10911 {
9049 elf_begin (); 10912 elf_begin ();
9050 ; 10913 ;
9051 return 0; 10914 return 0;
9052 } 10915 }
9053 _ACEOF 10916 _ACEOF
9054 rm -f conftest.$ac_objext conftest$ac_exeext 10917 rm -f conftest.$ac_objext conftest$ac_exeext
9055 if { (eval echo "$as_me:9055: \"$ac_link\"") >&5 10918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9056 (eval $ac_link) 2>&5 10919 (eval $ac_link) 2>&5
9057 ac_status=$? 10920 ac_status=$?
9058 echo "$as_me:9058: \$? = $ac_status" >&5 10921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); } && 10922 (exit $ac_status); } &&
9060 { ac_try='test -s conftest$ac_exeext' 10923 { ac_try='test -s conftest$ac_exeext'
9061 { (eval echo "$as_me:9061: \"$ac_try\"") >&5 10924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9062 (eval $ac_try) 2>&5 10925 (eval $ac_try) 2>&5
9063 ac_status=$? 10926 ac_status=$?
9064 echo "$as_me:9064: \$? = $ac_status" >&5 10927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065 (exit $ac_status); }; }; then 10928 (exit $ac_status); }; }; then
9066 ac_cv_lib_elf_elf_begin=yes 10929 ac_cv_lib_elf_elf_begin=yes
9067 else 10930 else
9068 echo "$as_me: failed program was:" >&5 10931 echo "$as_me: failed program was:" >&5
9069 cat conftest.$ac_ext >&5 10932 cat conftest.$ac_ext >&5
9070 ac_cv_lib_elf_elf_begin=no 10933 ac_cv_lib_elf_elf_begin=no
9071 fi 10934 fi
9072 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10935 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9073 LIBS=$ac_check_lib_save_LIBS 10936 LIBS=$ac_check_lib_save_LIBS
9074 fi 10937 fi
9075 echo "$as_me:9075: result: $ac_cv_lib_elf_elf_begin" >&5 10938 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
9076 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6 10939 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
9077 if test $ac_cv_lib_elf_elf_begin = yes; then 10940 if test $ac_cv_lib_elf_elf_begin = yes; then
9078 LIBS="-lelf $LIBS" 10941 LIBS="-lelf $LIBS"
9079 fi 10942 fi
9080 10943
9081 fi 10944 fi
9082 if test $ac_have_func = no; then 10945 if test $ac_have_func = no; then
9083 echo "$as_me:9083: checking for kvm_open in -lkvm" >&5 10946 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
9084 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6 10947 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
9085 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then 10948 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
9086 echo $ECHO_N "(cached) $ECHO_C" >&6 10949 echo $ECHO_N "(cached) $ECHO_C" >&6
9087 else 10950 else
9088 ac_check_lib_save_LIBS=$LIBS 10951 ac_check_lib_save_LIBS=$LIBS
9089 LIBS="-lkvm $LIBS" 10952 LIBS="-lkvm $LIBS"
9090 cat >conftest.$ac_ext <<_ACEOF 10953 cat >conftest.$ac_ext <<_ACEOF
9091 #line 9091 "configure" 10954 #line $LINENO "configure"
9092 #include "confdefs.h" 10955 #include "confdefs.h"
9093 10956
9094 /* Override any gcc2 internal prototype to avoid an error. */ 10957 /* Override any gcc2 internal prototype to avoid an error. */
9095 #ifdef __cplusplus 10958 #ifdef __cplusplus
9096 extern "C" 10959 extern "C"
9097 #endif 10960 #endif
9098 /* We use char because int might match the return type of a gcc2 10961 /* We use char because int might match the return type of a gcc2
9099 builtin and then its argument prototype would still apply. */ 10962 builtin and then its argument prototype would still apply. */
9100 char kvm_open (); 10963 char kvm_open ();
10964 #ifdef F77_DUMMY_MAIN
10965 # ifdef __cplusplus
10966 extern "C"
10967 # endif
10968 int F77_DUMMY_MAIN() { return 1; }
10969 #endif
9101 int 10970 int
9102 main () 10971 main ()
9103 { 10972 {
9104 kvm_open (); 10973 kvm_open ();
9105 ; 10974 ;
9106 return 0; 10975 return 0;
9107 } 10976 }
9108 _ACEOF 10977 _ACEOF
9109 rm -f conftest.$ac_objext conftest$ac_exeext 10978 rm -f conftest.$ac_objext conftest$ac_exeext
9110 if { (eval echo "$as_me:9110: \"$ac_link\"") >&5 10979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9111 (eval $ac_link) 2>&5 10980 (eval $ac_link) 2>&5
9112 ac_status=$? 10981 ac_status=$?
9113 echo "$as_me:9113: \$? = $ac_status" >&5 10982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114 (exit $ac_status); } && 10983 (exit $ac_status); } &&
9115 { ac_try='test -s conftest$ac_exeext' 10984 { ac_try='test -s conftest$ac_exeext'
9116 { (eval echo "$as_me:9116: \"$ac_try\"") >&5 10985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9117 (eval $ac_try) 2>&5 10986 (eval $ac_try) 2>&5
9118 ac_status=$? 10987 ac_status=$?
9119 echo "$as_me:9119: \$? = $ac_status" >&5 10988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120 (exit $ac_status); }; }; then 10989 (exit $ac_status); }; }; then
9121 ac_cv_lib_kvm_kvm_open=yes 10990 ac_cv_lib_kvm_kvm_open=yes
9122 else 10991 else
9123 echo "$as_me: failed program was:" >&5 10992 echo "$as_me: failed program was:" >&5
9124 cat conftest.$ac_ext >&5 10993 cat conftest.$ac_ext >&5
9125 ac_cv_lib_kvm_kvm_open=no 10994 ac_cv_lib_kvm_kvm_open=no
9126 fi 10995 fi
9127 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10996 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9128 LIBS=$ac_check_lib_save_LIBS 10997 LIBS=$ac_check_lib_save_LIBS
9129 fi 10998 fi
9130 echo "$as_me:9130: result: $ac_cv_lib_kvm_kvm_open" >&5 10999 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
9131 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6 11000 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
9132 if test $ac_cv_lib_kvm_kvm_open = yes; then 11001 if test $ac_cv_lib_kvm_kvm_open = yes; then
9133 LIBS="-lkvm $LIBS" 11002 LIBS="-lkvm $LIBS"
9134 fi 11003 fi
9135 11004
9136 # Check for the 4.4BSD definition of getloadavg. 11005 # Check for the 4.4BSD definition of getloadavg.
9137 echo "$as_me:9137: checking for getloadavg in -lutil" >&5 11006 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
9138 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6 11007 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
9139 if test "${ac_cv_lib_util_getloadavg+set}" = set; then 11008 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
9140 echo $ECHO_N "(cached) $ECHO_C" >&6 11009 echo $ECHO_N "(cached) $ECHO_C" >&6
9141 else 11010 else
9142 ac_check_lib_save_LIBS=$LIBS 11011 ac_check_lib_save_LIBS=$LIBS
9143 LIBS="-lutil $LIBS" 11012 LIBS="-lutil $LIBS"
9144 cat >conftest.$ac_ext <<_ACEOF 11013 cat >conftest.$ac_ext <<_ACEOF
9145 #line 9145 "configure" 11014 #line $LINENO "configure"
9146 #include "confdefs.h" 11015 #include "confdefs.h"
9147 11016
9148 /* Override any gcc2 internal prototype to avoid an error. */ 11017 /* Override any gcc2 internal prototype to avoid an error. */
9149 #ifdef __cplusplus 11018 #ifdef __cplusplus
9150 extern "C" 11019 extern "C"
9151 #endif 11020 #endif
9152 /* We use char because int might match the return type of a gcc2 11021 /* We use char because int might match the return type of a gcc2
9153 builtin and then its argument prototype would still apply. */ 11022 builtin and then its argument prototype would still apply. */
9154 char getloadavg (); 11023 char getloadavg ();
11024 #ifdef F77_DUMMY_MAIN
11025 # ifdef __cplusplus
11026 extern "C"
11027 # endif
11028 int F77_DUMMY_MAIN() { return 1; }
11029 #endif
9155 int 11030 int
9156 main () 11031 main ()
9157 { 11032 {
9158 getloadavg (); 11033 getloadavg ();
9159 ; 11034 ;
9160 return 0; 11035 return 0;
9161 } 11036 }
9162 _ACEOF 11037 _ACEOF
9163 rm -f conftest.$ac_objext conftest$ac_exeext 11038 rm -f conftest.$ac_objext conftest$ac_exeext
9164 if { (eval echo "$as_me:9164: \"$ac_link\"") >&5 11039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9165 (eval $ac_link) 2>&5 11040 (eval $ac_link) 2>&5
9166 ac_status=$? 11041 ac_status=$?
9167 echo "$as_me:9167: \$? = $ac_status" >&5 11042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168 (exit $ac_status); } && 11043 (exit $ac_status); } &&
9169 { ac_try='test -s conftest$ac_exeext' 11044 { ac_try='test -s conftest$ac_exeext'
9170 { (eval echo "$as_me:9170: \"$ac_try\"") >&5 11045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9171 (eval $ac_try) 2>&5 11046 (eval $ac_try) 2>&5
9172 ac_status=$? 11047 ac_status=$?
9173 echo "$as_me:9173: \$? = $ac_status" >&5 11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174 (exit $ac_status); }; }; then 11049 (exit $ac_status); }; }; then
9175 ac_cv_lib_util_getloadavg=yes 11050 ac_cv_lib_util_getloadavg=yes
9176 else 11051 else
9177 echo "$as_me: failed program was:" >&5 11052 echo "$as_me: failed program was:" >&5
9178 cat conftest.$ac_ext >&5 11053 cat conftest.$ac_ext >&5
9179 ac_cv_lib_util_getloadavg=no 11054 ac_cv_lib_util_getloadavg=no
9180 fi 11055 fi
9181 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11056 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9182 LIBS=$ac_check_lib_save_LIBS 11057 LIBS=$ac_check_lib_save_LIBS
9183 fi 11058 fi
9184 echo "$as_me:9184: result: $ac_cv_lib_util_getloadavg" >&5 11059 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
9185 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6 11060 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
9186 if test $ac_cv_lib_util_getloadavg = yes; then 11061 if test $ac_cv_lib_util_getloadavg = yes; then
9187 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes 11062 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
9188 fi 11063 fi
9189 11064
9192 if test $ac_have_func = no; then 11067 if test $ac_have_func = no; then
9193 # There is a commonly available library for RS/6000 AIX. 11068 # There is a commonly available library for RS/6000 AIX.
9194 # Since it is not a standard part of AIX, it might be installed locally. 11069 # Since it is not a standard part of AIX, it might be installed locally.
9195 ac_getloadavg_LIBS=$LIBS 11070 ac_getloadavg_LIBS=$LIBS
9196 LIBS="-L/usr/local/lib $LIBS" 11071 LIBS="-L/usr/local/lib $LIBS"
9197 echo "$as_me:9197: checking for getloadavg in -lgetloadavg" >&5 11072 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
9198 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6 11073 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
9199 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then 11074 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
9200 echo $ECHO_N "(cached) $ECHO_C" >&6 11075 echo $ECHO_N "(cached) $ECHO_C" >&6
9201 else 11076 else
9202 ac_check_lib_save_LIBS=$LIBS 11077 ac_check_lib_save_LIBS=$LIBS
9203 LIBS="-lgetloadavg $LIBS" 11078 LIBS="-lgetloadavg $LIBS"
9204 cat >conftest.$ac_ext <<_ACEOF 11079 cat >conftest.$ac_ext <<_ACEOF
9205 #line 9205 "configure" 11080 #line $LINENO "configure"
9206 #include "confdefs.h" 11081 #include "confdefs.h"
9207 11082
9208 /* Override any gcc2 internal prototype to avoid an error. */ 11083 /* Override any gcc2 internal prototype to avoid an error. */
9209 #ifdef __cplusplus 11084 #ifdef __cplusplus
9210 extern "C" 11085 extern "C"
9211 #endif 11086 #endif
9212 /* We use char because int might match the return type of a gcc2 11087 /* We use char because int might match the return type of a gcc2
9213 builtin and then its argument prototype would still apply. */ 11088 builtin and then its argument prototype would still apply. */
9214 char getloadavg (); 11089 char getloadavg ();
11090 #ifdef F77_DUMMY_MAIN
11091 # ifdef __cplusplus
11092 extern "C"
11093 # endif
11094 int F77_DUMMY_MAIN() { return 1; }
11095 #endif
9215 int 11096 int
9216 main () 11097 main ()
9217 { 11098 {
9218 getloadavg (); 11099 getloadavg ();
9219 ; 11100 ;
9220 return 0; 11101 return 0;
9221 } 11102 }
9222 _ACEOF 11103 _ACEOF
9223 rm -f conftest.$ac_objext conftest$ac_exeext 11104 rm -f conftest.$ac_objext conftest$ac_exeext
9224 if { (eval echo "$as_me:9224: \"$ac_link\"") >&5 11105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9225 (eval $ac_link) 2>&5 11106 (eval $ac_link) 2>&5
9226 ac_status=$? 11107 ac_status=$?
9227 echo "$as_me:9227: \$? = $ac_status" >&5 11108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228 (exit $ac_status); } && 11109 (exit $ac_status); } &&
9229 { ac_try='test -s conftest$ac_exeext' 11110 { ac_try='test -s conftest$ac_exeext'
9230 { (eval echo "$as_me:9230: \"$ac_try\"") >&5 11111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9231 (eval $ac_try) 2>&5 11112 (eval $ac_try) 2>&5
9232 ac_status=$? 11113 ac_status=$?
9233 echo "$as_me:9233: \$? = $ac_status" >&5 11114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9234 (exit $ac_status); }; }; then 11115 (exit $ac_status); }; }; then
9235 ac_cv_lib_getloadavg_getloadavg=yes 11116 ac_cv_lib_getloadavg_getloadavg=yes
9236 else 11117 else
9237 echo "$as_me: failed program was:" >&5 11118 echo "$as_me: failed program was:" >&5
9238 cat conftest.$ac_ext >&5 11119 cat conftest.$ac_ext >&5
9239 ac_cv_lib_getloadavg_getloadavg=no 11120 ac_cv_lib_getloadavg_getloadavg=no
9240 fi 11121 fi
9241 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11122 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9242 LIBS=$ac_check_lib_save_LIBS 11123 LIBS=$ac_check_lib_save_LIBS
9243 fi 11124 fi
9244 echo "$as_me:9244: result: $ac_cv_lib_getloadavg_getloadavg" >&5 11125 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
9245 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6 11126 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
9246 if test $ac_cv_lib_getloadavg_getloadavg = yes; then 11127 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
9247 LIBS="-lgetloadavg $LIBS" 11128 LIBS="-lgetloadavg $LIBS"
9248 else 11129 else
9249 LIBS=$ac_getloadavg_LIBS 11130 LIBS=$ac_getloadavg_LIBS
9255 # otherwise set up the replacement function. 11136 # otherwise set up the replacement function.
9256 11137
9257 for ac_func in getloadavg 11138 for ac_func in getloadavg
9258 do 11139 do
9259 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11140 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9260 echo "$as_me:9260: checking for $ac_func" >&5 11141 echo "$as_me:$LINENO: checking for $ac_func" >&5
9261 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 11142 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9262 if eval "test \"\${$as_ac_var+set}\" = set"; then 11143 if eval "test \"\${$as_ac_var+set}\" = set"; then
9263 echo $ECHO_N "(cached) $ECHO_C" >&6 11144 echo $ECHO_N "(cached) $ECHO_C" >&6
9264 else 11145 else
9265 cat >conftest.$ac_ext <<_ACEOF 11146 cat >conftest.$ac_ext <<_ACEOF
9266 #line 9266 "configure" 11147 #line $LINENO "configure"
9267 #include "confdefs.h" 11148 #include "confdefs.h"
9268 /* System header to define __stub macros and hopefully few prototypes, 11149 /* System header to define __stub macros and hopefully few prototypes,
9269 which can conflict with char $ac_func (); below. */ 11150 which can conflict with char $ac_func (); below. */
9270 #include <assert.h> 11151 #include <assert.h>
9271 /* Override any gcc2 internal prototype to avoid an error. */ 11152 /* Override any gcc2 internal prototype to avoid an error. */
9275 /* We use char because int might match the return type of a gcc2 11156 /* We use char because int might match the return type of a gcc2
9276 builtin and then its argument prototype would still apply. */ 11157 builtin and then its argument prototype would still apply. */
9277 char $ac_func (); 11158 char $ac_func ();
9278 char (*f) (); 11159 char (*f) ();
9279 11160
11161 #ifdef F77_DUMMY_MAIN
11162 # ifdef __cplusplus
11163 extern "C"
11164 # endif
11165 int F77_DUMMY_MAIN() { return 1; }
11166 #endif
9280 int 11167 int
9281 main () 11168 main ()
9282 { 11169 {
9283 /* The GNU C library defines this for functions which it implements 11170 /* The GNU C library defines this for functions which it implements
9284 to always fail with ENOSYS. Some functions are actually named 11171 to always fail with ENOSYS. Some functions are actually named
9292 ; 11179 ;
9293 return 0; 11180 return 0;
9294 } 11181 }
9295 _ACEOF 11182 _ACEOF
9296 rm -f conftest.$ac_objext conftest$ac_exeext 11183 rm -f conftest.$ac_objext conftest$ac_exeext
9297 if { (eval echo "$as_me:9297: \"$ac_link\"") >&5 11184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9298 (eval $ac_link) 2>&5 11185 (eval $ac_link) 2>&5
9299 ac_status=$? 11186 ac_status=$?
9300 echo "$as_me:9300: \$? = $ac_status" >&5 11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301 (exit $ac_status); } && 11188 (exit $ac_status); } &&
9302 { ac_try='test -s conftest$ac_exeext' 11189 { ac_try='test -s conftest$ac_exeext'
9303 { (eval echo "$as_me:9303: \"$ac_try\"") >&5 11190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9304 (eval $ac_try) 2>&5 11191 (eval $ac_try) 2>&5
9305 ac_status=$? 11192 ac_status=$?
9306 echo "$as_me:9306: \$? = $ac_status" >&5 11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307 (exit $ac_status); }; }; then 11194 (exit $ac_status); }; }; then
9308 eval "$as_ac_var=yes" 11195 eval "$as_ac_var=yes"
9309 else 11196 else
9310 echo "$as_me: failed program was:" >&5 11197 echo "$as_me: failed program was:" >&5
9311 cat conftest.$ac_ext >&5 11198 cat conftest.$ac_ext >&5
9312 eval "$as_ac_var=no" 11199 eval "$as_ac_var=no"
9313 fi 11200 fi
9314 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11201 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9315 fi 11202 fi
9316 echo "$as_me:9316: result: `eval echo '${'$as_ac_var'}'`" >&5 11203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9317 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 11204 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9318 if test `eval echo '${'$as_ac_var'}'` = yes; then 11205 if test `eval echo '${'$as_ac_var'}'` = yes; then
9319 cat >>confdefs.h <<EOF 11206 cat >>confdefs.h <<_ACEOF
9320 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11207 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9321 EOF 11208 _ACEOF
9322 11209
9323 else 11210 else
9324 LIBOBJS="$LIBOBJS getloadavg.$ac_objext" 11211 LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
9325 11212
9326 cat >>confdefs.h <<\EOF 11213 cat >>confdefs.h <<\_ACEOF
9327 #define C_GETLOADAVG 1 11214 #define C_GETLOADAVG 1
9328 EOF 11215 _ACEOF
9329 11216
9330 # Figure out what our getloadavg.c needs. 11217 # Figure out what our getloadavg.c needs.
9331 ac_have_func=no 11218 ac_have_func=no
9332 echo "$as_me:9332: checking for sys/dg_sys_info.h" >&5 11219 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
11220 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
9333 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6 11221 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
9334 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then 11222 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
9335 echo $ECHO_N "(cached) $ECHO_C" >&6 11223 echo $ECHO_N "(cached) $ECHO_C" >&6
9336 else 11224 fi
9337 cat >conftest.$ac_ext <<_ACEOF 11225 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
9338 #line 9338 "configure" 11226 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
9339 #include "confdefs.h" 11227 else
11228 # Is the header compilable?
11229 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
11230 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
11231 cat >conftest.$ac_ext <<_ACEOF
11232 #line $LINENO "configure"
11233 #include "confdefs.h"
11234 $ac_includes_default
9340 #include <sys/dg_sys_info.h> 11235 #include <sys/dg_sys_info.h>
9341 _ACEOF 11236 _ACEOF
9342 if { (eval echo "$as_me:9342: \"$ac_cpp conftest.$ac_ext\"") >&5 11237 rm -f conftest.$ac_objext
11238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11239 (eval $ac_compile) 2>&5
11240 ac_status=$?
11241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242 (exit $ac_status); } &&
11243 { ac_try='test -s conftest.$ac_objext'
11244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11245 (eval $ac_try) 2>&5
11246 ac_status=$?
11247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248 (exit $ac_status); }; }; then
11249 ac_header_compiler=yes
11250 else
11251 echo "$as_me: failed program was:" >&5
11252 cat conftest.$ac_ext >&5
11253 ac_header_compiler=no
11254 fi
11255 rm -f conftest.$ac_objext conftest.$ac_ext
11256 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11257 echo "${ECHO_T}$ac_header_compiler" >&6
11258
11259 # Is the header present?
11260 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
11261 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
11262 cat >conftest.$ac_ext <<_ACEOF
11263 #line $LINENO "configure"
11264 #include "confdefs.h"
11265 #include <sys/dg_sys_info.h>
11266 _ACEOF
11267 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9343 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 11268 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9344 ac_status=$? 11269 ac_status=$?
9345 egrep -v '^ *\+' conftest.er1 >conftest.err 11270 egrep -v '^ *\+' conftest.er1 >conftest.err
9346 rm -f conftest.er1 11271 rm -f conftest.er1
9347 cat conftest.err >&5 11272 cat conftest.err >&5
9348 echo "$as_me:9348: \$? = $ac_status" >&5 11273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349 (exit $ac_status); } >/dev/null; then 11274 (exit $ac_status); } >/dev/null; then
9350 if test -s conftest.err; then 11275 if test -s conftest.err; then
9351 ac_cpp_err=$ac_c_preproc_warn_flag 11276 ac_cpp_err=$ac_c_preproc_warn_flag
9352 else 11277 else
9353 ac_cpp_err= 11278 ac_cpp_err=
9354 fi 11279 fi
9355 else 11280 else
9356 ac_cpp_err=yes 11281 ac_cpp_err=yes
9357 fi 11282 fi
9358 if test -z "$ac_cpp_err"; then 11283 if test -z "$ac_cpp_err"; then
9359 ac_cv_header_sys_dg_sys_info_h=yes 11284 ac_header_preproc=yes
9360 else 11285 else
9361 echo "$as_me: failed program was:" >&5 11286 echo "$as_me: failed program was:" >&5
9362 cat conftest.$ac_ext >&5 11287 cat conftest.$ac_ext >&5
9363 ac_cv_header_sys_dg_sys_info_h=no 11288 ac_header_preproc=no
9364 fi 11289 fi
9365 rm -f conftest.err conftest.$ac_ext 11290 rm -f conftest.err conftest.$ac_ext
9366 fi 11291 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9367 echo "$as_me:9367: result: $ac_cv_header_sys_dg_sys_info_h" >&5 11292 echo "${ECHO_T}$ac_header_preproc" >&6
11293
11294 # So? What about this header?
11295 case $ac_header_compiler:$ac_header_preproc in
11296 yes:no )
11297 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
11298 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11299 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
11300 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;};;
11301 no:yes )
11302 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
11303 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
11304 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
11305 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
11306 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
11307 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;};;
11308 esac
11309 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
11310 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
11311 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
11312 echo $ECHO_N "(cached) $ECHO_C" >&6
11313 else
11314 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
11315 fi
11316 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
9368 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6 11317 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
11318
11319 fi
9369 if test $ac_cv_header_sys_dg_sys_info_h = yes; then 11320 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
9370 ac_have_func=yes 11321 ac_have_func=yes
9371 11322
9372 cat >>confdefs.h <<\EOF 11323 cat >>confdefs.h <<\_ACEOF
9373 #define DGUX 1 11324 #define DGUX 1
9374 EOF 11325 _ACEOF
9375 11326
9376 echo "$as_me:9376: checking for dg_sys_info in -ldgc" >&5 11327
11328 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
9377 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6 11329 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
9378 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then 11330 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
9379 echo $ECHO_N "(cached) $ECHO_C" >&6 11331 echo $ECHO_N "(cached) $ECHO_C" >&6
9380 else 11332 else
9381 ac_check_lib_save_LIBS=$LIBS 11333 ac_check_lib_save_LIBS=$LIBS
9382 LIBS="-ldgc $LIBS" 11334 LIBS="-ldgc $LIBS"
9383 cat >conftest.$ac_ext <<_ACEOF 11335 cat >conftest.$ac_ext <<_ACEOF
9384 #line 9384 "configure" 11336 #line $LINENO "configure"
9385 #include "confdefs.h" 11337 #include "confdefs.h"
9386 11338
9387 /* Override any gcc2 internal prototype to avoid an error. */ 11339 /* Override any gcc2 internal prototype to avoid an error. */
9388 #ifdef __cplusplus 11340 #ifdef __cplusplus
9389 extern "C" 11341 extern "C"
9390 #endif 11342 #endif
9391 /* We use char because int might match the return type of a gcc2 11343 /* We use char because int might match the return type of a gcc2
9392 builtin and then its argument prototype would still apply. */ 11344 builtin and then its argument prototype would still apply. */
9393 char dg_sys_info (); 11345 char dg_sys_info ();
11346 #ifdef F77_DUMMY_MAIN
11347 # ifdef __cplusplus
11348 extern "C"
11349 # endif
11350 int F77_DUMMY_MAIN() { return 1; }
11351 #endif
9394 int 11352 int
9395 main () 11353 main ()
9396 { 11354 {
9397 dg_sys_info (); 11355 dg_sys_info ();
9398 ; 11356 ;
9399 return 0; 11357 return 0;
9400 } 11358 }
9401 _ACEOF 11359 _ACEOF
9402 rm -f conftest.$ac_objext conftest$ac_exeext 11360 rm -f conftest.$ac_objext conftest$ac_exeext
9403 if { (eval echo "$as_me:9403: \"$ac_link\"") >&5 11361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9404 (eval $ac_link) 2>&5 11362 (eval $ac_link) 2>&5
9405 ac_status=$? 11363 ac_status=$?
9406 echo "$as_me:9406: \$? = $ac_status" >&5 11364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407 (exit $ac_status); } && 11365 (exit $ac_status); } &&
9408 { ac_try='test -s conftest$ac_exeext' 11366 { ac_try='test -s conftest$ac_exeext'
9409 { (eval echo "$as_me:9409: \"$ac_try\"") >&5 11367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9410 (eval $ac_try) 2>&5 11368 (eval $ac_try) 2>&5
9411 ac_status=$? 11369 ac_status=$?
9412 echo "$as_me:9412: \$? = $ac_status" >&5 11370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413 (exit $ac_status); }; }; then 11371 (exit $ac_status); }; }; then
9414 ac_cv_lib_dgc_dg_sys_info=yes 11372 ac_cv_lib_dgc_dg_sys_info=yes
9415 else 11373 else
9416 echo "$as_me: failed program was:" >&5 11374 echo "$as_me: failed program was:" >&5
9417 cat conftest.$ac_ext >&5 11375 cat conftest.$ac_ext >&5
9418 ac_cv_lib_dgc_dg_sys_info=no 11376 ac_cv_lib_dgc_dg_sys_info=no
9419 fi 11377 fi
9420 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11378 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9421 LIBS=$ac_check_lib_save_LIBS 11379 LIBS=$ac_check_lib_save_LIBS
9422 fi 11380 fi
9423 echo "$as_me:9423: result: $ac_cv_lib_dgc_dg_sys_info" >&5 11381 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
9424 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6 11382 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
9425 if test $ac_cv_lib_dgc_dg_sys_info = yes; then 11383 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
9426 cat >>confdefs.h <<EOF 11384 cat >>confdefs.h <<_ACEOF
9427 #define HAVE_LIBDGC 1 11385 #define HAVE_LIBDGC 1
9428 EOF 11386 _ACEOF
9429 11387
9430 LIBS="-ldgc $LIBS" 11388 LIBS="-ldgc $LIBS"
9431 11389
9432 fi 11390 fi
9433 11391
9434 fi 11392 fi
9435 11393
9436 echo "$as_me:9436: checking for locale.h" >&5 11394
11395
11396 if test "${ac_cv_header_locale_h+set}" = set; then
11397 echo "$as_me:$LINENO: checking for locale.h" >&5
9437 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6 11398 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
9438 if test "${ac_cv_header_locale_h+set}" = set; then 11399 if test "${ac_cv_header_locale_h+set}" = set; then
9439 echo $ECHO_N "(cached) $ECHO_C" >&6 11400 echo $ECHO_N "(cached) $ECHO_C" >&6
9440 else 11401 fi
9441 cat >conftest.$ac_ext <<_ACEOF 11402 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
9442 #line 9442 "configure" 11403 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
9443 #include "confdefs.h" 11404 else
11405 # Is the header compilable?
11406 echo "$as_me:$LINENO: checking locale.h usability" >&5
11407 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
11408 cat >conftest.$ac_ext <<_ACEOF
11409 #line $LINENO "configure"
11410 #include "confdefs.h"
11411 $ac_includes_default
9444 #include <locale.h> 11412 #include <locale.h>
9445 _ACEOF 11413 _ACEOF
9446 if { (eval echo "$as_me:9446: \"$ac_cpp conftest.$ac_ext\"") >&5 11414 rm -f conftest.$ac_objext
11415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11416 (eval $ac_compile) 2>&5
11417 ac_status=$?
11418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419 (exit $ac_status); } &&
11420 { ac_try='test -s conftest.$ac_objext'
11421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11422 (eval $ac_try) 2>&5
11423 ac_status=$?
11424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425 (exit $ac_status); }; }; then
11426 ac_header_compiler=yes
11427 else
11428 echo "$as_me: failed program was:" >&5
11429 cat conftest.$ac_ext >&5
11430 ac_header_compiler=no
11431 fi
11432 rm -f conftest.$ac_objext conftest.$ac_ext
11433 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11434 echo "${ECHO_T}$ac_header_compiler" >&6
11435
11436 # Is the header present?
11437 echo "$as_me:$LINENO: checking locale.h presence" >&5
11438 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
11439 cat >conftest.$ac_ext <<_ACEOF
11440 #line $LINENO "configure"
11441 #include "confdefs.h"
11442 #include <locale.h>
11443 _ACEOF
11444 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9447 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 11445 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9448 ac_status=$? 11446 ac_status=$?
9449 egrep -v '^ *\+' conftest.er1 >conftest.err 11447 egrep -v '^ *\+' conftest.er1 >conftest.err
9450 rm -f conftest.er1 11448 rm -f conftest.er1
9451 cat conftest.err >&5 11449 cat conftest.err >&5
9452 echo "$as_me:9452: \$? = $ac_status" >&5 11450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453 (exit $ac_status); } >/dev/null; then 11451 (exit $ac_status); } >/dev/null; then
9454 if test -s conftest.err; then 11452 if test -s conftest.err; then
9455 ac_cpp_err=$ac_c_preproc_warn_flag 11453 ac_cpp_err=$ac_c_preproc_warn_flag
9456 else 11454 else
9457 ac_cpp_err= 11455 ac_cpp_err=
9458 fi 11456 fi
9459 else 11457 else
9460 ac_cpp_err=yes 11458 ac_cpp_err=yes
9461 fi 11459 fi
9462 if test -z "$ac_cpp_err"; then 11460 if test -z "$ac_cpp_err"; then
9463 ac_cv_header_locale_h=yes 11461 ac_header_preproc=yes
9464 else 11462 else
9465 echo "$as_me: failed program was:" >&5 11463 echo "$as_me: failed program was:" >&5
9466 cat conftest.$ac_ext >&5 11464 cat conftest.$ac_ext >&5
9467 ac_cv_header_locale_h=no 11465 ac_header_preproc=no
9468 fi 11466 fi
9469 rm -f conftest.err conftest.$ac_ext 11467 rm -f conftest.err conftest.$ac_ext
9470 fi 11468 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9471 echo "$as_me:9471: result: $ac_cv_header_locale_h" >&5 11469 echo "${ECHO_T}$ac_header_preproc" >&6
11470
11471 # So? What about this header?
11472 case $ac_header_compiler:$ac_header_preproc in
11473 yes:no )
11474 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
11475 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11476 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
11477 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;};;
11478 no:yes )
11479 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
11480 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
11481 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
11482 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
11483 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
11484 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;};;
11485 esac
11486 echo "$as_me:$LINENO: checking for locale.h" >&5
11487 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
11488 if test "${ac_cv_header_locale_h+set}" = set; then
11489 echo $ECHO_N "(cached) $ECHO_C" >&6
11490 else
11491 ac_cv_header_locale_h=$ac_header_preproc
11492 fi
11493 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
9472 echo "${ECHO_T}$ac_cv_header_locale_h" >&6 11494 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
11495
11496 fi
11497
11498
9473 11499
9474 for ac_func in setlocale 11500 for ac_func in setlocale
9475 do 11501 do
9476 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11502 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9477 echo "$as_me:9477: checking for $ac_func" >&5 11503 echo "$as_me:$LINENO: checking for $ac_func" >&5
9478 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 11504 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9479 if eval "test \"\${$as_ac_var+set}\" = set"; then 11505 if eval "test \"\${$as_ac_var+set}\" = set"; then
9480 echo $ECHO_N "(cached) $ECHO_C" >&6 11506 echo $ECHO_N "(cached) $ECHO_C" >&6
9481 else 11507 else
9482 cat >conftest.$ac_ext <<_ACEOF 11508 cat >conftest.$ac_ext <<_ACEOF
9483 #line 9483 "configure" 11509 #line $LINENO "configure"
9484 #include "confdefs.h" 11510 #include "confdefs.h"
9485 /* System header to define __stub macros and hopefully few prototypes, 11511 /* System header to define __stub macros and hopefully few prototypes,
9486 which can conflict with char $ac_func (); below. */ 11512 which can conflict with char $ac_func (); below. */
9487 #include <assert.h> 11513 #include <assert.h>
9488 /* Override any gcc2 internal prototype to avoid an error. */ 11514 /* Override any gcc2 internal prototype to avoid an error. */
9492 /* We use char because int might match the return type of a gcc2 11518 /* We use char because int might match the return type of a gcc2
9493 builtin and then its argument prototype would still apply. */ 11519 builtin and then its argument prototype would still apply. */
9494 char $ac_func (); 11520 char $ac_func ();
9495 char (*f) (); 11521 char (*f) ();
9496 11522
11523 #ifdef F77_DUMMY_MAIN
11524 # ifdef __cplusplus
11525 extern "C"
11526 # endif
11527 int F77_DUMMY_MAIN() { return 1; }
11528 #endif
9497 int 11529 int
9498 main () 11530 main ()
9499 { 11531 {
9500 /* The GNU C library defines this for functions which it implements 11532 /* The GNU C library defines this for functions which it implements
9501 to always fail with ENOSYS. Some functions are actually named 11533 to always fail with ENOSYS. Some functions are actually named
9509 ; 11541 ;
9510 return 0; 11542 return 0;
9511 } 11543 }
9512 _ACEOF 11544 _ACEOF
9513 rm -f conftest.$ac_objext conftest$ac_exeext 11545 rm -f conftest.$ac_objext conftest$ac_exeext
9514 if { (eval echo "$as_me:9514: \"$ac_link\"") >&5 11546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9515 (eval $ac_link) 2>&5 11547 (eval $ac_link) 2>&5
9516 ac_status=$? 11548 ac_status=$?
9517 echo "$as_me:9517: \$? = $ac_status" >&5 11549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518 (exit $ac_status); } && 11550 (exit $ac_status); } &&
9519 { ac_try='test -s conftest$ac_exeext' 11551 { ac_try='test -s conftest$ac_exeext'
9520 { (eval echo "$as_me:9520: \"$ac_try\"") >&5 11552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9521 (eval $ac_try) 2>&5 11553 (eval $ac_try) 2>&5
9522 ac_status=$? 11554 ac_status=$?
9523 echo "$as_me:9523: \$? = $ac_status" >&5 11555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9524 (exit $ac_status); }; }; then 11556 (exit $ac_status); }; }; then
9525 eval "$as_ac_var=yes" 11557 eval "$as_ac_var=yes"
9526 else 11558 else
9527 echo "$as_me: failed program was:" >&5 11559 echo "$as_me: failed program was:" >&5
9528 cat conftest.$ac_ext >&5 11560 cat conftest.$ac_ext >&5
9529 eval "$as_ac_var=no" 11561 eval "$as_ac_var=no"
9530 fi 11562 fi
9531 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11563 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9532 fi 11564 fi
9533 echo "$as_me:9533: result: `eval echo '${'$as_ac_var'}'`" >&5 11565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9534 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 11566 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9535 if test `eval echo '${'$as_ac_var'}'` = yes; then 11567 if test `eval echo '${'$as_ac_var'}'` = yes; then
9536 cat >>confdefs.h <<EOF 11568 cat >>confdefs.h <<_ACEOF
9537 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11569 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9538 EOF 11570 _ACEOF
9539 11571
9540 fi 11572 fi
9541 done 11573 done
11574
9542 11575
9543 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it 11576 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
9544 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because 11577 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
9545 # Irix 4.0.5F has the header but not the library. 11578 # Irix 4.0.5F has the header but not the library.
9546 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then 11579 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
9547 ac_have_func=yes 11580 ac_have_func=yes
9548 11581
9549 cat >>confdefs.h <<\EOF 11582 cat >>confdefs.h <<\_ACEOF
9550 #define SVR4 1 11583 #define SVR4 1
9551 EOF 11584 _ACEOF
9552 11585
9553 fi 11586 fi
9554 11587
9555 if test $ac_have_func = no; then 11588 if test $ac_have_func = no; then
9556 echo "$as_me:9556: checking for inq_stats/cpustats.h" >&5 11589 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
11590 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
9557 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6 11591 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
9558 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then 11592 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
9559 echo $ECHO_N "(cached) $ECHO_C" >&6 11593 echo $ECHO_N "(cached) $ECHO_C" >&6
9560 else 11594 fi
9561 cat >conftest.$ac_ext <<_ACEOF 11595 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
9562 #line 9562 "configure" 11596 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
9563 #include "confdefs.h" 11597 else
11598 # Is the header compilable?
11599 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
11600 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
11601 cat >conftest.$ac_ext <<_ACEOF
11602 #line $LINENO "configure"
11603 #include "confdefs.h"
11604 $ac_includes_default
9564 #include <inq_stats/cpustats.h> 11605 #include <inq_stats/cpustats.h>
9565 _ACEOF 11606 _ACEOF
9566 if { (eval echo "$as_me:9566: \"$ac_cpp conftest.$ac_ext\"") >&5 11607 rm -f conftest.$ac_objext
11608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11609 (eval $ac_compile) 2>&5
11610 ac_status=$?
11611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612 (exit $ac_status); } &&
11613 { ac_try='test -s conftest.$ac_objext'
11614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11615 (eval $ac_try) 2>&5
11616 ac_status=$?
11617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618 (exit $ac_status); }; }; then
11619 ac_header_compiler=yes
11620 else
11621 echo "$as_me: failed program was:" >&5
11622 cat conftest.$ac_ext >&5
11623 ac_header_compiler=no
11624 fi
11625 rm -f conftest.$ac_objext conftest.$ac_ext
11626 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11627 echo "${ECHO_T}$ac_header_compiler" >&6
11628
11629 # Is the header present?
11630 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
11631 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
11632 cat >conftest.$ac_ext <<_ACEOF
11633 #line $LINENO "configure"
11634 #include "confdefs.h"
11635 #include <inq_stats/cpustats.h>
11636 _ACEOF
11637 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9567 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 11638 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9568 ac_status=$? 11639 ac_status=$?
9569 egrep -v '^ *\+' conftest.er1 >conftest.err 11640 egrep -v '^ *\+' conftest.er1 >conftest.err
9570 rm -f conftest.er1 11641 rm -f conftest.er1
9571 cat conftest.err >&5 11642 cat conftest.err >&5
9572 echo "$as_me:9572: \$? = $ac_status" >&5 11643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573 (exit $ac_status); } >/dev/null; then 11644 (exit $ac_status); } >/dev/null; then
9574 if test -s conftest.err; then 11645 if test -s conftest.err; then
9575 ac_cpp_err=$ac_c_preproc_warn_flag 11646 ac_cpp_err=$ac_c_preproc_warn_flag
9576 else 11647 else
9577 ac_cpp_err= 11648 ac_cpp_err=
9578 fi 11649 fi
9579 else 11650 else
9580 ac_cpp_err=yes 11651 ac_cpp_err=yes
9581 fi 11652 fi
9582 if test -z "$ac_cpp_err"; then 11653 if test -z "$ac_cpp_err"; then
9583 ac_cv_header_inq_stats_cpustats_h=yes 11654 ac_header_preproc=yes
9584 else 11655 else
9585 echo "$as_me: failed program was:" >&5 11656 echo "$as_me: failed program was:" >&5
9586 cat conftest.$ac_ext >&5 11657 cat conftest.$ac_ext >&5
9587 ac_cv_header_inq_stats_cpustats_h=no 11658 ac_header_preproc=no
9588 fi 11659 fi
9589 rm -f conftest.err conftest.$ac_ext 11660 rm -f conftest.err conftest.$ac_ext
9590 fi 11661 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9591 echo "$as_me:9591: result: $ac_cv_header_inq_stats_cpustats_h" >&5 11662 echo "${ECHO_T}$ac_header_preproc" >&6
11663
11664 # So? What about this header?
11665 case $ac_header_compiler:$ac_header_preproc in
11666 yes:no )
11667 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
11668 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11669 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
11670 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;};;
11671 no:yes )
11672 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
11673 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
11674 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
11675 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
11676 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
11677 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;};;
11678 esac
11679 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
11680 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
11681 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
11682 echo $ECHO_N "(cached) $ECHO_C" >&6
11683 else
11684 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
11685 fi
11686 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
9592 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6 11687 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
11688
11689 fi
9593 if test $ac_cv_header_inq_stats_cpustats_h = yes; then 11690 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
9594 ac_have_func=yes 11691 ac_have_func=yes
9595 11692
9596 cat >>confdefs.h <<\EOF 11693 cat >>confdefs.h <<\_ACEOF
9597 #define UMAX 1 11694 #define UMAX 1
9598 EOF 11695 _ACEOF
9599 11696
9600 cat >>confdefs.h <<\EOF 11697
11698 cat >>confdefs.h <<\_ACEOF
9601 #define UMAX4_3 1 11699 #define UMAX4_3 1
9602 EOF 11700 _ACEOF
9603 11701
9604 fi 11702 fi
11703
9605 11704
9606 fi 11705 fi
9607 11706
9608 if test $ac_have_func = no; then 11707 if test $ac_have_func = no; then
9609 echo "$as_me:9609: checking for sys/cpustats.h" >&5 11708 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
11709 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
9610 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6 11710 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
9611 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then 11711 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
9612 echo $ECHO_N "(cached) $ECHO_C" >&6 11712 echo $ECHO_N "(cached) $ECHO_C" >&6
9613 else 11713 fi
9614 cat >conftest.$ac_ext <<_ACEOF 11714 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
9615 #line 9615 "configure" 11715 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
9616 #include "confdefs.h" 11716 else
11717 # Is the header compilable?
11718 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
11719 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
11720 cat >conftest.$ac_ext <<_ACEOF
11721 #line $LINENO "configure"
11722 #include "confdefs.h"
11723 $ac_includes_default
9617 #include <sys/cpustats.h> 11724 #include <sys/cpustats.h>
9618 _ACEOF 11725 _ACEOF
9619 if { (eval echo "$as_me:9619: \"$ac_cpp conftest.$ac_ext\"") >&5 11726 rm -f conftest.$ac_objext
11727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11728 (eval $ac_compile) 2>&5
11729 ac_status=$?
11730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731 (exit $ac_status); } &&
11732 { ac_try='test -s conftest.$ac_objext'
11733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11734 (eval $ac_try) 2>&5
11735 ac_status=$?
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); }; }; then
11738 ac_header_compiler=yes
11739 else
11740 echo "$as_me: failed program was:" >&5
11741 cat conftest.$ac_ext >&5
11742 ac_header_compiler=no
11743 fi
11744 rm -f conftest.$ac_objext conftest.$ac_ext
11745 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11746 echo "${ECHO_T}$ac_header_compiler" >&6
11747
11748 # Is the header present?
11749 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
11750 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
11751 cat >conftest.$ac_ext <<_ACEOF
11752 #line $LINENO "configure"
11753 #include "confdefs.h"
11754 #include <sys/cpustats.h>
11755 _ACEOF
11756 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9620 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 11757 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9621 ac_status=$? 11758 ac_status=$?
9622 egrep -v '^ *\+' conftest.er1 >conftest.err 11759 egrep -v '^ *\+' conftest.er1 >conftest.err
9623 rm -f conftest.er1 11760 rm -f conftest.er1
9624 cat conftest.err >&5 11761 cat conftest.err >&5
9625 echo "$as_me:9625: \$? = $ac_status" >&5 11762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626 (exit $ac_status); } >/dev/null; then 11763 (exit $ac_status); } >/dev/null; then
9627 if test -s conftest.err; then 11764 if test -s conftest.err; then
9628 ac_cpp_err=$ac_c_preproc_warn_flag 11765 ac_cpp_err=$ac_c_preproc_warn_flag
9629 else 11766 else
9630 ac_cpp_err= 11767 ac_cpp_err=
9631 fi 11768 fi
9632 else 11769 else
9633 ac_cpp_err=yes 11770 ac_cpp_err=yes
9634 fi 11771 fi
9635 if test -z "$ac_cpp_err"; then 11772 if test -z "$ac_cpp_err"; then
9636 ac_cv_header_sys_cpustats_h=yes 11773 ac_header_preproc=yes
9637 else 11774 else
9638 echo "$as_me: failed program was:" >&5 11775 echo "$as_me: failed program was:" >&5
9639 cat conftest.$ac_ext >&5 11776 cat conftest.$ac_ext >&5
9640 ac_cv_header_sys_cpustats_h=no 11777 ac_header_preproc=no
9641 fi 11778 fi
9642 rm -f conftest.err conftest.$ac_ext 11779 rm -f conftest.err conftest.$ac_ext
9643 fi 11780 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9644 echo "$as_me:9644: result: $ac_cv_header_sys_cpustats_h" >&5 11781 echo "${ECHO_T}$ac_header_preproc" >&6
11782
11783 # So? What about this header?
11784 case $ac_header_compiler:$ac_header_preproc in
11785 yes:no )
11786 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
11787 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11788 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
11789 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;};;
11790 no:yes )
11791 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
11792 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
11793 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
11794 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
11795 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
11796 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;};;
11797 esac
11798 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
11799 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
11800 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
11801 echo $ECHO_N "(cached) $ECHO_C" >&6
11802 else
11803 ac_cv_header_sys_cpustats_h=$ac_header_preproc
11804 fi
11805 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
9645 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6 11806 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
11807
11808 fi
9646 if test $ac_cv_header_sys_cpustats_h = yes; then 11809 if test $ac_cv_header_sys_cpustats_h = yes; then
9647 ac_have_func=yes; cat >>confdefs.h <<\EOF 11810 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
9648 #define UMAX 1 11811 #define UMAX 1
9649 EOF 11812 _ACEOF
9650 11813
9651 fi 11814 fi
11815
9652 11816
9653 fi 11817 fi
9654 11818
9655 if test $ac_have_func = no; then 11819 if test $ac_have_func = no; then
9656 11820
9657 for ac_header in mach/mach.h 11821 for ac_header in mach/mach.h
9658 do 11822 do
9659 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11823 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9660 echo "$as_me:9660: checking for $ac_header" >&5 11824 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11825 echo "$as_me:$LINENO: checking for $ac_header" >&5
9661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 11826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9662 if eval "test \"\${$as_ac_Header+set}\" = set"; then 11827 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9663 echo $ECHO_N "(cached) $ECHO_C" >&6 11828 echo $ECHO_N "(cached) $ECHO_C" >&6
9664 else 11829 fi
9665 cat >conftest.$ac_ext <<_ACEOF 11830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9666 #line 9666 "configure" 11831 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9667 #include "confdefs.h" 11832 else
11833 # Is the header compilable?
11834 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11835 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11836 cat >conftest.$ac_ext <<_ACEOF
11837 #line $LINENO "configure"
11838 #include "confdefs.h"
11839 $ac_includes_default
9668 #include <$ac_header> 11840 #include <$ac_header>
9669 _ACEOF 11841 _ACEOF
9670 if { (eval echo "$as_me:9670: \"$ac_cpp conftest.$ac_ext\"") >&5 11842 rm -f conftest.$ac_objext
11843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11844 (eval $ac_compile) 2>&5
11845 ac_status=$?
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); } &&
11848 { ac_try='test -s conftest.$ac_objext'
11849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11850 (eval $ac_try) 2>&5
11851 ac_status=$?
11852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853 (exit $ac_status); }; }; then
11854 ac_header_compiler=yes
11855 else
11856 echo "$as_me: failed program was:" >&5
11857 cat conftest.$ac_ext >&5
11858 ac_header_compiler=no
11859 fi
11860 rm -f conftest.$ac_objext conftest.$ac_ext
11861 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11862 echo "${ECHO_T}$ac_header_compiler" >&6
11863
11864 # Is the header present?
11865 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11866 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11867 cat >conftest.$ac_ext <<_ACEOF
11868 #line $LINENO "configure"
11869 #include "confdefs.h"
11870 #include <$ac_header>
11871 _ACEOF
11872 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9671 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 11873 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9672 ac_status=$? 11874 ac_status=$?
9673 egrep -v '^ *\+' conftest.er1 >conftest.err 11875 egrep -v '^ *\+' conftest.er1 >conftest.err
9674 rm -f conftest.er1 11876 rm -f conftest.er1
9675 cat conftest.err >&5 11877 cat conftest.err >&5
9676 echo "$as_me:9676: \$? = $ac_status" >&5 11878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677 (exit $ac_status); } >/dev/null; then 11879 (exit $ac_status); } >/dev/null; then
9678 if test -s conftest.err; then 11880 if test -s conftest.err; then
9679 ac_cpp_err=$ac_c_preproc_warn_flag 11881 ac_cpp_err=$ac_c_preproc_warn_flag
9680 else 11882 else
9681 ac_cpp_err= 11883 ac_cpp_err=
9682 fi 11884 fi
9683 else 11885 else
9684 ac_cpp_err=yes 11886 ac_cpp_err=yes
9685 fi 11887 fi
9686 if test -z "$ac_cpp_err"; then 11888 if test -z "$ac_cpp_err"; then
9687 eval "$as_ac_Header=yes" 11889 ac_header_preproc=yes
9688 else 11890 else
9689 echo "$as_me: failed program was:" >&5 11891 echo "$as_me: failed program was:" >&5
9690 cat conftest.$ac_ext >&5 11892 cat conftest.$ac_ext >&5
9691 eval "$as_ac_Header=no" 11893 ac_header_preproc=no
9692 fi 11894 fi
9693 rm -f conftest.err conftest.$ac_ext 11895 rm -f conftest.err conftest.$ac_ext
9694 fi 11896 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9695 echo "$as_me:9695: result: `eval echo '${'$as_ac_Header'}'`" >&5 11897 echo "${ECHO_T}$ac_header_preproc" >&6
11898
11899 # So? What about this header?
11900 case $ac_header_compiler:$ac_header_preproc in
11901 yes:no )
11902 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11903 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11905 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11906 no:yes )
11907 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11908 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11909 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11910 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11912 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11913 esac
11914 echo "$as_me:$LINENO: checking for $ac_header" >&5
11915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11917 echo $ECHO_N "(cached) $ECHO_C" >&6
11918 else
11919 eval "$as_ac_Header=$ac_header_preproc"
11920 fi
11921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9696 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 11922 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11923
11924 fi
9697 if test `eval echo '${'$as_ac_Header'}'` = yes; then 11925 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9698 cat >>confdefs.h <<EOF 11926 cat >>confdefs.h <<_ACEOF
9699 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11927 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9700 EOF 11928 _ACEOF
9701 11929
9702 fi 11930 fi
11931
9703 done 11932 done
9704 11933
9705 fi 11934 fi
11935
9706 11936
9707 for ac_header in nlist.h 11937 for ac_header in nlist.h
9708 do 11938 do
9709 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11939 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9710 echo "$as_me:9710: checking for $ac_header" >&5 11940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11941 echo "$as_me:$LINENO: checking for $ac_header" >&5
9711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 11942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9712 if eval "test \"\${$as_ac_Header+set}\" = set"; then 11943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9713 echo $ECHO_N "(cached) $ECHO_C" >&6 11944 echo $ECHO_N "(cached) $ECHO_C" >&6
9714 else 11945 fi
9715 cat >conftest.$ac_ext <<_ACEOF 11946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9716 #line 9716 "configure" 11947 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9717 #include "confdefs.h" 11948 else
11949 # Is the header compilable?
11950 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11951 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11952 cat >conftest.$ac_ext <<_ACEOF
11953 #line $LINENO "configure"
11954 #include "confdefs.h"
11955 $ac_includes_default
9718 #include <$ac_header> 11956 #include <$ac_header>
9719 _ACEOF 11957 _ACEOF
9720 if { (eval echo "$as_me:9720: \"$ac_cpp conftest.$ac_ext\"") >&5 11958 rm -f conftest.$ac_objext
11959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11960 (eval $ac_compile) 2>&5
11961 ac_status=$?
11962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963 (exit $ac_status); } &&
11964 { ac_try='test -s conftest.$ac_objext'
11965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11966 (eval $ac_try) 2>&5
11967 ac_status=$?
11968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969 (exit $ac_status); }; }; then
11970 ac_header_compiler=yes
11971 else
11972 echo "$as_me: failed program was:" >&5
11973 cat conftest.$ac_ext >&5
11974 ac_header_compiler=no
11975 fi
11976 rm -f conftest.$ac_objext conftest.$ac_ext
11977 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11978 echo "${ECHO_T}$ac_header_compiler" >&6
11979
11980 # Is the header present?
11981 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11982 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11983 cat >conftest.$ac_ext <<_ACEOF
11984 #line $LINENO "configure"
11985 #include "confdefs.h"
11986 #include <$ac_header>
11987 _ACEOF
11988 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9721 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 11989 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9722 ac_status=$? 11990 ac_status=$?
9723 egrep -v '^ *\+' conftest.er1 >conftest.err 11991 egrep -v '^ *\+' conftest.er1 >conftest.err
9724 rm -f conftest.er1 11992 rm -f conftest.er1
9725 cat conftest.err >&5 11993 cat conftest.err >&5
9726 echo "$as_me:9726: \$? = $ac_status" >&5 11994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727 (exit $ac_status); } >/dev/null; then 11995 (exit $ac_status); } >/dev/null; then
9728 if test -s conftest.err; then 11996 if test -s conftest.err; then
9729 ac_cpp_err=$ac_c_preproc_warn_flag 11997 ac_cpp_err=$ac_c_preproc_warn_flag
9730 else 11998 else
9731 ac_cpp_err= 11999 ac_cpp_err=
9732 fi 12000 fi
9733 else 12001 else
9734 ac_cpp_err=yes 12002 ac_cpp_err=yes
9735 fi 12003 fi
9736 if test -z "$ac_cpp_err"; then 12004 if test -z "$ac_cpp_err"; then
9737 eval "$as_ac_Header=yes" 12005 ac_header_preproc=yes
9738 else 12006 else
9739 echo "$as_me: failed program was:" >&5 12007 echo "$as_me: failed program was:" >&5
9740 cat conftest.$ac_ext >&5 12008 cat conftest.$ac_ext >&5
9741 eval "$as_ac_Header=no" 12009 ac_header_preproc=no
9742 fi 12010 fi
9743 rm -f conftest.err conftest.$ac_ext 12011 rm -f conftest.err conftest.$ac_ext
9744 fi 12012 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9745 echo "$as_me:9745: result: `eval echo '${'$as_ac_Header'}'`" >&5 12013 echo "${ECHO_T}$ac_header_preproc" >&6
12014
12015 # So? What about this header?
12016 case $ac_header_compiler:$ac_header_preproc in
12017 yes:no )
12018 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12019 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12021 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12022 no:yes )
12023 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12024 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12025 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12026 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12028 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12029 esac
12030 echo "$as_me:$LINENO: checking for $ac_header" >&5
12031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12033 echo $ECHO_N "(cached) $ECHO_C" >&6
12034 else
12035 eval "$as_ac_Header=$ac_header_preproc"
12036 fi
12037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9746 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 12038 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12039
12040 fi
9747 if test `eval echo '${'$as_ac_Header'}'` = yes; then 12041 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9748 cat >>confdefs.h <<EOF 12042 cat >>confdefs.h <<_ACEOF
9749 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12043 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9750 EOF 12044 _ACEOF
9751 echo "$as_me:9751: checking for struct nlist.n_un.n_name" >&5 12045 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
9752 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6 12046 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
9753 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then 12047 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
9754 echo $ECHO_N "(cached) $ECHO_C" >&6 12048 echo $ECHO_N "(cached) $ECHO_C" >&6
9755 else 12049 else
9756 cat >conftest.$ac_ext <<_ACEOF 12050 cat >conftest.$ac_ext <<_ACEOF
9757 #line 9757 "configure" 12051 #line $LINENO "configure"
9758 #include "confdefs.h" 12052 #include "confdefs.h"
9759 #include <nlist.h> 12053 #include <nlist.h>
9760 12054
12055 #ifdef F77_DUMMY_MAIN
12056 # ifdef __cplusplus
12057 extern "C"
12058 # endif
12059 int F77_DUMMY_MAIN() { return 1; }
12060 #endif
9761 int 12061 int
9762 main () 12062 main ()
9763 { 12063 {
9764 static struct nlist ac_aggr; 12064 static struct nlist ac_aggr;
9765 if (ac_aggr.n_un.n_name) 12065 if (ac_aggr.n_un.n_name)
9767 ; 12067 ;
9768 return 0; 12068 return 0;
9769 } 12069 }
9770 _ACEOF 12070 _ACEOF
9771 rm -f conftest.$ac_objext 12071 rm -f conftest.$ac_objext
9772 if { (eval echo "$as_me:9772: \"$ac_compile\"") >&5 12072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9773 (eval $ac_compile) 2>&5 12073 (eval $ac_compile) 2>&5
9774 ac_status=$? 12074 ac_status=$?
9775 echo "$as_me:9775: \$? = $ac_status" >&5 12075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776 (exit $ac_status); } && 12076 (exit $ac_status); } &&
9777 { ac_try='test -s conftest.$ac_objext' 12077 { ac_try='test -s conftest.$ac_objext'
9778 { (eval echo "$as_me:9778: \"$ac_try\"") >&5 12078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9779 (eval $ac_try) 2>&5 12079 (eval $ac_try) 2>&5
9780 ac_status=$? 12080 ac_status=$?
9781 echo "$as_me:9781: \$? = $ac_status" >&5 12081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782 (exit $ac_status); }; }; then 12082 (exit $ac_status); }; }; then
9783 ac_cv_member_struct_nlist_n_un_n_name=yes 12083 ac_cv_member_struct_nlist_n_un_n_name=yes
9784 else 12084 else
9785 echo "$as_me: failed program was:" >&5 12085 echo "$as_me: failed program was:" >&5
9786 cat conftest.$ac_ext >&5 12086 cat conftest.$ac_ext >&5
9787 ac_cv_member_struct_nlist_n_un_n_name=no 12087 ac_cv_member_struct_nlist_n_un_n_name=no
9788 fi 12088 fi
9789 rm -f conftest.$ac_objext conftest.$ac_ext 12089 rm -f conftest.$ac_objext conftest.$ac_ext
9790 fi 12090 fi
9791 echo "$as_me:9791: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5 12091 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
9792 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6 12092 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
9793 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then 12093 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
9794 12094
9795 cat >>confdefs.h <<EOF 12095 cat >>confdefs.h <<_ACEOF
9796 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1 12096 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
9797 EOF 12097 _ACEOF
9798 12098
9799 cat >>confdefs.h <<\EOF 12099
12100 cat >>confdefs.h <<\_ACEOF
9800 #define NLIST_NAME_UNION 1 12101 #define NLIST_NAME_UNION 1
9801 EOF 12102 _ACEOF
9802 12103
9803 fi 12104 fi
9804 12105
9805 fi 12106
12107 fi
12108
9806 done 12109 done
9807 12110
9808 fi 12111 fi
9809 done 12112 done
9810 12113
12114
9811 # Some definitions of getloadavg require that the program be installed setgid. 12115 # Some definitions of getloadavg require that the program be installed setgid.
9812 echo "$as_me:9812: checking whether getloadavg requires setgid" >&5 12116 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
9813 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6 12117 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
9814 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then 12118 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
9815 echo $ECHO_N "(cached) $ECHO_C" >&6 12119 echo $ECHO_N "(cached) $ECHO_C" >&6
9816 else 12120 else
9817 cat >conftest.$ac_ext <<_ACEOF 12121 cat >conftest.$ac_ext <<_ACEOF
9818 #line 9818 "configure" 12122 #line $LINENO "configure"
9819 #include "confdefs.h" 12123 #include "confdefs.h"
9820 #include "$srcdir/getloadavg.c" 12124 #include "$srcdir/getloadavg.c"
9821 #ifdef LDAV_PRIVILEGED 12125 #ifdef LDAV_PRIVILEGED
9822 Yowza Am I SETGID yet 12126 Yowza Am I SETGID yet
9823 #endif 12127 #endif
9829 ac_cv_func_getloadavg_setgid=no 12133 ac_cv_func_getloadavg_setgid=no
9830 fi 12134 fi
9831 rm -f conftest* 12135 rm -f conftest*
9832 12136
9833 fi 12137 fi
9834 echo "$as_me:9834: result: $ac_cv_func_getloadavg_setgid" >&5 12138 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
9835 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6 12139 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
9836 if test $ac_cv_func_getloadavg_setgid = yes; then 12140 if test $ac_cv_func_getloadavg_setgid = yes; then
9837 NEED_SETGID=true 12141 NEED_SETGID=true
9838 12142
9839 cat >>confdefs.h <<\EOF 12143 cat >>confdefs.h <<\_ACEOF
9840 #define GETLOADAVG_PRIVILEGED 1 12144 #define GETLOADAVG_PRIVILEGED 1
9841 EOF 12145 _ACEOF
9842 12146
9843 else 12147 else
9844 NEED_SETGID=false 12148 NEED_SETGID=false
9845 fi 12149 fi
9846 12150
9847 if test $ac_cv_func_getloadavg_setgid = yes; then 12151 if test $ac_cv_func_getloadavg_setgid = yes; then
9848 echo "$as_me:9848: checking group of /dev/kmem" >&5 12152 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
9849 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6 12153 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
9850 if test "${ac_cv_group_kmem+set}" = set; then 12154 if test "${ac_cv_group_kmem+set}" = set; then
9851 echo $ECHO_N "(cached) $ECHO_C" >&6 12155 echo $ECHO_N "(cached) $ECHO_C" >&6
9852 else 12156 else
9853 # On Solaris, /dev/kmem is a symlink. Get info on the real file. 12157 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
9858 | sed -ne 's/[ ][ ]*/ /g; 12162 | sed -ne 's/[ ][ ]*/ /g;
9859 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/; 12163 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
9860 / /s/.* //;p;'` 12164 / /s/.* //;p;'`
9861 12165
9862 fi 12166 fi
9863 echo "$as_me:9863: result: $ac_cv_group_kmem" >&5 12167 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
9864 echo "${ECHO_T}$ac_cv_group_kmem" >&6 12168 echo "${ECHO_T}$ac_cv_group_kmem" >&6
9865 KMEM_GROUP=$ac_cv_group_kmem 12169 KMEM_GROUP=$ac_cv_group_kmem
9866 fi 12170 fi
9867 if test "x$ac_save_LIBS" = x; then 12171 if test "x$ac_save_LIBS" = x; then
9868 GETLOADAVG_LIBS=$LIBS 12172 GETLOADAVG_LIBS=$LIBS
9869 else 12173 else
9870 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"` 12174 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
9871 fi 12175 fi
9872 LIBS=$ac_save_LIBS 12176 LIBS=$ac_save_LIBS
9873 12177
9874 echo "$as_me:9874: checking for _LARGEFILE_SOURCE value needed for large files" >&5 12178
9875 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6 12179
9876 if test "${ac_cv_sys_largefile_source+set}" = set; then 12180 ac_have_func=no # yes means we've found a way to get the load average.
9877 echo $ECHO_N "(cached) $ECHO_C" >&6 12181
9878 else 12182 ac_save_LIBS=$LIBS
9879 while :; do 12183
9880 ac_cv_sys_largefile_source=no 12184 # Check for getloadavg, but be sure not to touch the cache variable.
12185 (echo "$as_me:$LINENO: checking for getloadavg" >&5
12186 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
12187 if test "${ac_cv_func_getloadavg+set}" = set; then
12188 echo $ECHO_N "(cached) $ECHO_C" >&6
12189 else
9881 cat >conftest.$ac_ext <<_ACEOF 12190 cat >conftest.$ac_ext <<_ACEOF
9882 #line 9882 "configure" 12191 #line $LINENO "configure"
9883 #include "confdefs.h" 12192 #include "confdefs.h"
9884 #include <stdio.h> 12193 /* System header to define __stub macros and hopefully few prototypes,
12194 which can conflict with char getloadavg (); below. */
12195 #include <assert.h>
12196 /* Override any gcc2 internal prototype to avoid an error. */
12197 #ifdef __cplusplus
12198 extern "C"
12199 #endif
12200 /* We use char because int might match the return type of a gcc2
12201 builtin and then its argument prototype would still apply. */
12202 char getloadavg ();
12203 char (*f) ();
12204
12205 #ifdef F77_DUMMY_MAIN
12206 # ifdef __cplusplus
12207 extern "C"
12208 # endif
12209 int F77_DUMMY_MAIN() { return 1; }
12210 #endif
9885 int 12211 int
9886 main () 12212 main ()
9887 { 12213 {
9888 return !fseeko; 12214 /* The GNU C library defines this for functions which it implements
12215 to always fail with ENOSYS. Some functions are actually named
12216 something starting with __ and the normal name is an alias. */
12217 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
12218 choke me
12219 #else
12220 f = getloadavg;
12221 #endif
12222
9889 ; 12223 ;
9890 return 0; 12224 return 0;
9891 } 12225 }
9892 _ACEOF 12226 _ACEOF
9893 rm -f conftest.$ac_objext
9894 if { (eval echo "$as_me:9894: \"$ac_compile\"") >&5
9895 (eval $ac_compile) 2>&5
9896 ac_status=$?
9897 echo "$as_me:9897: \$? = $ac_status" >&5
9898 (exit $ac_status); } &&
9899 { ac_try='test -s conftest.$ac_objext'
9900 { (eval echo "$as_me:9900: \"$ac_try\"") >&5
9901 (eval $ac_try) 2>&5
9902 ac_status=$?
9903 echo "$as_me:9903: \$? = $ac_status" >&5
9904 (exit $ac_status); }; }; then
9905 break
9906 else
9907 echo "$as_me: failed program was:" >&5
9908 cat conftest.$ac_ext >&5
9909 fi
9910 rm -f conftest.$ac_objext conftest.$ac_ext
9911 cat >conftest.$ac_ext <<_ACEOF
9912 #line 9912 "configure"
9913 #include "confdefs.h"
9914 #define _LARGEFILE_SOURCE 1
9915 #include <stdio.h>
9916 int
9917 main ()
9918 {
9919 return !fseeko;
9920 ;
9921 return 0;
9922 }
9923 _ACEOF
9924 rm -f conftest.$ac_objext
9925 if { (eval echo "$as_me:9925: \"$ac_compile\"") >&5
9926 (eval $ac_compile) 2>&5
9927 ac_status=$?
9928 echo "$as_me:9928: \$? = $ac_status" >&5
9929 (exit $ac_status); } &&
9930 { ac_try='test -s conftest.$ac_objext'
9931 { (eval echo "$as_me:9931: \"$ac_try\"") >&5
9932 (eval $ac_try) 2>&5
9933 ac_status=$?
9934 echo "$as_me:9934: \$? = $ac_status" >&5
9935 (exit $ac_status); }; }; then
9936 ac_cv_sys_largefile_source=1; break
9937 else
9938 echo "$as_me: failed program was:" >&5
9939 cat conftest.$ac_ext >&5
9940 fi
9941 rm -f conftest.$ac_objext conftest.$ac_ext
9942 break
9943 done
9944 fi
9945 echo "$as_me:9945: result: $ac_cv_sys_largefile_source" >&5
9946 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
9947 if test "$ac_cv_sys_largefile_source" != no; then
9948
9949 cat >>confdefs.h <<EOF
9950 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9951 EOF
9952
9953 fi
9954 rm -f conftest*
9955
9956 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9957 # in glibc 2.1.3, but that breaks too many other things.
9958 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9959 echo "$as_me:9959: checking for fseeko" >&5
9960 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
9961 if test "${ac_cv_func_fseeko+set}" = set; then
9962 echo $ECHO_N "(cached) $ECHO_C" >&6
9963 else
9964 cat >conftest.$ac_ext <<_ACEOF
9965 #line 9965 "configure"
9966 #include "confdefs.h"
9967 #include <stdio.h>
9968 int
9969 main ()
9970 {
9971 return fseeko && fseeko (stdin, 0, 0);
9972 ;
9973 return 0;
9974 }
9975 _ACEOF
9976 rm -f conftest.$ac_objext conftest$ac_exeext 12227 rm -f conftest.$ac_objext conftest$ac_exeext
9977 if { (eval echo "$as_me:9977: \"$ac_link\"") >&5 12228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9978 (eval $ac_link) 2>&5 12229 (eval $ac_link) 2>&5
9979 ac_status=$? 12230 ac_status=$?
9980 echo "$as_me:9980: \$? = $ac_status" >&5 12231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981 (exit $ac_status); } && 12232 (exit $ac_status); } &&
9982 { ac_try='test -s conftest$ac_exeext' 12233 { ac_try='test -s conftest$ac_exeext'
9983 { (eval echo "$as_me:9983: \"$ac_try\"") >&5 12234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9984 (eval $ac_try) 2>&5 12235 (eval $ac_try) 2>&5
9985 ac_status=$? 12236 ac_status=$?
9986 echo "$as_me:9986: \$? = $ac_status" >&5 12237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987 (exit $ac_status); }; }; then 12238 (exit $ac_status); }; }; then
9988 ac_cv_func_fseeko=yes 12239 ac_cv_func_getloadavg=yes
9989 else 12240 else
9990 echo "$as_me: failed program was:" >&5 12241 echo "$as_me: failed program was:" >&5
9991 cat conftest.$ac_ext >&5 12242 cat conftest.$ac_ext >&5
9992 ac_cv_func_fseeko=no 12243 ac_cv_func_getloadavg=no
9993 fi 12244 fi
9994 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12245 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9995 fi 12246 fi
9996 echo "$as_me:9996: result: $ac_cv_func_fseeko" >&5 12247 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
9997 echo "${ECHO_T}$ac_cv_func_fseeko" >&6 12248 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
9998 if test $ac_cv_func_fseeko = yes; then 12249 if test $ac_cv_func_getloadavg = yes; then
9999 12250 exit 0
10000 cat >>confdefs.h <<\EOF 12251 else
10001 #define HAVE_FSEEKO 1 12252 exit 1
10002 EOF 12253 fi
10003 12254 ) && ac_have_func=yes
10004 fi 12255
10005 12256 # On HPUX9, an unprivileged user can get load averages through this function.
10006 # UNIX98 PTYs. 12257
10007 12258 for ac_func in pstat_getdynamic
10008 for ac_func in grantpt
10009 do 12259 do
10010 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12260 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10011 echo "$as_me:10011: checking for $ac_func" >&5 12261 echo "$as_me:$LINENO: checking for $ac_func" >&5
10012 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 12262 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10013 if eval "test \"\${$as_ac_var+set}\" = set"; then 12263 if eval "test \"\${$as_ac_var+set}\" = set"; then
10014 echo $ECHO_N "(cached) $ECHO_C" >&6 12264 echo $ECHO_N "(cached) $ECHO_C" >&6
10015 else 12265 else
10016 cat >conftest.$ac_ext <<_ACEOF 12266 cat >conftest.$ac_ext <<_ACEOF
10017 #line 10017 "configure" 12267 #line $LINENO "configure"
10018 #include "confdefs.h" 12268 #include "confdefs.h"
10019 /* System header to define __stub macros and hopefully few prototypes, 12269 /* System header to define __stub macros and hopefully few prototypes,
10020 which can conflict with char $ac_func (); below. */ 12270 which can conflict with char $ac_func (); below. */
10021 #include <assert.h> 12271 #include <assert.h>
10022 /* Override any gcc2 internal prototype to avoid an error. */ 12272 /* Override any gcc2 internal prototype to avoid an error. */
10026 /* We use char because int might match the return type of a gcc2 12276 /* We use char because int might match the return type of a gcc2
10027 builtin and then its argument prototype would still apply. */ 12277 builtin and then its argument prototype would still apply. */
10028 char $ac_func (); 12278 char $ac_func ();
10029 char (*f) (); 12279 char (*f) ();
10030 12280
12281 #ifdef F77_DUMMY_MAIN
12282 # ifdef __cplusplus
12283 extern "C"
12284 # endif
12285 int F77_DUMMY_MAIN() { return 1; }
12286 #endif
10031 int 12287 int
10032 main () 12288 main ()
10033 { 12289 {
10034 /* The GNU C library defines this for functions which it implements 12290 /* The GNU C library defines this for functions which it implements
10035 to always fail with ENOSYS. Some functions are actually named 12291 to always fail with ENOSYS. Some functions are actually named
10043 ; 12299 ;
10044 return 0; 12300 return 0;
10045 } 12301 }
10046 _ACEOF 12302 _ACEOF
10047 rm -f conftest.$ac_objext conftest$ac_exeext 12303 rm -f conftest.$ac_objext conftest$ac_exeext
10048 if { (eval echo "$as_me:10048: \"$ac_link\"") >&5 12304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10049 (eval $ac_link) 2>&5 12305 (eval $ac_link) 2>&5
10050 ac_status=$? 12306 ac_status=$?
10051 echo "$as_me:10051: \$? = $ac_status" >&5 12307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052 (exit $ac_status); } && 12308 (exit $ac_status); } &&
10053 { ac_try='test -s conftest$ac_exeext' 12309 { ac_try='test -s conftest$ac_exeext'
10054 { (eval echo "$as_me:10054: \"$ac_try\"") >&5 12310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10055 (eval $ac_try) 2>&5 12311 (eval $ac_try) 2>&5
10056 ac_status=$? 12312 ac_status=$?
10057 echo "$as_me:10057: \$? = $ac_status" >&5 12313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058 (exit $ac_status); }; }; then 12314 (exit $ac_status); }; }; then
10059 eval "$as_ac_var=yes" 12315 eval "$as_ac_var=yes"
10060 else 12316 else
10061 echo "$as_me: failed program was:" >&5 12317 echo "$as_me: failed program was:" >&5
10062 cat conftest.$ac_ext >&5 12318 cat conftest.$ac_ext >&5
10063 eval "$as_ac_var=no" 12319 eval "$as_ac_var=no"
10064 fi 12320 fi
10065 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12321 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10066 fi 12322 fi
10067 echo "$as_me:10067: result: `eval echo '${'$as_ac_var'}'`" >&5 12323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10068 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 12324 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10069 if test `eval echo '${'$as_ac_var'}'` = yes; then 12325 if test `eval echo '${'$as_ac_var'}'` = yes; then
10070 cat >>confdefs.h <<EOF 12326 cat >>confdefs.h <<_ACEOF
10071 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12327 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10072 EOF 12328 _ACEOF
10073 12329
10074 fi 12330 fi
10075 done 12331 done
10076 12332
10077 # PTY-related GNU extensions. 12333
10078 12334 # Solaris has libkstat which does not require root.
10079 for ac_func in getpt 12335
12336 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
12337 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
12338 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
12339 echo $ECHO_N "(cached) $ECHO_C" >&6
12340 else
12341 ac_check_lib_save_LIBS=$LIBS
12342 LIBS="-lkstat $LIBS"
12343 cat >conftest.$ac_ext <<_ACEOF
12344 #line $LINENO "configure"
12345 #include "confdefs.h"
12346
12347 /* Override any gcc2 internal prototype to avoid an error. */
12348 #ifdef __cplusplus
12349 extern "C"
12350 #endif
12351 /* We use char because int might match the return type of a gcc2
12352 builtin and then its argument prototype would still apply. */
12353 char kstat_open ();
12354 #ifdef F77_DUMMY_MAIN
12355 # ifdef __cplusplus
12356 extern "C"
12357 # endif
12358 int F77_DUMMY_MAIN() { return 1; }
12359 #endif
12360 int
12361 main ()
12362 {
12363 kstat_open ();
12364 ;
12365 return 0;
12366 }
12367 _ACEOF
12368 rm -f conftest.$ac_objext conftest$ac_exeext
12369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12370 (eval $ac_link) 2>&5
12371 ac_status=$?
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); } &&
12374 { ac_try='test -s conftest$ac_exeext'
12375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12376 (eval $ac_try) 2>&5
12377 ac_status=$?
12378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379 (exit $ac_status); }; }; then
12380 ac_cv_lib_kstat_kstat_open=yes
12381 else
12382 echo "$as_me: failed program was:" >&5
12383 cat conftest.$ac_ext >&5
12384 ac_cv_lib_kstat_kstat_open=no
12385 fi
12386 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12387 LIBS=$ac_check_lib_save_LIBS
12388 fi
12389 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
12390 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
12391 if test $ac_cv_lib_kstat_kstat_open = yes; then
12392 cat >>confdefs.h <<_ACEOF
12393 #define HAVE_LIBKSTAT 1
12394 _ACEOF
12395
12396 LIBS="-lkstat $LIBS"
12397
12398 fi
12399
12400 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
12401
12402 # Some systems with -lutil have (and need) -lkvm as well, some do not.
12403 # On Solaris, -lkvm requires nlist from -lelf, so check that first
12404 # to get the right answer into the cache.
12405 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
12406 if test $ac_have_func = no; then
12407 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
12408 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
12409 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
12410 echo $ECHO_N "(cached) $ECHO_C" >&6
12411 else
12412 ac_check_lib_save_LIBS=$LIBS
12413 LIBS="-lelf $LIBS"
12414 cat >conftest.$ac_ext <<_ACEOF
12415 #line $LINENO "configure"
12416 #include "confdefs.h"
12417
12418 /* Override any gcc2 internal prototype to avoid an error. */
12419 #ifdef __cplusplus
12420 extern "C"
12421 #endif
12422 /* We use char because int might match the return type of a gcc2
12423 builtin and then its argument prototype would still apply. */
12424 char elf_begin ();
12425 #ifdef F77_DUMMY_MAIN
12426 # ifdef __cplusplus
12427 extern "C"
12428 # endif
12429 int F77_DUMMY_MAIN() { return 1; }
12430 #endif
12431 int
12432 main ()
12433 {
12434 elf_begin ();
12435 ;
12436 return 0;
12437 }
12438 _ACEOF
12439 rm -f conftest.$ac_objext conftest$ac_exeext
12440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12441 (eval $ac_link) 2>&5
12442 ac_status=$?
12443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444 (exit $ac_status); } &&
12445 { ac_try='test -s conftest$ac_exeext'
12446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12447 (eval $ac_try) 2>&5
12448 ac_status=$?
12449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450 (exit $ac_status); }; }; then
12451 ac_cv_lib_elf_elf_begin=yes
12452 else
12453 echo "$as_me: failed program was:" >&5
12454 cat conftest.$ac_ext >&5
12455 ac_cv_lib_elf_elf_begin=no
12456 fi
12457 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12458 LIBS=$ac_check_lib_save_LIBS
12459 fi
12460 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
12461 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
12462 if test $ac_cv_lib_elf_elf_begin = yes; then
12463 LIBS="-lelf $LIBS"
12464 fi
12465
12466 fi
12467 if test $ac_have_func = no; then
12468 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
12469 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
12470 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
12471 echo $ECHO_N "(cached) $ECHO_C" >&6
12472 else
12473 ac_check_lib_save_LIBS=$LIBS
12474 LIBS="-lkvm $LIBS"
12475 cat >conftest.$ac_ext <<_ACEOF
12476 #line $LINENO "configure"
12477 #include "confdefs.h"
12478
12479 /* Override any gcc2 internal prototype to avoid an error. */
12480 #ifdef __cplusplus
12481 extern "C"
12482 #endif
12483 /* We use char because int might match the return type of a gcc2
12484 builtin and then its argument prototype would still apply. */
12485 char kvm_open ();
12486 #ifdef F77_DUMMY_MAIN
12487 # ifdef __cplusplus
12488 extern "C"
12489 # endif
12490 int F77_DUMMY_MAIN() { return 1; }
12491 #endif
12492 int
12493 main ()
12494 {
12495 kvm_open ();
12496 ;
12497 return 0;
12498 }
12499 _ACEOF
12500 rm -f conftest.$ac_objext conftest$ac_exeext
12501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12502 (eval $ac_link) 2>&5
12503 ac_status=$?
12504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505 (exit $ac_status); } &&
12506 { ac_try='test -s conftest$ac_exeext'
12507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12508 (eval $ac_try) 2>&5
12509 ac_status=$?
12510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12511 (exit $ac_status); }; }; then
12512 ac_cv_lib_kvm_kvm_open=yes
12513 else
12514 echo "$as_me: failed program was:" >&5
12515 cat conftest.$ac_ext >&5
12516 ac_cv_lib_kvm_kvm_open=no
12517 fi
12518 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12519 LIBS=$ac_check_lib_save_LIBS
12520 fi
12521 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
12522 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
12523 if test $ac_cv_lib_kvm_kvm_open = yes; then
12524 LIBS="-lkvm $LIBS"
12525 fi
12526
12527 # Check for the 4.4BSD definition of getloadavg.
12528 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
12529 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
12530 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
12531 echo $ECHO_N "(cached) $ECHO_C" >&6
12532 else
12533 ac_check_lib_save_LIBS=$LIBS
12534 LIBS="-lutil $LIBS"
12535 cat >conftest.$ac_ext <<_ACEOF
12536 #line $LINENO "configure"
12537 #include "confdefs.h"
12538
12539 /* Override any gcc2 internal prototype to avoid an error. */
12540 #ifdef __cplusplus
12541 extern "C"
12542 #endif
12543 /* We use char because int might match the return type of a gcc2
12544 builtin and then its argument prototype would still apply. */
12545 char getloadavg ();
12546 #ifdef F77_DUMMY_MAIN
12547 # ifdef __cplusplus
12548 extern "C"
12549 # endif
12550 int F77_DUMMY_MAIN() { return 1; }
12551 #endif
12552 int
12553 main ()
12554 {
12555 getloadavg ();
12556 ;
12557 return 0;
12558 }
12559 _ACEOF
12560 rm -f conftest.$ac_objext conftest$ac_exeext
12561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12562 (eval $ac_link) 2>&5
12563 ac_status=$?
12564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565 (exit $ac_status); } &&
12566 { ac_try='test -s conftest$ac_exeext'
12567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12568 (eval $ac_try) 2>&5
12569 ac_status=$?
12570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571 (exit $ac_status); }; }; then
12572 ac_cv_lib_util_getloadavg=yes
12573 else
12574 echo "$as_me: failed program was:" >&5
12575 cat conftest.$ac_ext >&5
12576 ac_cv_lib_util_getloadavg=no
12577 fi
12578 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12579 LIBS=$ac_check_lib_save_LIBS
12580 fi
12581 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
12582 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
12583 if test $ac_cv_lib_util_getloadavg = yes; then
12584 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
12585 fi
12586
12587 fi
12588
12589 if test $ac_have_func = no; then
12590 # There is a commonly available library for RS/6000 AIX.
12591 # Since it is not a standard part of AIX, it might be installed locally.
12592 ac_getloadavg_LIBS=$LIBS
12593 LIBS="-L/usr/local/lib $LIBS"
12594 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
12595 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
12596 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
12597 echo $ECHO_N "(cached) $ECHO_C" >&6
12598 else
12599 ac_check_lib_save_LIBS=$LIBS
12600 LIBS="-lgetloadavg $LIBS"
12601 cat >conftest.$ac_ext <<_ACEOF
12602 #line $LINENO "configure"
12603 #include "confdefs.h"
12604
12605 /* Override any gcc2 internal prototype to avoid an error. */
12606 #ifdef __cplusplus
12607 extern "C"
12608 #endif
12609 /* We use char because int might match the return type of a gcc2
12610 builtin and then its argument prototype would still apply. */
12611 char getloadavg ();
12612 #ifdef F77_DUMMY_MAIN
12613 # ifdef __cplusplus
12614 extern "C"
12615 # endif
12616 int F77_DUMMY_MAIN() { return 1; }
12617 #endif
12618 int
12619 main ()
12620 {
12621 getloadavg ();
12622 ;
12623 return 0;
12624 }
12625 _ACEOF
12626 rm -f conftest.$ac_objext conftest$ac_exeext
12627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12628 (eval $ac_link) 2>&5
12629 ac_status=$?
12630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631 (exit $ac_status); } &&
12632 { ac_try='test -s conftest$ac_exeext'
12633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12634 (eval $ac_try) 2>&5
12635 ac_status=$?
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); }; }; then
12638 ac_cv_lib_getloadavg_getloadavg=yes
12639 else
12640 echo "$as_me: failed program was:" >&5
12641 cat conftest.$ac_ext >&5
12642 ac_cv_lib_getloadavg_getloadavg=no
12643 fi
12644 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12645 LIBS=$ac_check_lib_save_LIBS
12646 fi
12647 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
12648 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
12649 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
12650 LIBS="-lgetloadavg $LIBS"
12651 else
12652 LIBS=$ac_getloadavg_LIBS
12653 fi
12654
12655 fi
12656
12657 # Make sure it is really in the library, if we think we found it,
12658 # otherwise set up the replacement function.
12659
12660 for ac_func in getloadavg
10080 do 12661 do
10081 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12662 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10082 echo "$as_me:10082: checking for $ac_func" >&5 12663 echo "$as_me:$LINENO: checking for $ac_func" >&5
10083 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 12664 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10084 if eval "test \"\${$as_ac_var+set}\" = set"; then 12665 if eval "test \"\${$as_ac_var+set}\" = set"; then
10085 echo $ECHO_N "(cached) $ECHO_C" >&6 12666 echo $ECHO_N "(cached) $ECHO_C" >&6
10086 else 12667 else
10087 cat >conftest.$ac_ext <<_ACEOF 12668 cat >conftest.$ac_ext <<_ACEOF
10088 #line 10088 "configure" 12669 #line $LINENO "configure"
10089 #include "confdefs.h" 12670 #include "confdefs.h"
10090 /* System header to define __stub macros and hopefully few prototypes, 12671 /* System header to define __stub macros and hopefully few prototypes,
10091 which can conflict with char $ac_func (); below. */ 12672 which can conflict with char $ac_func (); below. */
10092 #include <assert.h> 12673 #include <assert.h>
10093 /* Override any gcc2 internal prototype to avoid an error. */ 12674 /* Override any gcc2 internal prototype to avoid an error. */
10097 /* We use char because int might match the return type of a gcc2 12678 /* We use char because int might match the return type of a gcc2
10098 builtin and then its argument prototype would still apply. */ 12679 builtin and then its argument prototype would still apply. */
10099 char $ac_func (); 12680 char $ac_func ();
10100 char (*f) (); 12681 char (*f) ();
10101 12682
12683 #ifdef F77_DUMMY_MAIN
12684 # ifdef __cplusplus
12685 extern "C"
12686 # endif
12687 int F77_DUMMY_MAIN() { return 1; }
12688 #endif
10102 int 12689 int
10103 main () 12690 main ()
10104 { 12691 {
10105 /* The GNU C library defines this for functions which it implements 12692 /* The GNU C library defines this for functions which it implements
10106 to always fail with ENOSYS. Some functions are actually named 12693 to always fail with ENOSYS. Some functions are actually named
10114 ; 12701 ;
10115 return 0; 12702 return 0;
10116 } 12703 }
10117 _ACEOF 12704 _ACEOF
10118 rm -f conftest.$ac_objext conftest$ac_exeext 12705 rm -f conftest.$ac_objext conftest$ac_exeext
10119 if { (eval echo "$as_me:10119: \"$ac_link\"") >&5 12706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10120 (eval $ac_link) 2>&5 12707 (eval $ac_link) 2>&5
10121 ac_status=$? 12708 ac_status=$?
10122 echo "$as_me:10122: \$? = $ac_status" >&5 12709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123 (exit $ac_status); } && 12710 (exit $ac_status); } &&
10124 { ac_try='test -s conftest$ac_exeext' 12711 { ac_try='test -s conftest$ac_exeext'
10125 { (eval echo "$as_me:10125: \"$ac_try\"") >&5 12712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10126 (eval $ac_try) 2>&5 12713 (eval $ac_try) 2>&5
10127 ac_status=$? 12714 ac_status=$?
10128 echo "$as_me:10128: \$? = $ac_status" >&5 12715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129 (exit $ac_status); }; }; then 12716 (exit $ac_status); }; }; then
10130 eval "$as_ac_var=yes" 12717 eval "$as_ac_var=yes"
10131 else 12718 else
10132 echo "$as_me: failed program was:" >&5 12719 echo "$as_me: failed program was:" >&5
10133 cat conftest.$ac_ext >&5 12720 cat conftest.$ac_ext >&5
10134 eval "$as_ac_var=no" 12721 eval "$as_ac_var=no"
10135 fi 12722 fi
10136 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12723 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10137 fi 12724 fi
10138 echo "$as_me:10138: result: `eval echo '${'$as_ac_var'}'`" >&5 12725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10139 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 12726 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10140 if test `eval echo '${'$as_ac_var'}'` = yes; then 12727 if test `eval echo '${'$as_ac_var'}'` = yes; then
10141 cat >>confdefs.h <<EOF 12728 cat >>confdefs.h <<_ACEOF
10142 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12729 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10143 EOF 12730 _ACEOF
12731
12732 else
12733 LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
12734
12735 cat >>confdefs.h <<\_ACEOF
12736 #define C_GETLOADAVG 1
12737 _ACEOF
12738
12739 # Figure out what our getloadavg.c needs.
12740 ac_have_func=no
12741 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12742 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
12743 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
12744 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12745 echo $ECHO_N "(cached) $ECHO_C" >&6
12746 fi
12747 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
12748 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
12749 else
12750 # Is the header compilable?
12751 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
12752 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
12753 cat >conftest.$ac_ext <<_ACEOF
12754 #line $LINENO "configure"
12755 #include "confdefs.h"
12756 $ac_includes_default
12757 #include <sys/dg_sys_info.h>
12758 _ACEOF
12759 rm -f conftest.$ac_objext
12760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12761 (eval $ac_compile) 2>&5
12762 ac_status=$?
12763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); } &&
12765 { ac_try='test -s conftest.$ac_objext'
12766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12767 (eval $ac_try) 2>&5
12768 ac_status=$?
12769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770 (exit $ac_status); }; }; then
12771 ac_header_compiler=yes
12772 else
12773 echo "$as_me: failed program was:" >&5
12774 cat conftest.$ac_ext >&5
12775 ac_header_compiler=no
12776 fi
12777 rm -f conftest.$ac_objext conftest.$ac_ext
12778 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12779 echo "${ECHO_T}$ac_header_compiler" >&6
12780
12781 # Is the header present?
12782 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
12783 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
12784 cat >conftest.$ac_ext <<_ACEOF
12785 #line $LINENO "configure"
12786 #include "confdefs.h"
12787 #include <sys/dg_sys_info.h>
12788 _ACEOF
12789 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12790 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12791 ac_status=$?
12792 egrep -v '^ *\+' conftest.er1 >conftest.err
12793 rm -f conftest.er1
12794 cat conftest.err >&5
12795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796 (exit $ac_status); } >/dev/null; then
12797 if test -s conftest.err; then
12798 ac_cpp_err=$ac_c_preproc_warn_flag
12799 else
12800 ac_cpp_err=
12801 fi
12802 else
12803 ac_cpp_err=yes
12804 fi
12805 if test -z "$ac_cpp_err"; then
12806 ac_header_preproc=yes
12807 else
12808 echo "$as_me: failed program was:" >&5
12809 cat conftest.$ac_ext >&5
12810 ac_header_preproc=no
12811 fi
12812 rm -f conftest.err conftest.$ac_ext
12813 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12814 echo "${ECHO_T}$ac_header_preproc" >&6
12815
12816 # So? What about this header?
12817 case $ac_header_compiler:$ac_header_preproc in
12818 yes:no )
12819 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
12820 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12821 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
12822 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;};;
12823 no:yes )
12824 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
12825 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
12826 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
12827 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
12828 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
12829 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;};;
12830 esac
12831 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
12832 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
12833 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12834 echo $ECHO_N "(cached) $ECHO_C" >&6
12835 else
12836 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
12837 fi
12838 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
12839 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
12840
12841 fi
12842 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
12843 ac_have_func=yes
12844
12845 cat >>confdefs.h <<\_ACEOF
12846 #define DGUX 1
12847 _ACEOF
12848
12849
12850 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
12851 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
12852 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
12853 echo $ECHO_N "(cached) $ECHO_C" >&6
12854 else
12855 ac_check_lib_save_LIBS=$LIBS
12856 LIBS="-ldgc $LIBS"
12857 cat >conftest.$ac_ext <<_ACEOF
12858 #line $LINENO "configure"
12859 #include "confdefs.h"
12860
12861 /* Override any gcc2 internal prototype to avoid an error. */
12862 #ifdef __cplusplus
12863 extern "C"
12864 #endif
12865 /* We use char because int might match the return type of a gcc2
12866 builtin and then its argument prototype would still apply. */
12867 char dg_sys_info ();
12868 #ifdef F77_DUMMY_MAIN
12869 # ifdef __cplusplus
12870 extern "C"
12871 # endif
12872 int F77_DUMMY_MAIN() { return 1; }
12873 #endif
12874 int
12875 main ()
12876 {
12877 dg_sys_info ();
12878 ;
12879 return 0;
12880 }
12881 _ACEOF
12882 rm -f conftest.$ac_objext conftest$ac_exeext
12883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12884 (eval $ac_link) 2>&5
12885 ac_status=$?
12886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887 (exit $ac_status); } &&
12888 { ac_try='test -s conftest$ac_exeext'
12889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12890 (eval $ac_try) 2>&5
12891 ac_status=$?
12892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893 (exit $ac_status); }; }; then
12894 ac_cv_lib_dgc_dg_sys_info=yes
12895 else
12896 echo "$as_me: failed program was:" >&5
12897 cat conftest.$ac_ext >&5
12898 ac_cv_lib_dgc_dg_sys_info=no
12899 fi
12900 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12901 LIBS=$ac_check_lib_save_LIBS
12902 fi
12903 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
12904 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
12905 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
12906 cat >>confdefs.h <<_ACEOF
12907 #define HAVE_LIBDGC 1
12908 _ACEOF
12909
12910 LIBS="-ldgc $LIBS"
12911
12912 fi
12913
12914 fi
12915
12916
12917
12918 if test "${ac_cv_header_locale_h+set}" = set; then
12919 echo "$as_me:$LINENO: checking for locale.h" >&5
12920 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
12921 if test "${ac_cv_header_locale_h+set}" = set; then
12922 echo $ECHO_N "(cached) $ECHO_C" >&6
12923 fi
12924 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
12925 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
12926 else
12927 # Is the header compilable?
12928 echo "$as_me:$LINENO: checking locale.h usability" >&5
12929 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
12930 cat >conftest.$ac_ext <<_ACEOF
12931 #line $LINENO "configure"
12932 #include "confdefs.h"
12933 $ac_includes_default
12934 #include <locale.h>
12935 _ACEOF
12936 rm -f conftest.$ac_objext
12937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12938 (eval $ac_compile) 2>&5
12939 ac_status=$?
12940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12941 (exit $ac_status); } &&
12942 { ac_try='test -s conftest.$ac_objext'
12943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12944 (eval $ac_try) 2>&5
12945 ac_status=$?
12946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12947 (exit $ac_status); }; }; then
12948 ac_header_compiler=yes
12949 else
12950 echo "$as_me: failed program was:" >&5
12951 cat conftest.$ac_ext >&5
12952 ac_header_compiler=no
12953 fi
12954 rm -f conftest.$ac_objext conftest.$ac_ext
12955 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12956 echo "${ECHO_T}$ac_header_compiler" >&6
12957
12958 # Is the header present?
12959 echo "$as_me:$LINENO: checking locale.h presence" >&5
12960 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
12961 cat >conftest.$ac_ext <<_ACEOF
12962 #line $LINENO "configure"
12963 #include "confdefs.h"
12964 #include <locale.h>
12965 _ACEOF
12966 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12967 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12968 ac_status=$?
12969 egrep -v '^ *\+' conftest.er1 >conftest.err
12970 rm -f conftest.er1
12971 cat conftest.err >&5
12972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973 (exit $ac_status); } >/dev/null; then
12974 if test -s conftest.err; then
12975 ac_cpp_err=$ac_c_preproc_warn_flag
12976 else
12977 ac_cpp_err=
12978 fi
12979 else
12980 ac_cpp_err=yes
12981 fi
12982 if test -z "$ac_cpp_err"; then
12983 ac_header_preproc=yes
12984 else
12985 echo "$as_me: failed program was:" >&5
12986 cat conftest.$ac_ext >&5
12987 ac_header_preproc=no
12988 fi
12989 rm -f conftest.err conftest.$ac_ext
12990 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12991 echo "${ECHO_T}$ac_header_preproc" >&6
12992
12993 # So? What about this header?
12994 case $ac_header_compiler:$ac_header_preproc in
12995 yes:no )
12996 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
12997 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12998 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
12999 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;};;
13000 no:yes )
13001 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
13002 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
13003 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
13004 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
13005 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
13006 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;};;
13007 esac
13008 echo "$as_me:$LINENO: checking for locale.h" >&5
13009 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
13010 if test "${ac_cv_header_locale_h+set}" = set; then
13011 echo $ECHO_N "(cached) $ECHO_C" >&6
13012 else
13013 ac_cv_header_locale_h=$ac_header_preproc
13014 fi
13015 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
13016 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
13017
13018 fi
13019
13020
13021
13022 for ac_func in setlocale
13023 do
13024 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13025 echo "$as_me:$LINENO: checking for $ac_func" >&5
13026 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13027 if eval "test \"\${$as_ac_var+set}\" = set"; then
13028 echo $ECHO_N "(cached) $ECHO_C" >&6
13029 else
13030 cat >conftest.$ac_ext <<_ACEOF
13031 #line $LINENO "configure"
13032 #include "confdefs.h"
13033 /* System header to define __stub macros and hopefully few prototypes,
13034 which can conflict with char $ac_func (); below. */
13035 #include <assert.h>
13036 /* Override any gcc2 internal prototype to avoid an error. */
13037 #ifdef __cplusplus
13038 extern "C"
13039 #endif
13040 /* We use char because int might match the return type of a gcc2
13041 builtin and then its argument prototype would still apply. */
13042 char $ac_func ();
13043 char (*f) ();
13044
13045 #ifdef F77_DUMMY_MAIN
13046 # ifdef __cplusplus
13047 extern "C"
13048 # endif
13049 int F77_DUMMY_MAIN() { return 1; }
13050 #endif
13051 int
13052 main ()
13053 {
13054 /* The GNU C library defines this for functions which it implements
13055 to always fail with ENOSYS. Some functions are actually named
13056 something starting with __ and the normal name is an alias. */
13057 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13058 choke me
13059 #else
13060 f = $ac_func;
13061 #endif
13062
13063 ;
13064 return 0;
13065 }
13066 _ACEOF
13067 rm -f conftest.$ac_objext conftest$ac_exeext
13068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13069 (eval $ac_link) 2>&5
13070 ac_status=$?
13071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072 (exit $ac_status); } &&
13073 { ac_try='test -s conftest$ac_exeext'
13074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13075 (eval $ac_try) 2>&5
13076 ac_status=$?
13077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078 (exit $ac_status); }; }; then
13079 eval "$as_ac_var=yes"
13080 else
13081 echo "$as_me: failed program was:" >&5
13082 cat conftest.$ac_ext >&5
13083 eval "$as_ac_var=no"
13084 fi
13085 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13086 fi
13087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13088 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13089 if test `eval echo '${'$as_ac_var'}'` = yes; then
13090 cat >>confdefs.h <<_ACEOF
13091 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13092 _ACEOF
10144 13093
10145 fi 13094 fi
10146 done 13095 done
13096
13097
13098 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
13099 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
13100 # Irix 4.0.5F has the header but not the library.
13101 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
13102 ac_have_func=yes
13103
13104 cat >>confdefs.h <<\_ACEOF
13105 #define SVR4 1
13106 _ACEOF
13107
13108 fi
13109
13110 if test $ac_have_func = no; then
13111 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13112 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
13113 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
13114 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13115 echo $ECHO_N "(cached) $ECHO_C" >&6
13116 fi
13117 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
13118 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
13119 else
13120 # Is the header compilable?
13121 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
13122 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
13123 cat >conftest.$ac_ext <<_ACEOF
13124 #line $LINENO "configure"
13125 #include "confdefs.h"
13126 $ac_includes_default
13127 #include <inq_stats/cpustats.h>
13128 _ACEOF
13129 rm -f conftest.$ac_objext
13130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13131 (eval $ac_compile) 2>&5
13132 ac_status=$?
13133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134 (exit $ac_status); } &&
13135 { ac_try='test -s conftest.$ac_objext'
13136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13137 (eval $ac_try) 2>&5
13138 ac_status=$?
13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); }; }; then
13141 ac_header_compiler=yes
13142 else
13143 echo "$as_me: failed program was:" >&5
13144 cat conftest.$ac_ext >&5
13145 ac_header_compiler=no
13146 fi
13147 rm -f conftest.$ac_objext conftest.$ac_ext
13148 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13149 echo "${ECHO_T}$ac_header_compiler" >&6
13150
13151 # Is the header present?
13152 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
13153 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
13154 cat >conftest.$ac_ext <<_ACEOF
13155 #line $LINENO "configure"
13156 #include "confdefs.h"
13157 #include <inq_stats/cpustats.h>
13158 _ACEOF
13159 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13160 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13161 ac_status=$?
13162 egrep -v '^ *\+' conftest.er1 >conftest.err
13163 rm -f conftest.er1
13164 cat conftest.err >&5
13165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166 (exit $ac_status); } >/dev/null; then
13167 if test -s conftest.err; then
13168 ac_cpp_err=$ac_c_preproc_warn_flag
13169 else
13170 ac_cpp_err=
13171 fi
13172 else
13173 ac_cpp_err=yes
13174 fi
13175 if test -z "$ac_cpp_err"; then
13176 ac_header_preproc=yes
13177 else
13178 echo "$as_me: failed program was:" >&5
13179 cat conftest.$ac_ext >&5
13180 ac_header_preproc=no
13181 fi
13182 rm -f conftest.err conftest.$ac_ext
13183 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13184 echo "${ECHO_T}$ac_header_preproc" >&6
13185
13186 # So? What about this header?
13187 case $ac_header_compiler:$ac_header_preproc in
13188 yes:no )
13189 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
13190 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13191 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
13192 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;};;
13193 no:yes )
13194 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
13195 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
13196 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
13197 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
13198 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
13199 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;};;
13200 esac
13201 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
13202 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
13203 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13204 echo $ECHO_N "(cached) $ECHO_C" >&6
13205 else
13206 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
13207 fi
13208 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
13209 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
13210
13211 fi
13212 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
13213 ac_have_func=yes
13214
13215 cat >>confdefs.h <<\_ACEOF
13216 #define UMAX 1
13217 _ACEOF
13218
13219
13220 cat >>confdefs.h <<\_ACEOF
13221 #define UMAX4_3 1
13222 _ACEOF
13223
13224 fi
13225
13226
13227 fi
13228
13229 if test $ac_have_func = no; then
13230 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13231 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
13232 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13233 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13234 echo $ECHO_N "(cached) $ECHO_C" >&6
13235 fi
13236 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13237 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13238 else
13239 # Is the header compilable?
13240 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
13241 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
13242 cat >conftest.$ac_ext <<_ACEOF
13243 #line $LINENO "configure"
13244 #include "confdefs.h"
13245 $ac_includes_default
13246 #include <sys/cpustats.h>
13247 _ACEOF
13248 rm -f conftest.$ac_objext
13249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13250 (eval $ac_compile) 2>&5
13251 ac_status=$?
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); } &&
13254 { ac_try='test -s conftest.$ac_objext'
13255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13256 (eval $ac_try) 2>&5
13257 ac_status=$?
13258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259 (exit $ac_status); }; }; then
13260 ac_header_compiler=yes
13261 else
13262 echo "$as_me: failed program was:" >&5
13263 cat conftest.$ac_ext >&5
13264 ac_header_compiler=no
13265 fi
13266 rm -f conftest.$ac_objext conftest.$ac_ext
13267 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13268 echo "${ECHO_T}$ac_header_compiler" >&6
13269
13270 # Is the header present?
13271 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
13272 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
13273 cat >conftest.$ac_ext <<_ACEOF
13274 #line $LINENO "configure"
13275 #include "confdefs.h"
13276 #include <sys/cpustats.h>
13277 _ACEOF
13278 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13279 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13280 ac_status=$?
13281 egrep -v '^ *\+' conftest.er1 >conftest.err
13282 rm -f conftest.er1
13283 cat conftest.err >&5
13284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285 (exit $ac_status); } >/dev/null; then
13286 if test -s conftest.err; then
13287 ac_cpp_err=$ac_c_preproc_warn_flag
13288 else
13289 ac_cpp_err=
13290 fi
13291 else
13292 ac_cpp_err=yes
13293 fi
13294 if test -z "$ac_cpp_err"; then
13295 ac_header_preproc=yes
13296 else
13297 echo "$as_me: failed program was:" >&5
13298 cat conftest.$ac_ext >&5
13299 ac_header_preproc=no
13300 fi
13301 rm -f conftest.err conftest.$ac_ext
13302 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13303 echo "${ECHO_T}$ac_header_preproc" >&6
13304
13305 # So? What about this header?
13306 case $ac_header_compiler:$ac_header_preproc in
13307 yes:no )
13308 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
13309 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13310 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
13311 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;};;
13312 no:yes )
13313 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
13314 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
13315 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
13316 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
13317 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
13318 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;};;
13319 esac
13320 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
13321 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13322 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13323 echo $ECHO_N "(cached) $ECHO_C" >&6
13324 else
13325 ac_cv_header_sys_cpustats_h=$ac_header_preproc
13326 fi
13327 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13328 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13329
13330 fi
13331 if test $ac_cv_header_sys_cpustats_h = yes; then
13332 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
13333 #define UMAX 1
13334 _ACEOF
13335
13336 fi
13337
13338
13339 fi
13340
13341 if test $ac_have_func = no; then
13342
13343 for ac_header in mach/mach.h
13344 do
13345 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13347 echo "$as_me:$LINENO: checking for $ac_header" >&5
13348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13350 echo $ECHO_N "(cached) $ECHO_C" >&6
13351 fi
13352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13353 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13354 else
13355 # Is the header compilable?
13356 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13357 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13358 cat >conftest.$ac_ext <<_ACEOF
13359 #line $LINENO "configure"
13360 #include "confdefs.h"
13361 $ac_includes_default
13362 #include <$ac_header>
13363 _ACEOF
13364 rm -f conftest.$ac_objext
13365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13366 (eval $ac_compile) 2>&5
13367 ac_status=$?
13368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369 (exit $ac_status); } &&
13370 { ac_try='test -s conftest.$ac_objext'
13371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13372 (eval $ac_try) 2>&5
13373 ac_status=$?
13374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375 (exit $ac_status); }; }; then
13376 ac_header_compiler=yes
13377 else
13378 echo "$as_me: failed program was:" >&5
13379 cat conftest.$ac_ext >&5
13380 ac_header_compiler=no
13381 fi
13382 rm -f conftest.$ac_objext conftest.$ac_ext
13383 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13384 echo "${ECHO_T}$ac_header_compiler" >&6
13385
13386 # Is the header present?
13387 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13388 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13389 cat >conftest.$ac_ext <<_ACEOF
13390 #line $LINENO "configure"
13391 #include "confdefs.h"
13392 #include <$ac_header>
13393 _ACEOF
13394 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13395 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13396 ac_status=$?
13397 egrep -v '^ *\+' conftest.er1 >conftest.err
13398 rm -f conftest.er1
13399 cat conftest.err >&5
13400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401 (exit $ac_status); } >/dev/null; then
13402 if test -s conftest.err; then
13403 ac_cpp_err=$ac_c_preproc_warn_flag
13404 else
13405 ac_cpp_err=
13406 fi
13407 else
13408 ac_cpp_err=yes
13409 fi
13410 if test -z "$ac_cpp_err"; then
13411 ac_header_preproc=yes
13412 else
13413 echo "$as_me: failed program was:" >&5
13414 cat conftest.$ac_ext >&5
13415 ac_header_preproc=no
13416 fi
13417 rm -f conftest.err conftest.$ac_ext
13418 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13419 echo "${ECHO_T}$ac_header_preproc" >&6
13420
13421 # So? What about this header?
13422 case $ac_header_compiler:$ac_header_preproc in
13423 yes:no )
13424 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13425 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13427 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13428 no:yes )
13429 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13430 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13431 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13432 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13434 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13435 esac
13436 echo "$as_me:$LINENO: checking for $ac_header" >&5
13437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13439 echo $ECHO_N "(cached) $ECHO_C" >&6
13440 else
13441 eval "$as_ac_Header=$ac_header_preproc"
13442 fi
13443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13444 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13445
13446 fi
13447 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13448 cat >>confdefs.h <<_ACEOF
13449 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13450 _ACEOF
13451
13452 fi
13453
13454 done
13455
13456 fi
13457
13458
13459 for ac_header in nlist.h
13460 do
13461 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13463 echo "$as_me:$LINENO: checking for $ac_header" >&5
13464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13466 echo $ECHO_N "(cached) $ECHO_C" >&6
13467 fi
13468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13470 else
13471 # Is the header compilable?
13472 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13473 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13474 cat >conftest.$ac_ext <<_ACEOF
13475 #line $LINENO "configure"
13476 #include "confdefs.h"
13477 $ac_includes_default
13478 #include <$ac_header>
13479 _ACEOF
13480 rm -f conftest.$ac_objext
13481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13482 (eval $ac_compile) 2>&5
13483 ac_status=$?
13484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485 (exit $ac_status); } &&
13486 { ac_try='test -s conftest.$ac_objext'
13487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13488 (eval $ac_try) 2>&5
13489 ac_status=$?
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); }; }; then
13492 ac_header_compiler=yes
13493 else
13494 echo "$as_me: failed program was:" >&5
13495 cat conftest.$ac_ext >&5
13496 ac_header_compiler=no
13497 fi
13498 rm -f conftest.$ac_objext conftest.$ac_ext
13499 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13500 echo "${ECHO_T}$ac_header_compiler" >&6
13501
13502 # Is the header present?
13503 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13504 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13505 cat >conftest.$ac_ext <<_ACEOF
13506 #line $LINENO "configure"
13507 #include "confdefs.h"
13508 #include <$ac_header>
13509 _ACEOF
13510 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13511 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13512 ac_status=$?
13513 egrep -v '^ *\+' conftest.er1 >conftest.err
13514 rm -f conftest.er1
13515 cat conftest.err >&5
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); } >/dev/null; then
13518 if test -s conftest.err; then
13519 ac_cpp_err=$ac_c_preproc_warn_flag
13520 else
13521 ac_cpp_err=
13522 fi
13523 else
13524 ac_cpp_err=yes
13525 fi
13526 if test -z "$ac_cpp_err"; then
13527 ac_header_preproc=yes
13528 else
13529 echo "$as_me: failed program was:" >&5
13530 cat conftest.$ac_ext >&5
13531 ac_header_preproc=no
13532 fi
13533 rm -f conftest.err conftest.$ac_ext
13534 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13535 echo "${ECHO_T}$ac_header_preproc" >&6
13536
13537 # So? What about this header?
13538 case $ac_header_compiler:$ac_header_preproc in
13539 yes:no )
13540 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13541 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13543 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13544 no:yes )
13545 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13546 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13547 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13548 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13550 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13551 esac
13552 echo "$as_me:$LINENO: checking for $ac_header" >&5
13553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13554 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13555 echo $ECHO_N "(cached) $ECHO_C" >&6
13556 else
13557 eval "$as_ac_Header=$ac_header_preproc"
13558 fi
13559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13560 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13561
13562 fi
13563 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13564 cat >>confdefs.h <<_ACEOF
13565 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13566 _ACEOF
13567 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
13568 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
13569 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
13570 echo $ECHO_N "(cached) $ECHO_C" >&6
13571 else
13572 cat >conftest.$ac_ext <<_ACEOF
13573 #line $LINENO "configure"
13574 #include "confdefs.h"
13575 #include <nlist.h>
13576
13577 #ifdef F77_DUMMY_MAIN
13578 # ifdef __cplusplus
13579 extern "C"
13580 # endif
13581 int F77_DUMMY_MAIN() { return 1; }
13582 #endif
13583 int
13584 main ()
13585 {
13586 static struct nlist ac_aggr;
13587 if (ac_aggr.n_un.n_name)
13588 return 0;
13589 ;
13590 return 0;
13591 }
13592 _ACEOF
13593 rm -f conftest.$ac_objext
13594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13595 (eval $ac_compile) 2>&5
13596 ac_status=$?
13597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598 (exit $ac_status); } &&
13599 { ac_try='test -s conftest.$ac_objext'
13600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13601 (eval $ac_try) 2>&5
13602 ac_status=$?
13603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604 (exit $ac_status); }; }; then
13605 ac_cv_member_struct_nlist_n_un_n_name=yes
13606 else
13607 echo "$as_me: failed program was:" >&5
13608 cat conftest.$ac_ext >&5
13609 ac_cv_member_struct_nlist_n_un_n_name=no
13610 fi
13611 rm -f conftest.$ac_objext conftest.$ac_ext
13612 fi
13613 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
13614 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
13615 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
13616
13617 cat >>confdefs.h <<_ACEOF
13618 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
13619 _ACEOF
13620
13621
13622 cat >>confdefs.h <<\_ACEOF
13623 #define NLIST_NAME_UNION 1
13624 _ACEOF
13625
13626 fi
13627
13628
13629 fi
13630
13631 done
13632
13633 fi
13634 done
13635
13636
13637 # Some definitions of getloadavg require that the program be installed setgid.
13638 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
13639 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
13640 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
13641 echo $ECHO_N "(cached) $ECHO_C" >&6
13642 else
13643 cat >conftest.$ac_ext <<_ACEOF
13644 #line $LINENO "configure"
13645 #include "confdefs.h"
13646 #include "$srcdir/getloadavg.c"
13647 #ifdef LDAV_PRIVILEGED
13648 Yowza Am I SETGID yet
13649 #endif
13650 _ACEOF
13651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13652 egrep "Yowza Am I SETGID yet" >/dev/null 2>&1; then
13653 ac_cv_func_getloadavg_setgid=yes
13654 else
13655 ac_cv_func_getloadavg_setgid=no
13656 fi
13657 rm -f conftest*
13658
13659 fi
13660 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
13661 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
13662 if test $ac_cv_func_getloadavg_setgid = yes; then
13663 NEED_SETGID=true
13664
13665 cat >>confdefs.h <<\_ACEOF
13666 #define GETLOADAVG_PRIVILEGED 1
13667 _ACEOF
13668
13669 else
13670 NEED_SETGID=false
13671 fi
13672
13673 if test $ac_cv_func_getloadavg_setgid = yes; then
13674 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
13675 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
13676 if test "${ac_cv_group_kmem+set}" = set; then
13677 echo $ECHO_N "(cached) $ECHO_C" >&6
13678 else
13679 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
13680 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
13681 # If we got an error (system does not support symlinks), try without -L.
13682 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
13683 ac_cv_group_kmem=`echo $ac_ls_output \
13684 | sed -ne 's/[ ][ ]*/ /g;
13685 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
13686 / /s/.* //;p;'`
13687
13688 fi
13689 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
13690 echo "${ECHO_T}$ac_cv_group_kmem" >&6
13691 KMEM_GROUP=$ac_cv_group_kmem
13692 fi
13693 if test "x$ac_save_LIBS" = x; then
13694 GETLOADAVG_LIBS=$LIBS
13695 else
13696 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
13697 fi
13698 LIBS=$ac_save_LIBS
13699
13700
13701
13702 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13703 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
13704 if test "${ac_cv_sys_largefile_source+set}" = set; then
13705 echo $ECHO_N "(cached) $ECHO_C" >&6
13706 else
13707 while :; do
13708 ac_cv_sys_largefile_source=no
13709 cat >conftest.$ac_ext <<_ACEOF
13710 #line $LINENO "configure"
13711 #include "confdefs.h"
13712 #include <stdio.h>
13713 #ifdef F77_DUMMY_MAIN
13714 # ifdef __cplusplus
13715 extern "C"
13716 # endif
13717 int F77_DUMMY_MAIN() { return 1; }
13718 #endif
13719 int
13720 main ()
13721 {
13722 return !fseeko;
13723 ;
13724 return 0;
13725 }
13726 _ACEOF
13727 rm -f conftest.$ac_objext
13728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13729 (eval $ac_compile) 2>&5
13730 ac_status=$?
13731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732 (exit $ac_status); } &&
13733 { ac_try='test -s conftest.$ac_objext'
13734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13735 (eval $ac_try) 2>&5
13736 ac_status=$?
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); }; }; then
13739 break
13740 else
13741 echo "$as_me: failed program was:" >&5
13742 cat conftest.$ac_ext >&5
13743 fi
13744 rm -f conftest.$ac_objext conftest.$ac_ext
13745 cat >conftest.$ac_ext <<_ACEOF
13746 #line $LINENO "configure"
13747 #include "confdefs.h"
13748 #define _LARGEFILE_SOURCE 1
13749 #include <stdio.h>
13750 #ifdef F77_DUMMY_MAIN
13751 # ifdef __cplusplus
13752 extern "C"
13753 # endif
13754 int F77_DUMMY_MAIN() { return 1; }
13755 #endif
13756 int
13757 main ()
13758 {
13759 return !fseeko;
13760 ;
13761 return 0;
13762 }
13763 _ACEOF
13764 rm -f conftest.$ac_objext
13765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13766 (eval $ac_compile) 2>&5
13767 ac_status=$?
13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769 (exit $ac_status); } &&
13770 { ac_try='test -s conftest.$ac_objext'
13771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13772 (eval $ac_try) 2>&5
13773 ac_status=$?
13774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13775 (exit $ac_status); }; }; then
13776 ac_cv_sys_largefile_source=1; break
13777 else
13778 echo "$as_me: failed program was:" >&5
13779 cat conftest.$ac_ext >&5
13780 fi
13781 rm -f conftest.$ac_objext conftest.$ac_ext
13782 break
13783 done
13784 fi
13785 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
13786 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13787 if test "$ac_cv_sys_largefile_source" != no; then
13788
13789 cat >>confdefs.h <<_ACEOF
13790 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13791 _ACEOF
13792
13793 fi
13794 rm -f conftest*
13795
13796 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13797 # in glibc 2.1.3, but that breaks too many other things.
13798 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13799 echo "$as_me:$LINENO: checking for fseeko" >&5
13800 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13801 if test "${ac_cv_func_fseeko+set}" = set; then
13802 echo $ECHO_N "(cached) $ECHO_C" >&6
13803 else
13804 cat >conftest.$ac_ext <<_ACEOF
13805 #line $LINENO "configure"
13806 #include "confdefs.h"
13807 #include <stdio.h>
13808 #ifdef F77_DUMMY_MAIN
13809 # ifdef __cplusplus
13810 extern "C"
13811 # endif
13812 int F77_DUMMY_MAIN() { return 1; }
13813 #endif
13814 int
13815 main ()
13816 {
13817 return fseeko && fseeko (stdin, 0, 0);
13818 ;
13819 return 0;
13820 }
13821 _ACEOF
13822 rm -f conftest.$ac_objext conftest$ac_exeext
13823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13824 (eval $ac_link) 2>&5
13825 ac_status=$?
13826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827 (exit $ac_status); } &&
13828 { ac_try='test -s conftest$ac_exeext'
13829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13830 (eval $ac_try) 2>&5
13831 ac_status=$?
13832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833 (exit $ac_status); }; }; then
13834 ac_cv_func_fseeko=yes
13835 else
13836 echo "$as_me: failed program was:" >&5
13837 cat conftest.$ac_ext >&5
13838 ac_cv_func_fseeko=no
13839 fi
13840 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13841 fi
13842 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
13843 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13844 if test $ac_cv_func_fseeko = yes; then
13845
13846 cat >>confdefs.h <<\_ACEOF
13847 #define HAVE_FSEEKO 1
13848 _ACEOF
13849
13850 fi
13851
13852
13853 # UNIX98 PTYs.
13854
13855 for ac_func in grantpt
13856 do
13857 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13858 echo "$as_me:$LINENO: checking for $ac_func" >&5
13859 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13860 if eval "test \"\${$as_ac_var+set}\" = set"; then
13861 echo $ECHO_N "(cached) $ECHO_C" >&6
13862 else
13863 cat >conftest.$ac_ext <<_ACEOF
13864 #line $LINENO "configure"
13865 #include "confdefs.h"
13866 /* System header to define __stub macros and hopefully few prototypes,
13867 which can conflict with char $ac_func (); below. */
13868 #include <assert.h>
13869 /* Override any gcc2 internal prototype to avoid an error. */
13870 #ifdef __cplusplus
13871 extern "C"
13872 #endif
13873 /* We use char because int might match the return type of a gcc2
13874 builtin and then its argument prototype would still apply. */
13875 char $ac_func ();
13876 char (*f) ();
13877
13878 #ifdef F77_DUMMY_MAIN
13879 # ifdef __cplusplus
13880 extern "C"
13881 # endif
13882 int F77_DUMMY_MAIN() { return 1; }
13883 #endif
13884 int
13885 main ()
13886 {
13887 /* The GNU C library defines this for functions which it implements
13888 to always fail with ENOSYS. Some functions are actually named
13889 something starting with __ and the normal name is an alias. */
13890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13891 choke me
13892 #else
13893 f = $ac_func;
13894 #endif
13895
13896 ;
13897 return 0;
13898 }
13899 _ACEOF
13900 rm -f conftest.$ac_objext conftest$ac_exeext
13901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13902 (eval $ac_link) 2>&5
13903 ac_status=$?
13904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13905 (exit $ac_status); } &&
13906 { ac_try='test -s conftest$ac_exeext'
13907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13908 (eval $ac_try) 2>&5
13909 ac_status=$?
13910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911 (exit $ac_status); }; }; then
13912 eval "$as_ac_var=yes"
13913 else
13914 echo "$as_me: failed program was:" >&5
13915 cat conftest.$ac_ext >&5
13916 eval "$as_ac_var=no"
13917 fi
13918 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13919 fi
13920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13921 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13922 if test `eval echo '${'$as_ac_var'}'` = yes; then
13923 cat >>confdefs.h <<_ACEOF
13924 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13925 _ACEOF
13926
13927 fi
13928 done
13929
13930
13931 # PTY-related GNU extensions.
13932
13933 for ac_func in getpt
13934 do
13935 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13936 echo "$as_me:$LINENO: checking for $ac_func" >&5
13937 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13938 if eval "test \"\${$as_ac_var+set}\" = set"; then
13939 echo $ECHO_N "(cached) $ECHO_C" >&6
13940 else
13941 cat >conftest.$ac_ext <<_ACEOF
13942 #line $LINENO "configure"
13943 #include "confdefs.h"
13944 /* System header to define __stub macros and hopefully few prototypes,
13945 which can conflict with char $ac_func (); below. */
13946 #include <assert.h>
13947 /* Override any gcc2 internal prototype to avoid an error. */
13948 #ifdef __cplusplus
13949 extern "C"
13950 #endif
13951 /* We use char because int might match the return type of a gcc2
13952 builtin and then its argument prototype would still apply. */
13953 char $ac_func ();
13954 char (*f) ();
13955
13956 #ifdef F77_DUMMY_MAIN
13957 # ifdef __cplusplus
13958 extern "C"
13959 # endif
13960 int F77_DUMMY_MAIN() { return 1; }
13961 #endif
13962 int
13963 main ()
13964 {
13965 /* The GNU C library defines this for functions which it implements
13966 to always fail with ENOSYS. Some functions are actually named
13967 something starting with __ and the normal name is an alias. */
13968 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13969 choke me
13970 #else
13971 f = $ac_func;
13972 #endif
13973
13974 ;
13975 return 0;
13976 }
13977 _ACEOF
13978 rm -f conftest.$ac_objext conftest$ac_exeext
13979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13980 (eval $ac_link) 2>&5
13981 ac_status=$?
13982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983 (exit $ac_status); } &&
13984 { ac_try='test -s conftest$ac_exeext'
13985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13986 (eval $ac_try) 2>&5
13987 ac_status=$?
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); }; }; then
13990 eval "$as_ac_var=yes"
13991 else
13992 echo "$as_me: failed program was:" >&5
13993 cat conftest.$ac_ext >&5
13994 eval "$as_ac_var=no"
13995 fi
13996 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13997 fi
13998 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13999 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14000 if test `eval echo '${'$as_ac_var'}'` = yes; then
14001 cat >>confdefs.h <<_ACEOF
14002 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14003 _ACEOF
14004
14005 fi
14006 done
14007
10147 14008
10148 # Check this now, so that we will NOT find the above functions in ncurses. 14009 # Check this now, so that we will NOT find the above functions in ncurses.
10149 # That is because we have not set up to link ncurses in lib-src. 14010 # That is because we have not set up to link ncurses in lib-src.
10150 # It's better to believe a function is not available 14011 # It's better to believe a function is not available
10151 # than to expect to find it in ncurses. 14012 # than to expect to find it in ncurses.
10152 14013
10153 echo "$as_me:10153: checking for tparm in -lncurses" >&5 14014 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
10154 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6 14015 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
10155 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then 14016 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
10156 echo $ECHO_N "(cached) $ECHO_C" >&6 14017 echo $ECHO_N "(cached) $ECHO_C" >&6
10157 else 14018 else
10158 ac_check_lib_save_LIBS=$LIBS 14019 ac_check_lib_save_LIBS=$LIBS
10159 LIBS="-lncurses $LIBS" 14020 LIBS="-lncurses $LIBS"
10160 cat >conftest.$ac_ext <<_ACEOF 14021 cat >conftest.$ac_ext <<_ACEOF
10161 #line 10161 "configure" 14022 #line $LINENO "configure"
10162 #include "confdefs.h" 14023 #include "confdefs.h"
10163 14024
10164 /* Override any gcc2 internal prototype to avoid an error. */ 14025 /* Override any gcc2 internal prototype to avoid an error. */
10165 #ifdef __cplusplus 14026 #ifdef __cplusplus
10166 extern "C" 14027 extern "C"
10167 #endif 14028 #endif
10168 /* We use char because int might match the return type of a gcc2 14029 /* We use char because int might match the return type of a gcc2
10169 builtin and then its argument prototype would still apply. */ 14030 builtin and then its argument prototype would still apply. */
10170 char tparm (); 14031 char tparm ();
14032 #ifdef F77_DUMMY_MAIN
14033 # ifdef __cplusplus
14034 extern "C"
14035 # endif
14036 int F77_DUMMY_MAIN() { return 1; }
14037 #endif
10171 int 14038 int
10172 main () 14039 main ()
10173 { 14040 {
10174 tparm (); 14041 tparm ();
10175 ; 14042 ;
10176 return 0; 14043 return 0;
10177 } 14044 }
10178 _ACEOF 14045 _ACEOF
10179 rm -f conftest.$ac_objext conftest$ac_exeext 14046 rm -f conftest.$ac_objext conftest$ac_exeext
10180 if { (eval echo "$as_me:10180: \"$ac_link\"") >&5 14047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10181 (eval $ac_link) 2>&5 14048 (eval $ac_link) 2>&5
10182 ac_status=$? 14049 ac_status=$?
10183 echo "$as_me:10183: \$? = $ac_status" >&5 14050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184 (exit $ac_status); } && 14051 (exit $ac_status); } &&
10185 { ac_try='test -s conftest$ac_exeext' 14052 { ac_try='test -s conftest$ac_exeext'
10186 { (eval echo "$as_me:10186: \"$ac_try\"") >&5 14053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10187 (eval $ac_try) 2>&5 14054 (eval $ac_try) 2>&5
10188 ac_status=$? 14055 ac_status=$?
10189 echo "$as_me:10189: \$? = $ac_status" >&5 14056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190 (exit $ac_status); }; }; then 14057 (exit $ac_status); }; }; then
10191 ac_cv_lib_ncurses_tparm=yes 14058 ac_cv_lib_ncurses_tparm=yes
10192 else 14059 else
10193 echo "$as_me: failed program was:" >&5 14060 echo "$as_me: failed program was:" >&5
10194 cat conftest.$ac_ext >&5 14061 cat conftest.$ac_ext >&5
10195 ac_cv_lib_ncurses_tparm=no 14062 ac_cv_lib_ncurses_tparm=no
10196 fi 14063 fi
10197 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14064 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10198 LIBS=$ac_check_lib_save_LIBS 14065 LIBS=$ac_check_lib_save_LIBS
10199 fi 14066 fi
10200 echo "$as_me:10200: result: $ac_cv_lib_ncurses_tparm" >&5 14067 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
10201 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6 14068 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
10202 if test $ac_cv_lib_ncurses_tparm = yes; then 14069 if test $ac_cv_lib_ncurses_tparm = yes; then
10203 cat >>confdefs.h <<EOF 14070 cat >>confdefs.h <<_ACEOF
10204 #define HAVE_LIBNCURSES 1 14071 #define HAVE_LIBNCURSES 1
10205 EOF 14072 _ACEOF
10206 14073
10207 LIBS="-lncurses $LIBS" 14074 LIBS="-lncurses $LIBS"
10208 14075
10209 fi 14076 fi
14077
10210 14078
10211 # Do we need the Hesiod library to provide the support routines? 14079 # Do we need the Hesiod library to provide the support routines?
10212 if test "$with_hesiod" = yes ; then 14080 if test "$with_hesiod" = yes ; then
10213 # Don't set $LIBS here -- see comments above. 14081 # Don't set $LIBS here -- see comments above.
10214 resolv=no 14082 resolv=no
10215 echo "$as_me:10215: checking for res_send" >&5 14083 echo "$as_me:$LINENO: checking for res_send" >&5
10216 echo $ECHO_N "checking for res_send... $ECHO_C" >&6 14084 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
10217 if test "${ac_cv_func_res_send+set}" = set; then 14085 if test "${ac_cv_func_res_send+set}" = set; then
10218 echo $ECHO_N "(cached) $ECHO_C" >&6 14086 echo $ECHO_N "(cached) $ECHO_C" >&6
10219 else 14087 else
10220 cat >conftest.$ac_ext <<_ACEOF 14088 cat >conftest.$ac_ext <<_ACEOF
10221 #line 10221 "configure" 14089 #line $LINENO "configure"
10222 #include "confdefs.h" 14090 #include "confdefs.h"
10223 /* System header to define __stub macros and hopefully few prototypes, 14091 /* System header to define __stub macros and hopefully few prototypes,
10224 which can conflict with char res_send (); below. */ 14092 which can conflict with char res_send (); below. */
10225 #include <assert.h> 14093 #include <assert.h>
10226 /* Override any gcc2 internal prototype to avoid an error. */ 14094 /* Override any gcc2 internal prototype to avoid an error. */
10230 /* We use char because int might match the return type of a gcc2 14098 /* We use char because int might match the return type of a gcc2
10231 builtin and then its argument prototype would still apply. */ 14099 builtin and then its argument prototype would still apply. */
10232 char res_send (); 14100 char res_send ();
10233 char (*f) (); 14101 char (*f) ();
10234 14102
14103 #ifdef F77_DUMMY_MAIN
14104 # ifdef __cplusplus
14105 extern "C"
14106 # endif
14107 int F77_DUMMY_MAIN() { return 1; }
14108 #endif
10235 int 14109 int
10236 main () 14110 main ()
10237 { 14111 {
10238 /* The GNU C library defines this for functions which it implements 14112 /* The GNU C library defines this for functions which it implements
10239 to always fail with ENOSYS. Some functions are actually named 14113 to always fail with ENOSYS. Some functions are actually named
10247 ; 14121 ;
10248 return 0; 14122 return 0;
10249 } 14123 }
10250 _ACEOF 14124 _ACEOF
10251 rm -f conftest.$ac_objext conftest$ac_exeext 14125 rm -f conftest.$ac_objext conftest$ac_exeext
10252 if { (eval echo "$as_me:10252: \"$ac_link\"") >&5 14126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10253 (eval $ac_link) 2>&5 14127 (eval $ac_link) 2>&5
10254 ac_status=$? 14128 ac_status=$?
10255 echo "$as_me:10255: \$? = $ac_status" >&5 14129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 (exit $ac_status); } && 14130 (exit $ac_status); } &&
10257 { ac_try='test -s conftest$ac_exeext' 14131 { ac_try='test -s conftest$ac_exeext'
10258 { (eval echo "$as_me:10258: \"$ac_try\"") >&5 14132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10259 (eval $ac_try) 2>&5 14133 (eval $ac_try) 2>&5
10260 ac_status=$? 14134 ac_status=$?
10261 echo "$as_me:10261: \$? = $ac_status" >&5 14135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262 (exit $ac_status); }; }; then 14136 (exit $ac_status); }; }; then
10263 ac_cv_func_res_send=yes 14137 ac_cv_func_res_send=yes
10264 else 14138 else
10265 echo "$as_me: failed program was:" >&5 14139 echo "$as_me: failed program was:" >&5
10266 cat conftest.$ac_ext >&5 14140 cat conftest.$ac_ext >&5
10267 ac_cv_func_res_send=no 14141 ac_cv_func_res_send=no
10268 fi 14142 fi
10269 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14143 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10270 fi 14144 fi
10271 echo "$as_me:10271: result: $ac_cv_func_res_send" >&5 14145 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
10272 echo "${ECHO_T}$ac_cv_func_res_send" >&6 14146 echo "${ECHO_T}$ac_cv_func_res_send" >&6
10273 if test $ac_cv_func_res_send = yes; then 14147 if test $ac_cv_func_res_send = yes; then
10274 : 14148 :
10275 else 14149 else
10276 echo "$as_me:10276: checking for __res_send" >&5 14150 echo "$as_me:$LINENO: checking for __res_send" >&5
10277 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6 14151 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
10278 if test "${ac_cv_func___res_send+set}" = set; then 14152 if test "${ac_cv_func___res_send+set}" = set; then
10279 echo $ECHO_N "(cached) $ECHO_C" >&6 14153 echo $ECHO_N "(cached) $ECHO_C" >&6
10280 else 14154 else
10281 cat >conftest.$ac_ext <<_ACEOF 14155 cat >conftest.$ac_ext <<_ACEOF
10282 #line 10282 "configure" 14156 #line $LINENO "configure"
10283 #include "confdefs.h" 14157 #include "confdefs.h"
10284 /* System header to define __stub macros and hopefully few prototypes, 14158 /* System header to define __stub macros and hopefully few prototypes,
10285 which can conflict with char __res_send (); below. */ 14159 which can conflict with char __res_send (); below. */
10286 #include <assert.h> 14160 #include <assert.h>
10287 /* Override any gcc2 internal prototype to avoid an error. */ 14161 /* Override any gcc2 internal prototype to avoid an error. */
10291 /* We use char because int might match the return type of a gcc2 14165 /* We use char because int might match the return type of a gcc2
10292 builtin and then its argument prototype would still apply. */ 14166 builtin and then its argument prototype would still apply. */
10293 char __res_send (); 14167 char __res_send ();
10294 char (*f) (); 14168 char (*f) ();
10295 14169
14170 #ifdef F77_DUMMY_MAIN
14171 # ifdef __cplusplus
14172 extern "C"
14173 # endif
14174 int F77_DUMMY_MAIN() { return 1; }
14175 #endif
10296 int 14176 int
10297 main () 14177 main ()
10298 { 14178 {
10299 /* The GNU C library defines this for functions which it implements 14179 /* The GNU C library defines this for functions which it implements
10300 to always fail with ENOSYS. Some functions are actually named 14180 to always fail with ENOSYS. Some functions are actually named
10308 ; 14188 ;
10309 return 0; 14189 return 0;
10310 } 14190 }
10311 _ACEOF 14191 _ACEOF
10312 rm -f conftest.$ac_objext conftest$ac_exeext 14192 rm -f conftest.$ac_objext conftest$ac_exeext
10313 if { (eval echo "$as_me:10313: \"$ac_link\"") >&5 14193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10314 (eval $ac_link) 2>&5 14194 (eval $ac_link) 2>&5
10315 ac_status=$? 14195 ac_status=$?
10316 echo "$as_me:10316: \$? = $ac_status" >&5 14196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); } && 14197 (exit $ac_status); } &&
10318 { ac_try='test -s conftest$ac_exeext' 14198 { ac_try='test -s conftest$ac_exeext'
10319 { (eval echo "$as_me:10319: \"$ac_try\"") >&5 14199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10320 (eval $ac_try) 2>&5 14200 (eval $ac_try) 2>&5
10321 ac_status=$? 14201 ac_status=$?
10322 echo "$as_me:10322: \$? = $ac_status" >&5 14202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323 (exit $ac_status); }; }; then 14203 (exit $ac_status); }; }; then
10324 ac_cv_func___res_send=yes 14204 ac_cv_func___res_send=yes
10325 else 14205 else
10326 echo "$as_me: failed program was:" >&5 14206 echo "$as_me: failed program was:" >&5
10327 cat conftest.$ac_ext >&5 14207 cat conftest.$ac_ext >&5
10328 ac_cv_func___res_send=no 14208 ac_cv_func___res_send=no
10329 fi 14209 fi
10330 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14210 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10331 fi 14211 fi
10332 echo "$as_me:10332: result: $ac_cv_func___res_send" >&5 14212 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
10333 echo "${ECHO_T}$ac_cv_func___res_send" >&6 14213 echo "${ECHO_T}$ac_cv_func___res_send" >&6
10334 if test $ac_cv_func___res_send = yes; then 14214 if test $ac_cv_func___res_send = yes; then
10335 : 14215 :
10336 else 14216 else
10337 echo "$as_me:10337: checking for res_send in -lresolv" >&5 14217 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
10338 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6 14218 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
10339 if test "${ac_cv_lib_resolv_res_send+set}" = set; then 14219 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
10340 echo $ECHO_N "(cached) $ECHO_C" >&6 14220 echo $ECHO_N "(cached) $ECHO_C" >&6
10341 else 14221 else
10342 ac_check_lib_save_LIBS=$LIBS 14222 ac_check_lib_save_LIBS=$LIBS
10343 LIBS="-lresolv $LIBS" 14223 LIBS="-lresolv $LIBS"
10344 cat >conftest.$ac_ext <<_ACEOF 14224 cat >conftest.$ac_ext <<_ACEOF
10345 #line 10345 "configure" 14225 #line $LINENO "configure"
10346 #include "confdefs.h" 14226 #include "confdefs.h"
10347 14227
10348 /* Override any gcc2 internal prototype to avoid an error. */ 14228 /* Override any gcc2 internal prototype to avoid an error. */
10349 #ifdef __cplusplus 14229 #ifdef __cplusplus
10350 extern "C" 14230 extern "C"
10351 #endif 14231 #endif
10352 /* We use char because int might match the return type of a gcc2 14232 /* We use char because int might match the return type of a gcc2
10353 builtin and then its argument prototype would still apply. */ 14233 builtin and then its argument prototype would still apply. */
10354 char res_send (); 14234 char res_send ();
14235 #ifdef F77_DUMMY_MAIN
14236 # ifdef __cplusplus
14237 extern "C"
14238 # endif
14239 int F77_DUMMY_MAIN() { return 1; }
14240 #endif
10355 int 14241 int
10356 main () 14242 main ()
10357 { 14243 {
10358 res_send (); 14244 res_send ();
10359 ; 14245 ;
10360 return 0; 14246 return 0;
10361 } 14247 }
10362 _ACEOF 14248 _ACEOF
10363 rm -f conftest.$ac_objext conftest$ac_exeext 14249 rm -f conftest.$ac_objext conftest$ac_exeext
10364 if { (eval echo "$as_me:10364: \"$ac_link\"") >&5 14250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10365 (eval $ac_link) 2>&5 14251 (eval $ac_link) 2>&5
10366 ac_status=$? 14252 ac_status=$?
10367 echo "$as_me:10367: \$? = $ac_status" >&5 14253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); } && 14254 (exit $ac_status); } &&
10369 { ac_try='test -s conftest$ac_exeext' 14255 { ac_try='test -s conftest$ac_exeext'
10370 { (eval echo "$as_me:10370: \"$ac_try\"") >&5 14256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10371 (eval $ac_try) 2>&5 14257 (eval $ac_try) 2>&5
10372 ac_status=$? 14258 ac_status=$?
10373 echo "$as_me:10373: \$? = $ac_status" >&5 14259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374 (exit $ac_status); }; }; then 14260 (exit $ac_status); }; }; then
10375 ac_cv_lib_resolv_res_send=yes 14261 ac_cv_lib_resolv_res_send=yes
10376 else 14262 else
10377 echo "$as_me: failed program was:" >&5 14263 echo "$as_me: failed program was:" >&5
10378 cat conftest.$ac_ext >&5 14264 cat conftest.$ac_ext >&5
10379 ac_cv_lib_resolv_res_send=no 14265 ac_cv_lib_resolv_res_send=no
10380 fi 14266 fi
10381 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14267 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10382 LIBS=$ac_check_lib_save_LIBS 14268 LIBS=$ac_check_lib_save_LIBS
10383 fi 14269 fi
10384 echo "$as_me:10384: result: $ac_cv_lib_resolv_res_send" >&5 14270 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
10385 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6 14271 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
10386 if test $ac_cv_lib_resolv_res_send = yes; then 14272 if test $ac_cv_lib_resolv_res_send = yes; then
10387 resolv=yes 14273 resolv=yes
10388 else 14274 else
10389 echo "$as_me:10389: checking for __res_send in -lresolv" >&5 14275 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
10390 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6 14276 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
10391 if test "${ac_cv_lib_resolv___res_send+set}" = set; then 14277 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
10392 echo $ECHO_N "(cached) $ECHO_C" >&6 14278 echo $ECHO_N "(cached) $ECHO_C" >&6
10393 else 14279 else
10394 ac_check_lib_save_LIBS=$LIBS 14280 ac_check_lib_save_LIBS=$LIBS
10395 LIBS="-lresolv $LIBS" 14281 LIBS="-lresolv $LIBS"
10396 cat >conftest.$ac_ext <<_ACEOF 14282 cat >conftest.$ac_ext <<_ACEOF
10397 #line 10397 "configure" 14283 #line $LINENO "configure"
10398 #include "confdefs.h" 14284 #include "confdefs.h"
10399 14285
10400 /* Override any gcc2 internal prototype to avoid an error. */ 14286 /* Override any gcc2 internal prototype to avoid an error. */
10401 #ifdef __cplusplus 14287 #ifdef __cplusplus
10402 extern "C" 14288 extern "C"
10403 #endif 14289 #endif
10404 /* We use char because int might match the return type of a gcc2 14290 /* We use char because int might match the return type of a gcc2
10405 builtin and then its argument prototype would still apply. */ 14291 builtin and then its argument prototype would still apply. */
10406 char __res_send (); 14292 char __res_send ();
14293 #ifdef F77_DUMMY_MAIN
14294 # ifdef __cplusplus
14295 extern "C"
14296 # endif
14297 int F77_DUMMY_MAIN() { return 1; }
14298 #endif
10407 int 14299 int
10408 main () 14300 main ()
10409 { 14301 {
10410 __res_send (); 14302 __res_send ();
10411 ; 14303 ;
10412 return 0; 14304 return 0;
10413 } 14305 }
10414 _ACEOF 14306 _ACEOF
10415 rm -f conftest.$ac_objext conftest$ac_exeext 14307 rm -f conftest.$ac_objext conftest$ac_exeext
10416 if { (eval echo "$as_me:10416: \"$ac_link\"") >&5 14308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10417 (eval $ac_link) 2>&5 14309 (eval $ac_link) 2>&5
10418 ac_status=$? 14310 ac_status=$?
10419 echo "$as_me:10419: \$? = $ac_status" >&5 14311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420 (exit $ac_status); } && 14312 (exit $ac_status); } &&
10421 { ac_try='test -s conftest$ac_exeext' 14313 { ac_try='test -s conftest$ac_exeext'
10422 { (eval echo "$as_me:10422: \"$ac_try\"") >&5 14314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10423 (eval $ac_try) 2>&5 14315 (eval $ac_try) 2>&5
10424 ac_status=$? 14316 ac_status=$?
10425 echo "$as_me:10425: \$? = $ac_status" >&5 14317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426 (exit $ac_status); }; }; then 14318 (exit $ac_status); }; }; then
10427 ac_cv_lib_resolv___res_send=yes 14319 ac_cv_lib_resolv___res_send=yes
10428 else 14320 else
10429 echo "$as_me: failed program was:" >&5 14321 echo "$as_me: failed program was:" >&5
10430 cat conftest.$ac_ext >&5 14322 cat conftest.$ac_ext >&5
10431 ac_cv_lib_resolv___res_send=no 14323 ac_cv_lib_resolv___res_send=no
10432 fi 14324 fi
10433 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14325 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10434 LIBS=$ac_check_lib_save_LIBS 14326 LIBS=$ac_check_lib_save_LIBS
10435 fi 14327 fi
10436 echo "$as_me:10436: result: $ac_cv_lib_resolv___res_send" >&5 14328 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
10437 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6 14329 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
10438 if test $ac_cv_lib_resolv___res_send = yes; then 14330 if test $ac_cv_lib_resolv___res_send = yes; then
10439 resolv=yes 14331 resolv=yes
10440 fi 14332 fi
10441 14333
10445 14337
10446 fi 14338 fi
10447 14339
10448 if test "$resolv" = yes ; then 14340 if test "$resolv" = yes ; then
10449 RESOLVLIB=-lresolv 14341 RESOLVLIB=-lresolv
10450 cat >>confdefs.h <<\EOF 14342 cat >>confdefs.h <<\_ACEOF
10451 #define HAVE_LIBRESOLV 1 14343 #define HAVE_LIBRESOLV 1
10452 EOF 14344 _ACEOF
10453 14345
10454 else 14346 else
10455 RESOLVLIB= 14347 RESOLVLIB=
10456 fi 14348 fi
10457 echo "$as_me:10457: checking for hes_getmailhost" >&5 14349 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
10458 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6 14350 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
10459 if test "${ac_cv_func_hes_getmailhost+set}" = set; then 14351 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
10460 echo $ECHO_N "(cached) $ECHO_C" >&6 14352 echo $ECHO_N "(cached) $ECHO_C" >&6
10461 else 14353 else
10462 cat >conftest.$ac_ext <<_ACEOF 14354 cat >conftest.$ac_ext <<_ACEOF
10463 #line 10463 "configure" 14355 #line $LINENO "configure"
10464 #include "confdefs.h" 14356 #include "confdefs.h"
10465 /* System header to define __stub macros and hopefully few prototypes, 14357 /* System header to define __stub macros and hopefully few prototypes,
10466 which can conflict with char hes_getmailhost (); below. */ 14358 which can conflict with char hes_getmailhost (); below. */
10467 #include <assert.h> 14359 #include <assert.h>
10468 /* Override any gcc2 internal prototype to avoid an error. */ 14360 /* Override any gcc2 internal prototype to avoid an error. */
10472 /* We use char because int might match the return type of a gcc2 14364 /* We use char because int might match the return type of a gcc2
10473 builtin and then its argument prototype would still apply. */ 14365 builtin and then its argument prototype would still apply. */
10474 char hes_getmailhost (); 14366 char hes_getmailhost ();
10475 char (*f) (); 14367 char (*f) ();
10476 14368
14369 #ifdef F77_DUMMY_MAIN
14370 # ifdef __cplusplus
14371 extern "C"
14372 # endif
14373 int F77_DUMMY_MAIN() { return 1; }
14374 #endif
10477 int 14375 int
10478 main () 14376 main ()
10479 { 14377 {
10480 /* The GNU C library defines this for functions which it implements 14378 /* The GNU C library defines this for functions which it implements
10481 to always fail with ENOSYS. Some functions are actually named 14379 to always fail with ENOSYS. Some functions are actually named
10489 ; 14387 ;
10490 return 0; 14388 return 0;
10491 } 14389 }
10492 _ACEOF 14390 _ACEOF
10493 rm -f conftest.$ac_objext conftest$ac_exeext 14391 rm -f conftest.$ac_objext conftest$ac_exeext
10494 if { (eval echo "$as_me:10494: \"$ac_link\"") >&5 14392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10495 (eval $ac_link) 2>&5 14393 (eval $ac_link) 2>&5
10496 ac_status=$? 14394 ac_status=$?
10497 echo "$as_me:10497: \$? = $ac_status" >&5 14395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498 (exit $ac_status); } && 14396 (exit $ac_status); } &&
10499 { ac_try='test -s conftest$ac_exeext' 14397 { ac_try='test -s conftest$ac_exeext'
10500 { (eval echo "$as_me:10500: \"$ac_try\"") >&5 14398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10501 (eval $ac_try) 2>&5 14399 (eval $ac_try) 2>&5
10502 ac_status=$? 14400 ac_status=$?
10503 echo "$as_me:10503: \$? = $ac_status" >&5 14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); }; }; then 14402 (exit $ac_status); }; }; then
10505 ac_cv_func_hes_getmailhost=yes 14403 ac_cv_func_hes_getmailhost=yes
10506 else 14404 else
10507 echo "$as_me: failed program was:" >&5 14405 echo "$as_me: failed program was:" >&5
10508 cat conftest.$ac_ext >&5 14406 cat conftest.$ac_ext >&5
10509 ac_cv_func_hes_getmailhost=no 14407 ac_cv_func_hes_getmailhost=no
10510 fi 14408 fi
10511 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14409 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10512 fi 14410 fi
10513 echo "$as_me:10513: result: $ac_cv_func_hes_getmailhost" >&5 14411 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
10514 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6 14412 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
10515 if test $ac_cv_func_hes_getmailhost = yes; then 14413 if test $ac_cv_func_hes_getmailhost = yes; then
10516 : 14414 :
10517 else 14415 else
10518 echo "$as_me:10518: checking for hes_getmailhost in -lhesiod" >&5 14416 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
10519 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6 14417 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
10520 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then 14418 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
10521 echo $ECHO_N "(cached) $ECHO_C" >&6 14419 echo $ECHO_N "(cached) $ECHO_C" >&6
10522 else 14420 else
10523 ac_check_lib_save_LIBS=$LIBS 14421 ac_check_lib_save_LIBS=$LIBS
10524 LIBS="-lhesiod $RESOLVLIB $LIBS" 14422 LIBS="-lhesiod $RESOLVLIB $LIBS"
10525 cat >conftest.$ac_ext <<_ACEOF 14423 cat >conftest.$ac_ext <<_ACEOF
10526 #line 10526 "configure" 14424 #line $LINENO "configure"
10527 #include "confdefs.h" 14425 #include "confdefs.h"
10528 14426
10529 /* Override any gcc2 internal prototype to avoid an error. */ 14427 /* Override any gcc2 internal prototype to avoid an error. */
10530 #ifdef __cplusplus 14428 #ifdef __cplusplus
10531 extern "C" 14429 extern "C"
10532 #endif 14430 #endif
10533 /* We use char because int might match the return type of a gcc2 14431 /* We use char because int might match the return type of a gcc2
10534 builtin and then its argument prototype would still apply. */ 14432 builtin and then its argument prototype would still apply. */
10535 char hes_getmailhost (); 14433 char hes_getmailhost ();
14434 #ifdef F77_DUMMY_MAIN
14435 # ifdef __cplusplus
14436 extern "C"
14437 # endif
14438 int F77_DUMMY_MAIN() { return 1; }
14439 #endif
10536 int 14440 int
10537 main () 14441 main ()
10538 { 14442 {
10539 hes_getmailhost (); 14443 hes_getmailhost ();
10540 ; 14444 ;
10541 return 0; 14445 return 0;
10542 } 14446 }
10543 _ACEOF 14447 _ACEOF
10544 rm -f conftest.$ac_objext conftest$ac_exeext 14448 rm -f conftest.$ac_objext conftest$ac_exeext
10545 if { (eval echo "$as_me:10545: \"$ac_link\"") >&5 14449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10546 (eval $ac_link) 2>&5 14450 (eval $ac_link) 2>&5
10547 ac_status=$? 14451 ac_status=$?
10548 echo "$as_me:10548: \$? = $ac_status" >&5 14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549 (exit $ac_status); } && 14453 (exit $ac_status); } &&
10550 { ac_try='test -s conftest$ac_exeext' 14454 { ac_try='test -s conftest$ac_exeext'
10551 { (eval echo "$as_me:10551: \"$ac_try\"") >&5 14455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10552 (eval $ac_try) 2>&5 14456 (eval $ac_try) 2>&5
10553 ac_status=$? 14457 ac_status=$?
10554 echo "$as_me:10554: \$? = $ac_status" >&5 14458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555 (exit $ac_status); }; }; then 14459 (exit $ac_status); }; }; then
10556 ac_cv_lib_hesiod_hes_getmailhost=yes 14460 ac_cv_lib_hesiod_hes_getmailhost=yes
10557 else 14461 else
10558 echo "$as_me: failed program was:" >&5 14462 echo "$as_me: failed program was:" >&5
10559 cat conftest.$ac_ext >&5 14463 cat conftest.$ac_ext >&5
10560 ac_cv_lib_hesiod_hes_getmailhost=no 14464 ac_cv_lib_hesiod_hes_getmailhost=no
10561 fi 14465 fi
10562 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14466 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10563 LIBS=$ac_check_lib_save_LIBS 14467 LIBS=$ac_check_lib_save_LIBS
10564 fi 14468 fi
10565 echo "$as_me:10565: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5 14469 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
10566 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6 14470 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
10567 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then 14471 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
10568 cat >>confdefs.h <<\EOF 14472 cat >>confdefs.h <<\_ACEOF
10569 #define HAVE_LIBHESIOD 1 14473 #define HAVE_LIBHESIOD 1
10570 EOF 14474 _ACEOF
10571 14475
10572 else 14476 else
10573 : 14477 :
10574 fi 14478 fi
10575 14479
10578 fi 14482 fi
10579 14483
10580 # These tell us which Kerberos-related libraries to use. 14484 # These tell us which Kerberos-related libraries to use.
10581 if test "${with_kerberos+set}" = set; then 14485 if test "${with_kerberos+set}" = set; then
10582 14486
10583 echo "$as_me:10583: checking for com_err in -lcom_err" >&5 14487 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
10584 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6 14488 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
10585 if test "${ac_cv_lib_com_err_com_err+set}" = set; then 14489 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
10586 echo $ECHO_N "(cached) $ECHO_C" >&6 14490 echo $ECHO_N "(cached) $ECHO_C" >&6
10587 else 14491 else
10588 ac_check_lib_save_LIBS=$LIBS 14492 ac_check_lib_save_LIBS=$LIBS
10589 LIBS="-lcom_err $LIBS" 14493 LIBS="-lcom_err $LIBS"
10590 cat >conftest.$ac_ext <<_ACEOF 14494 cat >conftest.$ac_ext <<_ACEOF
10591 #line 10591 "configure" 14495 #line $LINENO "configure"
10592 #include "confdefs.h" 14496 #include "confdefs.h"
10593 14497
10594 /* Override any gcc2 internal prototype to avoid an error. */ 14498 /* Override any gcc2 internal prototype to avoid an error. */
10595 #ifdef __cplusplus 14499 #ifdef __cplusplus
10596 extern "C" 14500 extern "C"
10597 #endif 14501 #endif
10598 /* We use char because int might match the return type of a gcc2 14502 /* We use char because int might match the return type of a gcc2
10599 builtin and then its argument prototype would still apply. */ 14503 builtin and then its argument prototype would still apply. */
10600 char com_err (); 14504 char com_err ();
14505 #ifdef F77_DUMMY_MAIN
14506 # ifdef __cplusplus
14507 extern "C"
14508 # endif
14509 int F77_DUMMY_MAIN() { return 1; }
14510 #endif
10601 int 14511 int
10602 main () 14512 main ()
10603 { 14513 {
10604 com_err (); 14514 com_err ();
10605 ; 14515 ;
10606 return 0; 14516 return 0;
10607 } 14517 }
10608 _ACEOF 14518 _ACEOF
10609 rm -f conftest.$ac_objext conftest$ac_exeext 14519 rm -f conftest.$ac_objext conftest$ac_exeext
10610 if { (eval echo "$as_me:10610: \"$ac_link\"") >&5 14520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10611 (eval $ac_link) 2>&5 14521 (eval $ac_link) 2>&5
10612 ac_status=$? 14522 ac_status=$?
10613 echo "$as_me:10613: \$? = $ac_status" >&5 14523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); } && 14524 (exit $ac_status); } &&
10615 { ac_try='test -s conftest$ac_exeext' 14525 { ac_try='test -s conftest$ac_exeext'
10616 { (eval echo "$as_me:10616: \"$ac_try\"") >&5 14526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10617 (eval $ac_try) 2>&5 14527 (eval $ac_try) 2>&5
10618 ac_status=$? 14528 ac_status=$?
10619 echo "$as_me:10619: \$? = $ac_status" >&5 14529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620 (exit $ac_status); }; }; then 14530 (exit $ac_status); }; }; then
10621 ac_cv_lib_com_err_com_err=yes 14531 ac_cv_lib_com_err_com_err=yes
10622 else 14532 else
10623 echo "$as_me: failed program was:" >&5 14533 echo "$as_me: failed program was:" >&5
10624 cat conftest.$ac_ext >&5 14534 cat conftest.$ac_ext >&5
10625 ac_cv_lib_com_err_com_err=no 14535 ac_cv_lib_com_err_com_err=no
10626 fi 14536 fi
10627 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14537 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10628 LIBS=$ac_check_lib_save_LIBS 14538 LIBS=$ac_check_lib_save_LIBS
10629 fi 14539 fi
10630 echo "$as_me:10630: result: $ac_cv_lib_com_err_com_err" >&5 14540 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
10631 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6 14541 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
10632 if test $ac_cv_lib_com_err_com_err = yes; then 14542 if test $ac_cv_lib_com_err_com_err = yes; then
10633 cat >>confdefs.h <<EOF 14543 cat >>confdefs.h <<_ACEOF
10634 #define HAVE_LIBCOM_ERR 1 14544 #define HAVE_LIBCOM_ERR 1
10635 EOF 14545 _ACEOF
10636 14546
10637 LIBS="-lcom_err $LIBS" 14547 LIBS="-lcom_err $LIBS"
10638 14548
10639 fi 14549 fi
10640 14550
10641 echo "$as_me:10641: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 14551
14552 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
10642 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6 14553 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
10643 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then 14554 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
10644 echo $ECHO_N "(cached) $ECHO_C" >&6 14555 echo $ECHO_N "(cached) $ECHO_C" >&6
10645 else 14556 else
10646 ac_check_lib_save_LIBS=$LIBS 14557 ac_check_lib_save_LIBS=$LIBS
10647 LIBS="-lk5crypto $LIBS" 14558 LIBS="-lk5crypto $LIBS"
10648 cat >conftest.$ac_ext <<_ACEOF 14559 cat >conftest.$ac_ext <<_ACEOF
10649 #line 10649 "configure" 14560 #line $LINENO "configure"
10650 #include "confdefs.h" 14561 #include "confdefs.h"
10651 14562
10652 /* Override any gcc2 internal prototype to avoid an error. */ 14563 /* Override any gcc2 internal prototype to avoid an error. */
10653 #ifdef __cplusplus 14564 #ifdef __cplusplus
10654 extern "C" 14565 extern "C"
10655 #endif 14566 #endif
10656 /* We use char because int might match the return type of a gcc2 14567 /* We use char because int might match the return type of a gcc2
10657 builtin and then its argument prototype would still apply. */ 14568 builtin and then its argument prototype would still apply. */
10658 char mit_des_cbc_encrypt (); 14569 char mit_des_cbc_encrypt ();
14570 #ifdef F77_DUMMY_MAIN
14571 # ifdef __cplusplus
14572 extern "C"
14573 # endif
14574 int F77_DUMMY_MAIN() { return 1; }
14575 #endif
10659 int 14576 int
10660 main () 14577 main ()
10661 { 14578 {
10662 mit_des_cbc_encrypt (); 14579 mit_des_cbc_encrypt ();
10663 ; 14580 ;
10664 return 0; 14581 return 0;
10665 } 14582 }
10666 _ACEOF 14583 _ACEOF
10667 rm -f conftest.$ac_objext conftest$ac_exeext 14584 rm -f conftest.$ac_objext conftest$ac_exeext
10668 if { (eval echo "$as_me:10668: \"$ac_link\"") >&5 14585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10669 (eval $ac_link) 2>&5 14586 (eval $ac_link) 2>&5
10670 ac_status=$? 14587 ac_status=$?
10671 echo "$as_me:10671: \$? = $ac_status" >&5 14588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 (exit $ac_status); } && 14589 (exit $ac_status); } &&
10673 { ac_try='test -s conftest$ac_exeext' 14590 { ac_try='test -s conftest$ac_exeext'
10674 { (eval echo "$as_me:10674: \"$ac_try\"") >&5 14591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10675 (eval $ac_try) 2>&5 14592 (eval $ac_try) 2>&5
10676 ac_status=$? 14593 ac_status=$?
10677 echo "$as_me:10677: \$? = $ac_status" >&5 14594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678 (exit $ac_status); }; }; then 14595 (exit $ac_status); }; }; then
10679 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes 14596 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
10680 else 14597 else
10681 echo "$as_me: failed program was:" >&5 14598 echo "$as_me: failed program was:" >&5
10682 cat conftest.$ac_ext >&5 14599 cat conftest.$ac_ext >&5
10683 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no 14600 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
10684 fi 14601 fi
10685 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14602 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10686 LIBS=$ac_check_lib_save_LIBS 14603 LIBS=$ac_check_lib_save_LIBS
10687 fi 14604 fi
10688 echo "$as_me:10688: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5 14605 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
10689 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6 14606 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
10690 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then 14607 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
10691 cat >>confdefs.h <<EOF 14608 cat >>confdefs.h <<_ACEOF
10692 #define HAVE_LIBK5CRYPTO 1 14609 #define HAVE_LIBK5CRYPTO 1
10693 EOF 14610 _ACEOF
10694 14611
10695 LIBS="-lk5crypto $LIBS" 14612 LIBS="-lk5crypto $LIBS"
10696 14613
10697 fi 14614 fi
10698 14615
10699 echo "$as_me:10699: checking for mit_des_cbc_encrypt in -lcrypto" >&5 14616
14617 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
10700 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6 14618 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
10701 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then 14619 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
10702 echo $ECHO_N "(cached) $ECHO_C" >&6 14620 echo $ECHO_N "(cached) $ECHO_C" >&6
10703 else 14621 else
10704 ac_check_lib_save_LIBS=$LIBS 14622 ac_check_lib_save_LIBS=$LIBS
10705 LIBS="-lcrypto $LIBS" 14623 LIBS="-lcrypto $LIBS"
10706 cat >conftest.$ac_ext <<_ACEOF 14624 cat >conftest.$ac_ext <<_ACEOF
10707 #line 10707 "configure" 14625 #line $LINENO "configure"
10708 #include "confdefs.h" 14626 #include "confdefs.h"
10709 14627
10710 /* Override any gcc2 internal prototype to avoid an error. */ 14628 /* Override any gcc2 internal prototype to avoid an error. */
10711 #ifdef __cplusplus 14629 #ifdef __cplusplus
10712 extern "C" 14630 extern "C"
10713 #endif 14631 #endif
10714 /* We use char because int might match the return type of a gcc2 14632 /* We use char because int might match the return type of a gcc2
10715 builtin and then its argument prototype would still apply. */ 14633 builtin and then its argument prototype would still apply. */
10716 char mit_des_cbc_encrypt (); 14634 char mit_des_cbc_encrypt ();
14635 #ifdef F77_DUMMY_MAIN
14636 # ifdef __cplusplus
14637 extern "C"
14638 # endif
14639 int F77_DUMMY_MAIN() { return 1; }
14640 #endif
10717 int 14641 int
10718 main () 14642 main ()
10719 { 14643 {
10720 mit_des_cbc_encrypt (); 14644 mit_des_cbc_encrypt ();
10721 ; 14645 ;
10722 return 0; 14646 return 0;
10723 } 14647 }
10724 _ACEOF 14648 _ACEOF
10725 rm -f conftest.$ac_objext conftest$ac_exeext 14649 rm -f conftest.$ac_objext conftest$ac_exeext
10726 if { (eval echo "$as_me:10726: \"$ac_link\"") >&5 14650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10727 (eval $ac_link) 2>&5 14651 (eval $ac_link) 2>&5
10728 ac_status=$? 14652 ac_status=$?
10729 echo "$as_me:10729: \$? = $ac_status" >&5 14653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730 (exit $ac_status); } && 14654 (exit $ac_status); } &&
10731 { ac_try='test -s conftest$ac_exeext' 14655 { ac_try='test -s conftest$ac_exeext'
10732 { (eval echo "$as_me:10732: \"$ac_try\"") >&5 14656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10733 (eval $ac_try) 2>&5 14657 (eval $ac_try) 2>&5
10734 ac_status=$? 14658 ac_status=$?
10735 echo "$as_me:10735: \$? = $ac_status" >&5 14659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736 (exit $ac_status); }; }; then 14660 (exit $ac_status); }; }; then
10737 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes 14661 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
10738 else 14662 else
10739 echo "$as_me: failed program was:" >&5 14663 echo "$as_me: failed program was:" >&5
10740 cat conftest.$ac_ext >&5 14664 cat conftest.$ac_ext >&5
10741 ac_cv_lib_crypto_mit_des_cbc_encrypt=no 14665 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
10742 fi 14666 fi
10743 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14667 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10744 LIBS=$ac_check_lib_save_LIBS 14668 LIBS=$ac_check_lib_save_LIBS
10745 fi 14669 fi
10746 echo "$as_me:10746: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5 14670 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
10747 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6 14671 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
10748 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then 14672 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
10749 cat >>confdefs.h <<EOF 14673 cat >>confdefs.h <<_ACEOF
10750 #define HAVE_LIBCRYPTO 1 14674 #define HAVE_LIBCRYPTO 1
10751 EOF 14675 _ACEOF
10752 14676
10753 LIBS="-lcrypto $LIBS" 14677 LIBS="-lcrypto $LIBS"
10754 14678
10755 fi 14679 fi
10756 14680
10757 echo "$as_me:10757: checking for krb5_init_context in -lkrb5" >&5 14681
14682 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
10758 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6 14683 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
10759 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then 14684 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
10760 echo $ECHO_N "(cached) $ECHO_C" >&6 14685 echo $ECHO_N "(cached) $ECHO_C" >&6
10761 else 14686 else
10762 ac_check_lib_save_LIBS=$LIBS 14687 ac_check_lib_save_LIBS=$LIBS
10763 LIBS="-lkrb5 $LIBS" 14688 LIBS="-lkrb5 $LIBS"
10764 cat >conftest.$ac_ext <<_ACEOF 14689 cat >conftest.$ac_ext <<_ACEOF
10765 #line 10765 "configure" 14690 #line $LINENO "configure"
10766 #include "confdefs.h" 14691 #include "confdefs.h"
10767 14692
10768 /* Override any gcc2 internal prototype to avoid an error. */ 14693 /* Override any gcc2 internal prototype to avoid an error. */
10769 #ifdef __cplusplus 14694 #ifdef __cplusplus
10770 extern "C" 14695 extern "C"
10771 #endif 14696 #endif
10772 /* We use char because int might match the return type of a gcc2 14697 /* We use char because int might match the return type of a gcc2
10773 builtin and then its argument prototype would still apply. */ 14698 builtin and then its argument prototype would still apply. */
10774 char krb5_init_context (); 14699 char krb5_init_context ();
14700 #ifdef F77_DUMMY_MAIN
14701 # ifdef __cplusplus
14702 extern "C"
14703 # endif
14704 int F77_DUMMY_MAIN() { return 1; }
14705 #endif
10775 int 14706 int
10776 main () 14707 main ()
10777 { 14708 {
10778 krb5_init_context (); 14709 krb5_init_context ();
10779 ; 14710 ;
10780 return 0; 14711 return 0;
10781 } 14712 }
10782 _ACEOF 14713 _ACEOF
10783 rm -f conftest.$ac_objext conftest$ac_exeext 14714 rm -f conftest.$ac_objext conftest$ac_exeext
10784 if { (eval echo "$as_me:10784: \"$ac_link\"") >&5 14715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10785 (eval $ac_link) 2>&5 14716 (eval $ac_link) 2>&5
10786 ac_status=$? 14717 ac_status=$?
10787 echo "$as_me:10787: \$? = $ac_status" >&5 14718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788 (exit $ac_status); } && 14719 (exit $ac_status); } &&
10789 { ac_try='test -s conftest$ac_exeext' 14720 { ac_try='test -s conftest$ac_exeext'
10790 { (eval echo "$as_me:10790: \"$ac_try\"") >&5 14721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10791 (eval $ac_try) 2>&5 14722 (eval $ac_try) 2>&5
10792 ac_status=$? 14723 ac_status=$?
10793 echo "$as_me:10793: \$? = $ac_status" >&5 14724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794 (exit $ac_status); }; }; then 14725 (exit $ac_status); }; }; then
10795 ac_cv_lib_krb5_krb5_init_context=yes 14726 ac_cv_lib_krb5_krb5_init_context=yes
10796 else 14727 else
10797 echo "$as_me: failed program was:" >&5 14728 echo "$as_me: failed program was:" >&5
10798 cat conftest.$ac_ext >&5 14729 cat conftest.$ac_ext >&5
10799 ac_cv_lib_krb5_krb5_init_context=no 14730 ac_cv_lib_krb5_krb5_init_context=no
10800 fi 14731 fi
10801 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14732 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10802 LIBS=$ac_check_lib_save_LIBS 14733 LIBS=$ac_check_lib_save_LIBS
10803 fi 14734 fi
10804 echo "$as_me:10804: result: $ac_cv_lib_krb5_krb5_init_context" >&5 14735 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
10805 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6 14736 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
10806 if test $ac_cv_lib_krb5_krb5_init_context = yes; then 14737 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
10807 cat >>confdefs.h <<EOF 14738 cat >>confdefs.h <<_ACEOF
10808 #define HAVE_LIBKRB5 1 14739 #define HAVE_LIBKRB5 1
10809 EOF 14740 _ACEOF
10810 14741
10811 LIBS="-lkrb5 $LIBS" 14742 LIBS="-lkrb5 $LIBS"
10812 14743
10813 fi 14744 fi
10814 14745
10815 if test "${with_kerberos5+set}" != set; then 14746 if test "${with_kerberos5+set}" != set; then
10816 14747
10817 echo "$as_me:10817: checking for des_cbc_encrypt in -ldes425" >&5 14748 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
10818 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6 14749 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
10819 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then 14750 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
10820 echo $ECHO_N "(cached) $ECHO_C" >&6 14751 echo $ECHO_N "(cached) $ECHO_C" >&6
10821 else 14752 else
10822 ac_check_lib_save_LIBS=$LIBS 14753 ac_check_lib_save_LIBS=$LIBS
10823 LIBS="-ldes425 $LIBS" 14754 LIBS="-ldes425 $LIBS"
10824 cat >conftest.$ac_ext <<_ACEOF 14755 cat >conftest.$ac_ext <<_ACEOF
10825 #line 10825 "configure" 14756 #line $LINENO "configure"
10826 #include "confdefs.h" 14757 #include "confdefs.h"
10827 14758
10828 /* Override any gcc2 internal prototype to avoid an error. */ 14759 /* Override any gcc2 internal prototype to avoid an error. */
10829 #ifdef __cplusplus 14760 #ifdef __cplusplus
10830 extern "C" 14761 extern "C"
10831 #endif 14762 #endif
10832 /* We use char because int might match the return type of a gcc2 14763 /* We use char because int might match the return type of a gcc2
10833 builtin and then its argument prototype would still apply. */ 14764 builtin and then its argument prototype would still apply. */
10834 char des_cbc_encrypt (); 14765 char des_cbc_encrypt ();
14766 #ifdef F77_DUMMY_MAIN
14767 # ifdef __cplusplus
14768 extern "C"
14769 # endif
14770 int F77_DUMMY_MAIN() { return 1; }
14771 #endif
10835 int 14772 int
10836 main () 14773 main ()
10837 { 14774 {
10838 des_cbc_encrypt (); 14775 des_cbc_encrypt ();
10839 ; 14776 ;
10840 return 0; 14777 return 0;
10841 } 14778 }
10842 _ACEOF 14779 _ACEOF
10843 rm -f conftest.$ac_objext conftest$ac_exeext 14780 rm -f conftest.$ac_objext conftest$ac_exeext
10844 if { (eval echo "$as_me:10844: \"$ac_link\"") >&5 14781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10845 (eval $ac_link) 2>&5 14782 (eval $ac_link) 2>&5
10846 ac_status=$? 14783 ac_status=$?
10847 echo "$as_me:10847: \$? = $ac_status" >&5 14784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10848 (exit $ac_status); } && 14785 (exit $ac_status); } &&
10849 { ac_try='test -s conftest$ac_exeext' 14786 { ac_try='test -s conftest$ac_exeext'
10850 { (eval echo "$as_me:10850: \"$ac_try\"") >&5 14787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10851 (eval $ac_try) 2>&5 14788 (eval $ac_try) 2>&5
10852 ac_status=$? 14789 ac_status=$?
10853 echo "$as_me:10853: \$? = $ac_status" >&5 14790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10854 (exit $ac_status); }; }; then 14791 (exit $ac_status); }; }; then
10855 ac_cv_lib_des425_des_cbc_encrypt=yes 14792 ac_cv_lib_des425_des_cbc_encrypt=yes
10856 else 14793 else
10857 echo "$as_me: failed program was:" >&5 14794 echo "$as_me: failed program was:" >&5
10858 cat conftest.$ac_ext >&5 14795 cat conftest.$ac_ext >&5
10859 ac_cv_lib_des425_des_cbc_encrypt=no 14796 ac_cv_lib_des425_des_cbc_encrypt=no
10860 fi 14797 fi
10861 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14798 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10862 LIBS=$ac_check_lib_save_LIBS 14799 LIBS=$ac_check_lib_save_LIBS
10863 fi 14800 fi
10864 echo "$as_me:10864: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5 14801 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
10865 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6 14802 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
10866 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then 14803 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
10867 cat >>confdefs.h <<EOF 14804 cat >>confdefs.h <<_ACEOF
10868 #define HAVE_LIBDES425 1 14805 #define HAVE_LIBDES425 1
10869 EOF 14806 _ACEOF
10870 14807
10871 LIBS="-ldes425 $LIBS" 14808 LIBS="-ldes425 $LIBS"
10872 14809
10873 else 14810 else
10874 14811
10875 echo "$as_me:10875: checking for des_cbc_encrypt in -ldes" >&5 14812 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
10876 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6 14813 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
10877 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then 14814 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
10878 echo $ECHO_N "(cached) $ECHO_C" >&6 14815 echo $ECHO_N "(cached) $ECHO_C" >&6
10879 else 14816 else
10880 ac_check_lib_save_LIBS=$LIBS 14817 ac_check_lib_save_LIBS=$LIBS
10881 LIBS="-ldes $LIBS" 14818 LIBS="-ldes $LIBS"
10882 cat >conftest.$ac_ext <<_ACEOF 14819 cat >conftest.$ac_ext <<_ACEOF
10883 #line 10883 "configure" 14820 #line $LINENO "configure"
10884 #include "confdefs.h" 14821 #include "confdefs.h"
10885 14822
10886 /* Override any gcc2 internal prototype to avoid an error. */ 14823 /* Override any gcc2 internal prototype to avoid an error. */
10887 #ifdef __cplusplus 14824 #ifdef __cplusplus
10888 extern "C" 14825 extern "C"
10889 #endif 14826 #endif
10890 /* We use char because int might match the return type of a gcc2 14827 /* We use char because int might match the return type of a gcc2
10891 builtin and then its argument prototype would still apply. */ 14828 builtin and then its argument prototype would still apply. */
10892 char des_cbc_encrypt (); 14829 char des_cbc_encrypt ();
14830 #ifdef F77_DUMMY_MAIN
14831 # ifdef __cplusplus
14832 extern "C"
14833 # endif
14834 int F77_DUMMY_MAIN() { return 1; }
14835 #endif
10893 int 14836 int
10894 main () 14837 main ()
10895 { 14838 {
10896 des_cbc_encrypt (); 14839 des_cbc_encrypt ();
10897 ; 14840 ;
10898 return 0; 14841 return 0;
10899 } 14842 }
10900 _ACEOF 14843 _ACEOF
10901 rm -f conftest.$ac_objext conftest$ac_exeext 14844 rm -f conftest.$ac_objext conftest$ac_exeext
10902 if { (eval echo "$as_me:10902: \"$ac_link\"") >&5 14845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10903 (eval $ac_link) 2>&5 14846 (eval $ac_link) 2>&5
10904 ac_status=$? 14847 ac_status=$?
10905 echo "$as_me:10905: \$? = $ac_status" >&5 14848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10906 (exit $ac_status); } && 14849 (exit $ac_status); } &&
10907 { ac_try='test -s conftest$ac_exeext' 14850 { ac_try='test -s conftest$ac_exeext'
10908 { (eval echo "$as_me:10908: \"$ac_try\"") >&5 14851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10909 (eval $ac_try) 2>&5 14852 (eval $ac_try) 2>&5
10910 ac_status=$? 14853 ac_status=$?
10911 echo "$as_me:10911: \$? = $ac_status" >&5 14854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912 (exit $ac_status); }; }; then 14855 (exit $ac_status); }; }; then
10913 ac_cv_lib_des_des_cbc_encrypt=yes 14856 ac_cv_lib_des_des_cbc_encrypt=yes
10914 else 14857 else
10915 echo "$as_me: failed program was:" >&5 14858 echo "$as_me: failed program was:" >&5
10916 cat conftest.$ac_ext >&5 14859 cat conftest.$ac_ext >&5
10917 ac_cv_lib_des_des_cbc_encrypt=no 14860 ac_cv_lib_des_des_cbc_encrypt=no
10918 fi 14861 fi
10919 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14862 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10920 LIBS=$ac_check_lib_save_LIBS 14863 LIBS=$ac_check_lib_save_LIBS
10921 fi 14864 fi
10922 echo "$as_me:10922: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 14865 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
10923 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6 14866 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
10924 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then 14867 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
10925 cat >>confdefs.h <<EOF 14868 cat >>confdefs.h <<_ACEOF
10926 #define HAVE_LIBDES 1 14869 #define HAVE_LIBDES 1
10927 EOF 14870 _ACEOF
10928 14871
10929 LIBS="-ldes $LIBS" 14872 LIBS="-ldes $LIBS"
10930 14873
10931 fi 14874 fi
10932 14875
10933 fi 14876 fi
10934 14877
10935 echo "$as_me:10935: checking for krb_get_cred in -lkrb4" >&5 14878
14879 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
10936 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6 14880 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
10937 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then 14881 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
10938 echo $ECHO_N "(cached) $ECHO_C" >&6 14882 echo $ECHO_N "(cached) $ECHO_C" >&6
10939 else 14883 else
10940 ac_check_lib_save_LIBS=$LIBS 14884 ac_check_lib_save_LIBS=$LIBS
10941 LIBS="-lkrb4 $LIBS" 14885 LIBS="-lkrb4 $LIBS"
10942 cat >conftest.$ac_ext <<_ACEOF 14886 cat >conftest.$ac_ext <<_ACEOF
10943 #line 10943 "configure" 14887 #line $LINENO "configure"
10944 #include "confdefs.h" 14888 #include "confdefs.h"
10945 14889
10946 /* Override any gcc2 internal prototype to avoid an error. */ 14890 /* Override any gcc2 internal prototype to avoid an error. */
10947 #ifdef __cplusplus 14891 #ifdef __cplusplus
10948 extern "C" 14892 extern "C"
10949 #endif 14893 #endif
10950 /* We use char because int might match the return type of a gcc2 14894 /* We use char because int might match the return type of a gcc2
10951 builtin and then its argument prototype would still apply. */ 14895 builtin and then its argument prototype would still apply. */
10952 char krb_get_cred (); 14896 char krb_get_cred ();
14897 #ifdef F77_DUMMY_MAIN
14898 # ifdef __cplusplus
14899 extern "C"
14900 # endif
14901 int F77_DUMMY_MAIN() { return 1; }
14902 #endif
10953 int 14903 int
10954 main () 14904 main ()
10955 { 14905 {
10956 krb_get_cred (); 14906 krb_get_cred ();
10957 ; 14907 ;
10958 return 0; 14908 return 0;
10959 } 14909 }
10960 _ACEOF 14910 _ACEOF
10961 rm -f conftest.$ac_objext conftest$ac_exeext 14911 rm -f conftest.$ac_objext conftest$ac_exeext
10962 if { (eval echo "$as_me:10962: \"$ac_link\"") >&5 14912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10963 (eval $ac_link) 2>&5 14913 (eval $ac_link) 2>&5
10964 ac_status=$? 14914 ac_status=$?
10965 echo "$as_me:10965: \$? = $ac_status" >&5 14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); } && 14916 (exit $ac_status); } &&
10967 { ac_try='test -s conftest$ac_exeext' 14917 { ac_try='test -s conftest$ac_exeext'
10968 { (eval echo "$as_me:10968: \"$ac_try\"") >&5 14918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10969 (eval $ac_try) 2>&5 14919 (eval $ac_try) 2>&5
10970 ac_status=$? 14920 ac_status=$?
10971 echo "$as_me:10971: \$? = $ac_status" >&5 14921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972 (exit $ac_status); }; }; then 14922 (exit $ac_status); }; }; then
10973 ac_cv_lib_krb4_krb_get_cred=yes 14923 ac_cv_lib_krb4_krb_get_cred=yes
10974 else 14924 else
10975 echo "$as_me: failed program was:" >&5 14925 echo "$as_me: failed program was:" >&5
10976 cat conftest.$ac_ext >&5 14926 cat conftest.$ac_ext >&5
10977 ac_cv_lib_krb4_krb_get_cred=no 14927 ac_cv_lib_krb4_krb_get_cred=no
10978 fi 14928 fi
10979 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14929 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10980 LIBS=$ac_check_lib_save_LIBS 14930 LIBS=$ac_check_lib_save_LIBS
10981 fi 14931 fi
10982 echo "$as_me:10982: result: $ac_cv_lib_krb4_krb_get_cred" >&5 14932 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
10983 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6 14933 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
10984 if test $ac_cv_lib_krb4_krb_get_cred = yes; then 14934 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
10985 cat >>confdefs.h <<EOF 14935 cat >>confdefs.h <<_ACEOF
10986 #define HAVE_LIBKRB4 1 14936 #define HAVE_LIBKRB4 1
10987 EOF 14937 _ACEOF
10988 14938
10989 LIBS="-lkrb4 $LIBS" 14939 LIBS="-lkrb4 $LIBS"
10990 14940
10991 else 14941 else
10992 14942
10993 echo "$as_me:10993: checking for krb_get_cred in -lkrb" >&5 14943 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
10994 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6 14944 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
10995 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then 14945 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
10996 echo $ECHO_N "(cached) $ECHO_C" >&6 14946 echo $ECHO_N "(cached) $ECHO_C" >&6
10997 else 14947 else
10998 ac_check_lib_save_LIBS=$LIBS 14948 ac_check_lib_save_LIBS=$LIBS
10999 LIBS="-lkrb $LIBS" 14949 LIBS="-lkrb $LIBS"
11000 cat >conftest.$ac_ext <<_ACEOF 14950 cat >conftest.$ac_ext <<_ACEOF
11001 #line 11001 "configure" 14951 #line $LINENO "configure"
11002 #include "confdefs.h" 14952 #include "confdefs.h"
11003 14953
11004 /* Override any gcc2 internal prototype to avoid an error. */ 14954 /* Override any gcc2 internal prototype to avoid an error. */
11005 #ifdef __cplusplus 14955 #ifdef __cplusplus
11006 extern "C" 14956 extern "C"
11007 #endif 14957 #endif
11008 /* We use char because int might match the return type of a gcc2 14958 /* We use char because int might match the return type of a gcc2
11009 builtin and then its argument prototype would still apply. */ 14959 builtin and then its argument prototype would still apply. */
11010 char krb_get_cred (); 14960 char krb_get_cred ();
14961 #ifdef F77_DUMMY_MAIN
14962 # ifdef __cplusplus
14963 extern "C"
14964 # endif
14965 int F77_DUMMY_MAIN() { return 1; }
14966 #endif
11011 int 14967 int
11012 main () 14968 main ()
11013 { 14969 {
11014 krb_get_cred (); 14970 krb_get_cred ();
11015 ; 14971 ;
11016 return 0; 14972 return 0;
11017 } 14973 }
11018 _ACEOF 14974 _ACEOF
11019 rm -f conftest.$ac_objext conftest$ac_exeext 14975 rm -f conftest.$ac_objext conftest$ac_exeext
11020 if { (eval echo "$as_me:11020: \"$ac_link\"") >&5 14976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11021 (eval $ac_link) 2>&5 14977 (eval $ac_link) 2>&5
11022 ac_status=$? 14978 ac_status=$?
11023 echo "$as_me:11023: \$? = $ac_status" >&5 14979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); } && 14980 (exit $ac_status); } &&
11025 { ac_try='test -s conftest$ac_exeext' 14981 { ac_try='test -s conftest$ac_exeext'
11026 { (eval echo "$as_me:11026: \"$ac_try\"") >&5 14982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11027 (eval $ac_try) 2>&5 14983 (eval $ac_try) 2>&5
11028 ac_status=$? 14984 ac_status=$?
11029 echo "$as_me:11029: \$? = $ac_status" >&5 14985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); }; }; then 14986 (exit $ac_status); }; }; then
11031 ac_cv_lib_krb_krb_get_cred=yes 14987 ac_cv_lib_krb_krb_get_cred=yes
11032 else 14988 else
11033 echo "$as_me: failed program was:" >&5 14989 echo "$as_me: failed program was:" >&5
11034 cat conftest.$ac_ext >&5 14990 cat conftest.$ac_ext >&5
11035 ac_cv_lib_krb_krb_get_cred=no 14991 ac_cv_lib_krb_krb_get_cred=no
11036 fi 14992 fi
11037 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14993 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11038 LIBS=$ac_check_lib_save_LIBS 14994 LIBS=$ac_check_lib_save_LIBS
11039 fi 14995 fi
11040 echo "$as_me:11040: result: $ac_cv_lib_krb_krb_get_cred" >&5 14996 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
11041 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6 14997 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
11042 if test $ac_cv_lib_krb_krb_get_cred = yes; then 14998 if test $ac_cv_lib_krb_krb_get_cred = yes; then
11043 cat >>confdefs.h <<EOF 14999 cat >>confdefs.h <<_ACEOF
11044 #define HAVE_LIBKRB 1 15000 #define HAVE_LIBKRB 1
11045 EOF 15001 _ACEOF
11046 15002
11047 LIBS="-lkrb $LIBS" 15003 LIBS="-lkrb $LIBS"
11048 15004
11049 fi 15005 fi
11050 15006
11055 if test "${with_kerberos5+set}" = set; then 15011 if test "${with_kerberos5+set}" = set; then
11056 15012
11057 for ac_header in krb5.h 15013 for ac_header in krb5.h
11058 do 15014 do
11059 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15015 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11060 echo "$as_me:11060: checking for $ac_header" >&5 15016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15017 echo "$as_me:$LINENO: checking for $ac_header" >&5
11061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 15018 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11062 if eval "test \"\${$as_ac_Header+set}\" = set"; then 15019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11063 echo $ECHO_N "(cached) $ECHO_C" >&6 15020 echo $ECHO_N "(cached) $ECHO_C" >&6
11064 else 15021 fi
11065 cat >conftest.$ac_ext <<_ACEOF 15022 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11066 #line 11066 "configure" 15023 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11067 #include "confdefs.h" 15024 else
15025 # Is the header compilable?
15026 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15027 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15028 cat >conftest.$ac_ext <<_ACEOF
15029 #line $LINENO "configure"
15030 #include "confdefs.h"
15031 $ac_includes_default
11068 #include <$ac_header> 15032 #include <$ac_header>
11069 _ACEOF 15033 _ACEOF
11070 if { (eval echo "$as_me:11070: \"$ac_cpp conftest.$ac_ext\"") >&5 15034 rm -f conftest.$ac_objext
15035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15036 (eval $ac_compile) 2>&5
15037 ac_status=$?
15038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039 (exit $ac_status); } &&
15040 { ac_try='test -s conftest.$ac_objext'
15041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15042 (eval $ac_try) 2>&5
15043 ac_status=$?
15044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045 (exit $ac_status); }; }; then
15046 ac_header_compiler=yes
15047 else
15048 echo "$as_me: failed program was:" >&5
15049 cat conftest.$ac_ext >&5
15050 ac_header_compiler=no
15051 fi
15052 rm -f conftest.$ac_objext conftest.$ac_ext
15053 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15054 echo "${ECHO_T}$ac_header_compiler" >&6
15055
15056 # Is the header present?
15057 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15058 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15059 cat >conftest.$ac_ext <<_ACEOF
15060 #line $LINENO "configure"
15061 #include "confdefs.h"
15062 #include <$ac_header>
15063 _ACEOF
15064 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11071 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 15065 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11072 ac_status=$? 15066 ac_status=$?
11073 egrep -v '^ *\+' conftest.er1 >conftest.err 15067 egrep -v '^ *\+' conftest.er1 >conftest.err
11074 rm -f conftest.er1 15068 rm -f conftest.er1
11075 cat conftest.err >&5 15069 cat conftest.err >&5
11076 echo "$as_me:11076: \$? = $ac_status" >&5 15070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077 (exit $ac_status); } >/dev/null; then 15071 (exit $ac_status); } >/dev/null; then
11078 if test -s conftest.err; then 15072 if test -s conftest.err; then
11079 ac_cpp_err=$ac_c_preproc_warn_flag 15073 ac_cpp_err=$ac_c_preproc_warn_flag
11080 else 15074 else
11081 ac_cpp_err= 15075 ac_cpp_err=
11082 fi 15076 fi
11083 else 15077 else
11084 ac_cpp_err=yes 15078 ac_cpp_err=yes
11085 fi 15079 fi
11086 if test -z "$ac_cpp_err"; then 15080 if test -z "$ac_cpp_err"; then
11087 eval "$as_ac_Header=yes" 15081 ac_header_preproc=yes
11088 else 15082 else
11089 echo "$as_me: failed program was:" >&5 15083 echo "$as_me: failed program was:" >&5
11090 cat conftest.$ac_ext >&5 15084 cat conftest.$ac_ext >&5
11091 eval "$as_ac_Header=no" 15085 ac_header_preproc=no
11092 fi 15086 fi
11093 rm -f conftest.err conftest.$ac_ext 15087 rm -f conftest.err conftest.$ac_ext
11094 fi 15088 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11095 echo "$as_me:11095: result: `eval echo '${'$as_ac_Header'}'`" >&5 15089 echo "${ECHO_T}$ac_header_preproc" >&6
15090
15091 # So? What about this header?
15092 case $ac_header_compiler:$ac_header_preproc in
15093 yes:no )
15094 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15095 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15096 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15097 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15098 no:yes )
15099 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15100 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15101 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15102 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15103 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15104 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15105 esac
15106 echo "$as_me:$LINENO: checking for $ac_header" >&5
15107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15108 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15109 echo $ECHO_N "(cached) $ECHO_C" >&6
15110 else
15111 eval "$as_ac_Header=$ac_header_preproc"
15112 fi
15113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11096 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 15114 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15115
15116 fi
11097 if test `eval echo '${'$as_ac_Header'}'` = yes; then 15117 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11098 cat >>confdefs.h <<EOF 15118 cat >>confdefs.h <<_ACEOF
11099 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15119 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11100 EOF 15120 _ACEOF
11101 15121
11102 fi 15122 fi
15123
11103 done 15124 done
11104 15125
11105 else 15126 else
11106 15127
11107 for ac_header in des.h 15128 for ac_header in des.h
11108 do 15129 do
11109 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15130 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11110 echo "$as_me:11110: checking for $ac_header" >&5 15131 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15132 echo "$as_me:$LINENO: checking for $ac_header" >&5
11111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 15133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11112 if eval "test \"\${$as_ac_Header+set}\" = set"; then 15134 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11113 echo $ECHO_N "(cached) $ECHO_C" >&6 15135 echo $ECHO_N "(cached) $ECHO_C" >&6
11114 else 15136 fi
11115 cat >conftest.$ac_ext <<_ACEOF 15137 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11116 #line 11116 "configure" 15138 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11117 #include "confdefs.h" 15139 else
15140 # Is the header compilable?
15141 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15142 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15143 cat >conftest.$ac_ext <<_ACEOF
15144 #line $LINENO "configure"
15145 #include "confdefs.h"
15146 $ac_includes_default
11118 #include <$ac_header> 15147 #include <$ac_header>
11119 _ACEOF 15148 _ACEOF
11120 if { (eval echo "$as_me:11120: \"$ac_cpp conftest.$ac_ext\"") >&5 15149 rm -f conftest.$ac_objext
15150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15151 (eval $ac_compile) 2>&5
15152 ac_status=$?
15153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154 (exit $ac_status); } &&
15155 { ac_try='test -s conftest.$ac_objext'
15156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15157 (eval $ac_try) 2>&5
15158 ac_status=$?
15159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160 (exit $ac_status); }; }; then
15161 ac_header_compiler=yes
15162 else
15163 echo "$as_me: failed program was:" >&5
15164 cat conftest.$ac_ext >&5
15165 ac_header_compiler=no
15166 fi
15167 rm -f conftest.$ac_objext conftest.$ac_ext
15168 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15169 echo "${ECHO_T}$ac_header_compiler" >&6
15170
15171 # Is the header present?
15172 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15173 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15174 cat >conftest.$ac_ext <<_ACEOF
15175 #line $LINENO "configure"
15176 #include "confdefs.h"
15177 #include <$ac_header>
15178 _ACEOF
15179 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11121 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 15180 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11122 ac_status=$? 15181 ac_status=$?
11123 egrep -v '^ *\+' conftest.er1 >conftest.err 15182 egrep -v '^ *\+' conftest.er1 >conftest.err
11124 rm -f conftest.er1 15183 rm -f conftest.er1
11125 cat conftest.err >&5 15184 cat conftest.err >&5
11126 echo "$as_me:11126: \$? = $ac_status" >&5 15185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127 (exit $ac_status); } >/dev/null; then 15186 (exit $ac_status); } >/dev/null; then
11128 if test -s conftest.err; then 15187 if test -s conftest.err; then
11129 ac_cpp_err=$ac_c_preproc_warn_flag 15188 ac_cpp_err=$ac_c_preproc_warn_flag
11130 else 15189 else
11131 ac_cpp_err= 15190 ac_cpp_err=
11132 fi 15191 fi
11133 else 15192 else
11134 ac_cpp_err=yes 15193 ac_cpp_err=yes
11135 fi 15194 fi
11136 if test -z "$ac_cpp_err"; then 15195 if test -z "$ac_cpp_err"; then
11137 eval "$as_ac_Header=yes" 15196 ac_header_preproc=yes
11138 else 15197 else
11139 echo "$as_me: failed program was:" >&5 15198 echo "$as_me: failed program was:" >&5
11140 cat conftest.$ac_ext >&5 15199 cat conftest.$ac_ext >&5
11141 eval "$as_ac_Header=no" 15200 ac_header_preproc=no
11142 fi 15201 fi
11143 rm -f conftest.err conftest.$ac_ext 15202 rm -f conftest.err conftest.$ac_ext
11144 fi 15203 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11145 echo "$as_me:11145: result: `eval echo '${'$as_ac_Header'}'`" >&5 15204 echo "${ECHO_T}$ac_header_preproc" >&6
15205
15206 # So? What about this header?
15207 case $ac_header_compiler:$ac_header_preproc in
15208 yes:no )
15209 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15210 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15211 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15212 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15213 no:yes )
15214 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15215 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15216 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15217 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15219 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15220 esac
15221 echo "$as_me:$LINENO: checking for $ac_header" >&5
15222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15224 echo $ECHO_N "(cached) $ECHO_C" >&6
15225 else
15226 eval "$as_ac_Header=$ac_header_preproc"
15227 fi
15228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11146 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 15229 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15230
15231 fi
11147 if test `eval echo '${'$as_ac_Header'}'` = yes; then 15232 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11148 cat >>confdefs.h <<EOF 15233 cat >>confdefs.h <<_ACEOF
11149 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15234 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11150 EOF 15235 _ACEOF
11151 15236
11152 else 15237 else
11153 15238
11154 for ac_header in kerberosIV/des.h 15239 for ac_header in kerberosIV/des.h
11155 do 15240 do
11156 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15241 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11157 echo "$as_me:11157: checking for $ac_header" >&5 15242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15243 echo "$as_me:$LINENO: checking for $ac_header" >&5
11158 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 15244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11159 if eval "test \"\${$as_ac_Header+set}\" = set"; then 15245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11160 echo $ECHO_N "(cached) $ECHO_C" >&6 15246 echo $ECHO_N "(cached) $ECHO_C" >&6
11161 else 15247 fi
11162 cat >conftest.$ac_ext <<_ACEOF 15248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11163 #line 11163 "configure" 15249 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11164 #include "confdefs.h" 15250 else
15251 # Is the header compilable?
15252 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15253 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15254 cat >conftest.$ac_ext <<_ACEOF
15255 #line $LINENO "configure"
15256 #include "confdefs.h"
15257 $ac_includes_default
11165 #include <$ac_header> 15258 #include <$ac_header>
11166 _ACEOF 15259 _ACEOF
11167 if { (eval echo "$as_me:11167: \"$ac_cpp conftest.$ac_ext\"") >&5 15260 rm -f conftest.$ac_objext
15261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15262 (eval $ac_compile) 2>&5
15263 ac_status=$?
15264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265 (exit $ac_status); } &&
15266 { ac_try='test -s conftest.$ac_objext'
15267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15268 (eval $ac_try) 2>&5
15269 ac_status=$?
15270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15271 (exit $ac_status); }; }; then
15272 ac_header_compiler=yes
15273 else
15274 echo "$as_me: failed program was:" >&5
15275 cat conftest.$ac_ext >&5
15276 ac_header_compiler=no
15277 fi
15278 rm -f conftest.$ac_objext conftest.$ac_ext
15279 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15280 echo "${ECHO_T}$ac_header_compiler" >&6
15281
15282 # Is the header present?
15283 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15284 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15285 cat >conftest.$ac_ext <<_ACEOF
15286 #line $LINENO "configure"
15287 #include "confdefs.h"
15288 #include <$ac_header>
15289 _ACEOF
15290 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11168 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 15291 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11169 ac_status=$? 15292 ac_status=$?
11170 egrep -v '^ *\+' conftest.er1 >conftest.err 15293 egrep -v '^ *\+' conftest.er1 >conftest.err
11171 rm -f conftest.er1 15294 rm -f conftest.er1
11172 cat conftest.err >&5 15295 cat conftest.err >&5
11173 echo "$as_me:11173: \$? = $ac_status" >&5 15296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174 (exit $ac_status); } >/dev/null; then 15297 (exit $ac_status); } >/dev/null; then
11175 if test -s conftest.err; then 15298 if test -s conftest.err; then
11176 ac_cpp_err=$ac_c_preproc_warn_flag 15299 ac_cpp_err=$ac_c_preproc_warn_flag
11177 else 15300 else
11178 ac_cpp_err= 15301 ac_cpp_err=
11179 fi 15302 fi
11180 else 15303 else
11181 ac_cpp_err=yes 15304 ac_cpp_err=yes
11182 fi 15305 fi
11183 if test -z "$ac_cpp_err"; then 15306 if test -z "$ac_cpp_err"; then
11184 eval "$as_ac_Header=yes" 15307 ac_header_preproc=yes
11185 else 15308 else
11186 echo "$as_me: failed program was:" >&5 15309 echo "$as_me: failed program was:" >&5
11187 cat conftest.$ac_ext >&5 15310 cat conftest.$ac_ext >&5
11188 eval "$as_ac_Header=no" 15311 ac_header_preproc=no
11189 fi 15312 fi
11190 rm -f conftest.err conftest.$ac_ext 15313 rm -f conftest.err conftest.$ac_ext
11191 fi 15314 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11192 echo "$as_me:11192: result: `eval echo '${'$as_ac_Header'}'`" >&5 15315 echo "${ECHO_T}$ac_header_preproc" >&6
15316
15317 # So? What about this header?
15318 case $ac_header_compiler:$ac_header_preproc in
15319 yes:no )
15320 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15321 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15322 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15323 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15324 no:yes )
15325 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15326 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15327 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15328 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15330 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15331 esac
15332 echo "$as_me:$LINENO: checking for $ac_header" >&5
15333 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15334 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15335 echo $ECHO_N "(cached) $ECHO_C" >&6
15336 else
15337 eval "$as_ac_Header=$ac_header_preproc"
15338 fi
15339 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11193 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 15340 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15341
15342 fi
11194 if test `eval echo '${'$as_ac_Header'}'` = yes; then 15343 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11195 cat >>confdefs.h <<EOF 15344 cat >>confdefs.h <<_ACEOF
11196 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15345 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11197 EOF 15346 _ACEOF
11198 15347
11199 else 15348 else
11200 15349
11201 for ac_header in kerberos/des.h 15350 for ac_header in kerberos/des.h
11202 do 15351 do
11203 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15352 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11204 echo "$as_me:11204: checking for $ac_header" >&5 15353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15354 echo "$as_me:$LINENO: checking for $ac_header" >&5
11205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 15355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11206 if eval "test \"\${$as_ac_Header+set}\" = set"; then 15356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11207 echo $ECHO_N "(cached) $ECHO_C" >&6 15357 echo $ECHO_N "(cached) $ECHO_C" >&6
11208 else 15358 fi
11209 cat >conftest.$ac_ext <<_ACEOF 15359 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11210 #line 11210 "configure" 15360 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11211 #include "confdefs.h" 15361 else
15362 # Is the header compilable?
15363 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15364 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15365 cat >conftest.$ac_ext <<_ACEOF
15366 #line $LINENO "configure"
15367 #include "confdefs.h"
15368 $ac_includes_default
11212 #include <$ac_header> 15369 #include <$ac_header>
11213 _ACEOF 15370 _ACEOF
11214 if { (eval echo "$as_me:11214: \"$ac_cpp conftest.$ac_ext\"") >&5 15371 rm -f conftest.$ac_objext
15372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15373 (eval $ac_compile) 2>&5
15374 ac_status=$?
15375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376 (exit $ac_status); } &&
15377 { ac_try='test -s conftest.$ac_objext'
15378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15379 (eval $ac_try) 2>&5
15380 ac_status=$?
15381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382 (exit $ac_status); }; }; then
15383 ac_header_compiler=yes
15384 else
15385 echo "$as_me: failed program was:" >&5
15386 cat conftest.$ac_ext >&5
15387 ac_header_compiler=no
15388 fi
15389 rm -f conftest.$ac_objext conftest.$ac_ext
15390 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15391 echo "${ECHO_T}$ac_header_compiler" >&6
15392
15393 # Is the header present?
15394 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15395 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15396 cat >conftest.$ac_ext <<_ACEOF
15397 #line $LINENO "configure"
15398 #include "confdefs.h"
15399 #include <$ac_header>
15400 _ACEOF
15401 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11215 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 15402 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11216 ac_status=$? 15403 ac_status=$?
11217 egrep -v '^ *\+' conftest.er1 >conftest.err 15404 egrep -v '^ *\+' conftest.er1 >conftest.err
11218 rm -f conftest.er1 15405 rm -f conftest.er1
11219 cat conftest.err >&5 15406 cat conftest.err >&5
11220 echo "$as_me:11220: \$? = $ac_status" >&5 15407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221 (exit $ac_status); } >/dev/null; then 15408 (exit $ac_status); } >/dev/null; then
11222 if test -s conftest.err; then 15409 if test -s conftest.err; then
11223 ac_cpp_err=$ac_c_preproc_warn_flag 15410 ac_cpp_err=$ac_c_preproc_warn_flag
11224 else 15411 else
11225 ac_cpp_err= 15412 ac_cpp_err=
11226 fi 15413 fi
11227 else 15414 else
11228 ac_cpp_err=yes 15415 ac_cpp_err=yes
11229 fi 15416 fi
11230 if test -z "$ac_cpp_err"; then 15417 if test -z "$ac_cpp_err"; then
11231 eval "$as_ac_Header=yes" 15418 ac_header_preproc=yes
11232 else 15419 else
11233 echo "$as_me: failed program was:" >&5 15420 echo "$as_me: failed program was:" >&5
11234 cat conftest.$ac_ext >&5 15421 cat conftest.$ac_ext >&5
11235 eval "$as_ac_Header=no" 15422 ac_header_preproc=no
11236 fi 15423 fi
11237 rm -f conftest.err conftest.$ac_ext 15424 rm -f conftest.err conftest.$ac_ext
11238 fi 15425 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11239 echo "$as_me:11239: result: `eval echo '${'$as_ac_Header'}'`" >&5 15426 echo "${ECHO_T}$ac_header_preproc" >&6
15427
15428 # So? What about this header?
15429 case $ac_header_compiler:$ac_header_preproc in
15430 yes:no )
15431 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15432 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15434 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15435 no:yes )
15436 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15437 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15438 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15439 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15441 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15442 esac
15443 echo "$as_me:$LINENO: checking for $ac_header" >&5
15444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15446 echo $ECHO_N "(cached) $ECHO_C" >&6
15447 else
15448 eval "$as_ac_Header=$ac_header_preproc"
15449 fi
15450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11240 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 15451 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15452
15453 fi
11241 if test `eval echo '${'$as_ac_Header'}'` = yes; then 15454 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11242 cat >>confdefs.h <<EOF 15455 cat >>confdefs.h <<_ACEOF
11243 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15456 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11244 EOF 15457 _ACEOF
11245 15458
11246 fi 15459 fi
15460
11247 done 15461 done
11248 15462
11249 fi 15463 fi
15464
11250 done 15465 done
11251 15466
11252 fi 15467 fi
15468
11253 done 15469 done
15470
11254 15471
11255 for ac_header in krb.h 15472 for ac_header in krb.h
11256 do 15473 do
11257 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15474 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11258 echo "$as_me:11258: checking for $ac_header" >&5 15475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15476 echo "$as_me:$LINENO: checking for $ac_header" >&5
11259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 15477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11260 if eval "test \"\${$as_ac_Header+set}\" = set"; then 15478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11261 echo $ECHO_N "(cached) $ECHO_C" >&6 15479 echo $ECHO_N "(cached) $ECHO_C" >&6
11262 else 15480 fi
11263 cat >conftest.$ac_ext <<_ACEOF 15481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11264 #line 11264 "configure" 15482 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11265 #include "confdefs.h" 15483 else
15484 # Is the header compilable?
15485 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15486 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15487 cat >conftest.$ac_ext <<_ACEOF
15488 #line $LINENO "configure"
15489 #include "confdefs.h"
15490 $ac_includes_default
11266 #include <$ac_header> 15491 #include <$ac_header>
11267 _ACEOF 15492 _ACEOF
11268 if { (eval echo "$as_me:11268: \"$ac_cpp conftest.$ac_ext\"") >&5 15493 rm -f conftest.$ac_objext
15494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15495 (eval $ac_compile) 2>&5
15496 ac_status=$?
15497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498 (exit $ac_status); } &&
15499 { ac_try='test -s conftest.$ac_objext'
15500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15501 (eval $ac_try) 2>&5
15502 ac_status=$?
15503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504 (exit $ac_status); }; }; then
15505 ac_header_compiler=yes
15506 else
15507 echo "$as_me: failed program was:" >&5
15508 cat conftest.$ac_ext >&5
15509 ac_header_compiler=no
15510 fi
15511 rm -f conftest.$ac_objext conftest.$ac_ext
15512 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15513 echo "${ECHO_T}$ac_header_compiler" >&6
15514
15515 # Is the header present?
15516 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15517 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15518 cat >conftest.$ac_ext <<_ACEOF
15519 #line $LINENO "configure"
15520 #include "confdefs.h"
15521 #include <$ac_header>
15522 _ACEOF
15523 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11269 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 15524 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11270 ac_status=$? 15525 ac_status=$?
11271 egrep -v '^ *\+' conftest.er1 >conftest.err 15526 egrep -v '^ *\+' conftest.er1 >conftest.err
11272 rm -f conftest.er1 15527 rm -f conftest.er1
11273 cat conftest.err >&5 15528 cat conftest.err >&5
11274 echo "$as_me:11274: \$? = $ac_status" >&5 15529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); } >/dev/null; then 15530 (exit $ac_status); } >/dev/null; then
11276 if test -s conftest.err; then 15531 if test -s conftest.err; then
11277 ac_cpp_err=$ac_c_preproc_warn_flag 15532 ac_cpp_err=$ac_c_preproc_warn_flag
11278 else 15533 else
11279 ac_cpp_err= 15534 ac_cpp_err=
11280 fi 15535 fi
11281 else 15536 else
11282 ac_cpp_err=yes 15537 ac_cpp_err=yes
11283 fi 15538 fi
11284 if test -z "$ac_cpp_err"; then 15539 if test -z "$ac_cpp_err"; then
11285 eval "$as_ac_Header=yes" 15540 ac_header_preproc=yes
11286 else 15541 else
11287 echo "$as_me: failed program was:" >&5 15542 echo "$as_me: failed program was:" >&5
11288 cat conftest.$ac_ext >&5 15543 cat conftest.$ac_ext >&5
11289 eval "$as_ac_Header=no" 15544 ac_header_preproc=no
11290 fi 15545 fi
11291 rm -f conftest.err conftest.$ac_ext 15546 rm -f conftest.err conftest.$ac_ext
11292 fi 15547 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11293 echo "$as_me:11293: result: `eval echo '${'$as_ac_Header'}'`" >&5 15548 echo "${ECHO_T}$ac_header_preproc" >&6
15549
15550 # So? What about this header?
15551 case $ac_header_compiler:$ac_header_preproc in
15552 yes:no )
15553 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15554 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15555 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15556 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15557 no:yes )
15558 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15559 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15560 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15561 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15562 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15563 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15564 esac
15565 echo "$as_me:$LINENO: checking for $ac_header" >&5
15566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15567 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15568 echo $ECHO_N "(cached) $ECHO_C" >&6
15569 else
15570 eval "$as_ac_Header=$ac_header_preproc"
15571 fi
15572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11294 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 15573 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15574
15575 fi
11295 if test `eval echo '${'$as_ac_Header'}'` = yes; then 15576 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11296 cat >>confdefs.h <<EOF 15577 cat >>confdefs.h <<_ACEOF
11297 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15578 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11298 EOF 15579 _ACEOF
11299 15580
11300 else 15581 else
11301 15582
11302 for ac_header in kerberosIV/krb.h 15583 for ac_header in kerberosIV/krb.h
11303 do 15584 do
11304 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15585 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11305 echo "$as_me:11305: checking for $ac_header" >&5 15586 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15587 echo "$as_me:$LINENO: checking for $ac_header" >&5
11306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 15588 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11307 if eval "test \"\${$as_ac_Header+set}\" = set"; then 15589 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11308 echo $ECHO_N "(cached) $ECHO_C" >&6 15590 echo $ECHO_N "(cached) $ECHO_C" >&6
11309 else 15591 fi
11310 cat >conftest.$ac_ext <<_ACEOF 15592 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11311 #line 11311 "configure" 15593 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11312 #include "confdefs.h" 15594 else
15595 # Is the header compilable?
15596 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15597 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15598 cat >conftest.$ac_ext <<_ACEOF
15599 #line $LINENO "configure"
15600 #include "confdefs.h"
15601 $ac_includes_default
11313 #include <$ac_header> 15602 #include <$ac_header>
11314 _ACEOF 15603 _ACEOF
11315 if { (eval echo "$as_me:11315: \"$ac_cpp conftest.$ac_ext\"") >&5 15604 rm -f conftest.$ac_objext
15605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15606 (eval $ac_compile) 2>&5
15607 ac_status=$?
15608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609 (exit $ac_status); } &&
15610 { ac_try='test -s conftest.$ac_objext'
15611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15612 (eval $ac_try) 2>&5
15613 ac_status=$?
15614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615 (exit $ac_status); }; }; then
15616 ac_header_compiler=yes
15617 else
15618 echo "$as_me: failed program was:" >&5
15619 cat conftest.$ac_ext >&5
15620 ac_header_compiler=no
15621 fi
15622 rm -f conftest.$ac_objext conftest.$ac_ext
15623 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15624 echo "${ECHO_T}$ac_header_compiler" >&6
15625
15626 # Is the header present?
15627 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15628 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15629 cat >conftest.$ac_ext <<_ACEOF
15630 #line $LINENO "configure"
15631 #include "confdefs.h"
15632 #include <$ac_header>
15633 _ACEOF
15634 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11316 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 15635 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11317 ac_status=$? 15636 ac_status=$?
11318 egrep -v '^ *\+' conftest.er1 >conftest.err 15637 egrep -v '^ *\+' conftest.er1 >conftest.err
11319 rm -f conftest.er1 15638 rm -f conftest.er1
11320 cat conftest.err >&5 15639 cat conftest.err >&5
11321 echo "$as_me:11321: \$? = $ac_status" >&5 15640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); } >/dev/null; then 15641 (exit $ac_status); } >/dev/null; then
11323 if test -s conftest.err; then 15642 if test -s conftest.err; then
11324 ac_cpp_err=$ac_c_preproc_warn_flag 15643 ac_cpp_err=$ac_c_preproc_warn_flag
11325 else 15644 else
11326 ac_cpp_err= 15645 ac_cpp_err=
11327 fi 15646 fi
11328 else 15647 else
11329 ac_cpp_err=yes 15648 ac_cpp_err=yes
11330 fi 15649 fi
11331 if test -z "$ac_cpp_err"; then 15650 if test -z "$ac_cpp_err"; then
11332 eval "$as_ac_Header=yes" 15651 ac_header_preproc=yes
11333 else 15652 else
11334 echo "$as_me: failed program was:" >&5 15653 echo "$as_me: failed program was:" >&5
11335 cat conftest.$ac_ext >&5 15654 cat conftest.$ac_ext >&5
11336 eval "$as_ac_Header=no" 15655 ac_header_preproc=no
11337 fi 15656 fi
11338 rm -f conftest.err conftest.$ac_ext 15657 rm -f conftest.err conftest.$ac_ext
11339 fi 15658 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11340 echo "$as_me:11340: result: `eval echo '${'$as_ac_Header'}'`" >&5 15659 echo "${ECHO_T}$ac_header_preproc" >&6
15660
15661 # So? What about this header?
15662 case $ac_header_compiler:$ac_header_preproc in
15663 yes:no )
15664 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15665 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15667 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15668 no:yes )
15669 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15670 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15671 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15672 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15674 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15675 esac
15676 echo "$as_me:$LINENO: checking for $ac_header" >&5
15677 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15678 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15679 echo $ECHO_N "(cached) $ECHO_C" >&6
15680 else
15681 eval "$as_ac_Header=$ac_header_preproc"
15682 fi
15683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11341 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 15684 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15685
15686 fi
11342 if test `eval echo '${'$as_ac_Header'}'` = yes; then 15687 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11343 cat >>confdefs.h <<EOF 15688 cat >>confdefs.h <<_ACEOF
11344 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15689 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11345 EOF 15690 _ACEOF
11346 15691
11347 else 15692 else
11348 15693
11349 for ac_header in kerberos/krb.h 15694 for ac_header in kerberos/krb.h
11350 do 15695 do
11351 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15696 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11352 echo "$as_me:11352: checking for $ac_header" >&5 15697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15698 echo "$as_me:$LINENO: checking for $ac_header" >&5
11353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 15699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11354 if eval "test \"\${$as_ac_Header+set}\" = set"; then 15700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11355 echo $ECHO_N "(cached) $ECHO_C" >&6 15701 echo $ECHO_N "(cached) $ECHO_C" >&6
11356 else 15702 fi
11357 cat >conftest.$ac_ext <<_ACEOF 15703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11358 #line 11358 "configure" 15704 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11359 #include "confdefs.h" 15705 else
15706 # Is the header compilable?
15707 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15708 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15709 cat >conftest.$ac_ext <<_ACEOF
15710 #line $LINENO "configure"
15711 #include "confdefs.h"
15712 $ac_includes_default
11360 #include <$ac_header> 15713 #include <$ac_header>
11361 _ACEOF 15714 _ACEOF
11362 if { (eval echo "$as_me:11362: \"$ac_cpp conftest.$ac_ext\"") >&5 15715 rm -f conftest.$ac_objext
15716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15717 (eval $ac_compile) 2>&5
15718 ac_status=$?
15719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720 (exit $ac_status); } &&
15721 { ac_try='test -s conftest.$ac_objext'
15722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15723 (eval $ac_try) 2>&5
15724 ac_status=$?
15725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726 (exit $ac_status); }; }; then
15727 ac_header_compiler=yes
15728 else
15729 echo "$as_me: failed program was:" >&5
15730 cat conftest.$ac_ext >&5
15731 ac_header_compiler=no
15732 fi
15733 rm -f conftest.$ac_objext conftest.$ac_ext
15734 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15735 echo "${ECHO_T}$ac_header_compiler" >&6
15736
15737 # Is the header present?
15738 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15739 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15740 cat >conftest.$ac_ext <<_ACEOF
15741 #line $LINENO "configure"
15742 #include "confdefs.h"
15743 #include <$ac_header>
15744 _ACEOF
15745 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11363 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 15746 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11364 ac_status=$? 15747 ac_status=$?
11365 egrep -v '^ *\+' conftest.er1 >conftest.err 15748 egrep -v '^ *\+' conftest.er1 >conftest.err
11366 rm -f conftest.er1 15749 rm -f conftest.er1
11367 cat conftest.err >&5 15750 cat conftest.err >&5
11368 echo "$as_me:11368: \$? = $ac_status" >&5 15751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); } >/dev/null; then 15752 (exit $ac_status); } >/dev/null; then
11370 if test -s conftest.err; then 15753 if test -s conftest.err; then
11371 ac_cpp_err=$ac_c_preproc_warn_flag 15754 ac_cpp_err=$ac_c_preproc_warn_flag
11372 else 15755 else
11373 ac_cpp_err= 15756 ac_cpp_err=
11374 fi 15757 fi
11375 else 15758 else
11376 ac_cpp_err=yes 15759 ac_cpp_err=yes
11377 fi 15760 fi
11378 if test -z "$ac_cpp_err"; then 15761 if test -z "$ac_cpp_err"; then
11379 eval "$as_ac_Header=yes" 15762 ac_header_preproc=yes
11380 else 15763 else
11381 echo "$as_me: failed program was:" >&5 15764 echo "$as_me: failed program was:" >&5
11382 cat conftest.$ac_ext >&5 15765 cat conftest.$ac_ext >&5
11383 eval "$as_ac_Header=no" 15766 ac_header_preproc=no
11384 fi 15767 fi
11385 rm -f conftest.err conftest.$ac_ext 15768 rm -f conftest.err conftest.$ac_ext
11386 fi 15769 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11387 echo "$as_me:11387: result: `eval echo '${'$as_ac_Header'}'`" >&5 15770 echo "${ECHO_T}$ac_header_preproc" >&6
15771
15772 # So? What about this header?
15773 case $ac_header_compiler:$ac_header_preproc in
15774 yes:no )
15775 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15776 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15778 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15779 no:yes )
15780 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15781 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15782 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15783 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15785 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15786 esac
15787 echo "$as_me:$LINENO: checking for $ac_header" >&5
15788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15789 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15790 echo $ECHO_N "(cached) $ECHO_C" >&6
15791 else
15792 eval "$as_ac_Header=$ac_header_preproc"
15793 fi
15794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11388 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 15795 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15796
15797 fi
11389 if test `eval echo '${'$as_ac_Header'}'` = yes; then 15798 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11390 cat >>confdefs.h <<EOF 15799 cat >>confdefs.h <<_ACEOF
11391 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15800 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11392 EOF 15801 _ACEOF
11393 15802
11394 fi 15803 fi
15804
11395 done 15805 done
11396 15806
11397 fi 15807 fi
15808
11398 done 15809 done
11399 15810
11400 fi 15811 fi
15812
11401 done 15813 done
11402 15814
11403 fi 15815 fi
11404 15816
11405 for ac_header in com_err.h 15817 for ac_header in com_err.h
11406 do 15818 do
11407 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15819 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11408 echo "$as_me:11408: checking for $ac_header" >&5 15820 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15821 echo "$as_me:$LINENO: checking for $ac_header" >&5
11409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 15822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11410 if eval "test \"\${$as_ac_Header+set}\" = set"; then 15823 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11411 echo $ECHO_N "(cached) $ECHO_C" >&6 15824 echo $ECHO_N "(cached) $ECHO_C" >&6
11412 else 15825 fi
11413 cat >conftest.$ac_ext <<_ACEOF 15826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11414 #line 11414 "configure" 15827 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11415 #include "confdefs.h" 15828 else
15829 # Is the header compilable?
15830 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15831 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15832 cat >conftest.$ac_ext <<_ACEOF
15833 #line $LINENO "configure"
15834 #include "confdefs.h"
15835 $ac_includes_default
11416 #include <$ac_header> 15836 #include <$ac_header>
11417 _ACEOF 15837 _ACEOF
11418 if { (eval echo "$as_me:11418: \"$ac_cpp conftest.$ac_ext\"") >&5 15838 rm -f conftest.$ac_objext
15839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15840 (eval $ac_compile) 2>&5
15841 ac_status=$?
15842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15843 (exit $ac_status); } &&
15844 { ac_try='test -s conftest.$ac_objext'
15845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15846 (eval $ac_try) 2>&5
15847 ac_status=$?
15848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849 (exit $ac_status); }; }; then
15850 ac_header_compiler=yes
15851 else
15852 echo "$as_me: failed program was:" >&5
15853 cat conftest.$ac_ext >&5
15854 ac_header_compiler=no
15855 fi
15856 rm -f conftest.$ac_objext conftest.$ac_ext
15857 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15858 echo "${ECHO_T}$ac_header_compiler" >&6
15859
15860 # Is the header present?
15861 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15862 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15863 cat >conftest.$ac_ext <<_ACEOF
15864 #line $LINENO "configure"
15865 #include "confdefs.h"
15866 #include <$ac_header>
15867 _ACEOF
15868 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11419 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 15869 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11420 ac_status=$? 15870 ac_status=$?
11421 egrep -v '^ *\+' conftest.er1 >conftest.err 15871 egrep -v '^ *\+' conftest.er1 >conftest.err
11422 rm -f conftest.er1 15872 rm -f conftest.er1
11423 cat conftest.err >&5 15873 cat conftest.err >&5
11424 echo "$as_me:11424: \$? = $ac_status" >&5 15874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425 (exit $ac_status); } >/dev/null; then 15875 (exit $ac_status); } >/dev/null; then
11426 if test -s conftest.err; then 15876 if test -s conftest.err; then
11427 ac_cpp_err=$ac_c_preproc_warn_flag 15877 ac_cpp_err=$ac_c_preproc_warn_flag
11428 else 15878 else
11429 ac_cpp_err= 15879 ac_cpp_err=
11430 fi 15880 fi
11431 else 15881 else
11432 ac_cpp_err=yes 15882 ac_cpp_err=yes
11433 fi 15883 fi
11434 if test -z "$ac_cpp_err"; then 15884 if test -z "$ac_cpp_err"; then
11435 eval "$as_ac_Header=yes" 15885 ac_header_preproc=yes
11436 else 15886 else
11437 echo "$as_me: failed program was:" >&5 15887 echo "$as_me: failed program was:" >&5
11438 cat conftest.$ac_ext >&5 15888 cat conftest.$ac_ext >&5
11439 eval "$as_ac_Header=no" 15889 ac_header_preproc=no
11440 fi 15890 fi
11441 rm -f conftest.err conftest.$ac_ext 15891 rm -f conftest.err conftest.$ac_ext
11442 fi 15892 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11443 echo "$as_me:11443: result: `eval echo '${'$as_ac_Header'}'`" >&5 15893 echo "${ECHO_T}$ac_header_preproc" >&6
15894
15895 # So? What about this header?
15896 case $ac_header_compiler:$ac_header_preproc in
15897 yes:no )
15898 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15899 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15901 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15902 no:yes )
15903 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15904 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15905 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15906 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15908 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15909 esac
15910 echo "$as_me:$LINENO: checking for $ac_header" >&5
15911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15913 echo $ECHO_N "(cached) $ECHO_C" >&6
15914 else
15915 eval "$as_ac_Header=$ac_header_preproc"
15916 fi
15917 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11444 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 15918 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15919
15920 fi
11445 if test `eval echo '${'$as_ac_Header'}'` = yes; then 15921 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11446 cat >>confdefs.h <<EOF 15922 cat >>confdefs.h <<_ACEOF
11447 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15923 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11448 EOF 15924 _ACEOF
11449 15925
11450 fi 15926 fi
15927
11451 done 15928 done
11452 15929
11453 fi 15930 fi
11454 15931
11455 # Solaris requires -lintl if you want strerror (which calls dgettext) 15932 # Solaris requires -lintl if you want strerror (which calls dgettext)
11456 # to return localized messages. 15933 # to return localized messages.
11457 15934
11458 echo "$as_me:11458: checking for dgettext in -lintl" >&5 15935 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
11459 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6 15936 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
11460 if test "${ac_cv_lib_intl_dgettext+set}" = set; then 15937 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
11461 echo $ECHO_N "(cached) $ECHO_C" >&6 15938 echo $ECHO_N "(cached) $ECHO_C" >&6
11462 else 15939 else
11463 ac_check_lib_save_LIBS=$LIBS 15940 ac_check_lib_save_LIBS=$LIBS
11464 LIBS="-lintl $LIBS" 15941 LIBS="-lintl $LIBS"
11465 cat >conftest.$ac_ext <<_ACEOF 15942 cat >conftest.$ac_ext <<_ACEOF
11466 #line 11466 "configure" 15943 #line $LINENO "configure"
11467 #include "confdefs.h" 15944 #include "confdefs.h"
11468 15945
11469 /* Override any gcc2 internal prototype to avoid an error. */ 15946 /* Override any gcc2 internal prototype to avoid an error. */
11470 #ifdef __cplusplus 15947 #ifdef __cplusplus
11471 extern "C" 15948 extern "C"
11472 #endif 15949 #endif
11473 /* We use char because int might match the return type of a gcc2 15950 /* We use char because int might match the return type of a gcc2
11474 builtin and then its argument prototype would still apply. */ 15951 builtin and then its argument prototype would still apply. */
11475 char dgettext (); 15952 char dgettext ();
15953 #ifdef F77_DUMMY_MAIN
15954 # ifdef __cplusplus
15955 extern "C"
15956 # endif
15957 int F77_DUMMY_MAIN() { return 1; }
15958 #endif
11476 int 15959 int
11477 main () 15960 main ()
11478 { 15961 {
11479 dgettext (); 15962 dgettext ();
11480 ; 15963 ;
11481 return 0; 15964 return 0;
11482 } 15965 }
11483 _ACEOF 15966 _ACEOF
11484 rm -f conftest.$ac_objext conftest$ac_exeext 15967 rm -f conftest.$ac_objext conftest$ac_exeext
11485 if { (eval echo "$as_me:11485: \"$ac_link\"") >&5 15968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11486 (eval $ac_link) 2>&5 15969 (eval $ac_link) 2>&5
11487 ac_status=$? 15970 ac_status=$?
11488 echo "$as_me:11488: \$? = $ac_status" >&5 15971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489 (exit $ac_status); } && 15972 (exit $ac_status); } &&
11490 { ac_try='test -s conftest$ac_exeext' 15973 { ac_try='test -s conftest$ac_exeext'
11491 { (eval echo "$as_me:11491: \"$ac_try\"") >&5 15974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11492 (eval $ac_try) 2>&5 15975 (eval $ac_try) 2>&5
11493 ac_status=$? 15976 ac_status=$?
11494 echo "$as_me:11494: \$? = $ac_status" >&5 15977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); }; }; then 15978 (exit $ac_status); }; }; then
11496 ac_cv_lib_intl_dgettext=yes 15979 ac_cv_lib_intl_dgettext=yes
11497 else 15980 else
11498 echo "$as_me: failed program was:" >&5 15981 echo "$as_me: failed program was:" >&5
11499 cat conftest.$ac_ext >&5 15982 cat conftest.$ac_ext >&5
11500 ac_cv_lib_intl_dgettext=no 15983 ac_cv_lib_intl_dgettext=no
11501 fi 15984 fi
11502 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 15985 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11503 LIBS=$ac_check_lib_save_LIBS 15986 LIBS=$ac_check_lib_save_LIBS
11504 fi 15987 fi
11505 echo "$as_me:11505: result: $ac_cv_lib_intl_dgettext" >&5 15988 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
11506 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6 15989 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
11507 if test $ac_cv_lib_intl_dgettext = yes; then 15990 if test $ac_cv_lib_intl_dgettext = yes; then
11508 cat >>confdefs.h <<EOF 15991 cat >>confdefs.h <<_ACEOF
11509 #define HAVE_LIBINTL 1 15992 #define HAVE_LIBINTL 1
11510 EOF 15993 _ACEOF
11511 15994
11512 LIBS="-lintl $LIBS" 15995 LIBS="-lintl $LIBS"
11513 15996
11514 fi 15997 fi
11515 15998
11516 echo "$as_me:11516: checking whether localtime caches TZ" >&5 15999
16000 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
11517 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6 16001 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
11518 if test "${emacs_cv_localtime_cache+set}" = set; then 16002 if test "${emacs_cv_localtime_cache+set}" = set; then
11519 echo $ECHO_N "(cached) $ECHO_C" >&6 16003 echo $ECHO_N "(cached) $ECHO_C" >&6
11520 else 16004 else
11521 if test x$ac_cv_func_tzset = xyes; then 16005 if test x$ac_cv_func_tzset = xyes; then
11522 if test "$cross_compiling" = yes; then 16006 if test "$cross_compiling" = yes; then
11523 # If we have tzset, assume the worst when cross-compiling. 16007 # If we have tzset, assume the worst when cross-compiling.
11524 emacs_cv_localtime_cache=yes 16008 emacs_cv_localtime_cache=yes
11525 else 16009 else
11526 cat >conftest.$ac_ext <<_ACEOF 16010 cat >conftest.$ac_ext <<_ACEOF
11527 #line 11527 "configure" 16011 #line $LINENO "configure"
11528 #include "confdefs.h" 16012 #include "confdefs.h"
11529 #include <time.h> 16013 #include <time.h>
11530 extern char **environ; 16014 extern char **environ;
11531 unset_TZ () 16015 unset_TZ ()
11532 { 16016 {
11555 exit (1); 16039 exit (1);
11556 exit (0); 16040 exit (0);
11557 } 16041 }
11558 _ACEOF 16042 _ACEOF
11559 rm -f conftest$ac_exeext 16043 rm -f conftest$ac_exeext
11560 if { (eval echo "$as_me:11560: \"$ac_link\"") >&5 16044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11561 (eval $ac_link) 2>&5 16045 (eval $ac_link) 2>&5
11562 ac_status=$? 16046 ac_status=$?
11563 echo "$as_me:11563: \$? = $ac_status" >&5 16047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 16048 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11565 { (eval echo "$as_me:11565: \"$ac_try\"") >&5 16049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11566 (eval $ac_try) 2>&5 16050 (eval $ac_try) 2>&5
11567 ac_status=$? 16051 ac_status=$?
11568 echo "$as_me:11568: \$? = $ac_status" >&5 16052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); }; }; then 16053 (exit $ac_status); }; }; then
11570 emacs_cv_localtime_cache=no 16054 emacs_cv_localtime_cache=no
11571 else 16055 else
11572 echo "$as_me: program exited with status $ac_status" >&5 16056 echo "$as_me: program exited with status $ac_status" >&5
11573 echo "$as_me: failed program was:" >&5 16057 echo "$as_me: failed program was:" >&5
11574 cat conftest.$ac_ext >&5 16058 cat conftest.$ac_ext >&5
16059 ( exit $ac_status )
11575 emacs_cv_localtime_cache=yes 16060 emacs_cv_localtime_cache=yes
11576 fi 16061 fi
11577 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 16062 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11578 fi 16063 fi
11579 else 16064 else
11580 # If we lack tzset, report that localtime does not cache TZ, 16065 # If we lack tzset, report that localtime does not cache TZ,
11581 # since we can't invalidate the cache if we don't have tzset. 16066 # since we can't invalidate the cache if we don't have tzset.
11582 emacs_cv_localtime_cache=no 16067 emacs_cv_localtime_cache=no
11583 fi 16068 fi
11584 fi 16069 fi
11585 echo "$as_me:11585: result: $emacs_cv_localtime_cache" >&5 16070 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
11586 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6 16071 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
11587 if test $emacs_cv_localtime_cache = yes; then 16072 if test $emacs_cv_localtime_cache = yes; then
11588 cat >>confdefs.h <<\EOF 16073 cat >>confdefs.h <<\_ACEOF
11589 #define LOCALTIME_CACHE 1 16074 #define LOCALTIME_CACHE 1
11590 EOF 16075 _ACEOF
11591 16076
11592 fi 16077 fi
11593 16078
11594 if test "x$HAVE_TIMEVAL" = xyes; then 16079 if test "x$HAVE_TIMEVAL" = xyes; then
11595 16080
11596 for ac_func in gettimeofday 16081 for ac_func in gettimeofday
11597 do 16082 do
11598 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 16083 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11599 echo "$as_me:11599: checking for $ac_func" >&5 16084 echo "$as_me:$LINENO: checking for $ac_func" >&5
11600 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 16085 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11601 if eval "test \"\${$as_ac_var+set}\" = set"; then 16086 if eval "test \"\${$as_ac_var+set}\" = set"; then
11602 echo $ECHO_N "(cached) $ECHO_C" >&6 16087 echo $ECHO_N "(cached) $ECHO_C" >&6
11603 else 16088 else
11604 cat >conftest.$ac_ext <<_ACEOF 16089 cat >conftest.$ac_ext <<_ACEOF
11605 #line 11605 "configure" 16090 #line $LINENO "configure"
11606 #include "confdefs.h" 16091 #include "confdefs.h"
11607 /* System header to define __stub macros and hopefully few prototypes, 16092 /* System header to define __stub macros and hopefully few prototypes,
11608 which can conflict with char $ac_func (); below. */ 16093 which can conflict with char $ac_func (); below. */
11609 #include <assert.h> 16094 #include <assert.h>
11610 /* Override any gcc2 internal prototype to avoid an error. */ 16095 /* Override any gcc2 internal prototype to avoid an error. */
11614 /* We use char because int might match the return type of a gcc2 16099 /* We use char because int might match the return type of a gcc2
11615 builtin and then its argument prototype would still apply. */ 16100 builtin and then its argument prototype would still apply. */
11616 char $ac_func (); 16101 char $ac_func ();
11617 char (*f) (); 16102 char (*f) ();
11618 16103
16104 #ifdef F77_DUMMY_MAIN
16105 # ifdef __cplusplus
16106 extern "C"
16107 # endif
16108 int F77_DUMMY_MAIN() { return 1; }
16109 #endif
11619 int 16110 int
11620 main () 16111 main ()
11621 { 16112 {
11622 /* The GNU C library defines this for functions which it implements 16113 /* The GNU C library defines this for functions which it implements
11623 to always fail with ENOSYS. Some functions are actually named 16114 to always fail with ENOSYS. Some functions are actually named
11631 ; 16122 ;
11632 return 0; 16123 return 0;
11633 } 16124 }
11634 _ACEOF 16125 _ACEOF
11635 rm -f conftest.$ac_objext conftest$ac_exeext 16126 rm -f conftest.$ac_objext conftest$ac_exeext
11636 if { (eval echo "$as_me:11636: \"$ac_link\"") >&5 16127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11637 (eval $ac_link) 2>&5 16128 (eval $ac_link) 2>&5
11638 ac_status=$? 16129 ac_status=$?
11639 echo "$as_me:11639: \$? = $ac_status" >&5 16130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11640 (exit $ac_status); } && 16131 (exit $ac_status); } &&
11641 { ac_try='test -s conftest$ac_exeext' 16132 { ac_try='test -s conftest$ac_exeext'
11642 { (eval echo "$as_me:11642: \"$ac_try\"") >&5 16133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11643 (eval $ac_try) 2>&5 16134 (eval $ac_try) 2>&5
11644 ac_status=$? 16135 ac_status=$?
11645 echo "$as_me:11645: \$? = $ac_status" >&5 16136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); }; }; then 16137 (exit $ac_status); }; }; then
11647 eval "$as_ac_var=yes" 16138 eval "$as_ac_var=yes"
11648 else 16139 else
11649 echo "$as_me: failed program was:" >&5 16140 echo "$as_me: failed program was:" >&5
11650 cat conftest.$ac_ext >&5 16141 cat conftest.$ac_ext >&5
11651 eval "$as_ac_var=no" 16142 eval "$as_ac_var=no"
11652 fi 16143 fi
11653 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16144 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11654 fi 16145 fi
11655 echo "$as_me:11655: result: `eval echo '${'$as_ac_var'}'`" >&5 16146 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11656 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 16147 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11657 if test `eval echo '${'$as_ac_var'}'` = yes; then 16148 if test `eval echo '${'$as_ac_var'}'` = yes; then
11658 cat >>confdefs.h <<EOF 16149 cat >>confdefs.h <<_ACEOF
11659 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 16150 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11660 EOF 16151 _ACEOF
11661 16152
11662 fi 16153 fi
11663 done 16154 done
11664 16155
11665 echo "$as_me:11665: checking whether gettimeofday can accept two arguments" >&5 16156 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
11666 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6 16157 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
11667 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then 16158 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
11668 echo $ECHO_N "(cached) $ECHO_C" >&6 16159 echo $ECHO_N "(cached) $ECHO_C" >&6
11669 else 16160 else
11670 cat >conftest.$ac_ext <<_ACEOF 16161 cat >conftest.$ac_ext <<_ACEOF
11671 #line 11671 "configure" 16162 #line $LINENO "configure"
11672 #include "confdefs.h" 16163 #include "confdefs.h"
11673 16164
11674 #ifdef TIME_WITH_SYS_TIME 16165 #ifdef TIME_WITH_SYS_TIME
11675 #include <sys/time.h> 16166 #include <sys/time.h>
11676 #include <time.h> 16167 #include <time.h>
11679 #include <sys/time.h> 16170 #include <sys/time.h>
11680 #else 16171 #else
11681 #include <time.h> 16172 #include <time.h>
11682 #endif 16173 #endif
11683 #endif 16174 #endif
16175 #ifdef F77_DUMMY_MAIN
16176 # ifdef __cplusplus
16177 extern "C"
16178 # endif
16179 int F77_DUMMY_MAIN() { return 1; }
16180 #endif
11684 int 16181 int
11685 main () 16182 main ()
11686 { 16183 {
11687 struct timeval time; 16184 struct timeval time;
11688 gettimeofday (&time, 0); 16185 gettimeofday (&time, 0);
11689 ; 16186 ;
11690 return 0; 16187 return 0;
11691 } 16188 }
11692 _ACEOF 16189 _ACEOF
11693 rm -f conftest.$ac_objext 16190 rm -f conftest.$ac_objext
11694 if { (eval echo "$as_me:11694: \"$ac_compile\"") >&5 16191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11695 (eval $ac_compile) 2>&5 16192 (eval $ac_compile) 2>&5
11696 ac_status=$? 16193 ac_status=$?
11697 echo "$as_me:11697: \$? = $ac_status" >&5 16194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11698 (exit $ac_status); } && 16195 (exit $ac_status); } &&
11699 { ac_try='test -s conftest.$ac_objext' 16196 { ac_try='test -s conftest.$ac_objext'
11700 { (eval echo "$as_me:11700: \"$ac_try\"") >&5 16197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11701 (eval $ac_try) 2>&5 16198 (eval $ac_try) 2>&5
11702 ac_status=$? 16199 ac_status=$?
11703 echo "$as_me:11703: \$? = $ac_status" >&5 16200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704 (exit $ac_status); }; }; then 16201 (exit $ac_status); }; }; then
11705 emacs_cv_gettimeofday_two_arguments=yes 16202 emacs_cv_gettimeofday_two_arguments=yes
11706 else 16203 else
11707 echo "$as_me: failed program was:" >&5 16204 echo "$as_me: failed program was:" >&5
11708 cat conftest.$ac_ext >&5 16205 cat conftest.$ac_ext >&5
11709 emacs_cv_gettimeofday_two_arguments=no 16206 emacs_cv_gettimeofday_two_arguments=no
11710 fi 16207 fi
11711 rm -f conftest.$ac_objext conftest.$ac_ext 16208 rm -f conftest.$ac_objext conftest.$ac_ext
11712 fi 16209 fi
11713 echo "$as_me:11713: result: $emacs_cv_gettimeofday_two_arguments" >&5 16210 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
11714 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6 16211 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
11715 if test $emacs_cv_gettimeofday_two_arguments = no; then 16212 if test $emacs_cv_gettimeofday_two_arguments = no; then
11716 cat >>confdefs.h <<\EOF 16213 cat >>confdefs.h <<\_ACEOF
11717 #define GETTIMEOFDAY_ONE_ARGUMENT 1 16214 #define GETTIMEOFDAY_ONE_ARGUMENT 1
11718 EOF 16215 _ACEOF
11719 16216
11720 fi 16217 fi
11721 fi 16218 fi
11722 16219
11723 if test "$ac_cv_func_gettimeofday" = yes; then 16220 if test "$ac_cv_func_gettimeofday" = yes; then
11724 echo "$as_me:11724: checking for struct timezone" >&5 16221 echo "$as_me:$LINENO: checking for struct timezone" >&5
11725 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6 16222 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
11726 if test "${emacs_cv_struct_timezone+set}" = set; then 16223 if test "${emacs_cv_struct_timezone+set}" = set; then
11727 echo $ECHO_N "(cached) $ECHO_C" >&6 16224 echo $ECHO_N "(cached) $ECHO_C" >&6
11728 else 16225 else
11729 cat >conftest.$ac_ext <<_ACEOF 16226 cat >conftest.$ac_ext <<_ACEOF
11730 #line 11730 "configure" 16227 #line $LINENO "configure"
11731 #include "confdefs.h" 16228 #include "confdefs.h"
11732 #include <sys/time.h> 16229 #include <sys/time.h>
16230 #ifdef F77_DUMMY_MAIN
16231 # ifdef __cplusplus
16232 extern "C"
16233 # endif
16234 int F77_DUMMY_MAIN() { return 1; }
16235 #endif
11733 int 16236 int
11734 main () 16237 main ()
11735 { 16238 {
11736 struct timezone tz; 16239 struct timezone tz;
11737 ; 16240 ;
11738 return 0; 16241 return 0;
11739 } 16242 }
11740 _ACEOF 16243 _ACEOF
11741 rm -f conftest.$ac_objext 16244 rm -f conftest.$ac_objext
11742 if { (eval echo "$as_me:11742: \"$ac_compile\"") >&5 16245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11743 (eval $ac_compile) 2>&5 16246 (eval $ac_compile) 2>&5
11744 ac_status=$? 16247 ac_status=$?
11745 echo "$as_me:11745: \$? = $ac_status" >&5 16248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746 (exit $ac_status); } && 16249 (exit $ac_status); } &&
11747 { ac_try='test -s conftest.$ac_objext' 16250 { ac_try='test -s conftest.$ac_objext'
11748 { (eval echo "$as_me:11748: \"$ac_try\"") >&5 16251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11749 (eval $ac_try) 2>&5 16252 (eval $ac_try) 2>&5
11750 ac_status=$? 16253 ac_status=$?
11751 echo "$as_me:11751: \$? = $ac_status" >&5 16254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752 (exit $ac_status); }; }; then 16255 (exit $ac_status); }; }; then
11753 if test "$cross_compiling" = yes; then 16256 if test "$cross_compiling" = yes; then
11754 emacs_cv_struct_timezone=yes 16257 emacs_cv_struct_timezone=yes
11755 else 16258 else
11756 cat >conftest.$ac_ext <<_ACEOF 16259 cat >conftest.$ac_ext <<_ACEOF
11757 #line 11757 "configure" 16260 #line $LINENO "configure"
11758 #include "confdefs.h" 16261 #include "confdefs.h"
11759 16262
11760 #ifdef TIME_WITH_SYS_TIME 16263 #ifdef TIME_WITH_SYS_TIME
11761 #include <sys/time.h> 16264 #include <sys/time.h>
11762 #include <time.h> 16265 #include <time.h>
11772 struct timezone dummy; 16275 struct timezone dummy;
11773 exit (gettimeofday (&time, &dummy)); 16276 exit (gettimeofday (&time, &dummy));
11774 } 16277 }
11775 _ACEOF 16278 _ACEOF
11776 rm -f conftest$ac_exeext 16279 rm -f conftest$ac_exeext
11777 if { (eval echo "$as_me:11777: \"$ac_link\"") >&5 16280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11778 (eval $ac_link) 2>&5 16281 (eval $ac_link) 2>&5
11779 ac_status=$? 16282 ac_status=$?
11780 echo "$as_me:11780: \$? = $ac_status" >&5 16283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 16284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11782 { (eval echo "$as_me:11782: \"$ac_try\"") >&5 16285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11783 (eval $ac_try) 2>&5 16286 (eval $ac_try) 2>&5
11784 ac_status=$? 16287 ac_status=$?
11785 echo "$as_me:11785: \$? = $ac_status" >&5 16288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); }; }; then 16289 (exit $ac_status); }; }; then
11787 emacs_cv_struct_timezone=yes 16290 emacs_cv_struct_timezone=yes
11788 else 16291 else
11789 echo "$as_me: program exited with status $ac_status" >&5 16292 echo "$as_me: program exited with status $ac_status" >&5
11790 echo "$as_me: failed program was:" >&5 16293 echo "$as_me: failed program was:" >&5
11791 cat conftest.$ac_ext >&5 16294 cat conftest.$ac_ext >&5
16295 ( exit $ac_status )
11792 emacs_cv_struct_timezone=no 16296 emacs_cv_struct_timezone=no
11793 fi 16297 fi
11794 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 16298 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11795 fi 16299 fi
11796 else 16300 else
11798 cat conftest.$ac_ext >&5 16302 cat conftest.$ac_ext >&5
11799 emacs_cv_struct_timezone=no 16303 emacs_cv_struct_timezone=no
11800 fi 16304 fi
11801 rm -f conftest.$ac_objext conftest.$ac_ext 16305 rm -f conftest.$ac_objext conftest.$ac_ext
11802 fi 16306 fi
11803 echo "$as_me:11803: result: $emacs_cv_struct_timezone" >&5 16307 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
11804 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6 16308 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
11805 fi 16309 fi
11806 16310
11807 ok_so_far=yes 16311 ok_so_far=yes
11808 echo "$as_me:11808: checking for socket" >&5 16312 echo "$as_me:$LINENO: checking for socket" >&5
11809 echo $ECHO_N "checking for socket... $ECHO_C" >&6 16313 echo $ECHO_N "checking for socket... $ECHO_C" >&6
11810 if test "${ac_cv_func_socket+set}" = set; then 16314 if test "${ac_cv_func_socket+set}" = set; then
11811 echo $ECHO_N "(cached) $ECHO_C" >&6 16315 echo $ECHO_N "(cached) $ECHO_C" >&6
11812 else 16316 else
11813 cat >conftest.$ac_ext <<_ACEOF 16317 cat >conftest.$ac_ext <<_ACEOF
11814 #line 11814 "configure" 16318 #line $LINENO "configure"
11815 #include "confdefs.h" 16319 #include "confdefs.h"
11816 /* System header to define __stub macros and hopefully few prototypes, 16320 /* System header to define __stub macros and hopefully few prototypes,
11817 which can conflict with char socket (); below. */ 16321 which can conflict with char socket (); below. */
11818 #include <assert.h> 16322 #include <assert.h>
11819 /* Override any gcc2 internal prototype to avoid an error. */ 16323 /* Override any gcc2 internal prototype to avoid an error. */
11823 /* We use char because int might match the return type of a gcc2 16327 /* We use char because int might match the return type of a gcc2
11824 builtin and then its argument prototype would still apply. */ 16328 builtin and then its argument prototype would still apply. */
11825 char socket (); 16329 char socket ();
11826 char (*f) (); 16330 char (*f) ();
11827 16331
16332 #ifdef F77_DUMMY_MAIN
16333 # ifdef __cplusplus
16334 extern "C"
16335 # endif
16336 int F77_DUMMY_MAIN() { return 1; }
16337 #endif
11828 int 16338 int
11829 main () 16339 main ()
11830 { 16340 {
11831 /* The GNU C library defines this for functions which it implements 16341 /* The GNU C library defines this for functions which it implements
11832 to always fail with ENOSYS. Some functions are actually named 16342 to always fail with ENOSYS. Some functions are actually named
11840 ; 16350 ;
11841 return 0; 16351 return 0;
11842 } 16352 }
11843 _ACEOF 16353 _ACEOF
11844 rm -f conftest.$ac_objext conftest$ac_exeext 16354 rm -f conftest.$ac_objext conftest$ac_exeext
11845 if { (eval echo "$as_me:11845: \"$ac_link\"") >&5 16355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11846 (eval $ac_link) 2>&5 16356 (eval $ac_link) 2>&5
11847 ac_status=$? 16357 ac_status=$?
11848 echo "$as_me:11848: \$? = $ac_status" >&5 16358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849 (exit $ac_status); } && 16359 (exit $ac_status); } &&
11850 { ac_try='test -s conftest$ac_exeext' 16360 { ac_try='test -s conftest$ac_exeext'
11851 { (eval echo "$as_me:11851: \"$ac_try\"") >&5 16361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11852 (eval $ac_try) 2>&5 16362 (eval $ac_try) 2>&5
11853 ac_status=$? 16363 ac_status=$?
11854 echo "$as_me:11854: \$? = $ac_status" >&5 16364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855 (exit $ac_status); }; }; then 16365 (exit $ac_status); }; }; then
11856 ac_cv_func_socket=yes 16366 ac_cv_func_socket=yes
11857 else 16367 else
11858 echo "$as_me: failed program was:" >&5 16368 echo "$as_me: failed program was:" >&5
11859 cat conftest.$ac_ext >&5 16369 cat conftest.$ac_ext >&5
11860 ac_cv_func_socket=no 16370 ac_cv_func_socket=no
11861 fi 16371 fi
11862 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16372 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11863 fi 16373 fi
11864 echo "$as_me:11864: result: $ac_cv_func_socket" >&5 16374 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
11865 echo "${ECHO_T}$ac_cv_func_socket" >&6 16375 echo "${ECHO_T}$ac_cv_func_socket" >&6
11866 if test $ac_cv_func_socket = yes; then 16376 if test $ac_cv_func_socket = yes; then
11867 : 16377 :
11868 else 16378 else
11869 ok_so_far=no 16379 ok_so_far=no
11870 fi 16380 fi
11871 16381
11872 if test $ok_so_far = yes; then 16382 if test $ok_so_far = yes; then
11873 echo "$as_me:11873: checking for netinet/in.h" >&5 16383 if test "${ac_cv_header_netinet_in_h+set}" = set; then
16384 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
11874 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6 16385 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
11875 if test "${ac_cv_header_netinet_in_h+set}" = set; then 16386 if test "${ac_cv_header_netinet_in_h+set}" = set; then
11876 echo $ECHO_N "(cached) $ECHO_C" >&6 16387 echo $ECHO_N "(cached) $ECHO_C" >&6
11877 else 16388 fi
11878 cat >conftest.$ac_ext <<_ACEOF 16389 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
11879 #line 11879 "configure" 16390 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
11880 #include "confdefs.h" 16391 else
16392 # Is the header compilable?
16393 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
16394 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
16395 cat >conftest.$ac_ext <<_ACEOF
16396 #line $LINENO "configure"
16397 #include "confdefs.h"
16398 $ac_includes_default
11881 #include <netinet/in.h> 16399 #include <netinet/in.h>
11882 _ACEOF 16400 _ACEOF
11883 if { (eval echo "$as_me:11883: \"$ac_cpp conftest.$ac_ext\"") >&5 16401 rm -f conftest.$ac_objext
16402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16403 (eval $ac_compile) 2>&5
16404 ac_status=$?
16405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406 (exit $ac_status); } &&
16407 { ac_try='test -s conftest.$ac_objext'
16408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16409 (eval $ac_try) 2>&5
16410 ac_status=$?
16411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412 (exit $ac_status); }; }; then
16413 ac_header_compiler=yes
16414 else
16415 echo "$as_me: failed program was:" >&5
16416 cat conftest.$ac_ext >&5
16417 ac_header_compiler=no
16418 fi
16419 rm -f conftest.$ac_objext conftest.$ac_ext
16420 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16421 echo "${ECHO_T}$ac_header_compiler" >&6
16422
16423 # Is the header present?
16424 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
16425 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
16426 cat >conftest.$ac_ext <<_ACEOF
16427 #line $LINENO "configure"
16428 #include "confdefs.h"
16429 #include <netinet/in.h>
16430 _ACEOF
16431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11884 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 16432 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11885 ac_status=$? 16433 ac_status=$?
11886 egrep -v '^ *\+' conftest.er1 >conftest.err 16434 egrep -v '^ *\+' conftest.er1 >conftest.err
11887 rm -f conftest.er1 16435 rm -f conftest.er1
11888 cat conftest.err >&5 16436 cat conftest.err >&5
11889 echo "$as_me:11889: \$? = $ac_status" >&5 16437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); } >/dev/null; then 16438 (exit $ac_status); } >/dev/null; then
11891 if test -s conftest.err; then 16439 if test -s conftest.err; then
11892 ac_cpp_err=$ac_c_preproc_warn_flag 16440 ac_cpp_err=$ac_c_preproc_warn_flag
11893 else 16441 else
11894 ac_cpp_err= 16442 ac_cpp_err=
11895 fi 16443 fi
11896 else 16444 else
11897 ac_cpp_err=yes 16445 ac_cpp_err=yes
11898 fi 16446 fi
11899 if test -z "$ac_cpp_err"; then 16447 if test -z "$ac_cpp_err"; then
11900 ac_cv_header_netinet_in_h=yes 16448 ac_header_preproc=yes
11901 else 16449 else
11902 echo "$as_me: failed program was:" >&5 16450 echo "$as_me: failed program was:" >&5
11903 cat conftest.$ac_ext >&5 16451 cat conftest.$ac_ext >&5
11904 ac_cv_header_netinet_in_h=no 16452 ac_header_preproc=no
11905 fi 16453 fi
11906 rm -f conftest.err conftest.$ac_ext 16454 rm -f conftest.err conftest.$ac_ext
11907 fi 16455 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11908 echo "$as_me:11908: result: $ac_cv_header_netinet_in_h" >&5 16456 echo "${ECHO_T}$ac_header_preproc" >&6
16457
16458 # So? What about this header?
16459 case $ac_header_compiler:$ac_header_preproc in
16460 yes:no )
16461 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
16462 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16463 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
16464 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;};;
16465 no:yes )
16466 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
16467 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
16468 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
16469 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
16470 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
16471 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;};;
16472 esac
16473 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
16474 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
16475 if test "${ac_cv_header_netinet_in_h+set}" = set; then
16476 echo $ECHO_N "(cached) $ECHO_C" >&6
16477 else
16478 ac_cv_header_netinet_in_h=$ac_header_preproc
16479 fi
16480 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
11909 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6 16481 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
16482
16483 fi
11910 if test $ac_cv_header_netinet_in_h = yes; then 16484 if test $ac_cv_header_netinet_in_h = yes; then
11911 : 16485 :
11912 else 16486 else
11913 ok_so_far=no 16487 ok_so_far=no
11914 fi 16488 fi
11915 16489
16490
11916 fi 16491 fi
11917 if test $ok_so_far = yes; then 16492 if test $ok_so_far = yes; then
11918 echo "$as_me:11918: checking for arpa/inet.h" >&5 16493 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
16494 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
11919 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6 16495 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
11920 if test "${ac_cv_header_arpa_inet_h+set}" = set; then 16496 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
11921 echo $ECHO_N "(cached) $ECHO_C" >&6 16497 echo $ECHO_N "(cached) $ECHO_C" >&6
11922 else 16498 fi
11923 cat >conftest.$ac_ext <<_ACEOF 16499 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
11924 #line 11924 "configure" 16500 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
11925 #include "confdefs.h" 16501 else
16502 # Is the header compilable?
16503 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
16504 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
16505 cat >conftest.$ac_ext <<_ACEOF
16506 #line $LINENO "configure"
16507 #include "confdefs.h"
16508 $ac_includes_default
11926 #include <arpa/inet.h> 16509 #include <arpa/inet.h>
11927 _ACEOF 16510 _ACEOF
11928 if { (eval echo "$as_me:11928: \"$ac_cpp conftest.$ac_ext\"") >&5 16511 rm -f conftest.$ac_objext
16512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16513 (eval $ac_compile) 2>&5
16514 ac_status=$?
16515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516 (exit $ac_status); } &&
16517 { ac_try='test -s conftest.$ac_objext'
16518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16519 (eval $ac_try) 2>&5
16520 ac_status=$?
16521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16522 (exit $ac_status); }; }; then
16523 ac_header_compiler=yes
16524 else
16525 echo "$as_me: failed program was:" >&5
16526 cat conftest.$ac_ext >&5
16527 ac_header_compiler=no
16528 fi
16529 rm -f conftest.$ac_objext conftest.$ac_ext
16530 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16531 echo "${ECHO_T}$ac_header_compiler" >&6
16532
16533 # Is the header present?
16534 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
16535 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
16536 cat >conftest.$ac_ext <<_ACEOF
16537 #line $LINENO "configure"
16538 #include "confdefs.h"
16539 #include <arpa/inet.h>
16540 _ACEOF
16541 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11929 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 16542 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11930 ac_status=$? 16543 ac_status=$?
11931 egrep -v '^ *\+' conftest.er1 >conftest.err 16544 egrep -v '^ *\+' conftest.er1 >conftest.err
11932 rm -f conftest.er1 16545 rm -f conftest.er1
11933 cat conftest.err >&5 16546 cat conftest.err >&5
11934 echo "$as_me:11934: \$? = $ac_status" >&5 16547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935 (exit $ac_status); } >/dev/null; then 16548 (exit $ac_status); } >/dev/null; then
11936 if test -s conftest.err; then 16549 if test -s conftest.err; then
11937 ac_cpp_err=$ac_c_preproc_warn_flag 16550 ac_cpp_err=$ac_c_preproc_warn_flag
11938 else 16551 else
11939 ac_cpp_err= 16552 ac_cpp_err=
11940 fi 16553 fi
11941 else 16554 else
11942 ac_cpp_err=yes 16555 ac_cpp_err=yes
11943 fi 16556 fi
11944 if test -z "$ac_cpp_err"; then 16557 if test -z "$ac_cpp_err"; then
11945 ac_cv_header_arpa_inet_h=yes 16558 ac_header_preproc=yes
11946 else 16559 else
11947 echo "$as_me: failed program was:" >&5 16560 echo "$as_me: failed program was:" >&5
11948 cat conftest.$ac_ext >&5 16561 cat conftest.$ac_ext >&5
11949 ac_cv_header_arpa_inet_h=no 16562 ac_header_preproc=no
11950 fi 16563 fi
11951 rm -f conftest.err conftest.$ac_ext 16564 rm -f conftest.err conftest.$ac_ext
11952 fi 16565 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11953 echo "$as_me:11953: result: $ac_cv_header_arpa_inet_h" >&5 16566 echo "${ECHO_T}$ac_header_preproc" >&6
16567
16568 # So? What about this header?
16569 case $ac_header_compiler:$ac_header_preproc in
16570 yes:no )
16571 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
16572 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16573 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
16574 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;};;
16575 no:yes )
16576 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
16577 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
16578 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
16579 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
16580 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
16581 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;};;
16582 esac
16583 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
16584 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
16585 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
16586 echo $ECHO_N "(cached) $ECHO_C" >&6
16587 else
16588 ac_cv_header_arpa_inet_h=$ac_header_preproc
16589 fi
16590 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
11954 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6 16591 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
16592
16593 fi
11955 if test $ac_cv_header_arpa_inet_h = yes; then 16594 if test $ac_cv_header_arpa_inet_h = yes; then
11956 : 16595 :
11957 else 16596 else
11958 ok_so_far=no 16597 ok_so_far=no
11959 fi 16598 fi
11960 16599
16600
11961 fi 16601 fi
11962 if test $ok_so_far = yes; then 16602 if test $ok_so_far = yes; then
11963 cat >>confdefs.h <<\EOF 16603 cat >>confdefs.h <<\_ACEOF
11964 #define HAVE_INET_SOCKETS 1 16604 #define HAVE_INET_SOCKETS 1
11965 EOF 16605 _ACEOF
11966 16606
11967 fi 16607 fi
11968 16608
11969 if test -f /usr/lpp/X11/bin/smt.exp; then 16609 if test -f /usr/lpp/X11/bin/smt.exp; then
11970 cat >>confdefs.h <<\EOF 16610 cat >>confdefs.h <<\_ACEOF
11971 #define HAVE_AIX_SMT_EXP 1 16611 #define HAVE_AIX_SMT_EXP 1
11972 EOF 16612 _ACEOF
11973 16613
11974 fi 16614 fi
11975 16615
11976 echo "$as_me:11976: checking whether system supports dynamic ptys" >&5 16616 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
11977 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6 16617 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
11978 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then 16618 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
11979 echo "$as_me:11979: result: yes" >&5 16619 echo "$as_me:$LINENO: result: yes" >&5
11980 echo "${ECHO_T}yes" >&6 16620 echo "${ECHO_T}yes" >&6
11981 cat >>confdefs.h <<\EOF 16621 cat >>confdefs.h <<\_ACEOF
11982 #define HAVE_DEV_PTMX 1 16622 #define HAVE_DEV_PTMX 1
11983 EOF 16623 _ACEOF
11984 16624
11985 else 16625 else
11986 echo "$as_me:11986: result: no" >&5 16626 echo "$as_me:$LINENO: result: no" >&5
11987 echo "${ECHO_T}no" >&6 16627 echo "${ECHO_T}no" >&6
11988 fi 16628 fi
11989 16629
11990 echo "$as_me:11990: checking for pid_t" >&5 16630 echo "$as_me:$LINENO: checking for pid_t" >&5
11991 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 16631 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11992 if test "${ac_cv_type_pid_t+set}" = set; then 16632 if test "${ac_cv_type_pid_t+set}" = set; then
11993 echo $ECHO_N "(cached) $ECHO_C" >&6 16633 echo $ECHO_N "(cached) $ECHO_C" >&6
11994 else 16634 else
11995 cat >conftest.$ac_ext <<_ACEOF 16635 cat >conftest.$ac_ext <<_ACEOF
11996 #line 11996 "configure" 16636 #line $LINENO "configure"
11997 #include "confdefs.h" 16637 #include "confdefs.h"
11998 $ac_includes_default 16638 $ac_includes_default
16639 #ifdef F77_DUMMY_MAIN
16640 # ifdef __cplusplus
16641 extern "C"
16642 # endif
16643 int F77_DUMMY_MAIN() { return 1; }
16644 #endif
11999 int 16645 int
12000 main () 16646 main ()
12001 { 16647 {
12002 if ((pid_t *) 0) 16648 if ((pid_t *) 0)
12003 return 0; 16649 return 0;
12006 ; 16652 ;
12007 return 0; 16653 return 0;
12008 } 16654 }
12009 _ACEOF 16655 _ACEOF
12010 rm -f conftest.$ac_objext 16656 rm -f conftest.$ac_objext
12011 if { (eval echo "$as_me:12011: \"$ac_compile\"") >&5 16657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12012 (eval $ac_compile) 2>&5 16658 (eval $ac_compile) 2>&5
12013 ac_status=$? 16659 ac_status=$?
12014 echo "$as_me:12014: \$? = $ac_status" >&5 16660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); } && 16661 (exit $ac_status); } &&
12016 { ac_try='test -s conftest.$ac_objext' 16662 { ac_try='test -s conftest.$ac_objext'
12017 { (eval echo "$as_me:12017: \"$ac_try\"") >&5 16663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12018 (eval $ac_try) 2>&5 16664 (eval $ac_try) 2>&5
12019 ac_status=$? 16665 ac_status=$?
12020 echo "$as_me:12020: \$? = $ac_status" >&5 16666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); }; }; then 16667 (exit $ac_status); }; }; then
12022 ac_cv_type_pid_t=yes 16668 ac_cv_type_pid_t=yes
12023 else 16669 else
12024 echo "$as_me: failed program was:" >&5 16670 echo "$as_me: failed program was:" >&5
12025 cat conftest.$ac_ext >&5 16671 cat conftest.$ac_ext >&5
12026 ac_cv_type_pid_t=no 16672 ac_cv_type_pid_t=no
12027 fi 16673 fi
12028 rm -f conftest.$ac_objext conftest.$ac_ext 16674 rm -f conftest.$ac_objext conftest.$ac_ext
12029 fi 16675 fi
12030 echo "$as_me:12030: result: $ac_cv_type_pid_t" >&5 16676 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
12031 echo "${ECHO_T}$ac_cv_type_pid_t" >&6 16677 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
12032 if test $ac_cv_type_pid_t = yes; then 16678 if test $ac_cv_type_pid_t = yes; then
12033 : 16679 :
12034 else 16680 else
12035 16681
12036 cat >>confdefs.h <<EOF 16682 cat >>confdefs.h <<_ACEOF
12037 #define pid_t int 16683 #define pid_t int
12038 EOF 16684 _ACEOF
12039 16685
12040 fi 16686 fi
16687
16688
12041 16689
12042 for ac_header in unistd.h vfork.h 16690 for ac_header in unistd.h vfork.h
12043 do 16691 do
12044 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 16692 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12045 echo "$as_me:12045: checking for $ac_header" >&5 16693 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16694 echo "$as_me:$LINENO: checking for $ac_header" >&5
12046 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 16695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12047 if eval "test \"\${$as_ac_Header+set}\" = set"; then 16696 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12048 echo $ECHO_N "(cached) $ECHO_C" >&6 16697 echo $ECHO_N "(cached) $ECHO_C" >&6
12049 else 16698 fi
12050 cat >conftest.$ac_ext <<_ACEOF 16699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12051 #line 12051 "configure" 16700 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12052 #include "confdefs.h" 16701 else
16702 # Is the header compilable?
16703 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16704 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16705 cat >conftest.$ac_ext <<_ACEOF
16706 #line $LINENO "configure"
16707 #include "confdefs.h"
16708 $ac_includes_default
12053 #include <$ac_header> 16709 #include <$ac_header>
12054 _ACEOF 16710 _ACEOF
12055 if { (eval echo "$as_me:12055: \"$ac_cpp conftest.$ac_ext\"") >&5 16711 rm -f conftest.$ac_objext
16712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16713 (eval $ac_compile) 2>&5
16714 ac_status=$?
16715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16716 (exit $ac_status); } &&
16717 { ac_try='test -s conftest.$ac_objext'
16718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16719 (eval $ac_try) 2>&5
16720 ac_status=$?
16721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722 (exit $ac_status); }; }; then
16723 ac_header_compiler=yes
16724 else
16725 echo "$as_me: failed program was:" >&5
16726 cat conftest.$ac_ext >&5
16727 ac_header_compiler=no
16728 fi
16729 rm -f conftest.$ac_objext conftest.$ac_ext
16730 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16731 echo "${ECHO_T}$ac_header_compiler" >&6
16732
16733 # Is the header present?
16734 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16735 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16736 cat >conftest.$ac_ext <<_ACEOF
16737 #line $LINENO "configure"
16738 #include "confdefs.h"
16739 #include <$ac_header>
16740 _ACEOF
16741 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12056 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 16742 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12057 ac_status=$? 16743 ac_status=$?
12058 egrep -v '^ *\+' conftest.er1 >conftest.err 16744 egrep -v '^ *\+' conftest.er1 >conftest.err
12059 rm -f conftest.er1 16745 rm -f conftest.er1
12060 cat conftest.err >&5 16746 cat conftest.err >&5
12061 echo "$as_me:12061: \$? = $ac_status" >&5 16747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062 (exit $ac_status); } >/dev/null; then 16748 (exit $ac_status); } >/dev/null; then
12063 if test -s conftest.err; then 16749 if test -s conftest.err; then
12064 ac_cpp_err=$ac_c_preproc_warn_flag 16750 ac_cpp_err=$ac_c_preproc_warn_flag
12065 else 16751 else
12066 ac_cpp_err= 16752 ac_cpp_err=
12067 fi 16753 fi
12068 else 16754 else
12069 ac_cpp_err=yes 16755 ac_cpp_err=yes
12070 fi 16756 fi
12071 if test -z "$ac_cpp_err"; then 16757 if test -z "$ac_cpp_err"; then
12072 eval "$as_ac_Header=yes" 16758 ac_header_preproc=yes
12073 else 16759 else
12074 echo "$as_me: failed program was:" >&5 16760 echo "$as_me: failed program was:" >&5
12075 cat conftest.$ac_ext >&5 16761 cat conftest.$ac_ext >&5
12076 eval "$as_ac_Header=no" 16762 ac_header_preproc=no
12077 fi 16763 fi
12078 rm -f conftest.err conftest.$ac_ext 16764 rm -f conftest.err conftest.$ac_ext
12079 fi 16765 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12080 echo "$as_me:12080: result: `eval echo '${'$as_ac_Header'}'`" >&5 16766 echo "${ECHO_T}$ac_header_preproc" >&6
16767
16768 # So? What about this header?
16769 case $ac_header_compiler:$ac_header_preproc in
16770 yes:no )
16771 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16772 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16774 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
16775 no:yes )
16776 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16777 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16778 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16779 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16780 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16781 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
16782 esac
16783 echo "$as_me:$LINENO: checking for $ac_header" >&5
16784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16786 echo $ECHO_N "(cached) $ECHO_C" >&6
16787 else
16788 eval "$as_ac_Header=$ac_header_preproc"
16789 fi
16790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12081 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 16791 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16792
16793 fi
12082 if test `eval echo '${'$as_ac_Header'}'` = yes; then 16794 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12083 cat >>confdefs.h <<EOF 16795 cat >>confdefs.h <<_ACEOF
12084 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 16796 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12085 EOF 16797 _ACEOF
12086 16798
12087 fi 16799 fi
16800
12088 done 16801 done
16802
16803
12089 16804
12090 for ac_func in fork vfork 16805 for ac_func in fork vfork
12091 do 16806 do
12092 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 16807 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12093 echo "$as_me:12093: checking for $ac_func" >&5 16808 echo "$as_me:$LINENO: checking for $ac_func" >&5
12094 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 16809 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12095 if eval "test \"\${$as_ac_var+set}\" = set"; then 16810 if eval "test \"\${$as_ac_var+set}\" = set"; then
12096 echo $ECHO_N "(cached) $ECHO_C" >&6 16811 echo $ECHO_N "(cached) $ECHO_C" >&6
12097 else 16812 else
12098 cat >conftest.$ac_ext <<_ACEOF 16813 cat >conftest.$ac_ext <<_ACEOF
12099 #line 12099 "configure" 16814 #line $LINENO "configure"
12100 #include "confdefs.h" 16815 #include "confdefs.h"
12101 /* System header to define __stub macros and hopefully few prototypes, 16816 /* System header to define __stub macros and hopefully few prototypes,
12102 which can conflict with char $ac_func (); below. */ 16817 which can conflict with char $ac_func (); below. */
12103 #include <assert.h> 16818 #include <assert.h>
12104 /* Override any gcc2 internal prototype to avoid an error. */ 16819 /* Override any gcc2 internal prototype to avoid an error. */
12108 /* We use char because int might match the return type of a gcc2 16823 /* We use char because int might match the return type of a gcc2
12109 builtin and then its argument prototype would still apply. */ 16824 builtin and then its argument prototype would still apply. */
12110 char $ac_func (); 16825 char $ac_func ();
12111 char (*f) (); 16826 char (*f) ();
12112 16827
16828 #ifdef F77_DUMMY_MAIN
16829 # ifdef __cplusplus
16830 extern "C"
16831 # endif
16832 int F77_DUMMY_MAIN() { return 1; }
16833 #endif
12113 int 16834 int
12114 main () 16835 main ()
12115 { 16836 {
12116 /* The GNU C library defines this for functions which it implements 16837 /* The GNU C library defines this for functions which it implements
12117 to always fail with ENOSYS. Some functions are actually named 16838 to always fail with ENOSYS. Some functions are actually named
12125 ; 16846 ;
12126 return 0; 16847 return 0;
12127 } 16848 }
12128 _ACEOF 16849 _ACEOF
12129 rm -f conftest.$ac_objext conftest$ac_exeext 16850 rm -f conftest.$ac_objext conftest$ac_exeext
12130 if { (eval echo "$as_me:12130: \"$ac_link\"") >&5 16851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12131 (eval $ac_link) 2>&5 16852 (eval $ac_link) 2>&5
12132 ac_status=$? 16853 ac_status=$?
12133 echo "$as_me:12133: \$? = $ac_status" >&5 16854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); } && 16855 (exit $ac_status); } &&
12135 { ac_try='test -s conftest$ac_exeext' 16856 { ac_try='test -s conftest$ac_exeext'
12136 { (eval echo "$as_me:12136: \"$ac_try\"") >&5 16857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12137 (eval $ac_try) 2>&5 16858 (eval $ac_try) 2>&5
12138 ac_status=$? 16859 ac_status=$?
12139 echo "$as_me:12139: \$? = $ac_status" >&5 16860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140 (exit $ac_status); }; }; then 16861 (exit $ac_status); }; }; then
12141 eval "$as_ac_var=yes" 16862 eval "$as_ac_var=yes"
12142 else 16863 else
12143 echo "$as_me: failed program was:" >&5 16864 echo "$as_me: failed program was:" >&5
12144 cat conftest.$ac_ext >&5 16865 cat conftest.$ac_ext >&5
12145 eval "$as_ac_var=no" 16866 eval "$as_ac_var=no"
12146 fi 16867 fi
12147 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16868 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12148 fi 16869 fi
12149 echo "$as_me:12149: result: `eval echo '${'$as_ac_var'}'`" >&5 16870 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12150 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 16871 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12151 if test `eval echo '${'$as_ac_var'}'` = yes; then 16872 if test `eval echo '${'$as_ac_var'}'` = yes; then
12152 cat >>confdefs.h <<EOF 16873 cat >>confdefs.h <<_ACEOF
12153 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 16874 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12154 EOF 16875 _ACEOF
12155 16876
12156 fi 16877 fi
12157 done 16878 done
12158 16879
12159 ac_cv_func_fork_works=$ac_cv_func_fork 16880 ac_cv_func_fork_works=$ac_cv_func_fork
12160 if test "x$ac_cv_func_fork" = xyes; then 16881 if test "x$ac_cv_func_fork" = xyes; then
12161 echo "$as_me:12161: checking for working fork" >&5 16882 echo "$as_me:$LINENO: checking for working fork" >&5
12162 echo $ECHO_N "checking for working fork... $ECHO_C" >&6 16883 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
12163 if test "${ac_cv_func_fork_works+set}" = set; then 16884 if test "${ac_cv_func_fork_works+set}" = set; then
12164 echo $ECHO_N "(cached) $ECHO_C" >&6 16885 echo $ECHO_N "(cached) $ECHO_C" >&6
12165 else 16886 else
12166 if test "$cross_compiling" = yes; then 16887 if test "$cross_compiling" = yes; then
12167 ac_cv_func_fork_works=cross 16888 ac_cv_func_fork_works=cross
12168 else 16889 else
12169 cat >conftest.$ac_ext <<_ACEOF 16890 cat >conftest.$ac_ext <<_ACEOF
12170 /* By Rüdiger Kuhlmann. */ 16891 /* By Ruediger Kuhlmann. */
12171 #include <sys/types.h> 16892 #include <sys/types.h>
12172 #if HAVE_UNISTD_H 16893 #if HAVE_UNISTD_H
12173 # include <unistd.h> 16894 # include <unistd.h>
12174 #endif 16895 #endif
12175 /* Some systems only have a dummy stub for fork() */ 16896 /* Some systems only have a dummy stub for fork() */
12179 exit (1); 16900 exit (1);
12180 exit (0); 16901 exit (0);
12181 } 16902 }
12182 _ACEOF 16903 _ACEOF
12183 rm -f conftest$ac_exeext 16904 rm -f conftest$ac_exeext
12184 if { (eval echo "$as_me:12184: \"$ac_link\"") >&5 16905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12185 (eval $ac_link) 2>&5 16906 (eval $ac_link) 2>&5
12186 ac_status=$? 16907 ac_status=$?
12187 echo "$as_me:12187: \$? = $ac_status" >&5 16908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 16909 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12189 { (eval echo "$as_me:12189: \"$ac_try\"") >&5 16910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12190 (eval $ac_try) 2>&5 16911 (eval $ac_try) 2>&5
12191 ac_status=$? 16912 ac_status=$?
12192 echo "$as_me:12192: \$? = $ac_status" >&5 16913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); }; }; then 16914 (exit $ac_status); }; }; then
12194 ac_cv_func_fork_works=yes 16915 ac_cv_func_fork_works=yes
12195 else 16916 else
12196 echo "$as_me: program exited with status $ac_status" >&5 16917 echo "$as_me: program exited with status $ac_status" >&5
12197 echo "$as_me: failed program was:" >&5 16918 echo "$as_me: failed program was:" >&5
12198 cat conftest.$ac_ext >&5 16919 cat conftest.$ac_ext >&5
16920 ( exit $ac_status )
12199 ac_cv_func_fork_works=no 16921 ac_cv_func_fork_works=no
12200 fi 16922 fi
12201 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 16923 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12202 fi 16924 fi
12203 fi 16925 fi
12204 echo "$as_me:12204: result: $ac_cv_func_fork_works" >&5 16926 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
12205 echo "${ECHO_T}$ac_cv_func_fork_works" >&6 16927 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
12206 16928
12207 fi 16929 fi
12208 if test "x$ac_cv_func_fork_works" = xcross; then 16930 if test "x$ac_cv_func_fork_works" = xcross; then
12209 case $host in 16931 case $host in
12213 ;; 16935 ;;
12214 *) 16936 *)
12215 ac_cv_func_fork_works=yes 16937 ac_cv_func_fork_works=yes
12216 ;; 16938 ;;
12217 esac 16939 esac
12218 { echo "$as_me:12218: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5 16940 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12219 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;} 16941 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12220 fi 16942 fi
12221 ac_cv_func_vfork_works=$ac_cv_func_vfork 16943 ac_cv_func_vfork_works=$ac_cv_func_vfork
12222 if test "x$ac_cv_func_vfork" = xyes; then 16944 if test "x$ac_cv_func_vfork" = xyes; then
12223 echo "$as_me:12223: checking for working vfork" >&5 16945 echo "$as_me:$LINENO: checking for working vfork" >&5
12224 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6 16946 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
12225 if test "${ac_cv_func_vfork_works+set}" = set; then 16947 if test "${ac_cv_func_vfork_works+set}" = set; then
12226 echo $ECHO_N "(cached) $ECHO_C" >&6 16948 echo $ECHO_N "(cached) $ECHO_C" >&6
12227 else 16949 else
12228 if test "$cross_compiling" = yes; then 16950 if test "$cross_compiling" = yes; then
12229 ac_cv_func_vfork_works=cross 16951 ac_cv_func_vfork_works=cross
12230 else 16952 else
12231 cat >conftest.$ac_ext <<_ACEOF 16953 cat >conftest.$ac_ext <<_ACEOF
12232 #line 12232 "configure" 16954 #line $LINENO "configure"
12233 #include "confdefs.h" 16955 #include "confdefs.h"
12234 /* Thanks to Paul Eggert for this test. */ 16956 /* Thanks to Paul Eggert for this test. */
12235 #include <stdio.h> 16957 #include <stdio.h>
12236 #include <sys/types.h> 16958 #include <sys/types.h>
12237 #include <sys/stat.h> 16959 #include <sys/stat.h>
12324 ); 17046 );
12325 } 17047 }
12326 } 17048 }
12327 _ACEOF 17049 _ACEOF
12328 rm -f conftest$ac_exeext 17050 rm -f conftest$ac_exeext
12329 if { (eval echo "$as_me:12329: \"$ac_link\"") >&5 17051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12330 (eval $ac_link) 2>&5 17052 (eval $ac_link) 2>&5
12331 ac_status=$? 17053 ac_status=$?
12332 echo "$as_me:12332: \$? = $ac_status" >&5 17054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 17055 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12334 { (eval echo "$as_me:12334: \"$ac_try\"") >&5 17056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12335 (eval $ac_try) 2>&5 17057 (eval $ac_try) 2>&5
12336 ac_status=$? 17058 ac_status=$?
12337 echo "$as_me:12337: \$? = $ac_status" >&5 17059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338 (exit $ac_status); }; }; then 17060 (exit $ac_status); }; }; then
12339 ac_cv_func_vfork_works=yes 17061 ac_cv_func_vfork_works=yes
12340 else 17062 else
12341 echo "$as_me: program exited with status $ac_status" >&5 17063 echo "$as_me: program exited with status $ac_status" >&5
12342 echo "$as_me: failed program was:" >&5 17064 echo "$as_me: failed program was:" >&5
12343 cat conftest.$ac_ext >&5 17065 cat conftest.$ac_ext >&5
17066 ( exit $ac_status )
12344 ac_cv_func_vfork_works=no 17067 ac_cv_func_vfork_works=no
12345 fi 17068 fi
12346 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 17069 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12347 fi 17070 fi
12348 fi 17071 fi
12349 echo "$as_me:12349: result: $ac_cv_func_vfork_works" >&5 17072 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
12350 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6 17073 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
12351 17074
12352 fi; 17075 fi;
12353 if test "x$ac_cv_func_fork_works" = xcross; then 17076 if test "x$ac_cv_func_fork_works" = xcross; then
12354 ac_cv_func_vfork_works=ac_cv_func_vfork 17077 ac_cv_func_vfork_works=ac_cv_func_vfork
12355 { echo "$as_me:12355: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5 17078 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12356 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;} 17079 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12357 fi 17080 fi
12358 17081
12359 if test "x$ac_cv_func_vfork_works" = xyes; then 17082 if test "x$ac_cv_func_vfork_works" = xyes; then
12360 17083
12361 cat >>confdefs.h <<\EOF 17084 cat >>confdefs.h <<\_ACEOF
12362 #define HAVE_WORKING_VFORK 1 17085 #define HAVE_WORKING_VFORK 1
12363 EOF 17086 _ACEOF
12364 17087
12365 else 17088 else
12366 17089
12367 cat >>confdefs.h <<\EOF 17090 cat >>confdefs.h <<\_ACEOF
12368 #define vfork fork 17091 #define vfork fork
12369 EOF 17092 _ACEOF
12370 17093
12371 fi 17094 fi
12372 if test "x$ac_cv_func_fork_works" = xyes; then 17095 if test "x$ac_cv_func_fork_works" = xyes; then
12373 17096
12374 cat >>confdefs.h <<\EOF 17097 cat >>confdefs.h <<\_ACEOF
12375 #define HAVE_WORKING_FORK 1 17098 #define HAVE_WORKING_FORK 1
12376 EOF 17099 _ACEOF
12377 17100
12378 fi 17101 fi
17102
12379 17103
12380 # Fixme: This should be replaced when we have autoconf 2.14. 17104 # Fixme: This should be replaced when we have autoconf 2.14.
12381 echo "$as_me:12381: checking for size_t" >&5 17105 echo "$as_me:$LINENO: checking for size_t" >&5
12382 echo $ECHO_N "checking for size_t... $ECHO_C" >&6 17106 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12383 if test "${ac_cv_type_size_t+set}" = set; then 17107 if test "${ac_cv_type_size_t+set}" = set; then
12384 echo $ECHO_N "(cached) $ECHO_C" >&6 17108 echo $ECHO_N "(cached) $ECHO_C" >&6
12385 else 17109 else
12386 cat >conftest.$ac_ext <<_ACEOF 17110 cat >conftest.$ac_ext <<_ACEOF
12387 #line 12387 "configure" 17111 #line $LINENO "configure"
12388 #include "confdefs.h" 17112 #include "confdefs.h"
12389 $ac_includes_default 17113 $ac_includes_default
17114 #ifdef F77_DUMMY_MAIN
17115 # ifdef __cplusplus
17116 extern "C"
17117 # endif
17118 int F77_DUMMY_MAIN() { return 1; }
17119 #endif
12390 int 17120 int
12391 main () 17121 main ()
12392 { 17122 {
12393 if ((size_t *) 0) 17123 if ((size_t *) 0)
12394 return 0; 17124 return 0;
12397 ; 17127 ;
12398 return 0; 17128 return 0;
12399 } 17129 }
12400 _ACEOF 17130 _ACEOF
12401 rm -f conftest.$ac_objext 17131 rm -f conftest.$ac_objext
12402 if { (eval echo "$as_me:12402: \"$ac_compile\"") >&5 17132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12403 (eval $ac_compile) 2>&5 17133 (eval $ac_compile) 2>&5
12404 ac_status=$? 17134 ac_status=$?
12405 echo "$as_me:12405: \$? = $ac_status" >&5 17135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 (exit $ac_status); } && 17136 (exit $ac_status); } &&
12407 { ac_try='test -s conftest.$ac_objext' 17137 { ac_try='test -s conftest.$ac_objext'
12408 { (eval echo "$as_me:12408: \"$ac_try\"") >&5 17138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12409 (eval $ac_try) 2>&5 17139 (eval $ac_try) 2>&5
12410 ac_status=$? 17140 ac_status=$?
12411 echo "$as_me:12411: \$? = $ac_status" >&5 17141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412 (exit $ac_status); }; }; then 17142 (exit $ac_status); }; }; then
12413 ac_cv_type_size_t=yes 17143 ac_cv_type_size_t=yes
12414 else 17144 else
12415 echo "$as_me: failed program was:" >&5 17145 echo "$as_me: failed program was:" >&5
12416 cat conftest.$ac_ext >&5 17146 cat conftest.$ac_ext >&5
12417 ac_cv_type_size_t=no 17147 ac_cv_type_size_t=no
12418 fi 17148 fi
12419 rm -f conftest.$ac_objext conftest.$ac_ext 17149 rm -f conftest.$ac_objext conftest.$ac_ext
12420 fi 17150 fi
12421 echo "$as_me:12421: result: $ac_cv_type_size_t" >&5 17151 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12422 echo "${ECHO_T}$ac_cv_type_size_t" >&6 17152 echo "${ECHO_T}$ac_cv_type_size_t" >&6
12423 if test $ac_cv_type_size_t = yes; then 17153 if test $ac_cv_type_size_t = yes; then
12424 : 17154 :
12425 else 17155 else
12426 17156
12427 cat >>confdefs.h <<EOF 17157 cat >>confdefs.h <<_ACEOF
12428 #define size_t unsigned 17158 #define size_t unsigned
12429 EOF 17159 _ACEOF
12430 17160
12431 fi 17161 fi
17162
12432 17163
12433 # Set up the CFLAGS for real compilation, so we can substitute it. 17164 # Set up the CFLAGS for real compilation, so we can substitute it.
12434 CFLAGS="$REAL_CFLAGS" 17165 CFLAGS="$REAL_CFLAGS"
12435 CPPFLAGS="$REAL_CPPFLAGS" 17166 CPPFLAGS="$REAL_CPPFLAGS"
12436 17167
12437 #### Find out which version of Emacs this is. 17168 #### Find out which version of Emacs this is.
12438 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \ 17169 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
12439 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` 17170 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
12440 if test x"${version}" = x; then 17171 if test x"${version}" = x; then
12441 { { echo "$as_me:12441: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5 17172 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
12442 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;} 17173 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
12443 { (exit 1); exit 1; }; } 17174 { (exit 1); exit 1; }; }
12444 fi 17175 fi
12445 17176
12446 ### Specify what sort of things we'll be editing into Makefile and config.h. 17177 ### Specify what sort of things we'll be editing into Makefile and config.h.
12447 ### Use configuration here uncanonicalized to avoid exceeding size limits. 17178 ### Use configuration here uncanonicalized to avoid exceeding size limits.
12448 17179
12449 cat >>confdefs.h <<EOF 17180
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212 cat >>confdefs.h <<_ACEOF
12450 #define EMACS_CONFIGURATION "${canonical}" 17213 #define EMACS_CONFIGURATION "${canonical}"
12451 EOF 17214 _ACEOF
12452 17215
12453 cat >>confdefs.h <<EOF 17216 cat >>confdefs.h <<_ACEOF
12454 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}" 17217 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
12455 EOF 17218 _ACEOF
12456 17219
12457 cat >>confdefs.h <<EOF 17220 cat >>confdefs.h <<_ACEOF
12458 #define config_machfile "${machfile}" 17221 #define config_machfile "${machfile}"
12459 EOF 17222 _ACEOF
12460 17223
12461 cat >>confdefs.h <<EOF 17224 cat >>confdefs.h <<_ACEOF
12462 #define config_opsysfile "${opsysfile}" 17225 #define config_opsysfile "${opsysfile}"
12463 EOF 17226 _ACEOF
12464 17227
12465 cat >>confdefs.h <<EOF 17228 cat >>confdefs.h <<_ACEOF
12466 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE} 17229 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
12467 EOF 17230 _ACEOF
12468 17231
12469 cat >>confdefs.h <<EOF 17232 cat >>confdefs.h <<_ACEOF
12470 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX} 17233 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
12471 EOF 17234 _ACEOF
12472 17235
12473 cat >>confdefs.h <<EOF 17236 cat >>confdefs.h <<_ACEOF
12474 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE} 17237 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
12475 EOF 17238 _ACEOF
12476 17239
12477 cat >>confdefs.h <<EOF 17240 cat >>confdefs.h <<_ACEOF
12478 #define UNEXEC_SRC ${UNEXEC_SRC} 17241 #define UNEXEC_SRC ${UNEXEC_SRC}
12479 EOF 17242 _ACEOF
17243
12480 17244
12481 if test "${HAVE_X_WINDOWS}" = "yes" ; then 17245 if test "${HAVE_X_WINDOWS}" = "yes" ; then
12482 cat >>confdefs.h <<\EOF 17246 cat >>confdefs.h <<\_ACEOF
12483 #define HAVE_X_WINDOWS 1 17247 #define HAVE_X_WINDOWS 1
12484 EOF 17248 _ACEOF
12485 17249
12486 fi 17250 fi
12487 if test "${USE_X_TOOLKIT}" != "none" ; then 17251 if test "${USE_X_TOOLKIT}" != "none" ; then
12488 cat >>confdefs.h <<\EOF 17252 cat >>confdefs.h <<\_ACEOF
12489 #define USE_X_TOOLKIT 1 17253 #define USE_X_TOOLKIT 1
12490 EOF 17254 _ACEOF
12491 17255
12492 fi 17256 fi
12493 if test "${HAVE_X11}" = "yes" ; then 17257 if test "${HAVE_X11}" = "yes" ; then
12494 cat >>confdefs.h <<\EOF 17258 cat >>confdefs.h <<\_ACEOF
12495 #define HAVE_X11 1 17259 #define HAVE_X11 1
12496 EOF 17260 _ACEOF
12497 17261
12498 fi 17262 fi
12499 if test "${HAVE_XFREE386}" = "yes" ; then 17263 if test "${HAVE_XFREE386}" = "yes" ; then
12500 cat >>confdefs.h <<\EOF 17264 cat >>confdefs.h <<\_ACEOF
12501 #define HAVE_XFREE386 1 17265 #define HAVE_XFREE386 1
12502 EOF 17266 _ACEOF
12503 17267
12504 fi 17268 fi
12505 if test "${HAVE_MENUS}" = "yes" ; then 17269 if test "${HAVE_MENUS}" = "yes" ; then
12506 cat >>confdefs.h <<\EOF 17270 cat >>confdefs.h <<\_ACEOF
12507 #define HAVE_MENUS 1 17271 #define HAVE_MENUS 1
12508 EOF 17272 _ACEOF
12509 17273
12510 fi 17274 fi
12511 if test "${GNU_MALLOC}" = "yes" ; then 17275 if test "${GNU_MALLOC}" = "yes" ; then
12512 cat >>confdefs.h <<\EOF 17276 cat >>confdefs.h <<\_ACEOF
12513 #define GNU_MALLOC 1 17277 #define GNU_MALLOC 1
12514 EOF 17278 _ACEOF
12515 17279
12516 fi 17280 fi
12517 if test "${REL_ALLOC}" = "yes" ; then 17281 if test "${REL_ALLOC}" = "yes" ; then
12518 cat >>confdefs.h <<\EOF 17282 cat >>confdefs.h <<\_ACEOF
12519 #define REL_ALLOC 1 17283 #define REL_ALLOC 1
12520 EOF 17284 _ACEOF
12521 17285
12522 fi 17286 fi
17287
12523 17288
12524 for ac_header in nlist.h 17289 for ac_header in nlist.h
12525 do 17290 do
12526 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 17291 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12527 echo "$as_me:12527: checking for $ac_header" >&5 17292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17293 echo "$as_me:$LINENO: checking for $ac_header" >&5
12528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 17294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12529 if eval "test \"\${$as_ac_Header+set}\" = set"; then 17295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12530 echo $ECHO_N "(cached) $ECHO_C" >&6 17296 echo $ECHO_N "(cached) $ECHO_C" >&6
12531 else 17297 fi
12532 cat >conftest.$ac_ext <<_ACEOF 17298 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12533 #line 12533 "configure" 17299 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12534 #include "confdefs.h" 17300 else
17301 # Is the header compilable?
17302 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17303 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17304 cat >conftest.$ac_ext <<_ACEOF
17305 #line $LINENO "configure"
17306 #include "confdefs.h"
17307 $ac_includes_default
12535 #include <$ac_header> 17308 #include <$ac_header>
12536 _ACEOF 17309 _ACEOF
12537 if { (eval echo "$as_me:12537: \"$ac_cpp conftest.$ac_ext\"") >&5 17310 rm -f conftest.$ac_objext
17311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17312 (eval $ac_compile) 2>&5
17313 ac_status=$?
17314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17315 (exit $ac_status); } &&
17316 { ac_try='test -s conftest.$ac_objext'
17317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17318 (eval $ac_try) 2>&5
17319 ac_status=$?
17320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321 (exit $ac_status); }; }; then
17322 ac_header_compiler=yes
17323 else
17324 echo "$as_me: failed program was:" >&5
17325 cat conftest.$ac_ext >&5
17326 ac_header_compiler=no
17327 fi
17328 rm -f conftest.$ac_objext conftest.$ac_ext
17329 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17330 echo "${ECHO_T}$ac_header_compiler" >&6
17331
17332 # Is the header present?
17333 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17334 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17335 cat >conftest.$ac_ext <<_ACEOF
17336 #line $LINENO "configure"
17337 #include "confdefs.h"
17338 #include <$ac_header>
17339 _ACEOF
17340 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12538 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 17341 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12539 ac_status=$? 17342 ac_status=$?
12540 egrep -v '^ *\+' conftest.er1 >conftest.err 17343 egrep -v '^ *\+' conftest.er1 >conftest.err
12541 rm -f conftest.er1 17344 rm -f conftest.er1
12542 cat conftest.err >&5 17345 cat conftest.err >&5
12543 echo "$as_me:12543: \$? = $ac_status" >&5 17346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544 (exit $ac_status); } >/dev/null; then 17347 (exit $ac_status); } >/dev/null; then
12545 if test -s conftest.err; then 17348 if test -s conftest.err; then
12546 ac_cpp_err=$ac_c_preproc_warn_flag 17349 ac_cpp_err=$ac_c_preproc_warn_flag
12547 else 17350 else
12548 ac_cpp_err= 17351 ac_cpp_err=
12549 fi 17352 fi
12550 else 17353 else
12551 ac_cpp_err=yes 17354 ac_cpp_err=yes
12552 fi 17355 fi
12553 if test -z "$ac_cpp_err"; then 17356 if test -z "$ac_cpp_err"; then
12554 eval "$as_ac_Header=yes" 17357 ac_header_preproc=yes
12555 else 17358 else
12556 echo "$as_me: failed program was:" >&5 17359 echo "$as_me: failed program was:" >&5
12557 cat conftest.$ac_ext >&5 17360 cat conftest.$ac_ext >&5
12558 eval "$as_ac_Header=no" 17361 ac_header_preproc=no
12559 fi 17362 fi
12560 rm -f conftest.err conftest.$ac_ext 17363 rm -f conftest.err conftest.$ac_ext
12561 fi 17364 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12562 echo "$as_me:12562: result: `eval echo '${'$as_ac_Header'}'`" >&5 17365 echo "${ECHO_T}$ac_header_preproc" >&6
17366
17367 # So? What about this header?
17368 case $ac_header_compiler:$ac_header_preproc in
17369 yes:no )
17370 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17371 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17372 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17373 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
17374 no:yes )
17375 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17376 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17377 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17378 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17379 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17380 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
17381 esac
17382 echo "$as_me:$LINENO: checking for $ac_header" >&5
17383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17385 echo $ECHO_N "(cached) $ECHO_C" >&6
17386 else
17387 eval "$as_ac_Header=$ac_header_preproc"
17388 fi
17389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12563 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 17390 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17391
17392 fi
12564 if test `eval echo '${'$as_ac_Header'}'` = yes; then 17393 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12565 cat >>confdefs.h <<EOF 17394 cat >>confdefs.h <<_ACEOF
12566 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 17395 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12567 EOF 17396 _ACEOF
12568 17397
12569 cat >>confdefs.h <<\EOF 17398 cat >>confdefs.h <<\_ACEOF
12570 #define NLIST_STRUCT 1 17399 #define NLIST_STRUCT 1
12571 EOF 17400 _ACEOF
12572 17401
12573 fi 17402 fi
17403
12574 done 17404 done
17405
12575 17406
12576 #### Report on what we decided to do. 17407 #### Report on what we decided to do.
12577 echo " 17408 echo "
12578 Configured for \`${canonical}'. 17409 Configured for \`${canonical}'.
12579 17410
12583 What compiler should emacs be built with? ${CC} ${CFLAGS} 17414 What compiler should emacs be built with? ${CC} ${CFLAGS}
12584 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason} 17415 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
12585 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC} 17416 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
12586 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers 17417 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
12587 What window system should Emacs use? ${window_system} 17418 What window system should Emacs use? ${window_system}
12588 What toolkit should Emacs use? ${USE_X_TOOLKIT}" 17419 What toolkit should Emacs use? ${USE_X_TOOLKIT}
17420 Should Emacs use a shared game state directory? ${gamedir}"
12589 17421
12590 if test -n "${x_includes}"; then 17422 if test -n "${x_includes}"; then
12591 echo " Where do we find X Windows header files? ${x_includes}" 17423 echo " Where do we find X Windows header files? ${x_includes}"
12592 else 17424 else
12593 echo " Where do we find X Windows header files? Standard dirs" 17425 echo " Where do we find X Windows header files? Standard dirs"
12617 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile 17449 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
12618 ## from Makefile.c can correctly provide the arg `-traditional' to the 17450 ## from Makefile.c can correctly provide the arg `-traditional' to the
12619 ## C preprocessor. 17451 ## C preprocessor.
12620 17452
12621 cat >conftest.$ac_ext <<_ACEOF 17453 cat >conftest.$ac_ext <<_ACEOF
12622 #line 12622 "configure" 17454 #line $LINENO "configure"
12623 #include "confdefs.h" 17455 #include "confdefs.h"
12624 yes..yes 17456 yes..yes
12625 _ACEOF 17457 _ACEOF
12626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17458 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12627 egrep "yes..yes" >/dev/null 2>&1; then 17459 egrep "yes..yes" >/dev/null 2>&1; then
12628 CPP_NEED_TRADITIONAL=no 17460 CPP_NEED_TRADITIONAL=no
12629 else 17461 else
12630 CPP_NEED_TRADITIONAL=yes 17462 CPP_NEED_TRADITIONAL=yes
12631 fi 17463 fi
12632 rm -f conftest* 17464 rm -f conftest*
17465
12633 17466
12634 ac_config_files="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in lisp/Makefile lispref/Makefile lispintro/Makefile leim/Makefile" 17467 ac_config_files="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in lisp/Makefile lispref/Makefile lispintro/Makefile leim/Makefile"
12635 ac_config_commands="$ac_config_commands default" 17468 ac_config_commands="$ac_config_commands default"
12636 cat >confcache <<\_ACEOF 17469 cat >confcache <<\_ACEOF
12637 # This file is a shell script that caches the results of configure 17470 # This file is a shell script that caches the results of configure
12707 }' 17540 }'
12708 fi 17541 fi
12709 17542
12710 DEFS=-DHAVE_CONFIG_H 17543 DEFS=-DHAVE_CONFIG_H
12711 17544
17545
12712 : ${CONFIG_STATUS=./config.status} 17546 : ${CONFIG_STATUS=./config.status}
12713 ac_clean_files_save=$ac_clean_files 17547 ac_clean_files_save=$ac_clean_files
12714 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 17548 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12715 { echo "$as_me:12715: creating $CONFIG_STATUS" >&5 17549 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12716 echo "$as_me: creating $CONFIG_STATUS" >&6;} 17550 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12717 cat >$CONFIG_STATUS <<_ACEOF 17551 cat >$CONFIG_STATUS <<_ACEOF
12718 #! $SHELL 17552 #! $SHELL
12719 # Generated automatically by configure. 17553 # Generated by $as_me.
12720 # Run this file to recreate the current configuration. 17554 # Run this file to recreate the current configuration.
12721 # Compiler output produced by configure, useful for debugging 17555 # Compiler output produced by configure, useful for debugging
12722 # configure, is in config.log if it exists. 17556 # configure, is in config.log if it exists.
12723 17557
12724 debug=false 17558 debug=false
12725 SHELL=\${CONFIG_SHELL-$SHELL} 17559 SHELL=\${CONFIG_SHELL-$SHELL}
12726 ac_cs_invocation="\$0 \$@"
12727
12728 _ACEOF 17560 _ACEOF
12729 17561
12730 cat >>$CONFIG_STATUS <<\_ACEOF 17562 cat >>$CONFIG_STATUS <<\_ACEOF
17563
17564 ## --------------------- ##
17565 ## M4sh Initialization. ##
17566 ## --------------------- ##
17567
12731 # Be Bourne compatible 17568 # Be Bourne compatible
12732 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 17569 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12733 emulate sh 17570 emulate sh
12734 NULLCMD=: 17571 NULLCMD=:
12735 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 17572 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12736 set -o posix 17573 set -o posix
12737 fi 17574 fi
12738 17575
17576 # NLS nuisances.
17577 # Support unset when possible.
17578 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17579 as_unset=unset
17580 else
17581 as_unset=false
17582 fi
17583
17584 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
17585 { $as_unset LANG || test "${LANG+set}" != set; } ||
17586 { LANG=C; export LANG; }
17587 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
17588 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
17589 { LC_ALL=C; export LC_ALL; }
17590 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
17591 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
17592 { LC_TIME=C; export LC_TIME; }
17593 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
17594 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
17595 { LC_CTYPE=C; export LC_CTYPE; }
17596 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
17597 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
17598 { LANGUAGE=C; export LANGUAGE; }
17599 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
17600 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
17601 { LC_COLLATE=C; export LC_COLLATE; }
17602 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
17603 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
17604 { LC_NUMERIC=C; export LC_NUMERIC; }
17605 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
17606 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
17607 { LC_MESSAGES=C; export LC_MESSAGES; }
17608
17609
12739 # Name of the executable. 17610 # Name of the executable.
12740 as_me=`echo "$0" |sed 's,.*[\\/],,'` 17611 as_me=`(basename "$0") 2>/dev/null ||
17612 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17613 X"$0" : 'X\(//\)$' \| \
17614 X"$0" : 'X\(/\)$' \| \
17615 . : '\(.\)' 2>/dev/null ||
17616 echo X/"$0" |
17617 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17618 /^X\/\(\/\/\)$/{ s//\1/; q; }
17619 /^X\/\(\/\).*/{ s//\1/; q; }
17620 s/.*/./; q'`
17621
17622 # PATH needs CR, and LINENO needs CR and PATH.
17623 # Avoid depending upon Character Ranges.
17624 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17625 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17626 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17627 as_cr_digits='0123456789'
17628 as_cr_alnum=$as_cr_Letters$as_cr_digits
17629
17630 # The user is always right.
17631 if test "${PATH_SEPARATOR+set}" != set; then
17632 echo "#! /bin/sh" >conftest.sh
17633 echo "exit 0" >>conftest.sh
17634 chmod +x conftest.sh
17635 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
17636 PATH_SEPARATOR=';'
17637 else
17638 PATH_SEPARATOR=:
17639 fi
17640 rm -f conftest.sh
17641 fi
17642
17643
17644 as_lineno_1=$LINENO
17645 as_lineno_2=$LINENO
17646 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17647 test "x$as_lineno_1" != "x$as_lineno_2" &&
17648 test "x$as_lineno_3" = "x$as_lineno_2" || {
17649 # Find who we are. Look in the path if we contain no path at all
17650 # relative or not.
17651 case $0 in
17652 *[\\/]* ) as_myself=$0 ;;
17653 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17654 for as_dir in $PATH
17655 do
17656 IFS=$as_save_IFS
17657 test -z "$as_dir" && as_dir=.
17658 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17659 done
17660
17661 ;;
17662 esac
17663 # We did not find ourselves, most probably we were run as `sh COMMAND'
17664 # in which case we are not to be found in the path.
17665 if test "x$as_myself" = x; then
17666 as_myself=$0
17667 fi
17668 if test ! -f "$as_myself"; then
17669 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17670 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17671 { (exit 1); exit 1; }; }
17672 fi
17673 case $CONFIG_SHELL in
17674 '')
17675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17676 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17677 do
17678 IFS=$as_save_IFS
17679 test -z "$as_dir" && as_dir=.
17680 for as_base in sh bash ksh sh5; do
17681 case $as_dir in
17682 /*)
17683 if ("$as_dir/$as_base" -c '
17684 as_lineno_1=$LINENO
17685 as_lineno_2=$LINENO
17686 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17687 test "x$as_lineno_1" != "x$as_lineno_2" &&
17688 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17689 CONFIG_SHELL=$as_dir/$as_base
17690 export CONFIG_SHELL
17691 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17692 fi;;
17693 esac
17694 done
17695 done
17696 ;;
17697 esac
17698
17699 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17700 # uniformly replaced by the line number. The first 'sed' inserts a
17701 # line-number line before each line; the second 'sed' does the real
17702 # work. The second script uses 'N' to pair each line-number line
17703 # with the numbered line, and appends trailing '-' during
17704 # substitution so that $LINENO is not a special case at line end.
17705 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17706 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17707 sed '=' <$as_myself |
17708 sed '
17709 N
17710 s,$,-,
17711 : loop
17712 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17713 t loop
17714 s,-$,,
17715 s,^['$as_cr_digits']*\n,,
17716 ' >$as_me.lineno &&
17717 chmod +x $as_me.lineno ||
17718 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17719 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17720 { (exit 1); exit 1; }; }
17721
17722 # Don't try to exec as it changes $[0], causing all sort of problems
17723 # (the dirname of $[0] is not the place where we might find the
17724 # original and so on. Autoconf is especially sensible to this).
17725 . ./$as_me.lineno
17726 # Exit status is that of the last command.
17727 exit
17728 }
17729
17730
17731 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17732 *c*,-n*) ECHO_N= ECHO_C='
17733 ' ECHO_T=' ' ;;
17734 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17735 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17736 esac
12741 17737
12742 if expr a : '\(a\)' >/dev/null 2>&1; then 17738 if expr a : '\(a\)' >/dev/null 2>&1; then
12743 as_expr=expr 17739 as_expr=expr
12744 else 17740 else
12745 as_expr=false 17741 as_expr=false
12763 fi 17759 fi
12764 rm -f conf$$ conf$$.exe conf$$.file 17760 rm -f conf$$ conf$$.exe conf$$.file
12765 17761
12766 as_executable_p="test -f" 17762 as_executable_p="test -f"
12767 17763
12768 # Support unset when possible. 17764 # Sed expression to map a string onto a valid CPP name.
12769 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 17765 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12770 as_unset=unset 17766
12771 else 17767 # Sed expression to map a string onto a valid variable name.
12772 as_unset=false 17768 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12773 fi 17769
12774
12775 # NLS nuisances.
12776 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
12777 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
12778 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
12779 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
12780 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
12781 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
12782 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
12783 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
12784 17770
12785 # IFS 17771 # IFS
12786 # We need space, tab and new line, in precisely that order. 17772 # We need space, tab and new line, in precisely that order.
12787 as_nl=' 17773 as_nl='
12788 ' 17774 '
12789 IFS=" $as_nl" 17775 IFS=" $as_nl"
12790 17776
12791 # CDPATH. 17777 # CDPATH.
12792 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } 17778 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
12793 17779
12794 exec 6>&1 17780 exec 6>&1
12795 17781
17782 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17783 # report actual input values of CONFIG_FILES etc. instead of their
17784 # values after options handling. Logging --version etc. is OK.
17785 exec 5>>config.log
17786 {
17787 echo
17788 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17789 ## Running $as_me. ##
17790 _ASBOX
17791 } >&5
17792 cat >&5 <<_CSEOF
17793
17794 This file was extended by $as_me, which was
17795 generated by GNU Autoconf 2.53. Invocation command line was
17796
17797 CONFIG_FILES = $CONFIG_FILES
17798 CONFIG_HEADERS = $CONFIG_HEADERS
17799 CONFIG_LINKS = $CONFIG_LINKS
17800 CONFIG_COMMANDS = $CONFIG_COMMANDS
17801 $ $0 $@
17802
17803 _CSEOF
17804 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17805 echo >&5
12796 _ACEOF 17806 _ACEOF
12797 17807
12798 # Files that config.status was made for. 17808 # Files that config.status was made for.
12799 if test -n "$ac_config_files"; then 17809 if test -n "$ac_config_files"; then
12800 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 17810 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12810 17820
12811 if test -n "$ac_config_commands"; then 17821 if test -n "$ac_config_commands"; then
12812 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 17822 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12813 fi 17823 fi
12814 17824
12815 cat >>$CONFIG_STATUS <<\EOF 17825 cat >>$CONFIG_STATUS <<\_ACEOF
12816 17826
12817 ac_cs_usage="\ 17827 ac_cs_usage="\
12818 \`$as_me' instantiates files from templates according to the 17828 \`$as_me' instantiates files from templates according to the
12819 current configuration. 17829 current configuration.
12820 17830
12837 17847
12838 Configuration commands: 17848 Configuration commands:
12839 $config_commands 17849 $config_commands
12840 17850
12841 Report bugs to <bug-autoconf@gnu.org>." 17851 Report bugs to <bug-autoconf@gnu.org>."
12842 EOF 17852 _ACEOF
12843 17853
12844 cat >>$CONFIG_STATUS <<EOF 17854 cat >>$CONFIG_STATUS <<_ACEOF
12845 ac_cs_version="\\ 17855 ac_cs_version="\\
12846 config.status 17856 config.status
12847 configured by $0, generated by GNU Autoconf 2.52, 17857 configured by $0, generated by GNU Autoconf 2.53,
12848 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 17858 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12849 17859
12850 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 17860 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12851 Free Software Foundation, Inc. 17861 Free Software Foundation, Inc.
12852 This config.status script is free software; the Free Software Foundation 17862 This config.status script is free software; the Free Software Foundation
12853 gives unlimited permission to copy, distribute and modify it." 17863 gives unlimited permission to copy, distribute and modify it."
12854 srcdir=$srcdir 17864 srcdir=$srcdir
12855 INSTALL="$INSTALL" 17865 INSTALL="$INSTALL"
12856 EOF 17866 _ACEOF
12857 17867
12858 cat >>$CONFIG_STATUS <<\EOF 17868 cat >>$CONFIG_STATUS <<\_ACEOF
12859 # If no file are specified by the user, then we need to provide default 17869 # If no file are specified by the user, then we need to provide default
12860 # value. By we need to know if files were specified by the user. 17870 # value. By we need to know if files were specified by the user.
12861 ac_need_defaults=: 17871 ac_need_defaults=:
12862 while test $# != 0 17872 while test $# != 0
12863 do 17873 do
12875 ac_need_defaults=false;; 17885 ac_need_defaults=false;;
12876 esac 17886 esac
12877 17887
12878 case $1 in 17888 case $1 in
12879 # Handling of the options. 17889 # Handling of the options.
12880 EOF 17890 _ACEOF
12881 cat >>$CONFIG_STATUS <<EOF 17891 cat >>$CONFIG_STATUS <<_ACEOF
12882 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 17892 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12883 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" 17893 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
12884 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; 17894 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
12885 EOF 17895 _ACEOF
12886 cat >>$CONFIG_STATUS <<\EOF 17896 cat >>$CONFIG_STATUS <<\_ACEOF
12887 --version | --vers* | -V ) 17897 --version | --vers* | -V )
12888 echo "$ac_cs_version"; exit 0 ;; 17898 echo "$ac_cs_version"; exit 0 ;;
12889 --he | --h) 17899 --he | --h)
12890 # Conflict between --help and --header 17900 # Conflict between --help and --header
12891 { { echo "$as_me:12891: error: ambiguous option: $1 17901 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12892 Try \`$0 --help' for more information." >&5 17902 Try \`$0 --help' for more information." >&5
12893 echo "$as_me: error: ambiguous option: $1 17903 echo "$as_me: error: ambiguous option: $1
12894 Try \`$0 --help' for more information." >&2;} 17904 Try \`$0 --help' for more information." >&2;}
12895 { (exit 1); exit 1; }; };; 17905 { (exit 1); exit 1; }; };;
12896 --help | --hel | -h ) 17906 --help | --hel | -h )
12905 shift 17915 shift
12906 CONFIG_HEADERS="$CONFIG_HEADERS $1" 17916 CONFIG_HEADERS="$CONFIG_HEADERS $1"
12907 ac_need_defaults=false;; 17917 ac_need_defaults=false;;
12908 17918
12909 # This is an error. 17919 # This is an error.
12910 -*) { { echo "$as_me:12910: error: unrecognized option: $1 17920 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12911 Try \`$0 --help' for more information." >&5 17921 Try \`$0 --help' for more information." >&5
12912 echo "$as_me: error: unrecognized option: $1 17922 echo "$as_me: error: unrecognized option: $1
12913 Try \`$0 --help' for more information." >&2;} 17923 Try \`$0 --help' for more information." >&2;}
12914 { (exit 1); exit 1; }; } ;; 17924 { (exit 1); exit 1; }; } ;;
12915 17925
12917 17927
12918 esac 17928 esac
12919 shift 17929 shift
12920 done 17930 done
12921 17931
12922 exec 5>>config.log 17932 _ACEOF
12923 cat >&5 << _ACEOF 17933
12924 17934 cat >>$CONFIG_STATUS <<_ACEOF
12925 ## ----------------------- ##
12926 ## Running config.status. ##
12927 ## ----------------------- ##
12928
12929 This file was extended by $as_me 2.52, executed with
12930 CONFIG_FILES = $CONFIG_FILES
12931 CONFIG_HEADERS = $CONFIG_HEADERS
12932 CONFIG_LINKS = $CONFIG_LINKS
12933 CONFIG_COMMANDS = $CONFIG_COMMANDS
12934 > $ac_cs_invocation
12935 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12936
12937 _ACEOF
12938 EOF
12939
12940 cat >>$CONFIG_STATUS <<EOF
12941 # 17935 #
12942 # INIT-COMMANDS section. 17936 # INIT-COMMANDS section.
12943 # 17937 #
12944 17938
12945 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" 17939 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
12946 17940
12947 EOF 17941 _ACEOF
12948 17942
12949 cat >>$CONFIG_STATUS <<\EOF 17943
17944
17945 cat >>$CONFIG_STATUS <<\_ACEOF
12950 for ac_config_target in $ac_config_targets 17946 for ac_config_target in $ac_config_targets
12951 do 17947 do
12952 case "$ac_config_target" in 17948 case "$ac_config_target" in
12953 # Handling of arguments. 17949 # Handling of arguments.
12954 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 17950 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12961 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;; 17957 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
12962 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;; 17958 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
12963 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;; 17959 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
12964 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 17960 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
12965 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;; 17961 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
12966 *) { { echo "$as_me:12966: error: invalid argument: $ac_config_target" >&5 17962 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12967 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 17963 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12968 { (exit 1); exit 1; }; };; 17964 { (exit 1); exit 1; }; };;
12969 esac 17965 esac
12970 done 17966 done
12971 17967
12999 { 17995 {
13000 echo "$me: cannot create a temporary directory in $TMPDIR" >&2 17996 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
13001 { (exit 1); exit 1; } 17997 { (exit 1); exit 1; }
13002 } 17998 }
13003 17999
13004 EOF 18000 _ACEOF
13005 18001
13006 cat >>$CONFIG_STATUS <<EOF 18002 cat >>$CONFIG_STATUS <<_ACEOF
13007 18003
13008 # 18004 #
13009 # CONFIG_FILES section. 18005 # CONFIG_FILES section.
13010 # 18006 #
13011 18007
13014 if test -n "\$CONFIG_FILES"; then 18010 if test -n "\$CONFIG_FILES"; then
13015 # Protect against being on the right side of a sed subst in config.status. 18011 # Protect against being on the right side of a sed subst in config.status.
13016 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 18012 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13017 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 18013 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13018 s,@SHELL@,$SHELL,;t t 18014 s,@SHELL@,$SHELL,;t t
18015 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18016 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18017 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18018 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18019 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18020 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13019 s,@exec_prefix@,$exec_prefix,;t t 18021 s,@exec_prefix@,$exec_prefix,;t t
13020 s,@prefix@,$prefix,;t t 18022 s,@prefix@,$prefix,;t t
13021 s,@program_transform_name@,$program_transform_name,;t t 18023 s,@program_transform_name@,$program_transform_name,;t t
13022 s,@bindir@,$bindir,;t t 18024 s,@bindir@,$bindir,;t t
13023 s,@sbindir@,$sbindir,;t t 18025 s,@sbindir@,$sbindir,;t t
13029 s,@libdir@,$libdir,;t t 18031 s,@libdir@,$libdir,;t t
13030 s,@includedir@,$includedir,;t t 18032 s,@includedir@,$includedir,;t t
13031 s,@oldincludedir@,$oldincludedir,;t t 18033 s,@oldincludedir@,$oldincludedir,;t t
13032 s,@infodir@,$infodir,;t t 18034 s,@infodir@,$infodir,;t t
13033 s,@mandir@,$mandir,;t t 18035 s,@mandir@,$mandir,;t t
13034 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13035 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13036 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13037 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13038 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13039 s,@build_alias@,$build_alias,;t t 18036 s,@build_alias@,$build_alias,;t t
13040 s,@host_alias@,$host_alias,;t t 18037 s,@host_alias@,$host_alias,;t t
13041 s,@target_alias@,$target_alias,;t t 18038 s,@target_alias@,$target_alias,;t t
18039 s,@DEFS@,$DEFS,;t t
13042 s,@ECHO_C@,$ECHO_C,;t t 18040 s,@ECHO_C@,$ECHO_C,;t t
13043 s,@ECHO_N@,$ECHO_N,;t t 18041 s,@ECHO_N@,$ECHO_N,;t t
13044 s,@ECHO_T@,$ECHO_T,;t t 18042 s,@ECHO_T@,$ECHO_T,;t t
13045 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13046 s,@DEFS@,$DEFS,;t t
13047 s,@LIBS@,$LIBS,;t t 18043 s,@LIBS@,$LIBS,;t t
13048 s,@build@,$build,;t t 18044 s,@build@,$build,;t t
13049 s,@build_cpu@,$build_cpu,;t t 18045 s,@build_cpu@,$build_cpu,;t t
13050 s,@build_vendor@,$build_vendor,;t t 18046 s,@build_vendor@,$build_vendor,;t t
13051 s,@build_os@,$build_os,;t t 18047 s,@build_os@,$build_os,;t t
13086 s,@x_default_search_path@,$x_default_search_path,;t t 18082 s,@x_default_search_path@,$x_default_search_path,;t t
13087 s,@etcdir@,$etcdir,;t t 18083 s,@etcdir@,$etcdir,;t t
13088 s,@archlibdir@,$archlibdir,;t t 18084 s,@archlibdir@,$archlibdir,;t t
13089 s,@docdir@,$docdir,;t t 18085 s,@docdir@,$docdir,;t t
13090 s,@bitmapdir@,$bitmapdir,;t t 18086 s,@bitmapdir@,$bitmapdir,;t t
18087 s,@gamedir@,$gamedir,;t t
18088 s,@gameuser@,$gameuser,;t t
13091 s,@c_switch_system@,$c_switch_system,;t t 18089 s,@c_switch_system@,$c_switch_system,;t t
13092 s,@c_switch_machine@,$c_switch_machine,;t t 18090 s,@c_switch_machine@,$c_switch_machine,;t t
13093 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t 18091 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
13094 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t 18092 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
13095 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t 18093 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
13096 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t 18094 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
13097 s,@machfile@,$machfile,;t t 18095 s,@machfile@,$machfile,;t t
13098 s,@opsysfile@,$opsysfile,;t t 18096 s,@opsysfile@,$opsysfile,;t t
13099 CEOF 18097 CEOF
13100 18098
13101 EOF 18099 _ACEOF
13102 18100
13103 cat >>$CONFIG_STATUS <<\EOF 18101 cat >>$CONFIG_STATUS <<\_ACEOF
13104 # Split the substitutions into bite-sized pieces for seds with 18102 # Split the substitutions into bite-sized pieces for seds with
13105 # small command number limits, like on Digital OSF/1 and HP-UX. 18103 # small command number limits, like on Digital OSF/1 and HP-UX.
13106 ac_max_sed_lines=48 18104 ac_max_sed_lines=48
13107 ac_sed_frag=1 # Number of current file. 18105 ac_sed_frag=1 # Number of current file.
13108 ac_beg=1 # First line for current file. 18106 ac_beg=1 # First line for current file.
13137 if test -z "$ac_sed_cmds"; then 18135 if test -z "$ac_sed_cmds"; then
13138 ac_sed_cmds=cat 18136 ac_sed_cmds=cat
13139 fi 18137 fi
13140 fi # test -n "$CONFIG_FILES" 18138 fi # test -n "$CONFIG_FILES"
13141 18139
13142 EOF 18140 _ACEOF
13143 cat >>$CONFIG_STATUS <<\EOF 18141 cat >>$CONFIG_STATUS <<\_ACEOF
13144 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 18142 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13145 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 18143 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13146 case $ac_file in 18144 case $ac_file in
13147 - | *:- | *:-:* ) # input from stdin 18145 - | *:- | *:-:* ) # input from stdin
13148 cat >$tmp/stdin 18146 cat >$tmp/stdin
13152 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 18150 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13153 * ) ac_file_in=$ac_file.in ;; 18151 * ) ac_file_in=$ac_file.in ;;
13154 esac 18152 esac
13155 18153
13156 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 18154 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13157 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18155 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18156 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13158 X"$ac_file" : 'X\(//\)[^/]' \| \ 18157 X"$ac_file" : 'X\(//\)[^/]' \| \
13159 X"$ac_file" : 'X\(//\)$' \| \ 18158 X"$ac_file" : 'X\(//\)$' \| \
13160 X"$ac_file" : 'X\(/\)' \| \ 18159 X"$ac_file" : 'X\(/\)' \| \
13161 . : '\(.\)' 2>/dev/null || 18160 . : '\(.\)' 2>/dev/null ||
13162 echo X"$ac_file" | 18161 echo X"$ac_file" |
13163 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 18162 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13164 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 18163 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13165 /^X\(\/\/\)$/{ s//\1/; q; } 18164 /^X\(\/\/\)$/{ s//\1/; q; }
13166 /^X\(\/\).*/{ s//\1/; q; } 18165 /^X\(\/\).*/{ s//\1/; q; }
13167 s/.*/./; q'` 18166 s/.*/./; q'`
13168 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 18167 { case "$ac_dir" in
13169 { case "$ac_dir" in
13170 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 18168 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
13171 *) as_incr_dir=.;; 18169 *) as_incr_dir=.;;
13172 esac 18170 esac
13173 as_dummy="$ac_dir" 18171 as_dummy="$ac_dir"
13174 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 18172 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
13175 case $as_mkdir_dir in 18173 case $as_mkdir_dir in
13176 # Skip DOS drivespec 18174 # Skip DOS drivespec
13177 ?:) as_incr_dir=$as_mkdir_dir ;; 18175 ?:) as_incr_dir=$as_mkdir_dir ;;
13178 *) 18176 *)
13179 as_incr_dir=$as_incr_dir/$as_mkdir_dir 18177 as_incr_dir=$as_incr_dir/$as_mkdir_dir
13180 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 18178 test -d "$as_incr_dir" ||
18179 mkdir "$as_incr_dir" ||
18180 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18181 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18182 { (exit 1); exit 1; }; }
13181 ;; 18183 ;;
13182 esac 18184 esac
13183 done; } 18185 done; }
13184 18186
13185 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" 18187 ac_builddir=.
13186 # A "../" for each directory in $ac_dir_suffix. 18188
13187 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` 18189 if test "$ac_dir" != .; then
13188 else 18190 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13189 ac_dir_suffix= ac_dots= 18191 # A "../" for each directory in $ac_dir_suffix.
13190 fi 18192 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13191 18193 else
13192 case $srcdir in 18194 ac_dir_suffix= ac_top_builddir=
13193 .) ac_srcdir=. 18195 fi
13194 if test -z "$ac_dots"; then 18196
13195 ac_top_srcdir=. 18197 case $srcdir in
13196 else 18198 .) # No --srcdir option. We are building in place.
13197 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` 18199 ac_srcdir=.
13198 fi ;; 18200 if test -z "$ac_top_builddir"; then
13199 [\\/]* | ?:[\\/]* ) 18201 ac_top_srcdir=.
13200 ac_srcdir=$srcdir$ac_dir_suffix; 18202 else
13201 ac_top_srcdir=$srcdir ;; 18203 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18204 fi ;;
18205 [\\/]* | ?:[\\/]* ) # Absolute path.
18206 ac_srcdir=$srcdir$ac_dir_suffix;
18207 ac_top_srcdir=$srcdir ;;
13202 *) # Relative path. 18208 *) # Relative path.
13203 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix 18209 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13204 ac_top_srcdir=$ac_dots$srcdir ;; 18210 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13205 esac 18211 esac
18212 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18213 # absolute.
18214 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18215 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
18216 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18217 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18218
13206 18219
13207 case $INSTALL in 18220 case $INSTALL in
13208 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 18221 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13209 *) ac_INSTALL=$ac_dots$INSTALL ;; 18222 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13210 esac 18223 esac
13211 18224
13212 if test x"$ac_file" != x-; then 18225 if test x"$ac_file" != x-; then
13213 { echo "$as_me:13213: creating $ac_file" >&5 18226 { echo "$as_me:$LINENO: creating $ac_file" >&5
13214 echo "$as_me: creating $ac_file" >&6;} 18227 echo "$as_me: creating $ac_file" >&6;}
13215 rm -f "$ac_file" 18228 rm -f "$ac_file"
13216 fi 18229 fi
13217 # Let's still pretend it is `configure' which instantiates (i.e., don't 18230 # Let's still pretend it is `configure' which instantiates (i.e., don't
13218 # use $as_me), people would be surprised to read: 18231 # use $as_me), people would be surprised to read:
13219 # /* config.h. Generated automatically by config.status. */ 18232 # /* config.h. Generated by config.status. */
13220 configure_input="Generated automatically from `echo $ac_file_in | 18233 if test x"$ac_file" = x-; then
13221 sed 's,.*/,,'` by configure." 18234 configure_input=
18235 else
18236 configure_input="$ac_file. "
18237 fi
18238 configure_input=$configure_input"Generated from `echo $ac_file_in |
18239 sed 's,.*/,,'` by configure."
13222 18240
13223 # First look for the input files in the build tree, otherwise in the 18241 # First look for the input files in the build tree, otherwise in the
13224 # src tree. 18242 # src tree.
13225 ac_file_inputs=`IFS=: 18243 ac_file_inputs=`IFS=:
13226 for f in $ac_file_in; do 18244 for f in $ac_file_in; do
13227 case $f in 18245 case $f in
13228 -) echo $tmp/stdin ;; 18246 -) echo $tmp/stdin ;;
13229 [\\/$]*) 18247 [\\/$]*)
13230 # Absolute (can't be DOS-style, as IFS=:) 18248 # Absolute (can't be DOS-style, as IFS=:)
13231 test -f "$f" || { { echo "$as_me:13231: error: cannot find input file: $f" >&5 18249 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13232 echo "$as_me: error: cannot find input file: $f" >&2;} 18250 echo "$as_me: error: cannot find input file: $f" >&2;}
13233 { (exit 1); exit 1; }; } 18251 { (exit 1); exit 1; }; }
13234 echo $f;; 18252 echo $f;;
13235 *) # Relative 18253 *) # Relative
13236 if test -f "$f"; then 18254 if test -f "$f"; then
13239 elif test -f "$srcdir/$f"; then 18257 elif test -f "$srcdir/$f"; then
13240 # Source tree 18258 # Source tree
13241 echo $srcdir/$f 18259 echo $srcdir/$f
13242 else 18260 else
13243 # /dev/null tree 18261 # /dev/null tree
13244 { { echo "$as_me:13244: error: cannot find input file: $f" >&5 18262 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13245 echo "$as_me: error: cannot find input file: $f" >&2;} 18263 echo "$as_me: error: cannot find input file: $f" >&2;}
13246 { (exit 1); exit 1; }; } 18264 { (exit 1); exit 1; }; }
13247 fi;; 18265 fi;;
13248 esac 18266 esac
13249 done` || { (exit 1); exit 1; } 18267 done` || { (exit 1); exit 1; }
13250 EOF 18268 _ACEOF
13251 cat >>$CONFIG_STATUS <<EOF 18269 cat >>$CONFIG_STATUS <<_ACEOF
13252 sed "$ac_vpsub 18270 sed "$ac_vpsub
13253 $extrasub 18271 $extrasub
13254 EOF 18272 _ACEOF
13255 cat >>$CONFIG_STATUS <<\EOF 18273 cat >>$CONFIG_STATUS <<\_ACEOF
13256 :t 18274 :t
13257 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 18275 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13258 s,@configure_input@,$configure_input,;t t 18276 s,@configure_input@,$configure_input,;t t
13259 s,@srcdir@,$ac_srcdir,;t t 18277 s,@srcdir@,$ac_srcdir,;t t
18278 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13260 s,@top_srcdir@,$ac_top_srcdir,;t t 18279 s,@top_srcdir@,$ac_top_srcdir,;t t
18280 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18281 s,@builddir@,$ac_builddir,;t t
18282 s,@abs_builddir@,$ac_abs_builddir,;t t
18283 s,@top_builddir@,$ac_top_builddir,;t t
18284 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13261 s,@INSTALL@,$ac_INSTALL,;t t 18285 s,@INSTALL@,$ac_INSTALL,;t t
13262 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 18286 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13263 rm -f $tmp/stdin 18287 rm -f $tmp/stdin
13264 if test x"$ac_file" != x-; then 18288 if test x"$ac_file" != x-; then
13265 mv $tmp/out $ac_file 18289 mv $tmp/out $ac_file
13267 cat $tmp/out 18291 cat $tmp/out
13268 rm -f $tmp/out 18292 rm -f $tmp/out
13269 fi 18293 fi
13270 18294
13271 done 18295 done
13272 EOF 18296 _ACEOF
13273 cat >>$CONFIG_STATUS <<\EOF 18297 cat >>$CONFIG_STATUS <<\_ACEOF
13274 18298
13275 # 18299 #
13276 # CONFIG_HEADER section. 18300 # CONFIG_HEADER section.
13277 # 18301 #
13278 18302
13300 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 18324 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13301 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 18325 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13302 * ) ac_file_in=$ac_file.in ;; 18326 * ) ac_file_in=$ac_file.in ;;
13303 esac 18327 esac
13304 18328
13305 test x"$ac_file" != x- && { echo "$as_me:13305: creating $ac_file" >&5 18329 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13306 echo "$as_me: creating $ac_file" >&6;} 18330 echo "$as_me: creating $ac_file" >&6;}
13307 18331
13308 # First look for the input files in the build tree, otherwise in the 18332 # First look for the input files in the build tree, otherwise in the
13309 # src tree. 18333 # src tree.
13310 ac_file_inputs=`IFS=: 18334 ac_file_inputs=`IFS=:
13311 for f in $ac_file_in; do 18335 for f in $ac_file_in; do
13312 case $f in 18336 case $f in
13313 -) echo $tmp/stdin ;; 18337 -) echo $tmp/stdin ;;
13314 [\\/$]*) 18338 [\\/$]*)
13315 # Absolute (can't be DOS-style, as IFS=:) 18339 # Absolute (can't be DOS-style, as IFS=:)
13316 test -f "$f" || { { echo "$as_me:13316: error: cannot find input file: $f" >&5 18340 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13317 echo "$as_me: error: cannot find input file: $f" >&2;} 18341 echo "$as_me: error: cannot find input file: $f" >&2;}
13318 { (exit 1); exit 1; }; } 18342 { (exit 1); exit 1; }; }
13319 echo $f;; 18343 echo $f;;
13320 *) # Relative 18344 *) # Relative
13321 if test -f "$f"; then 18345 if test -f "$f"; then
13324 elif test -f "$srcdir/$f"; then 18348 elif test -f "$srcdir/$f"; then
13325 # Source tree 18349 # Source tree
13326 echo $srcdir/$f 18350 echo $srcdir/$f
13327 else 18351 else
13328 # /dev/null tree 18352 # /dev/null tree
13329 { { echo "$as_me:13329: error: cannot find input file: $f" >&5 18353 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13330 echo "$as_me: error: cannot find input file: $f" >&2;} 18354 echo "$as_me: error: cannot find input file: $f" >&2;}
13331 { (exit 1); exit 1; }; } 18355 { (exit 1); exit 1; }; }
13332 fi;; 18356 fi;;
13333 esac 18357 esac
13334 done` || { (exit 1); exit 1; } 18358 done` || { (exit 1); exit 1; }
13335 # Remove the trailing spaces. 18359 # Remove the trailing spaces.
13336 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 18360 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13337 18361
13338 EOF 18362 _ACEOF
13339 18363
13340 # Transform confdefs.h into two sed scripts, `conftest.defines' and 18364 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13341 # `conftest.undefs', that substitutes the proper values into 18365 # `conftest.undefs', that substitutes the proper values into
13342 # config.h.in to produce config.h. The first handles `#define' 18366 # config.h.in to produce config.h. The first handles `#define'
13343 # templates, and the second `#undef' templates. 18367 # templates, and the second `#undef' templates.
13349 # Putting comments in sed scripts is not portable. 18373 # Putting comments in sed scripts is not portable.
13350 # 18374 #
13351 # `end' is used to avoid that the second main sed command (meant for 18375 # `end' is used to avoid that the second main sed command (meant for
13352 # 0-ary CPP macros) applies to n-ary macro definitions. 18376 # 0-ary CPP macros) applies to n-ary macro definitions.
13353 # See the Autoconf documentation for `clear'. 18377 # See the Autoconf documentation for `clear'.
13354 cat >confdef2sed.sed <<\EOF 18378 cat >confdef2sed.sed <<\_ACEOF
13355 s/[\\&,]/\\&/g 18379 s/[\\&,]/\\&/g
13356 s,[\\$`],\\&,g 18380 s,[\\$`],\\&,g
13357 t clear 18381 t clear
13358 : clear 18382 : clear
13359 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp 18383 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13360 t end 18384 t end
13361 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 18385 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13362 : end 18386 : end
13363 EOF 18387 _ACEOF
13364 # If some macros were called several times there might be several times 18388 # If some macros were called several times there might be several times
13365 # the same #defines, which is useless. Nevertheless, we may not want to 18389 # the same #defines, which is useless. Nevertheless, we may not want to
13366 # sort them, since we want the *last* AC-DEFINE to be honored. 18390 # sort them, since we want the *last* AC-DEFINE to be honored.
13367 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 18391 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13368 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 18392 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13369 rm -f confdef2sed.sed 18393 rm -f confdef2sed.sed
13370 18394
13371 # This sed command replaces #undef with comments. This is necessary, for 18395 # This sed command replaces #undef with comments. This is necessary, for
13372 # example, in the case of _POSIX_SOURCE, which is predefined and required 18396 # example, in the case of _POSIX_SOURCE, which is predefined and required
13373 # on some systems where configure will not decide to define it. 18397 # on some systems where configure will not decide to define it.
13374 cat >>conftest.undefs <<\EOF 18398 cat >>conftest.undefs <<\_ACEOF
13375 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 18399 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13376 EOF 18400 _ACEOF
13377 18401
13378 # Break up conftest.defines because some shells have a limit on the size 18402 # Break up conftest.defines because some shells have a limit on the size
13379 # of here documents, and old seds have small limits too (100 cmds). 18403 # of here documents, and old seds have small limits too (100 cmds).
13380 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 18404 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13381 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 18405 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13428 rm -f conftest.undefs 18452 rm -f conftest.undefs
13429 mv conftest.tail conftest.undefs 18453 mv conftest.tail conftest.undefs
13430 done 18454 done
13431 rm -f conftest.undefs 18455 rm -f conftest.undefs
13432 18456
13433 cat >>$CONFIG_STATUS <<\EOF 18457 cat >>$CONFIG_STATUS <<\_ACEOF
13434 # Let's still pretend it is `configure' which instantiates (i.e., don't 18458 # Let's still pretend it is `configure' which instantiates (i.e., don't
13435 # use $as_me), people would be surprised to read: 18459 # use $as_me), people would be surprised to read:
13436 # /* config.h. Generated automatically by config.status. */ 18460 # /* config.h. Generated by config.status. */
13437 if test x"$ac_file" = x-; then 18461 if test x"$ac_file" = x-; then
13438 echo "/* Generated automatically by configure. */" >$tmp/config.h 18462 echo "/* Generated by configure. */" >$tmp/config.h
13439 else 18463 else
13440 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h 18464 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13441 fi 18465 fi
13442 cat $tmp/in >>$tmp/config.h 18466 cat $tmp/in >>$tmp/config.h
13443 rm -f $tmp/in 18467 rm -f $tmp/in
13444 if test x"$ac_file" != x-; then 18468 if test x"$ac_file" != x-; then
13445 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then 18469 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
13446 { echo "$as_me:13446: $ac_file is unchanged" >&5 18470 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13447 echo "$as_me: $ac_file is unchanged" >&6;} 18471 echo "$as_me: $ac_file is unchanged" >&6;}
13448 else 18472 else
13449 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18473 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18474 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13450 X"$ac_file" : 'X\(//\)[^/]' \| \ 18475 X"$ac_file" : 'X\(//\)[^/]' \| \
13451 X"$ac_file" : 'X\(//\)$' \| \ 18476 X"$ac_file" : 'X\(//\)$' \| \
13452 X"$ac_file" : 'X\(/\)' \| \ 18477 X"$ac_file" : 'X\(/\)' \| \
13453 . : '\(.\)' 2>/dev/null || 18478 . : '\(.\)' 2>/dev/null ||
13454 echo X"$ac_file" | 18479 echo X"$ac_file" |
13455 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 18480 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13456 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 18481 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13457 /^X\(\/\/\)$/{ s//\1/; q; } 18482 /^X\(\/\/\)$/{ s//\1/; q; }
13458 /^X\(\/\).*/{ s//\1/; q; } 18483 /^X\(\/\).*/{ s//\1/; q; }
13459 s/.*/./; q'` 18484 s/.*/./; q'`
13460 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 18485 { case "$ac_dir" in
13461 { case "$ac_dir" in
13462 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 18486 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
13463 *) as_incr_dir=.;; 18487 *) as_incr_dir=.;;
13464 esac 18488 esac
13465 as_dummy="$ac_dir" 18489 as_dummy="$ac_dir"
13466 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 18490 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
13467 case $as_mkdir_dir in 18491 case $as_mkdir_dir in
13468 # Skip DOS drivespec 18492 # Skip DOS drivespec
13469 ?:) as_incr_dir=$as_mkdir_dir ;; 18493 ?:) as_incr_dir=$as_mkdir_dir ;;
13470 *) 18494 *)
13471 as_incr_dir=$as_incr_dir/$as_mkdir_dir 18495 as_incr_dir=$as_incr_dir/$as_mkdir_dir
13472 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 18496 test -d "$as_incr_dir" ||
18497 mkdir "$as_incr_dir" ||
18498 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18499 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18500 { (exit 1); exit 1; }; }
13473 ;; 18501 ;;
13474 esac 18502 esac
13475 done; } 18503 done; }
13476 18504
13477 fi
13478 rm -f $ac_file 18505 rm -f $ac_file
13479 mv $tmp/config.h $ac_file 18506 mv $tmp/config.h $ac_file
13480 fi 18507 fi
13481 else 18508 else
13482 cat $tmp/config.h 18509 cat $tmp/config.h
13483 rm -f $tmp/config.h 18510 rm -f $tmp/config.h
13484 fi 18511 fi
13485 done 18512 done
13486 EOF 18513 _ACEOF
13487 cat >>$CONFIG_STATUS <<\EOF 18514 cat >>$CONFIG_STATUS <<\_ACEOF
13488 18515
13489 # 18516 #
13490 # CONFIG_COMMANDS section. 18517 # CONFIG_COMMANDS section.
13491 # 18518 #
13492 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 18519 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13493 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 18520 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13494 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 18521 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13495 18522 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18523 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18524 X"$ac_dest" : 'X\(//\)[^/]' \| \
18525 X"$ac_dest" : 'X\(//\)$' \| \
18526 X"$ac_dest" : 'X\(/\)' \| \
18527 . : '\(.\)' 2>/dev/null ||
18528 echo X"$ac_dest" |
18529 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18530 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18531 /^X\(\/\/\)$/{ s//\1/; q; }
18532 /^X\(\/\).*/{ s//\1/; q; }
18533 s/.*/./; q'`
18534 ac_builddir=.
18535
18536 if test "$ac_dir" != .; then
18537 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18538 # A "../" for each directory in $ac_dir_suffix.
18539 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18540 else
18541 ac_dir_suffix= ac_top_builddir=
18542 fi
18543
18544 case $srcdir in
18545 .) # No --srcdir option. We are building in place.
18546 ac_srcdir=.
18547 if test -z "$ac_top_builddir"; then
18548 ac_top_srcdir=.
18549 else
18550 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18551 fi ;;
18552 [\\/]* | ?:[\\/]* ) # Absolute path.
18553 ac_srcdir=$srcdir$ac_dir_suffix;
18554 ac_top_srcdir=$srcdir ;;
18555 *) # Relative path.
18556 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18557 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18558 esac
18559 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18560 # absolute.
18561 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18562 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
18563 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18564 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18565
18566
18567 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18568 echo "$as_me: executing $ac_dest commands" >&6;}
13496 case $ac_dest in 18569 case $ac_dest in
13497 default ) 18570 default )
13498 18571
13499 ### Make the necessary directories, if they don't exist. 18572 ### Make the necessary directories, if they don't exist.
13500 for dir in etc lisp ; do 18573 for dir in etc lisp ; do
13567 touch src/config.stamp 18640 touch src/config.stamp
13568 18641
13569 ;; 18642 ;;
13570 esac 18643 esac
13571 done 18644 done
13572 EOF 18645 _ACEOF
13573 18646
13574 cat >>$CONFIG_STATUS <<\EOF 18647 cat >>$CONFIG_STATUS <<\_ACEOF
13575 18648
13576 { (exit 0); exit 0; } 18649 { (exit 0); exit 0; }
13577 EOF 18650 _ACEOF
13578 chmod +x $CONFIG_STATUS 18651 chmod +x $CONFIG_STATUS
13579 ac_clean_files=$ac_clean_files_save 18652 ac_clean_files=$ac_clean_files_save
18653
13580 18654
13581 # configure is writing to config.log, and then calls config.status. 18655 # configure is writing to config.log, and then calls config.status.
13582 # config.status does its own redirection, appending to config.log. 18656 # config.status does its own redirection, appending to config.log.
13583 # Unfortunately, on DOS this fails, as config.log is still kept open 18657 # Unfortunately, on DOS this fails, as config.log is still kept open
13584 # by configure, so config.status won't be able to write to it; its 18658 # by configure, so config.status won't be able to write to it; its
13594 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 18668 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13595 # would make configure fail if this is the last instruction. 18669 # would make configure fail if this is the last instruction.
13596 $ac_cs_success || { (exit 1); exit 1; } 18670 $ac_cs_success || { (exit 1); exit 1; }
13597 fi 18671 fi
13598 18672
18673